* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
     overflow: auto !important;
}

body {
    background: black;
    color: #fff;
}

/* Light Mode */
body.light-mode {
    background: black;
    color: white;
}


/* Loader Screen */
.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    margin: 0;
    padding: 0;
}

.loader-content {
    position: relative;
    width: 200px; /* Adjust as needed */
    height: 200px; /* Adjust as needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    width: 80px; /* Adjust logo size */
    position: absolute;
    top: 50%;
    left: 42%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateOrbit 10s linear infinite; /* Continuous rotation */
}

.stack {
    position: absolute;
    color: #ff004f;
    font-size: 30px;
    opacity: 0;
    transform-origin: center;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%) rotate(0deg) translateY(-100px) rotate(0deg);
}

/* Keyframes for orbit rotation */
@keyframes rotateOrbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Light Mode Styles */
body.light-mode .loader-screen {
    background: black;
}

body.light-mode .stack {
    color: #0075f6; /* Light Mode */
}

/* Main Screen */
.main-screen {
    display: none; /* Hidden initially */
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

#galaxy-background {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1; /* Ensure it stays in the background */
    top: 0;
    left: 0;
    pointer-events: none; /* Ensures particles don't interfere with clicks */
}

/* Customize the scrollbar for WebKit browsers */
::-webkit-scrollbar {
    width: 10px; /* Set the width of the scrollbar */
    height: 5px; /* Adjusting this affects horizontal scrollbars */
}

/* Dark Mode Scrollbar */
::-webkit-scrollbar-track {
    background: #262626; /* Dark background to match the theme */
    border-radius: 10px; /* Rounded corners for the track */
}

::-webkit-scrollbar-thumb {
    background: #ff004f; /* Red color for the scrollbar thumb */
    border-radius: 10px; /* Rounded corners for the thumb */
    height: 5px; /* Set a minimum height for the scrollbar thumb */
    transition: background 0.5s; /* Smooth transition for the thumb color */
}

/* On hover */
::-webkit-scrollbar-thumb:hover {
    background: #e60040; /* Slightly darker red on hover */
}

/* Optional: Customize the scrollbar buttons */
::-webkit-scrollbar-button {
    background: #262626; /* Match the track background */
}

/* Firefox scrollbar customization (newer versions) */
* {
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: #ff004f #262626; /* Thumb and track colors */
}

/* Light Mode Scrollbar */
body.light-mode ::-webkit-scrollbar {
    width: 12px; /* Ensure the scrollbar width is set */
}

body.light-mode ::-webkit-scrollbar-track {
    background: #000000 !important; /* Black background for light mode */
}

body.light-mode ::-webkit-scrollbar-thumb {
    background: #007bff !important; /* Blue color */
    border-radius: 6px; /* Optional: Add rounded corners */
}

body.light-mode ::-webkit-scrollbar-thumb:hover {
    background: #0056b3 !important; /* Darker blue on hover */
}

/* Firefox Scrollbar */
body.light-mode * {
    scrollbar-width: thin; /* Ensure scrollbar is visible */
    scrollbar-color: #007bff #000000 !important; /* Blue thumb on black track */
}

.force-refresh {
    /* No styles needed, just triggers a reflow */
}

* {
    cursor: none;
}

/* Custom Cursor - Default Shape */
.custom-cursor {
    position: fixed;
    width: 15px;
    height: 15px;
    background: #ff004f;
    border: 2px solid rgba(255, 0, 79, 0.8);
    border-radius: 50%;
    box-shadow: 0px 0px 10px rgba(255, 0, 79, 0.8);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.2s ease, height 0.2s ease;
    z-index: 9999;
}

/* Hover Effects - Expands on Links, Buttons, Inputs */
a:hover ~ .custom-cursor,
button:hover ~ .custom-cursor,
input:hover ~ .custom-cursor {
    width: 25px;
    height: 25px;
    background: rgba(255, 0, 79, 0.7);
    box-shadow: 0px 0px 15px rgba(255, 0, 79, 1);
}

/* Click Effect */
.custom-cursor.click {
    transform: scale(1.5);
    background: rgba(255, 0, 79, 1);
    box-shadow: 0px 0px 25px rgba(255, 0, 79, 1);
}

/* Light Mode Cursor */
body.light-mode .custom-cursor {
    background: #007bff;
    border: 2px solid rgba(0, 123, 255, 0.8);
    box-shadow: 0px 0px 10px rgba(0, 123, 255, 0.8);
}

/* Hover Effects in Light Mode */
body.light-mode a:hover ~ .custom-cursor,
body.light-mode button:hover ~ .custom-cursor,
body.light-mode input:hover ~ .custom-cursor {
    background: rgba(0, 123, 255, 0.7);
    box-shadow: 0px 0px 15px rgba(0, 123, 255, 1);
}

/* Click Effect in Light Mode */
body.light-mode .custom-cursor.click {
    background: rgba(0, 123, 255, 1);
    box-shadow: 0px 0px 25px rgba(0, 123, 255, 1);
}
/* Toggle Button */
.theme-toggle {
    position: relative;
    margin-top: 15px;
    width: 50px;
    height: 20px;
    background-color: #ff004f; /* Default (Dark Mode) */
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 3px;
    cursor: pointer;
    transition: background 0.4s;
}

/* Toggle Circle */
.theme-toggle .toggle-icon {
    height: 17px;
    width: 17px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: transform 0.4s;
}

/* Light Mode */
.theme-toggle.light {
    background-color: #0075f6; /* Blue for Light Mode */
    justify-content: flex-start;
}



/* === Voice Assistant Container === */
.voice-recognition {
    position: fixed;
    bottom: 120px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}

/* === Microphone Button === */
#voiceButton {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff004f, #800027);
    border: none;
    border-radius: 50%;
    box-shadow: 0px 0px 15px rgba(255, 0, 79, 0.7);
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s;
}

/* Hover & Click Effects */
#voiceButton:hover {
    transform: scale(1.1);
    box-shadow: 0px 0px 25px rgba(255, 0, 79, 1);
}

#voiceButton:active {
    transform: scale(1);
    box-shadow: 0px 0px 30px rgba(255, 0, 79, 1);
}

/* === Listening Status Box (Like Google Assistant) === */
#voiceStatus {
    margin-top: 10px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.9);
    color: #ff004f;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0px 0px 10px rgba(255, 0, 79, 0.8);
    max-width: 260px;
}

/* Pulsing Dots Animation */
#dots::after {
    content: "...";
    animation: dots 1.5s infinite steps(4);
}

@keyframes dots {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
    100% { content: ""; }
}

/* === Detected Speech Output Box === */
#speechOutput {
    margin-top: 10px;
    padding: 12px;
    background: rgba(20, 20, 20, 0.9);
    color: #ff004f;
    font-size: 16px;
    border-radius: 5px;
    text-align: center;
    opacity: 0;
    max-width: 280px;
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0px 0px 12px rgba(255, 0, 79, 0.7);
}

/* === No Match Suggestions === */
#suggestions {
    margin-top: 10px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.9);
    color: #ff004f;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
    opacity: 0;
    max-width: 260px;
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0px 0px 10px rgba(255, 0, 79, 0.8);
}

/* === Show When Active === */
.show-status {
    opacity: 1 !important;
}

.hidden {
    display: none;
     opacity: 0;
    pointer-events: none;
}

/* === Light Mode Microphone Button === */
body.light-mode #voiceButton {
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0px 0px 15px rgba(0, 123, 255, 0.7);
}

/* Light Mode Hover & Click Effects */
body.light-mode #voiceButton:hover {
    box-shadow: 0px 0px 25px rgba(0, 123, 255, 1);
}

body.light-mode #voiceButton:active {
    box-shadow: 0px 0px 30px rgba(0, 123, 255, 1);
}

/* Light Mode Voice Status */
body.light-mode #voiceStatus {
    background: rgba(255, 255, 255, 0.9);
    color: #007bff;
    box-shadow: 0px 0px 10px rgba(0, 123, 255, 0.8);
}

/* Light Mode Speech Output */
body.light-mode #speechOutput {
    background: rgba(255, 255, 255, 0.9);
    color: #007bff;
    box-shadow: 0px 0px 12px rgba(0, 123, 255, 0.7);
}

/* Light Mode No Match Suggestions */
body.light-mode #suggestions {
    background: rgba(255, 255, 255, 0.9);
    color: #007bff;
    box-shadow: 0px 0px 10px rgba(0, 123, 255, 0.8);
}



