   /* --- CSS Variables & Reset --- */
        :root {
            /* Enforced Dark Theme Colors - Lightweight Palette */
            --primary-color: #60a5fa;
            --primary-dark: #3b82f6;
            --secondary-color: #10b981;
            --bg-color: #111827; /* Solid Dark Background */
            --text-color: #f3f4f6;
            --text-light: #9ca3af;
            --card-bg: #1f2937; /* Solid Card Background */
            --nav-bg: #111827; /* Solid Nav Background */
            --border-color: #374151;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
            --transition: all 0.3s ease;
            --hero-text-dynamic: wheat;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        /* Custom Scrollbar - Minimalist */
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: var(--bg-color);
        }
        ::-webkit-scrollbar-thumb {
            background: #4b5563;
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-color);
        }

        body {
            font-family: 'Montserrat', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.6;
            overflow-x: hidden;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        ul {
            list-style: none;
        }

        img {
            max-width: 100%;
            display: block;
        }

        /* --- Animations (Optimized) --- */
        .reveal {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.6s ease-out;
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .stagger-1 { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; animation-delay: 0.1s; }
        .stagger-2 { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; animation-delay: 0.2s; }
        .stagger-3 { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; animation-delay: 0.3s; }
        .stagger-4 { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; animation-delay: 0.4s; }
        .stagger-5 { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; animation-delay: 0.5s; }
        .stagger-6 { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; animation-delay: 0.6s; }
        .stagger-7 { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; animation-delay: 0.7s; }
        .stagger-8 { animation: fadeInUp 0.6s ease-out forwards; opacity: 0; animation-delay: 0.8s; }

        /* --- Navigation --- */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: var(--nav-bg);
            z-index: 1000;
            border-bottom: 1px solid var(--border-color);
            padding: 1rem 0;
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .nav-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--primary-color);
            letter-spacing: -0.5px;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
        }

        .nav-links a {
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--text-light);
            transition: color 0.2s;
        }

        .nav-links a:hover {
            color: var(--primary-color);
        }

        /* Mobile Menu */
        .hamburger {
            display: none;
            cursor: pointer;
            font-size: 1.5rem;
            color: var(--text-color);
        }

        /* --- Hero Section --- */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-top: 80px;
        }
        
        .hero-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 4rem;
            text-align: left;
            width: 100%;
        }

        .hero-text-wrapper {
            flex: 1;
        }

        .hero-content h1 {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            line-height: 1.2;
            font-weight: 800;
        }

        /* Profile Image Styles - Simplified */
        .hero-profile-container {
            width: 300px;
            height: 300px;
            position: relative;
            flex-shrink: 0;
        }
        
        .hero-profile-img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--card-bg);
            /* Messenger-style Green Ring */
            box-shadow: 0 0 0 4px #31a24c;
            transition: transform 0.3s ease;
        }

        .hero-profile-container:hover .hero-profile-img {
            transform: scale(1.02);
        }

        /* Tech Pills - Flat Style */
        .tech-pill {
            display: inline-flex;
            align-items: center;
            background-color: var(--card-bg);
            padding: 0.4rem 0.8rem;
            border-radius: 6px;
            margin: 0.25rem;
            border: 1px solid var(--border-color);
            font-size: 0.9rem;
            transition: border-color 0.2s;
        }
        
        .tech-pill:hover {
            border-color: var(--primary-color);
        }

        .tech-pill i {
            margin-right: 0.5rem;
        }

        /* Contact Buttons Styles */
        .contact-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background-color: var(--card-bg);
            color: var(--text-color);
            padding: 0.6rem 1.2rem;
            border-radius: 0.5rem;
            border: 1px solid var(--border-color);
            font-weight: 600;
            font-size: 0.95rem;
            transition: var(--transition);
        }

        .contact-btn:hover {
            border-color: var(--primary-color);
            background-color: rgba(96, 165, 250, 0.1);
            transform: translateY(-2px);
            color: var(--primary-color);
        }

        /* --- Wide Project Card (Capstone) --- */
        .capstone-container {
            display: flex;
            flex-direction: column;
            gap: 3rem;
        }

        .wide-project-card {
            background-color: var(--card-bg);
            border-radius: 1rem;
            overflow: hidden;
            border: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        }

        .wide-project-card:hover {
            border-color: var(--primary-color);
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        }

        .wide-project-card .project-img-wrapper {
            width: 100%;
            /* Taller height for wide cards to show more detail */
            height: 560px; 
            overflow: hidden;
            position: relative;
            background-color: #374151;
            border-bottom: 1px solid var(--border-color);
        }

        .wide-project-card .project-img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top; /* Focus on the top of the UI */
            transition: transform 0.5s ease;
        }

        .wide-project-card:hover .project-img-wrapper img {
            transform: scale(1.02);
        }

        .wide-project-card .project-content {
            padding: 2.5rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .wide-project-card .project-content h3 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            color: var(--primary-color);
            font-weight: 700;
        }

        .wide-project-card .project-content p {
            color: var(--text-light);
            font-size: 1.05rem;
            line-height: 1.7;
            margin-bottom: 1.5rem;
        }

        @media (max-width: 768px) {
            .wide-project-card .project-img-wrapper {
                height: 250px;
            }
            .wide-project-card .project-content {
                padding: 1.5rem;
            }
        }

        /* --- Generic Section Styles --- */
        section {
            padding: 5rem 0;
        }

        .section-title {
            text-align: center;
            font-size: 2.25rem;
            margin-bottom: 3rem;
            font-weight: 800;
            color: var(--text-color);
        }

        /* --- About Section --- */
        .about-grid {
            display: grid;
            grid-template-columns: 0.8fr 1.2fr;
            gap: 3rem;
            align-items: start;
        }

        .about-img img {
            border-radius: 1rem;
            border: 1px solid var(--border-color);
        }

        .skill-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-top: 1.5rem;
        }

        .skill-tag {
            background-color: var(--card-bg);
            color: var(--primary-color);
            padding: 0.4rem 1rem;
            border-radius: 4px;
            font-size: 0.85rem;
            font-weight: 600;
            border: 1px solid var(--border-color);
        }

        /* --- Education Card --- */
        .edu-card {
            background-color: var(--card-bg);
            padding: 2rem;
            border-radius: 1rem;
            border: 1px solid var(--border-color);
            margin-bottom: 2rem;
            transition: transform 0.2s;
        }
        
        .edu-card:hover {
            border-color: var(--primary-color);
        }

        .edu-header {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1.5rem;
            align-items: start;
        }

        .edu-year {
            background-color: rgba(96, 165, 250, 0.1);
            color: var(--primary-color);
            padding: 0.25rem 0.75rem;
            border-radius: 4px;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .edu-img-container {
            width: 100%;
            height: 350px;
            border-radius: 0.5rem;
            overflow: hidden;
            margin-bottom: 1.5rem;
            border: 1px solid var(--border-color);
        }

        .edu-img-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* --- Projects Section --- */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .project-card {
            background-color: var(--card-bg);
            border-radius: 1rem;
            overflow: hidden;
            border: 1px solid var(--border-color);
            height: 100%;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        }

        .project-card:hover {
            border-color: var(--primary-color);
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        }

        .project-img-wrapper {
            height: 200px;
            overflow: hidden;
            position: relative;
            background-color: #374151;
        }

        .project-img-wrapper img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .project-card:hover .project-img-wrapper img {
            transform: scale(1.1);
        }

        .project-content {
            padding: 1.5rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .project-content h3 {
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
            color: var(--primary-color);
        }

        .project-content p {
            color: var(--text-light);
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
            flex-grow: 1;
        }

        .project-links {
            display: flex;
            gap: 1rem;
            margin-top: auto;
        }

        .project-link {
            font-size: 0.9rem;
            color: var(--text-color);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .project-link:hover {
            color: var(--primary-color);
        }

        /* --- Contact Section --- */
        .contact-container {
            max-width: 700px;
            margin: 0 auto;
            text-align: center;
        }

        .contact-card {
            background-color: var(--card-bg);
            padding: 2.5rem;
            border-radius: 1rem;
            border: 1px solid var(--border-color);
        }

        .contact-methods {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .contact-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
        }

        .contact-icon {
            font-size: 1.8rem;
            color: var(--primary-color);
        }
        
        /* Cool Form Styles */
        .contact-card {
            background-color: var(--card-bg);
            padding: 3rem;
            border-radius: 1.5rem;
            border: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
            box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
        }

        /* Gradient Top Border */
        .contact-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 6px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        }

        .form-group {
            position: relative;
            margin-bottom: 2rem;
        }

        .form-control {
            width: 100%;
            padding: 1rem 1.2rem;
            border-radius: 0.8rem;
            border: 2px solid var(--border-color);
            background-color: rgba(0, 0, 0, 0.2);
            color: var(--text-color);
            font-family: inherit;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            background-color: rgba(0, 0, 0, 0.3);
            box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
            transform: translateY(-2px);
        }

        /* Floating Label Logic */
        .form-control::placeholder {
            color: transparent;
        }

        .form-label {
            position: absolute;
            top: 1rem;
            left: 1rem;
            color: var(--text-light);
            pointer-events: none;
            transition: all 0.3s ease;
            padding: 0 0.5rem;
            background-color: transparent;
            font-size: 1rem;
        }

        .form-control:focus ~ .form-label,
        .form-control:not(:placeholder-shown) ~ .form-label {
            top: -0.7rem;
            left: 0.8rem;
            font-size: 0.85rem;
            color: var(--primary-color);
            background-color: var(--card-bg);
            font-weight: 600;
            border-radius: 4px;
        }

        .btn-submit {
            width: 100%;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            color: white;
            padding: 1.2rem;
            border-radius: 0.8rem;
            font-weight: 700;
            border: none;
            cursor: pointer;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
            letter-spacing: 0.5px;
        }

        .btn-submit:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
            filter: brightness(1.1);
        }

        /* --- Carousel Styles --- */
        .carousel-wrapper {
            position: relative;
        }

        .carousel-track {
            position: relative;
            width: 100%;
            height: 100%;
        }

        .carousel-item {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
            pointer-events: none; /* Only active slides should interact */
        }

        .carousel-item.active {
            opacity: 1;
            pointer-events: auto;
            position: relative; /* Brings active to flow if needed, but absolute stack is safer for transitions */
            z-index: 1;
        }

        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            padding: 1rem;
            cursor: pointer;
            z-index: 10;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s;
        }

        .carousel-btn:hover {
            background-color: var(--primary-color);
        }

        .carousel-btn.prev {
            left: 10px;
        }

        .carousel-btn.next {
            right: 10px;
        }

        .carousel-dots {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 0.5rem;
            z-index: 10;
        }

        .dot {
            width: 10px;
            height: 10px;
            background-color: rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .dot.active {
            background-color: var(--primary-color);
            transform: scale(1.2);
        }

        /* --- Footer --- */
        footer {
            background-color: var(--card-bg);
            padding: 2rem 0;
            text-align: center;
            margin-top: 5rem;
            border-top: 1px solid var(--border-color);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 1rem;
        }

        .social-link {
            font-size: 1.5rem;
            color: var(--text-light);
            transition: color 0.2s;
        }

        .social-link:hover {
            color: var(--primary-color);
        }

        /* --- Toast Notification --- */
        .toast {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background-color: var(--secondary-color);
            color: white;
            padding: 0.8rem 1.5rem;
            border-radius: 50px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.2);
            transform: translateY(150%);
            transition: transform 0.3s;
            z-index: 2000;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 600;
        }

        .toast.show {
            transform: translateY(0);
        }

        /* --- Responsive Design --- */
        @media (max-width: 968px) {
            .hero-content {
                flex-direction: column-reverse;
                text-align: center;
                gap: 2rem;
            }
            
            .hero-content p {
                margin-left: auto;
                margin-right: auto;
            }

            .hero-profile-container {
                width: 200px;
                height: 200px;
                margin: 0 auto;
            }

            .hero-text-wrapper .tech-stack-container {
                justify-content: center !important;
            }
        }

        @media (max-width: 768px) {
            .hero-content h1 {
                font-size: 2.2rem;
            }

            .nav-links {
                position: absolute;
                top: 70px;
                left: 0;
                width: 100%;
                background-color: var(--nav-bg);
                flex-direction: column;
                padding: 1.5rem 0;
                text-align: center;
                border-top: 1px solid var(--border-color);
                border-bottom: 1px solid var(--border-color);
                clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
                transition: clip-path 0.3s ease-in-out;
                gap: 1.5rem;
            }

            .nav-links.active {
                clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            }

            .hamburger {
                display: block;
            }

            .about-grid {
                grid-template-columns: 1fr;
            }
            
            .about-img {
                max-width: 350px;
                margin: 0 auto;
            }

            .contact-methods {
                flex-direction: column;
                gap: 1.5rem;
            }
        }