:root {
            --bg-color: #080808;
            --primary-blue: #00acee;
            --text-white: #ffffff;
            --text-gray: #b0b0b0;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
            scroll-behavior: smooth;
        }

        html {
            scroll-padding-top: 90px; /* Ensures section headers aren't hidden by nav */
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-white);
            overflow-x: hidden;
        }

        /* Background Accent */
        .bg-accent {
            position: fixed;
            bottom: 0;
            right: 0;
            width: 50%;
            height: 80%;
            background: radial-gradient(circle at bottom right, rgba(0, 172, 238, 0.4) 0%, transparent 70%);
            z-index: -1;
        }

        /* Navigation */
        nav {
            display: flex;
            justify-content: center;
            gap: 30px;
            padding: 25px;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(8, 8, 8, 0.8);
            backdrop-filter: blur(10px);
            z-index: 1000;
        }

        nav a {
            color: var(--text-white);
            text-decoration: none;
            transition: 0.3s;
            border-bottom: 2px solid transparent;
        }

        nav a:hover, nav a.active {
            color: var(--primary-blue);
            border-bottom: 2px solid var(--primary-blue);
            padding-bottom: 5px;
        }

        /* Sidebar Icons */
        .sidebar {
            position: fixed;
            left: 5%;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 25px;
            font-size: 1.2rem;
            color: var(--text-gray);
            z-index: 100;
        }

        .sidebar i {
            cursor: pointer;
            transition: 0.3s;
        }

        .sidebar i:hover {
            color: var(--primary-blue);
        }

        /* Sections Styling */
        section {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 100vh;
            padding: 80px 10% 80px 15%;
        }

        .hero-text {
            max-width: 600px;
        }

        .hero-text h3 {
            font-size: 25px;
            font-weight: 700;
        }

        .hero-text h3 span {
            color: var(--primary-blue);
        }

        .hero-text h1 {
            font-size: 48px;
            font-weight: 700;
            margin: -3px 0;
        }

        .hero-text h1 span {
            color: var(--primary-blue);
        }
        
        .hero-text p {
            color: var(--text-gray);
            line-height: 1.6;
            margin-bottom: 30px;
            font-size: 0.9rem;
        }

        /* Buttons */
        .btn-group {
            display: flex;
            gap: 20px;
        }

        .btn {
            padding: 12px 30px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: 600;
            transition: 0.3s;
            font-size: 0.9rem;
            display: inline-block;
        }

        .btn-fill {
            background-color: var(--primary-blue);
            color: #000;
            border: 1px solid var(--primary-blue);
        }

        .btn-outline {
            background: transparent;
            color: var(--primary-blue);
            border: 1px solid var(--primary-blue);
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 172, 238, 0.3);
        }

        /* Profile Image Container */
        .profile-container {
            position: relative;
            width: 400px;
            height: 400px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .image-ring {
            width: 320px;
            height: 320px;
            border-radius: 50%;
            border: 8px solid white;
            box-shadow: 0 0 40px var(--primary-blue), inset 0 0 40px var(--primary-blue);
            overflow: hidden;
            position: relative;
            z-index: 2;
        }

        .image-ring img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .shape-bg {
            position: absolute;
            width: 380px;
            height: 380px;
            background-color: #252525;
            border-radius: 50%;
            z-index: 1;
        }

        /* Grid & Cards (Used for Projects and Services) */
        #project, #service {
            flex-direction: column;
            justify-content: center;
            text-align: center;
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            width: 100%;
            margin-top: 40px;
        }

        .card {
            background: #111;
            padding: 30px;
            border-radius: 20px;
            border: 1px solid #333;
            transition: 0.4s;
            text-align: left;
        }

        .card:hover {
            border-color: var(--primary-blue);
            transform: translateY(-10px);
            box-shadow: 0 0 20px rgba(0, 172, 238, 0.2);
        }

        .project-img {
            width: 100%;
            height: 250px;
            background: #111111;
            border-radius: 15px;
            margin-bottom: 20px;
            overflow: hidden;
        }

        .project-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .card h3 {
            font-size: 1.2rem;
            margin-bottom: 10px;
        }

        .card p {
            font-size: 0.85rem;
            color: var(--text-gray);
            margin-bottom: 15px;
        }

        .service-icon {
            font-size: 2.5rem;
            color: var(--primary-blue);
            margin-bottom: 20px;
        }

        /* Responsive */
        @media (max-width: 992px) {
            section {
                flex-direction: column-reverse;
                text-align: center;
                padding: 100px 5%;
            }
            .sidebar {
                position: relative;
                flex-direction: row;
                justify-content: center;
                top: 0;
                transform: none;
                margin-top: 40px;
            }
            .hero-text {
                margin-top: 40px;
            }
            .btn-group {
                justify-content: center;
            }
        }
        /* Skill Specific Styles */