/* 🔥 Quick Test Button */
.quizbtn {
    position: fixed;
    bottom: 70px;
    left: 20px;
    background-color: #ff004f;
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 0px 10px rgba(255, 0, 79, 0.8);
    transition: all 0.3s ease-in-out;
    z-index: 9999; /* Ensures the button stays on top */
}
.quizbtn:hover {
    box-shadow: 0px 0px 20px rgba(255, 0, 79, 1);
    transform: scale(1.1);
}

/* 🔥 Quiz Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #111;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 79, 0.8);
    border: 2px solid #ff004f;
    animation: fadeIn 0.5s ease-in-out;
}

/* 🔥 Enhanced Progress Bar Container */
.progress-bar-container {
    width: 100%;
    height: 18px; /* Increased height for better visibility */
    background: rgba(34, 34, 34, 0.8); /* Slight transparency for depth */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0px 0px 15px rgba(255, 0, 79, 0.8);
    border: 2px solid #ff004f;
    position: relative;
}

/* 🔥 Animated Gradient Progress Bar */
.progress-bar {
    height: 100%; /* Fill the entire height of the container */
    width: 0;
    background: linear-gradient(135deg, #ff004f, #800027, #ff004f);
    background-size: 200% 200%; /* For gradient animation */
    transition: width 0.8s ease-out;
    box-shadow: 0px 0px 20px rgba(255, 0, 79, 0.8);
    border-radius: 8px;
    position: relative;
    animation: pulseGlow 1.5s infinite alternate ease-in-out, gradientShift 3s infinite linear;
}

body.light-mode .progress-bar{
    animation: lightGlow 1.5s infinite alternate ease-in-out, lightgradientShift 3s infinite linear;
}

@keyframes lightGlow {
    0% { box-shadow: 0 0 10px #007bff; }
    50% { box-shadow: 0 0 20px #007bff, 0 0 30px #0056b3; }
    100% { box-shadow: 0 0 10px #007bff; }
}

/* 🔥 Gradient Shift Animation */
body.light-mode {
    background: linear-gradient(45deg, #007bff, #0056b3);
    background-size: 200% 200%;
    animation: lightgradientShift 5s infinite alternate;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}



/* 🔥 Neon Glow Animation */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px #ff004f; }
    50% { box-shadow: 0 0 20px #ff004f, 0 0 30px #800027; }
    100% { box-shadow: 0 0 10px #ff004f; }
}

/* 🔥 Gradient Shift Animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* 🔥 MCQ Option Styling */
.mcq-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 0, 79, 0.2);
    color: #ff004f;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
    border: 2px solid #ff004f;
    margin: 8px 0;
    text-align: left;
    font-size: 16px;
}

/* Hover Effect */
.mcq-option:hover {
    background: rgba(255, 0, 79, 0.4);
    transform: scale(1.03);
}

/* 🔥 Custom Radio Buttons */
.radio-circle {
    width: 18px;
    height: 18px;
    border: 2px solid #ff004f;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide the default radio button */
input[type="radio"] {
    display: none;
}

/* Custom dot inside the circle */
input[type="radio"]:checked + .radio-circle::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #ff004f;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 🔥 Correct & Wrong Answers */
.correct {
    border-color: green;
    box-shadow: 0 0 15px green;
}

.wrong {
    border-color: red;
    background: #ffdddd;
    color: black;
}

/* 🔥 Neon Score Animation */
#quiz-feedback {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    animation: neonGlow 1.5s infinite alternate;
}

/* 🔥 Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes neonGlow {
    from {
        text-shadow: 0 0 5px #ff004f, 0 0 10px #ff004f, 0 0 20px #ff004f, 0 0 40px #ff004f;
    }
    to {
        text-shadow: 0 0 10px #ff004f, 0 0 20px #ff004f, 0 0 30px #ff004f, 0 0 50px #ff004f;
    }
}

/* 🔥 Quick Test Button */
body.light-mode .quizbtn {
    background-color: #007bff;
    color: white;
    box-shadow: 0px 0px 10px rgba(0, 123, 255, 0.8);
}
body.light-mode .quizbtn:hover {
    box-shadow: 0px 0px 20px rgba(0, 123, 255, 1);
}

/* 🔥 Quiz Modal */
body.light-mode .modal {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
}
body.light-mode .modal-content {
    background: #fff;
    color: #333;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
    border: 2px solid #007bff;
}

/* 🔥 Enhanced Progress Bar Container */
body.light-mode .progress-bar-container {
    background: rgba(220, 220, 220, 0.8);
    box-shadow: 0px 0px 15px rgba(0, 123, 255, 0.8);
    border: 2px solid #007bff;
}

/* 🔥 Animated Gradient Progress Bar */
body.light-mode .progress-bar {
    background: linear-gradient(135deg, #007bff, #0056b3, #007bff);
    box-shadow: 0px 0px 20px rgba(0, 123, 255, 0.8);
}

/* 🔥 MCQ Option Styling */
body.light-mode .mcq-option {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    border: 2px solid #007bff;
}
body.light-mode .mcq-option:hover {
    background: rgba(0, 123, 255, 0.4);
}

/* 🔥 Custom Radio Buttons */
body.light-mode .radio-circle {
    border: 2px solid #007bff;
}
body.light-mode input[type="radio"]:checked + .radio-circle::after {
    background: #007bff;
}

/* 🔥 Correct & Wrong Answers */
body.light-mode .correct {
    border-color: green;
    box-shadow: 0 0 15px green;
}
body.light-mode .wrong {
    border-color: red;
    background: #ffdddd;
    color: black;
}

/* 🔥 Neon Score Animation */
body.light-mode #quiz-feedback {
    animation: lightNeonGlow 1.5s infinite alternate;
}

/* 🔥 Animations */
@keyframes lightNeonGlow {
    from {
        text-shadow: 0 0 5px #007bff, 0 0 10px #007bff, 0 0 20px #007bff, 0 0 40px #007bff;
    }
    to {
        text-shadow: 0 0 10px #007bff, 0 0 20px #007bff, 0 0 30px #007bff, 0 0 50px #007bff;
    }
}


/* Search Input Field */
#portfolio-search {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 160px;
    padding: 7px;
    border: 2px solid #ff004f;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    background: black;
    color: white;
    transition: width 0.3s ease-in-out;
    z-index: 9999;
}

#portfolio-search:focus {
    width: 220px;
}

/* Search Results */
#search-results {
    position: fixed;
    top: 50px; /* Adjusted for better alignment */
    right: 70px;
    list-style: none;
    margin: 0;
    padding: 5px;
    background: black;
    border-radius: 5px;
    display: none;
    max-width: 250px;
    box-shadow: 0px 4px 10px rgba(255, 0, 79, 0.8);
    z-index: 9999; /* Keep it above all other elements */
    overflow-y: auto; /* Enable scrolling if needed */
    max-height: 200px;
}

#search-results li {
    padding: 8px;
    cursor: pointer;
    color: white;
    transition: background 0.3s ease-in-out;
    border-radius: 5px;
}

#search-results li:hover {
    background: #ff004f;
}

/* Search Input Field - Light Mode */
body.light-mode #portfolio-search {
    border: 2px solid #007bff; /* Blue border */
    background: white;
    color: black;
}

body.light-mode #search-results {
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 123, 255, 0.8); /* Blue shadow */
}

body.light-mode #search-results li {
    color: black;
}

body.light-mode #search-results li:hover {
    background: #007bff; /* Blue hover */
    color: white;
}


#header {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -10px;
}


nav {
    position: absolute;
    top: 30px;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;

}

.breadcrumb {
    margin: 0px 20px 20px; /* Adjust margin for spacing */
    font-size: 14px;
    color: white;
}

.breadcrumb a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #ff9800;
}

#backToTop {
    position: fixed;
    bottom: 67px;
    z-index: 1;
    right: 20px;
    display: none; /* Initially hidden */
    background: #ff004f;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
}

#backToTop:hover {
    transform: scale(1.1);
}

body.light-mode #backToTop {
    background: #007bff;
    color: white;
}

body.light-mode #backToTop:hover {
    background: #0056b3;
}


.logo {
    width: 100px; /* Adjusts the size of the logo */
    height: auto; /* Maintains aspect ratio */
    display: block; /* Ensures proper alignment */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Adds smooth transition effects */
    cursor: pointer; /* Changes cursor to pointer when hovering */
}

/* Hover effect for logo */
.logo:hover {
    transform: scale(1.1); /* Slightly enlarges the logo */
    opacity: 0.8; /* Reduces opacity to give a hover effect */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    transition: none;
}

.nav-links.scrolled{
     background: rgba(0, 0, 0, 1);
    padding: 10px 20px;
}

.fa-bars{
    display: none;
}
.nav-links li {
    position: relative; /* Make the list item the reference point for the pseudo-element */
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s; /* Smooth transition for text color */
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0; /* Initially, the line has zero width */
    height: 3px;
    background: #ff004f; /* Red color for the underline */
    left: 0;
    bottom: -6px; /* Position slightly below the text */
    transition: width 0.3s ease; /* Smooth transition for the line's width */
}

.nav-links li a:hover {
    color: #ff004f; /* Optional: Change the text color on hover */
}

body.light-mode .nav-links li a {
    color: #fff;
}

body.light-mode .nav-links li a:hover {
    color: #007bff;
}

body.light-mode .nav-links li a::after {
    background: #007bff; /* Blue underline */
}

.nav-links li a:hover::after {
    width: 80%; /* Extend the line to full width on hover */
}

.content {
    text-align: left;
    margin-left: 50px;
    position: absolute;
    left: 10%;
    top: 50%;
    
}

.content .role {
    font-size: 18px;
    color: #999;
    margin-bottom: 10px;
}

.content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.content h1 span {
    color: #f54266;
}

.content h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: -5px;

}

.content h2:hover{
    color: #f54266;
}

/* Content */
body.light-mode .content h1 span {
    color: #007bff;
}

body.light-mode h2 {
    color: #007bff !important; /* Set blue color in light mode */
    transition: none !important; /* Remove hover effects */
}

body.light-mode h2:hover {
    color: #007bff !important; /* Keep it blue on hover */
    transform: none !important; /* Remove any movement */
}

body.light-mode #element {
    color: #fff;
}

body.light-mode #element i {
    color: #007bff;
}

.main-image {
    position: absolute;
    right: 40%;
    top: 60%;
    transition: transform 0.5s ease, opacity 0.5s ease; ;
    
}

.main-image:hover {
    transform: scale(1.05); /* Slightly enlarges the logo */
    opacity: 1; /* Reduces opacity to give a hover effect */
}

.main-image img {
    width: 300px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    transform: translateY(-50%);
}

  #element {
    font-family: 'Arial', sans-serif; /* Set a font for the text */
    font-size: 20px; /* Adjust the font size */
    font-weight: bold; /* Make the text bold */
    color: #333; /* Set the text color */
    margin-bottom: 20px;
  }

  #element i {
    color: #f54266; /* Different color for italic text */
    font-style: normal; /* Remove italic style if you prefer */
  }

   @keyframes wave {
      0% {
        transform: rotate(0deg); /* No rotation at the start */
      }
      25% {
        transform: rotate(15deg); /* Slight right wave */
      }
      50% {
        transform: rotate(0deg); /* Back to initial position */
      }
      75% {
        transform: rotate(-15deg); /* Slight left wave */
      }
      100% {
        transform: rotate(0deg); /* Back to initial position */
      }
    }

    /* Style the hand */
    .hand {
      margin-top: -38px;
      margin-left: 225px;
      display: block;
      font-size: 1.5rem;
      animation: wave 1.5s ease-in-out infinite; /* Apply the animation */

    }

/* General Container Styling */
#about {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 10%;
    background-color: #080808;
    margin-top: 60px;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    width: 100%;
}

.about-image img {
    width: 300px; /* Adjust as needed */
    height: auto;
    background-color: black;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    margin-left: -80px;
    transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out; /* Smoother transition */
}

.about-image:hover img {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7); /* Enhanced shadow on hover */
}


.about-content {
    max-width: 700px;
}

.about-content h1 {
    font-size: 2rem;
    color: #ff004f;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1rem;
    color: #fff;
    line-height: 1.6;
    text-align: justify;
}

/* 🔥 General Container Styling */
body.light-mode #about {
    background-color: black; /* Light background */
}

body.light-mode .about-image img {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

body.light-mode .about-image:hover img {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* 🔥 Content Styling */
body.light-mode .about-content h1 {
    color: #007bff; /* Blue accent instead of red */
}

body.light-mode .about-content p {
    color: #fff; /* Dark text for readability */
}


#code-rain {
    position: relative;
    width: 100%;
    height: 300px; /* Adjust height as needed */
    background: black;
    overflow: hidden;
}
#codeCanvas {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.code-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 0, 79, 0); /* Start as transparent */
    text-shadow: 0px 0px 10px rgba(255, 0, 79, 0.5);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    white-space: nowrap;      /* Prevent text from breaking into multiple lines */
    max-width: 90vw;         /* Ensure text does not exceed viewport width */
    overflow: hidden;        /* Hide any overflow */
    text-overflow: ellipsis
}

/* 🔥 Light Mode Fix */
body.light-mode {
    background: black !important; /* Ensures the background stays black */
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevents scrolling if needed */
}

/* 🔥 Code Rain Container */
body.light-mode #code-rain {
    background: black !important; 
}

/* 🔥 Code Canvas */
body.light-mode #codeCanvas {
    background: black;
}

/* 🔥 Code Text */
body.light-mode .code-text {
    color: rgba(0, 123, 255, 0); /* Transparent blue for initial state */
    text-shadow: 0px 0px 10px rgba(0, 123, 255, 0.5); /* Softer blue glow */
}


#brain-section {
    position: relative;
    width: 100%;
    height: 400px;
    background: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.brain-container {
    width: 200px;
    height: 200px;
    animation: rotateBrain 6s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

#brainImage {
    width: 100%;
    height: auto;
    filter: drop-shadow(0px 0px 10px rgba(255, 0, 79, 0.8));
    transition: transform 0.5s ease-in-out;
}

/* Hover Effect: Stops rotation and enlarges slightly */
.brain-container:hover {
    animation-play-state: paused;
}

#brainImage:hover {
    transform: scale(1.1);
}

#brainQuestion{
    margin-top: 50px;
    margin-bottom: 10px;
}

#brainAnswer{
    margin-top: 50px;
}


/* 3D Rotation Animation */
@keyframes rotateBrain {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Text Styling */
.brain-text{
    position: absolute;
    font-size: 1.8rem;
    font-weight: bold;
    color: rgba(255, 0, 79, 1);
    text-shadow: 2px 2px 10px rgba(255, 0, 79, 0.7);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
    text-align: center;
}

.brain-answer{
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(255, 0, 79, 1);
    text-shadow: 2px 2px 10px rgba(255, 0, 79, 0.7);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
    text-align: center;
}

.brain-text {
    top: 60%;
}

.brain-answer {
    top: 70%;
}

/* Light Theme */
.light-mode #brain-section {
    background: black; /* Light background */
}

.light-mode .brain-container {
    animation: rotateBrain 6s linear infinite;
}

.light-mode #brainImage {
    filter: drop-shadow(0px 0px 10px rgba(0, 123, 255, 0.8)); /* Blue shadow for light mode */
    transition: transform 0.5s ease-in-out;
}

/* Hover Effect: Stops rotation and enlarges slightly */
.light-mode .brain-container:hover {
    animation-play-state: paused;
}

.light-mode #brainImage:hover {
    transform: scale(1.1);
}

/* Text Styling */
.light-mode .brain-text,
.light-mode .brain-answer {
    color: rgba(0, 123, 255, 1); /* Blue text for light mode */
    text-shadow: 2px 2px 10px rgba(0, 123, 255, 0.7);
}


#hacker-terminal {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    background: black;
}

.hacker-container {
    width: 1200px;
    height: 250px;
    background: rgba(10, 10, 10, 0.9);
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(255, 0, 79, 0.7);
    font-family: monospace;
    overflow: hidden;
    position: relative;
}

.hacker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    background: #111;
    color: #0f0;
}

.hacker-buttons {
    display: flex;
    gap: 5px;
}

.hacker-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.red { background: #ff5f57; }
.yellow { background: #ffbd2e; }
.green { background: #28c940; }

.hacker-title {
    font-size: 14px;
    margin-right: 10px;
}

.hacker-body {
    padding: 10px;
    font-size: 14px;
    color: #ff004f;
    white-space: pre-wrap;
    overflow-y: auto;
    height: 85%;
    display: flex;
    flex-direction: column;
}

/* Glitch Animation */
@keyframes glitch {
    0% { text-shadow: 0px 0px 5px rgba(0, 255, 0, 0.8); }
    50% { text-shadow: 0px 0px 15px rgba(0, 255, 0, 1); }
    100% { text-shadow: 0px 0px 5px rgba(0, 255, 0, 0.8); }
}

.hacker-body {
    animation: glitch 1s infinite;
}

/* 🔹 Small Floating AI Button */
#chatbot {
    position: fixed;
    bottom: 65px;
    right: 70px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff004f, #800027);
    border-radius: 50%;
    box-shadow: 0px 0px 15px rgba(255, 0, 79, 0.7);
    font-family: monospace;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: width 0.4s ease, height 0.4s ease, border-radius 0.4s ease, transform 0.3s ease;
}

/* 🔹 Glowing Hover Effect */
#chatbot:hover {
    transform: scale(1.1);
    box-shadow: 0px 0px 20px rgba(255, 0, 79, 1);
}

/* 🔹 Robot Icon */
#chat-icon i {
    font-size: 20px;
    color: white;
}