.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.progress-line {
    width: 100%;
    height: 6px;
    background-color: #333;
    border-radius: 10px;
    position: relative;
}

.progress-line span {
    height: 100%;
    background-color: var(--primary-blue);
    position: absolute;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-blue);
}
input:focus, textarea:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 10px rgba(0, 172, 238, 0.1);
    transition: 0.3s;
}
/* Custom Scrollbar for Chrome, Safari, and Edge */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #080808; 
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0086b3; /* Slightly darker blue on hover */
}
/* Changes the color of text when a user highlights it */
::selection {
    background-color: var(--primary-blue);
    color: #000;
}
.card {
    /* ... your existing code ... */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* Hamburger Styles */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    transition: 0.4s;
    border-radius: 2px;
}

/* Mobile Menu Media Query */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        height: 100vh;
        width: 70%;
        background: rgba(8, 8, 8, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    }

    .nav-links.active { right: 0; }

    /* Animated X Bar */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Mobile Text Hover: Blue and Underline only */
    .nav-links a {
        font-size: 1.2rem;
        border-bottom: none !important; /* Remove desktop border */
        padding-bottom: 0 !important;
    }

    .nav-links a:hover {
        color: var(--primary-blue) !important;
        text-decoration: underline;
        text-underline-offset: 8px;
    }
}
/* Restores spacing and layout for Desktop */
.nav-links {
    display: flex;
    gap: 30px; /* This adds the space between your links */
}

/* Ensure links don't have underlines by default */
.nav-links a {
    text-decoration: none;
}

/* Adjust the main nav to keep things centered */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (max-width: 992px) {
    /* Target the About section specifically */
    #about {
        flex-direction: column; /* Stack vertically */
    }

    /* Force the profile image to the top */
    #about .profile-container {
        order: 1; 
        margin-bottom: 20px; /* Add space between image and text */
    }

    /* Force the text to the bottom */
    #about .hero-text {
        order: 2;
    }
}
/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Modal Box */
.modal-content {
    background: #111;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--primary-blue);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
}

.close-modal:hover { color: var(--primary-blue); }

/* Modal List Styling */
.modal-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.modal-item {
    padding: 15px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-item h4 { margin-bottom: 5px; }
.modal-item p { font-size: 0.85rem; color: var(--text-gray); }

.modal-content {
    background: #111;
    padding: 40px;
    padding-right: 25px; /* Extra space to keep the thumb away from the edge */
    border-radius: 20px;
    border: 1px solid var(--primary-blue);
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--primary-blue) transparent; /* Firefox */
}

/* Chrome, Safari, and Edge */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 20px 0; /* Important: keeps the thumb away from the rounded border */
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

/* Hides the arrows */
.modal-content::-webkit-scrollbar-button {
    display: none;
}
/* 1. Target the buttons specifically for the modal */
.modal-content::-webkit-scrollbar-button:single-button {
    background-color: transparent;
    display: none;
    width: 0;
    height: 0;
}

/* 2. Extra insurance: target the 'up' and 'down' states */
.modal-content::-webkit-scrollbar-button:start:decrement,
.modal-content::-webkit-scrollbar-button:end:increment {
    display: none !important;
}

/* 3. Refine the track to ensure it doesn't leave gaps where buttons were */
.modal-content::-webkit-scrollbar-track-piece {
    background-color: transparent;
    /* This ensures the track takes up the full height of the scroll area */
    margin: 10px 0; 
}
.sidebar a {
    color: inherit; /* Keeps current color */
    transition: color 0.3s;
}
.sidebar a:hover i {
    color: var(--primary-blue);
}
/* Hide mobile social icons on desktop */
.mobile-social-icons {
    display: none;
    margin-top: 40px;
    gap: 30px;
}

/* Show and style social icons only in mobile menu */
@media (max-width: 768px) {
    .mobile-social-icons {
        display: flex;
        justify-content: center;
    }

    .mobile-social-icons a {
        font-size: 1.8rem;
        color: var(--text-gray);
        transition: color 0.3s, transform 0.3s;
    }

    .mobile-social-icons a:hover {
        color: var(--primary-blue);
        transform: scale(1.2);
    }
}

.teaser-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.teaser-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-blue) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 172, 238, 0.1);
}

/* Pulse animation for the availability dot */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.availability-tag span {
    animation: pulse 1s infinite;
}