/* 🔹 Expanded Chatbox */
#chatbot.expanded {
    width: 320px;
    height: auto;
    border-radius: 10px;
    padding: 10px;
    background: rgba(20, 20, 20, 0.95);
}

/* 🔹 Hide chat body initially */
#chat-body {
    display: none;
    padding: 10px;
    background: black;
    color: white;
}

/* 🔹 Chat Header */
#chat-header {
    background: #ff004f;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 🔹 Close Button */
#chat-toggle {
    cursor: pointer;
}

/* 🔹 Chat Messages */
#chat-messages {
    height: 200px;
    overflow-y: auto;
    padding: 5px;
}

/* 🔹 Chat Input */
#chat-input {
    width: 75%;
    padding: 8px;
    border: none;
    background: #222;
    color: white;
    outline: none;
}

/* 🔹 Send Button */
#chat-body button {
    width: 22%;
    padding: 8px;
    border: none;
    background: #ff004f;
    color: white;
    cursor: pointer;
}

/* Chat Messages */
#chat-messages {
    height: 250px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* User Message (Right Side) */
.user-message {
    align-self: flex-end;
    margin-top: 10px;
    background: #ff004f;
    color: white;
    padding: 10px 15px;
    border-radius: 15px 15px 0px 15px;
    max-width: 70%;
    font-size: 14px;
    box-shadow: 0px 4px 8px rgba(255, 0, 79, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.light-mode .user-message{
    background:#007bff ;
    color: white;
}

/* Bot Message (Left Side) */
.bot-message {
    align-self: flex-start;
    background: #222;
    color: white;
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0px;
    max-width: 70%;
    font-size: 14px;
    box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.3s ease-in-out;
}

/* Typing Effect */
.typing-animation {
    align-self: flex-start;
    background: #222;
    color: white;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    display: inline-block;
    max-width: 70%;
    animation: fadeIn 0.3s ease-in-out;
}

/* Dots Animation */
.typing-animation::after {
    content: "⠇";
    animation: typing 1.5s infinite;
}

@keyframes typing {
    0% { content: "⠇"; }
    25% { content: "⠋"; }
    50% { content: "⠙"; }
    75% { content: "⠸"; }
    100% { content: "⠇"; }
}

/* Fade In Effect */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Light Mode Chatbot */
.light-mode #chatbot {
    background: linear-gradient(135deg, #007bff, #004085); /* Blue gradient */
    box-shadow: 0px 0px 15px rgba(0, 123, 255, 0.7);
}

.light-mode #chatbot:hover {
    box-shadow: 0px 0px 20px rgba(0, 123, 255, 1);
}

/* Robot Icon */
.light-mode #chat-icon i {
    color: #fff; /* Dark icon for visibility */
}

/* Expanded Chatbox */
.light-mode #chatbot.expanded {
    background: rgba(240, 240, 240, 0.95);
}

/* Chat Body */
.light-mode #chat-body {
    background: black;
    color: white;
}

/* Chat Header */
.light-mode #chat-header {
    background: #007bff;
    color: white;
}

/* Chat Input */
.light-mode #chat-input {
    background: #ddd;
    color: black;
}

/* Send Button */
.light-mode #chat-body button {
    background: #007bff;
}






.glassmorphism {
    background: black; /* Transparent white */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 5px;
    color: white; /* Adjust based on background */
    margin: 0 20px !important; /* Adds margin on both left and right */
}

.neumorphism {
    background: black;
    border-radius: 15px;
    box-shadow:  8px 8px 15px rgba(255, 0, 79, 0.3), 
                -8px -8px 15px rgba(255, 0, 79, 0.6);
    padding: 20px;
    transition: 0.3s ease-in-out;
    margin-right: 50px;
}

.neumorphism:active {
    box-shadow: inset 4px 4px 10px #b8b8b8, inset -4px -4px 10px #ffffff;
}


.tabs {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Adjust the gap between the tabs */
    position: relative;
    margin-top: 20px; /* Space between the paragraph and tabs */
}

.tab {
    position: relative;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s; /* Smooth transition for text color */
}

.tab::after {
    content: '';
    position: absolute;
    width: 0; /* Initially, the line has zero width */
    height: 3px;
    background: #ff004f; /* Red color for the underline */
    margin-left: 15px;
    left: 5px;
    bottom: 5px; /* Position slightly below the text */
    transition: width 0.3s ease; /* Smooth transition for the line's width */
}

/* Hover effect to match navbar */
.tab:hover {
    color: #ff004f; /* Change the text color on hover */
}

.tab:hover::after {
    width: 50%; /* Expand the underline to the full width of the tab */
}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span {
    color: #ff004f;
    font-size: 14px;
}

.tab-contents ul li a {
    color: inherit; /* Inherit color from the parent */
    text-decoration: none; /* Remove the underline */
    font-weight: bold; /* Optional: make the link text bold */
}

.tab-contents ul li a:hover {
    color: #ff004f; /* Change the color on hover */
    text-decoration: underline; /* Optional: add underline on hover */
}


.tab-contents{
    display: none;

}

.tab-contents.active-tab{
     display: block;

}

.what-i-do-btn {
  background-color: #ff004f;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  border-radius: 10px;
}

.what-i-do-btn:hover{
    background: #e60044;
}

#popupTabs {
  display: none; /* Hidden by default */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(100%); /* Start from bottom */
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
  padding: 30px;
  border-radius: 15px;
  z-index: 1000;
  width: 90%;
  max-width: 800px;
  opacity: 0; /* Start fully transparent */
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

/* Popup content styling */
.popup-content {
  padding: 20px;
  background-color: #333; /* Dark background for contrast */
  border-radius: 10px;
}

/* Tabs container styling */
.tab-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Individual tab styling */
.tab1 {
  background-color: #222;
  color: #fff;
  width: 30%;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Hover effect for tabs */
.tab1:hover {
  background-color: #ff004f; /* Lighter shade on hover */
  transform: translateY(-10px); /* Lift up on hover */
}

/* Centering contents within tabs */
.tab1 div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Icon styling */
.tab1 div i {
  font-size: 36px;
  margin-bottom: 10px;
}

/* Heading styling */
.tab1 div h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

/* Paragraph styling */
.tab1 div p {
  font-size: 16px;
}

/* Close button styling */
.close-popup-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff004f;
  color: #fff;
  font-size: 24px;
  border: none;
  cursor: pointer;
  width: 20px; /* Adjust size as needed */
  height: 20px;
  border-radius: 50%; /* Makes it circular */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Active state for popup */
#popupTabs.active {
  opacity: 1; /* Fully visible */
  transform: translate(-50%, -50%) translateY(0); /* Move to natural position */
}

.sub-title {
    transition: transform 0.2s ease, color 0.2s ease; /* Smooth transition effect */
    color: #ff004f;
}

.sub-title:hover {
    transform: translateY(-2px); /* Slightly move the heading up */
    color: #fff; /* Change the color on hover */
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    background-color: #000;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #ff004f;
    box-shadow: 0px 0px 20px rgba(255, 0, 79, 1), 0px 0px 30px rgba(255, 0, 79, 0.8);
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

.close {
    color: #ff004f;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ff004f;
}

/* Glassmorphism - Light Mode with Blue Shadow */
.light-mode .glassmorphism {
    background: rgba(255, 255, 255, 0.7); /* Light transparent white */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4), 
                0 6px 20px rgba(0, 123, 255, 0.3); /* Blue shadow effect */
    color: black; /* Dark text for contrast */
}


/* Neumorphism - Light Mode with Darker Blue Shadow */
.light-mode .neumorphism {
    background: #black; /* Slightly darker light background */
    border-radius: 15px;
    box-shadow:  6px 6px 12px rgba(0, 91, 191, 0.5),  /* Darker blue shadow */
                -6px -6px 12px rgba(255, 255, 255, 0.3); /* Less shine */
    color: black;
}

.light-mode .neumorphism:active {
    box-shadow: inset 4px 4px 8px rgba(0, 91, 191, 0.4), 
                inset -4px -4px 8px rgba(255, 255, 255, 0.2); /* Subtle pressed effect */
}


/* Tabs */
.light-mode .tab {
    color: #fff;
}

.light-mode .tab::after {
    background: #007bff; /* Blue underline */
}

.light-mode .tab:hover {
    color: #007bff; /* Blue text on hover */
}

.light-mode .tab-contents ul li span {
    color: #007bff;
}

.light-mode .tab-contents ul li {
    color: white;
}

.light-mode .tab-contents ul li a:hover {
    color: #007bff;
}

/* Buttons */
.light-mode .what-i-do-btn {
    background-color: #007bff;
    color: white;
}

.light-mode .what-i-do-btn:hover {
    background: #0056b3;
}

/* Popup */
/*.light-mode #popupTabs {
    background-color: rgba(255, 255, 255, 0.9);
}*/

.light-mode .popup-content {
    background-color: black;
    color: #fff;
}

/* Tabs in Popup */
.light-mode .tab1 {
    background-color: #f0f0f0;
    color: black;
}

.light-mode .tab1:hover {
    background-color: #007bff;
    color: white;
}


/* Close Button */
.light-mode .close-popup-btn {
    background-color: #007bff;
}

/* Subtitle */
.light-mode .sub-title:hover {
    color: #007bff;
}



/* Modal */
.light-mode .modal-content {
    background-color: #fff;
    border: 1px solid #007bff;
    box-shadow: 0px 0px 20px rgba(0, 123, 255, 1), 0px 0px 30px rgba(0, 123, 255, 0.8);
    color: black;
}

.light-mode .close {
    color: #007bff;
}

.light-mode .close:hover {
    color: #0056b3;
}


    .skills-container {
        margin-top: 20px;
    }

    .skill {
        margin-bottom: 15px;
    }

    .skill-name {
        display: block;
        margin-bottom: 5px;
    }

    .progress-bar {
        position: relative;
        background: rgba(255, 0, 79, 0.2);
        border-radius: 20px;
        width: 60%;
        height: 18px;
        overflow: hidden;
        border: 2px solid #ff004f;
        box-shadow: inset 0px 0px 10px rgba(255, 0, 79, 0.8);
    }

    .progress-bar:hover{
        border-color: #fff;
    }

    .progress {
        background: linear-gradient(135deg, #ff004f, #800027);
        height: 100%;
        border-radius: 20px;
        width: 0%;
        position: absolute;
        top: 0;
        left: 0;
        transition: width 2s ease-in-out;
        display: flex;
        align-items: center;
        justify-content: right;
        padding-right: 10px;
    }

    /* Skill Percentage Text */
    .progress-text {
        font-size: 10px;
        font-weight: bold;
        color: white;
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
    }


    /* Water-like Fluid Motion */
    @keyframes fluidMove {
        0% { transform: translateY(-2px); }
        50% { transform: translateY(2px); }
        100% { transform: translateY(-2px); }
    }

    /* Continuous Wave Animation */
    @keyframes progressWave {
        0% { width: 0%; }
        50% { width: var(--target-width); }
        100% { width: 0%; }
    }

    h3, h2{
        margin-top: 20px;
        color: #fff;
        font-size: 1.5rem;
        transition: transform 0.3s ease-in-out;
    }

    h3:hover , h2:hover{
        color: #ff004f;
        transform: translateY(-5px);
    }

    ul {
        list-style-type: none;
        padding: 0;
    }

    ul li {
        background-color: transparent; /* No background */
        margin: 5px 0;
        padding: 10px;
        border-radius: 5px;
        color: #fff; /* Ensure text is readable */
    }

    .language-icon{
        font-size: 24px;
        color: #ff004f;
        margin-right: 10px;
        transition: transform 0.3s ease-in-out;
    }

    .language-icon:hover {
        transform: translateY(-5px);
    }

    #services{
        padding: 30px 0;
        margin-left: 50px;
        padding-left: 40px;
    }

    .services-list{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-gap: 40px;
        margin-top: 50px;
    }

    .services-list div{
        background: #262626;
        padding: 40px;
        font-size: 13px;
        font-weight: 300;
        border-radius: 10px;
        margin-right: 40px;
        border: 1px solid #ff004f;
        transition: background 0.5s,transform 0.5s  ;
    }

    .services-list div i{
        font-size: 30px;
        margin-bottom: 40px;
    }

    .services-list div h2{
        font-size: 30px;
        font-weight: 500;
        margin-bottom: 15px;
        margin-top: -10px;
        color: #fff;
    }

    .services-list div p{
       font-size: 12px;
       margin-top: 10px;
    }

    .services-list div a{
        text-decoration: none;
        color: #fff;
        font-size: 12px;
        margin-top: 20px;
        display: inline-block;
    }

    .services-list div:hover{
        background: #ff004f;
        transform: translateY(-10px);
        border: 1px solid #fff;
    }
    
    .light-mode .progress-bar {
    position: relative;
    background: rgba(0, 91, 191, 0.2); /* Soft blue tint */
    border-radius: 20px;
    width: 60%;
    height: 18px;
    overflow: hidden;
    border: 2px solid #005bbf; /* Darker blue border */
    box-shadow: inset 0px 0px 10px rgba(0, 91, 191, 0.6);
}

.light-mode .progress-bar:hover {
    border-color: #333; /* Darker border on hover */
}

/* Light Mode Progress Fill */
.light-mode .progress {
    background: linear-gradient(135deg, #007bff, #004080);
}

/* Light Mode Headings */
.light-mode h3, 
.light-mode h2 {
    color: #333;
}

.light-mode h3:hover, 
.light-mode h2:hover {
    color: #007bff;
}

.light-mode ul li {
    background-color: transparent;
    color: #333;
}

/* Light Mode Language Icons */
.light-mode .language-icon {
    color: #007bff;
    transition: transform 0.3s ease-in-out;
}

.light-mode .language-icon:hover {
    transform: translateY(-5px);
}

.light-mode #services{
    background: black;

}
.light-mode #services h1{
    color: #007bff;
   
}

.light-mode #servies:hover{
    border: 1px solid #007bff;
}

.light-mode #services h2{
    color: #fff !important;
   
}

.light-mode .services-list div{
        color: #fff;
         background: #262626;
         border: 1px solid #007bff;
        
    }

     .light-mode .services-list div a{
        text-decoration: none;
        color: #fff;
        font-size: 12px;
        margin-top: 20px;
        display: inline-block;
    }

     .light-mode .services-list div:hover{
        background: #007bff;
        border: 1px solid #fff;
        transform: translateY(-10px);
    }

    .light-mode .services-list div h2:hover {
    color: white;
}

.text-center {
    text-align: center;
}


/* Timeline Section */
.timeline-section {
    background: #080808; 
    padding: 60px 0;
}

.timeline-item{
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline-item:hover {
    background-color: #ff004f;
}


.timeline-item:hover h3 {
    color: #fff;
}

#timeline{
    padding: 30px 0;
    margin-left: 50px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #ff004f;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 40px 0;
    width: 50%;
    padding: 20px;
    background: black; 
    border: 2px solid #ff004f; 
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(255, 0, 79, 0.3);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease-in-out;
    color: white; /* Text color */
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-section .sub-title,
.timeline-section h2 {
    font-size: 2rem; /* Adjust this to match your other headings */
    font-weight: bold;
    transition: transform 0.2s ease, color 0.2s ease;
}

.timeline-section .sub-title:hover,
.timeline-section h2:hover {
    transform: translateY(-2px);
    color: #ff004f;
}


/* Timeline Content */
.timeline-content {
    padding: 20px;
}

.timeline-item h3 {
    margin: 0;
    color: #ff004f;
}

.timeline-item p {
    margin-top: 10px;
}


.timeline-item:nth-child(even)::before {
    left: 0;
    transform: translateX(-50%);
}

.timeline-circle {
    position: absolute;
    padding: 5px;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: black;
    border: 3px solid #ff004f;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
}

.timeline-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.timeline-item:nth-child(odd) .timeline-circle {
    left: 100%;
}

.timeline-item:nth-child(even) .timeline-circle {
    left: 0%;
    transform: translate(-50%, -50%);
}



/* Timeline Section - Light Mode */
body.light-mode .timeline-section {
    background: black !important;
}

body.light-mode .timeline-item {
    background: black; 
    border: 2px solid #005bbf; 
    box-shadow: 0 0 10px rgba(0, 91, 191, 0.3);
    color: #fff;
}

body.light-mode .timeline-item:hover {
    background-color: #007bff;
}

body.light-mode .timeline-item h3 {
    color: #005bbf;
}

body.light-mode .timeline-item:hover h3 {
    color: white;
}

body.light-mode .timeline::before {
    background: #005bbf;
}

body.light-mode .timeline-section .sub-title,
body.light-mode .timeline-section h2:hover {
    color: #005bbf;
}

body.light-mode .timeline-circle {
    background: black;
    border: 3px solid #005bbf;
}

body.light-mode .timeline-content h3 {
    color: #005bbf;
}


#portfolio {
    margin-left: 40px;
    padding-left: 40px;
    padding-top: 20px;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fixed 3 columns */
    grid-gap: 40px; /* Space between grid items */
    margin-top: 30px;
}

.hidden-work {
    display: none;
}


.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-right: 40px;
}

.work img {
    width: 100%; /* Make images fill the grid item */
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.layer {    
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6),#ff004f); 
    border-radius: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20 40px;
    font-size: 14px;
    transition: height 0.5s;
    
}

.layer h3{
    font-weight: 500;
    margin-bottom: 10px;
    margin-top: 20px;
}

.layer a{
    margin-top: 10px;
    color: #ff004f;
    text-decoration: none;
    font-size: 14px;
    line-height: 50px;
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;

}

.work:hover img{
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

.work div i {
   font-size: 20px; /* Smaller icon size */
    width: 50px; /* Adjust circle size */
    height: 50px; /* Ensure the circle stays proportional */
    line-height: 50px; /* Center the icon inside the circle */
    margin-bottom: 20px; /* Adjust spacing below the circle */
    text-align: center; /* Center the icon */
    border-radius: 50%; /* Maintain the circular shape */

}

/* Portfolio Section - Light Mode */
.light-mode #portfolio{
    background: black;
}

.light-mode #portfolio h1{
    color: #007bff;
}
.light-mode .layer {
    background: linear-gradient(rgba(255, 255, 255, 0.6), #005bbf);
    color: #fff;
}

.light-mode .layer a {
    color: #005bbf;
    background: white;
}

.work:hover .layer {
    height: 100%;
}


#certifications{
    margin-left: 40px;
    margin-top: 40px;
}

.certificate-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    grid-gap: 40px; /* Space between grid items */
    margin-top: 30px;
}

.certificate {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-right: 20px;
}

.certificate img {
    width: 100%; /* Make images fill the grid item */
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.certificate:hover img{
    transform: scale(1.1);
}

.certificate:hover .layer1 {
    height: 100%;
}

.layer1 {    
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6),#ff004f); 
    border-radius: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20 40px;
    font-size: 14px;
    transition: height 0.5s;    
}

.layer1 h3{
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: -30px;
}

.layer1 a{
    color: #ff004f;
    text-decoration: none;
    font-size: 16px;
    line-height: 50px;
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    align-items: center;
    margin-bottom: 15px;
}


.btn{
   display: block;
   margin: 50px auto;
   width: fit-content;
   border: 1px solid #ff004f;
   padding: 14px 50px;
   border-radius: 6px;
   text-decoration: none;   
   color: #fff;
   transition: background 0.5s;
   cursor: pointer;
}

.btn:hover{
    background: #ff004f;

}

.light-mode .btn{
    border: 1px solid #007bff;
    color: #fff;
}

.light-mode .btn:hover{
    background: #007bff;
}

#contact {
    margin-left: 40px;
    margin-top: 50px !important;
    padding-left: 40px;
    padding-top: 20px;
}

#contact h1{
    margin-bottom: 40px;
}

.row {
    display: flex; /* Use flexbox for alignment */
    justify-content: space-between; /* Add space between columns */
    align-items: flex-start; /* Align items at the top */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.contact-left {
    flex-basis: 40%; /* Allocate space for the left section */
}

.contact-right {
    flex-basis: 55%; /* Allocate space for the right section */
    margin-right: 40px;
}

.contact-left p {
    margin-top: 20px;
}

.contact-left p i {
    color: #ff004f;
    margin-right: 15px;
    font-size: 20px;
}

.qr-code-container {
    margin-top: 20px;
}

.qr-code-container img {
    margin-top: 10px;
    width: 100px;
    height: 100px;
    border-radius: 5px;
    box-shadow: 4px 4px 10px rgba(255, 0, 79, 0.5);
    transition: transform 0.5s ease-in-out;
}

.qr-code-container img:hover {
    transform: scale(1.1);
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover {
    color: #ff004f;
    transform: translateY(-5px); /* Ensure transform is applied */
}

.btn.btn2 {
    display: inline-block;
    background: #ff004f;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.btn.btn2:hover {
    background: #e60044; /* Slightly darker hover color */
}

.contact-right form {
    width: 100%;
    margin-top: 70px;
}

form input, form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}

form .btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 10px;
    cursor: pointer;
}

#msg{
    color: #ff004f !important;
}

.light-mode #contact{
    background: black;
    color: #fff;
}

.light-mode .contact-left p i {
    color: #007bff;
}

.light-mode .qr-code-container img {
    box-shadow: 4px 4px 10px rgba(0, 123, 255, 0.5);
}

.light-mode .social-icons a{
    color: #007bff ;
}

.light-mode .social-icons a:hover {
    color: #005bbf;
}

.light-mode .btn.btn2 {
    background: #007bff;
    color: white;
}

.light-mode .btn.btn2:hover {
    background: #0062cc;
}

.light-mode form input, 
.light-mode form textarea {
    background: #f8f9fa;
    color: black;
}

.light-mode #msg {
    color: #007bff !important;
}

.light-mode .contact-left h1{
    color: #007bff;
}

.light-mode .contact-left h3{
    color: #007bff;
}



.copyright {
    width: 100% !important;
    text-align: center !important;
    padding: 20px 0 !important;
    bottom: 0 !important;
    background: #262626 !important;
    font-weight: 400 !important;
    margin: 20px 0 0 0 !important; /* Removes left margin */
    padding-left: 0 !important; /* Ensures no padding on the left */
    padding-right: 0 !important; /* Ensures no padding on the right */
    font-size: 18px !important;
    position: relative !important; /* Ensure it stays in the document flow */
    z-index: 99999 !important; /* Bring it above other elements */
}


.copyright i{
    color: #ff004f;
}

#visitor-container {
    position: relative;
    width: 170px;
    left: 45%;
    background: #262626;
    color: white;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 15px rgba(255, 0, 79, 0.8);
    transition: transform 0.3s ease-in-out;
}

/* 🔥 Hover Effect */
#visitor-container:hover {
    transform: scale(1.05);
}

/* 🔥 Icon Styling */
#visitor-container i {
    color: #ff004f;
    font-size: 18px;
}

/* Close icon inside SIDEMENU */
#sidemenu .fa-xmark {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 25px;
    color: #fff;
    cursor: pointer;
    display: none; /* Hidden by default */
}

.light-mode .copyright {
    background: #f8f9fa;
    color: #fff;
}

.light-mode .copyright i {
    color: #007bff;
}

.light-mode #visitor-container {
    background: #f8f9fa;
    color: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.8);
}

.light-mode #visitor-container i {
    color: #007bff;
}

.light-mode #sidemenu .fa-xmark {
    color: black;
}
/*-----------------------------------------------------------------------------*/

/*for small screens*/

@media only screen and (max-width: 600px) { /* Fixed spacing in media query */

    .content .role {
        font-size: 16px;
        margin-top: -1px;
    }

    .content{
        left: 4px;
    }

    .content h1 {
        font-size: 20px;
        margin-top: 10px;
        margin-right: 20px !important;
    }

    .content h2 {
        font-size: 16px;
        margin-top: -3px;
    }

    #element {
    font-family: 'Arial', sans-serif; /* Set a font for the text */
    font-size: 14px; /* Adjust the font size */
    font-weight: bold; /* Make the text bold */
    color: #333; /* Set the text color */
    margin-left: -5 px;
    }

    #element i {
    color: #f54266; /* Different color for italic text */
    font-style: normal; /* Remove italic style if you prefer */
  }

     .main-image img {
        content: url('img/user1.png'); /* Change the image source */
        position: relative;
        width: 50%; /* Make the image responsive by setting it to 80% of its container */
        max-width: 200px; /* Ensure the image doesn't exceed 200px */
        height: auto; /* Maintain aspect ratio */
        margin-left: 270px;
        margin-top: -40px;
        cursor: pointer;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }
    
    .main-image:hover {
        transform: scale(1.05); /* Slightly smaller zoom effect */
        opacity: 1;
    }
    
    .hand {
      margin-top: -30px;
      margin-left: 150px;
      display: block;
      font-size: 1.5rem;
      animation: wave 1.5s ease-in-out infinite; /* Apply the animation */
    }


    .nav-links{
        display: none;
    }


    nav .fas {
        display: block;
        font-size: 25px;
    }

    nav ul {
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -200px; /* Matches JavaScript initial state */
        width: 150px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul li {
        display: block;
        margin: 15px;
        transition: background-color 0.3s ease;
    }

    nav ul li:hover{
    background-color: #e50047; /* Change to desired hover color */
    color: #fff; /* Optional: Change text color */
    cursor: pointer; /* Change cursor to pointer */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Add text shadow */
    transform: scale(1.1); /* Slight zoom effect */
    transition: background-color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease; /* Smooth transitions */
}

    nav ul .fas {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

 .fa-bars {
    display: block; /* Show hamburger icon for smaller screens */
    font-size: 30px; /* Adjust size as needed */
    color: #ff004f !important; /* Force color to be #ff004f */
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition on hover */
}

.fa-bars:hover {
    color: #e60040; /* Slightly darker shade on hover for effect */
    transform: scale(1.1); /* Add a slight scale effect on hover */
}



        #sidemenu .fa-xmark {
        display: block; /* Show close (X) icon */
    }
    


     #about {
        padding: 20px 5%; /* Adjust padding for smaller screens */
    }

    .about-container {
        flex-direction: column; /* Stack the image and content vertically */
        gap: 20px; /* Add spacing between image and content */
    }

    .about-image {
        margin: 0 auto; /* Center the image */
    }

    .about-image img {
        width: 100%; /* Make the image responsive */
        max-width: 300px; /* Optional: Limit the maximum width */
        height: auto;
        justify-content: center;
        align-items: center;
        margin-top: 30px;
        margin-left: 10px;
        margin-bottom: 10px;
    }

    .what-i-do-btn{
        margin-left: 35px;
    }

    .about-content {
        text-align: center; /* Center align text for better readability */
        font-size: 14px;
    }

     .tabs {
        flex-wrap: wrap; /* Wrap tabs to a new line if necessary */
        gap: 10px; /* Reduce spacing between tabs */
    }

    .tab {
        font-size: 16px; /* Slightly smaller font size */
        padding: 8px 15px; /* Adjust padding */
    }

    .tab-contents {
        font-size: 14px; /* Smaller font for content */
    }

    .tab-contents ul li {
        text-align: left; /* Align content for consistency */
    }
    
       /* 🔥 Carousel Container */
    .work-list {
        position: relative;
        width: 100%;
        height: 320px; /* Increased for better content fit */
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 🔥 Individual Work Item */
    .work {
        position: absolute;
        width: 90%;
        max-width: 90%;
        height: 80%;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0px 0px 15px rgba(255, 0, 79, 0.9);
        transition: transform 1s ease-in-out, opacity 0.6s ease-in-out;
        opacity: 0;
        transform: scale(0.8);
        pointer-events: none; /* Prevent hover interaction when hidden */
    }

    /* 🔥 Show only active project */
    .work.active {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto; /* Enable hover interaction */
    }

    /* 🔥 Image */
    .work img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }

    /* 🔥 Overlay for Content */
    .layer {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: linear-gradient(rgba(0, 0, 0, 0.7), #ff004f);
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px;
        font-size: 14px;
        opacity: 0;
        transition: opacity 0.4s ease-in-out;
    }

    /* 🔥 Show content on hover */
    .work.active:hover .layer {
        opacity: 1;
    }

    /* 🔥 Project Title */
    .layer h3 {
        font-weight: 500;
        margin-bottom: 10px;
        color: white;
    }

    /* 🔥 View Project Button */
    .layer a {
        margin-top: 10px;
        color: #ff004f;
        text-decoration: none;
        font-size: 14px;
        line-height: 50px;
        background: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
        transition: background 0.3s;
    }

    .layer a:hover {
        background: #ff004f;
        color: white;
    }

    .layer i{
        margin-top:20px ;
    }

    /* 🔥 Dots Indicator */
    .carousel-dots {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
    }

    .dot {
        width: 12px;
        height: 12px;
        background: rgba(255, 0, 79, 0.6);
        border-radius: 50%;
        transition: transform 0.3s, background 0.3s;
        cursor: pointer;
    }

    .dot.active {
        transform: scale(1.5);
        background: #ff004f;
        box-shadow: 0px 0px 10px rgba(255, 0, 79, 1);
    }

    body.light-mode .dot{
        background: rgba(0, 123, 255, 0.6);
        transition: 0.3s, background 0.3s;
    }

    body.light-mode .dot.active{
        background: #007bff;
        box-shadow: 0px 0px 10px rgba(0, 123, 255, 1);
    }

    /* 🔥 Hide 'See More' button */
    #seeMoreBtn {
        display: none;
    }

       .hidden-work {
        display: block !important; /* Override the hidden class for mobile */
    }


/* Contact section styling */
.contact-left,
.contact-right {
    flex-basis: 100%; /* Stacks both sections vertically on smaller screens */
}

  .copyright {
        font-size: 12px; /* Slightly smaller font for small screens */
        padding: 20px 10px;
        margin: 0px;
    }

    #msg{
        position: relative;
        margin-bottom: 150px !important;
        color: #ff004f;
    }

   .btn.btn2{
     margin-top: 40px !important;
   }

    
    .nav-links {
        display: none; /* Hide horizontal menu */
    }

     #sidemenu {
        position: fixed;
        top: 0;
        right: -100%; /* Initially hidden */
        width: 220px;
        height: 100vh;
        background: black;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 15px;
        z-index: 1005;
        transition: right 0.4s ease-in-out;
        border-left: 3px solid #ff004f;
        border-radius: 20px;
        box-shadow: -10px 0px 30px rgba(255, 0, 79, 0.8);
    }

    #sidemenu.open {
        right: 0; /* Slide in */
    }

    /* MENU ITEMS */
    #sidemenu li {
        list-style: none;
        width: 60%;
        text-align: center;
        margin-top: 5px;
        transition: transform 0.3s ease-in-out;
        cursor: pointer;
    }

    #sidemenu li a {
        font-size: 16px;
        color: white;
        text-decoration: none;
        display: block;
        padding: 12px 0;
        border-radius: 10px;
        transition: background 0.3s ease-in-out, transform 0.2s;
        position: relative;
        font-weight: bold;
        letter-spacing: 1px;
        cursor: pointer;
    }

    /* Glowing Hover Effect */
    #sidemenu li a:hover {
        background: rgba(255, 0, 79, 0.3);
        transform: scale(1.05);
        box-shadow: 0px 0px 15px rgba(255, 0, 79, 0.8);
    }

    /* 🔹 Glowing Active Link */
    #sidemenu li a.active {
        background: rgba(255, 0, 79, 0.5);
        box-shadow: 0px 0px 20px rgba(255, 0, 79, 1);
    }
      #sidemenu.open ~ #searchIcon {
        display: none;
    }

   /* CLOSE BUTTON (X) */
#sidemenu .cross {
    position: absolute;
    top: 15px;
    left: 12px;
    background: rgba(255, 0, 79, 0.2);
    border-radius: 50%;
    width: 30px; /* Increased size slightly for better alignment */
    height: 30px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s;
    border: 2px solid #ff004f;
}

/* Hover Effect */
#sidemenu .cross:hover {
    background: rgba(255, 0, 79, 0.5);
    transform: scale(1.1);
    box-shadow: 0px 0px 10px rgba(255, 0, 79, 1);
}

/* X Icon (Properly Centered) */
#sidemenu .fa-xmark {
    font-size: 20px;
    color: #ff004f;
    margin: 0; /* Remove unwanted margin */
    position: relative; /* Keep it aligned within the flex container */
    margin-bottom: 40px;
    margin-right: 40px;
}


    /* MENU TOGGLE BUTTON */
    .fa-bars {
        position: fixed;
        top: 15px;
        right: 15px;
        font-size: 28px;
        color: white;
        cursor: pointer;
        text-align: center;
        z-index: 1002;
        transition: transform 0.3s ease-in-out;
    }

    .fa-bars:hover {
        transform: scale(1.1);
        color: #ff004f;
    }


.tab-content {
    flex-direction: column;
    gap: 5px;
  }

  .tab1 {
    width: 100%;
  }


    .timeline-section {
        padding: 30px 0;
    }

    .timeline {
        max-width: 100%;
        margin: 0;
    }

    .timeline::before {
        left: 0; /* Move the red line to the leftmost side */
        transform: translateX(0);
    }

    .timeline-item {
        width: 100%; /* Full width for each timeline item */
        margin: 20px 0;
        padding: 15px;
        text-align: left; /* Align text to the left */
        left: 0 !important; /* Override any previous left positioning */
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: left; /* Align text to the left for all items */
    }

    .timeline-item:nth-child(odd) .timeline-circle,
    .timeline-item:nth-child(even) .timeline-circle {
        left: 0; /* Position the circle on the left side */
        transform: translate(-50%, -50%);
    }

    .timeline-circle {
        width: 40px; /* Smaller circle for smaller screens */
        height: 40px;
        border: 2px solid #ff004f; /* Thinner border for smaller screens */
    }

    .timeline-circle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .timeline-content {
        padding: 10px;
    }

    .timeline-item h3 {
        font-size: 1.2rem; /* Smaller font size for headings */
    }

    .timeline-item p {
        font-size: 0.9rem; /* Smaller font size for paragraphs */
    }

    .timeline-section .sub-title,
    .timeline-section h2 {
        font-size: 1.5rem; /* Smaller font size for section titles */
    }
    
    .close-popup-btn{
        position: absolute;
        top: 30px;
        right: 31px;
        background-color: #ff004f;
        color: #fff;
        font-size: 24px;
        border: none;
        cursor: pointer;
        width: 20px; /* Adjust size as needed */
        height: 20px;
        border-radius: 50%; /* Makes it circular */
       display: flex;
       align-items: center;
       justify-content: center;
    }
     .modal-content {
        margin: 20% auto;
        width: 90%;
    }



    
    #backToTop{
        display: none !important;
    }

    .brain-text{
    position: absolute;
    font-size: 1.2rem;
    font-weight: bold;
    color: rgba(255, 0, 79, 1);
    text-shadow: 2px 2px 10px rgba(255, 0, 79, 0.7);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
    text-align: center;
    padding: 10px;
}

.brain-answer{
    position: absolute;
    margin-top: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: rgba(255, 0, 79, 1);
    text-shadow: 2px 2px 10px rgba(255, 0, 79, 0.7);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
    text-align: center;
    align-items: center;
    padding: 5px;
}

#brain-section {
    position: relative;
    margin-top: -50px !important;
    width: 100%;
    height: 400px;
    background: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#code-rain {
    position: relative;
    width: 90%;
    height: 250px; /* Adjust height as needed */
    background: black;
    overflow: hidden;
    margin-left: 20px;
}

#codeCanvas {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.code-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(255, 0, 79, 0); /* Start as transparent */
    text-shadow: 0px 0px 10px rgba(255, 0, 79, 0.5);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

#hacker-terminal {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    background: black;
}

.hacker-container {
    width: 550px;
    height: 200px;
    background: rgba(10, 10, 10, 0.9);
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(255, 0, 79, 0.7);
    font-family: monospace;
    overflow: hidden;
    position: relative;
    margin: 0 20px;
}

.hacker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px;
    background: #111;
    color: #0f0;
}

.hacker-buttons {
    display: flex;
    gap: 5px;
}

.hacker-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.red { background: #ff5f57; }
.yellow { background: #ffbd2e; }
.green { background: #28c940; }

.hacker-title {
    font-size: 14px;
    margin-right: 10px;
}

.hacker-body {
    padding: 10px;
    font-size: 14px;
    color: #ff004f;
    white-space: pre-wrap;
    overflow-y: auto;
    height: 85%;
    display: flex;
    flex-direction: column;
}

 #chatbot {
        bottom: 60px;
        right: 65px;
        width: 40px;
        height: 40px;
    }

    /* 🔹 Reduce Icon Size */
    #chat-icon i {
        font-size: 18px;
    }

    /* 🔹 Expand Chatbot Properly */
    #chatbot.expanded {
        width: 90%;
        height: auto;
        right: 5%;
        left: 5%;
        bottom: 15px;
        border-radius: 10px;
    }

    /* 🔹 Chat Header */
    #chat-header {
        font-size: 14px;
        padding: 8px;
    }

    /* 🔹 Chat Messages */
    #chat-messages {
        height: 150px;
        font-size: 14px;
        padding: 5px;
    }

    /* 🔹 Chat Input */
    #chat-input {
        width: 70%;
        font-size: 14px;
        padding: 6px;
    }

    /* 🔹 Send Button */
    #chat-body button {
        width: 25%;
        font-size: 14px;
        padding: 6px;
    }

    #searchIcon {
        display: block;
        position: absolute;
        margin-top: 10px;
        font-size: 28px;
        position: absolute;
        top: 15px;
        right: 55px;
        color: #ff004f;
        cursor: pointer;
        z-index: 1002;
    }

     #searchIcon:hover {
        transform: scale(1.1);
    }

    #portfolio-search {
        display: none;
        right: 10px;
    }

    #portfolio-search:focus {
        width: 150px;
        right: 30%;
    }


    #search-results {
        right: 10px; /* Adjust position for mobile */
    }

    .voice-recognition {
    position: fixed;
    bottom: 60px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}

#voiceButton {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff004f, #800027);
    border: none;
    border-radius: 50%;
    box-shadow: 0px 0px 15px rgba(255, 0, 79, 0.7);
    font-size: 20px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s;
}

.quizbtn {
    position: fixed;
    bottom: 60px;
    left: 20px;
    background-color: #ff004f;
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    font-size: 16px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 0px 10px rgba(255, 0, 79, 0.8);
    transition: all 0.3s ease-in-out;
    z-index: 9999; /* Ensures the button stays on top */
}

  .loader-content {
        width: 150px; /* Smaller container for mobile */
        height: 150px;
        top: 10%;
        bottom: 20%;
    }

    .loader-logo {
    width: 60px; /* Adjust logo size as needed */
    position: absolute;
    top: 40%; /* Center vertically */
    left: 45%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Offset to true center */
    z-index: 2;
}

    .stack {
        font-size: 24px; /* Smaller icons for mobile */
        transform: translate(-50%, -50%) rotate(0deg) translateY(-80px) rotate(0deg); /* Adjust orbit radius */
    }

    #visitor-container{
    position: relative;
    left: 30%;
    }

    body.light-mode #sidemenu .fa-xmark{
    color: #007bff;
}

   body.light-mode #sidemenu .cross{
    background: rgba(0, 119, 255, 0.2);
    transition: background 0.3s ease-in-out, transform 0.2s;
    border: 2px solid #007bff;
    color: #fff;
}
/* Hover Effect */
#sidemenu .cross:hover {
    background: rgba(255, 0, 79, 0.5);
    transform: scale(1.1);
    box-shadow: 0px 0px 10px rgba(255, 0, 79, 1);
}

body.light-mode #sidemenu .cross:hover {
   background: rgba(0, 85, 204, 0.7);
    transform: scale(1.1);
    box-shadow: 0px 0px 10px rgba(0, 119, 255, 1);

}

   body.light-mode #sidemenu li a {
        color: white;
        transition: background 0.3s ease-in-out, transform 0.2s;
    }

    body.light-mode #sidemenu li a:hover{
      background: rgba(0, 119, 255, 0.3);
      transform: scale(1.05);
      box-shadow: 0px 0px 15px rgba(0, 119, 255, 0.8);
    }

    /* 🔹 Glowing Active Link */
    #sidemenu li a.active {
        background: rgba(255, 0, 79, 0.5);
        box-shadow: 0px 0px 20px rgba(255, 0, 79, 1);
    }

   body.light-mode #sidemenu li a.active {
       background: rgba(0, 119, 255, 0.5) !important; /* Semi-transparent blue background */
       box-shadow: 0px 0px 20px rgba(0, 119, 255, 1) !important; /* Strong blue glow */

    }

     body.light-mode #sidemenu{
        border-left: 3px solid #007bff;
        box-shadow: -10px 0px 30px rgba(0, 123, 255, 0.8); /* Blue */

    }

    body.light-mode .fa-bars{
    color: #007bff !important;
}

    body.light-mode #searchIcon{
        color: #007bff;
    }


}

/* For larger screens */
@media only screen and (min-width: 601px) {
    .fa-bars {
        display: none !important; /* Ensure it's hidden */
    }

    .fa-magnifying-glass{
        display: none !important;
    }
}
