/* Basic Reset & Global Styles */
        :root {
            --primary-text-color: #1a1a1a;
            --secondary-text-color: #666;
            --light-background: #f5f5f7;
            --dark-background: #000;
            --accent-color-light: #007aff; /* Apple blue */
            --accent-color-dark: #005bb5;
            --border-color: #e0e0e0;
            --max-width: 1920px;
            --section-padding: 80px;
            --nav-height: 60px;
            --text-primary: #1a1a1a;
            --font-size-xl: 2.5rem;
            --spacing-4: 1rem;
            --spacing-6: 1.5rem;
        }

        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
            line-height: 1.6;
            color: var(--primary-text-color);
            background-color: #fff;
            overflow-x: hidden; /* Prevent horizontal scroll */
        }

        /* Loading Animation */
        #loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #fff;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            opacity: 1;
            transition: opacity 0.8s ease-out;
            pointer-events: all; /* Ensure it blocks interaction */
        }

        #loading-overlay.fade-out {
            opacity: 0;
            pointer-events: none; /* Allow interaction after fade out */
        }

        .loading-text {
            font-size: 2.5em;
            font-weight: bold;
            color: var(--primary-text-color);
            margin-bottom: 20px;
            animation: pulse 2s infinite alternate;
        }

        .loading-dots {
            display: flex;
        }

        .loading-dots span {
            width: 12px;
            height: 12px;
            background-color: var(--primary-text-color);
            border-radius: 50%;
            margin: 0 5px;
            animation: bounce 1.5s infinite ease-in-out;
        }

        .loading-dots span:nth-child(2) { animation-delay: 0.2s; }
        .loading-dots span:nth-child(3) { animation-delay: 0.4s; }

        @keyframes pulse {
            from { transform: scale(1); opacity: 1; }
            to { transform: scale(1.05); opacity: 0.8; }
        }

        @keyframes bounce {
            0%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-20px); }
        }

        /* Navigation Bar */
        .navbar {
            position: fixed;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            width: 95%;
            max-width: 900px;
            height: var(--nav-height);
            background-color: var(--dark-background);
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0 20px;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            border-radius: 15px;
            transition: all 0.4s ease-in-out; /* Smooth transition for all properties */
        }

        /* Style for the navbar when the page is scrolled */
        .navbar.scrolled {
            top: 20px;
            width: auto; /* Let the width fit the content */
            border-radius: 50px; /* This creates the pill shape */
            background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
            backdrop-filter: blur(10px); /* This creates the frosted glass effect */
            -webkit-backdrop-filter: blur(10px); /* For Safari browser support */
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.2); /* Optional: adds a subtle border */
        }

        @media (max-width: 1024px) {
            .navbar.scrolled {
                border-radius: 25px; /* Less rounded on smaller screens */
                padding: 0 15px; /* Adjust padding for smaller screens */
                top: 15px; /* Slightly lower on smaller screens */
                width: 90%; /* More width on smaller screens */
                box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
                border: 1px solid rgba(255, 255, 255, 0.1); /* Lighter border */
            }
        }

 

        .navbar.scrolled .nav-links a {
            color: var(--primary-text-color); /* This will make the text black */
        }

        .navbar-logo {
            display: none; /* Hides the logo */
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 30px;
        }

        .nav-links a {
            color: #fff;
            text-decoration: none;
            font-weight: 600;
            padding: 10px 0;
            position: relative;
            transition: color 0.3s ease;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -5px;
            width: 0;
            height: 2px;
            background-color: var(--accent-color-light);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        /* Removed .nav-buttons from desktop nav */

        .hamburger {
            display: none; /* Hidden by default on desktop */
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 30px;
            height: 30px;
            cursor: pointer;
            transition: transform 0.3s ease;
            z-index: 1002;
            position: relative;
        }

        .hamburger-line {
            width: 24px;
            height: 2px;
            background-color: #fff;
            border-radius: 2px;
            transition: all 0.3s ease;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }

        .hamburger-line:nth-child(1) {
            top: 8px;
        }

        .hamburger-line:nth-child(2) {
            top: 50%;
            transform: translate(-50%, -50%);
        }

        .hamburger-line:nth-child(3) {
            bottom: 8px;
        }

        .hamburger.scrolled .hamburger-line {
            background-color: #000000;
        }

        /* Hamburger animation to X */
        .hamburger.active .hamburger-line:nth-child(1) {
            top: 50%;
            transform: translate(-50%, -50%) rotate(45deg);
        }

        .hamburger.active .hamburger-line:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active .hamburger-line:nth-child(3) {
            bottom: auto;
            top: 50%;
            transform: translate(-50%, -50%) rotate(-45deg);
        }

        @media (max-width: 1024px) {
            .navbar.scrolled .hamburger-line {
                background-color: var(--primary-text-color); /* This changes the line color to black */
            }
        }

        /* Mobile Navigation Drawer */
        .nav-drawer {
            position: fixed;
            top: 0;
            right: 0;
            width: 100%;
            height: 100vh;
            
            /* Enhanced frosted glass effect */
            background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.1), 
                rgba(255, 255, 255, 0.05)
            );
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-left: 1px solid rgba(255, 255, 255, 0.2);
            
            transform: translateX(100%);
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            z-index: 999;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .nav-drawer.is-open {
            transform: translateX(0); /* Slide in */
        }

        .nav-drawer li {
            margin: 0;
            opacity: 0;
            transform: translateX(50px);
            transition: all 0.3s ease;
        }

        .nav-drawer.is-open li {
            opacity: 1;
            transform: translateX(0);
        }

        /* Staggered animation for nav items */
        .nav-drawer.is-open li:nth-child(1) { transition-delay: 0.1s; }
        .nav-drawer.is-open li:nth-child(2) { transition-delay: 0.15s; }
        .nav-drawer.is-open li:nth-child(3) { transition-delay: 0.2s; }
        .nav-drawer.is-open li:nth-child(4) { transition-delay: 0.25s; }
        .nav-drawer.is-open li:nth-child(5) { transition-delay: 0.3s; }

        /* Enhanced mobile nav links */
        .nav-drawer a {
            color: var(--primary-text-color);
            text-decoration: none;
            font-size: 2rem;
            font-weight: 700;
            padding: 15px 30px;
            margin: 10px 0;
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            display: block;
            text-align: center;
            min-width: 200px;
        }

        .nav-drawer a:hover,
        .nav-drawer a:active {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.05);
            color: var(--accent-color-light);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }


        /* General Section Styling */
        section {
            padding: var(--section-padding) 20px;
            max-width: var(--max-width);
            margin: 0 auto;
            opacity: 0; /* For scroll-in animation */
            transform: translateY(50px); /* For scroll-in animation */
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        }

        section.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        h1, h2 {
            font-weight: bold;
            line-height: 1.2;
            margin-bottom: 20px;
            color: var(--primary-text-color);
        }

        h1 { font-size: 3.5em; }
        h2 { font-size: 2.5em; }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            background: linear-gradient(135deg, #f5f5f7, #e0e0e0); /* Subtle gradient */
            padding-top: var(--nav-height); /* Offset for fixed nav */
        }

        .hero h1 {
            font-size: 4.5em;
            margin-bottom: 10px;
            letter-spacing: -0.02em;
        }

        .hero p {
            font-size: 1.8em;
            color: var(--secondary-text-color);
            margin-bottom: 40px;
        }

        .hero-cta {
            background-color: var(--dark-background);
            color: #fff;
            padding: 15px 30px;
            border-radius: 30px;
            text-decoration: none;
            font-size: 1.2em;
            font-weight: 600;
            transition: background-color 0.3s ease, transform 0.2s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }

        .hero-cta:hover {
            background-color: #333;
            transform: translateY(-3px);
        }

        /* Scroll Arrow */
        .scroll-arrow {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            cursor: pointer;
            animation: bounce 2s infinite;
            z-index: 10;
            opacity: 0.7;
            transition: all 0.3s ease;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .scroll-arrow:hover {
            opacity: 1;
            background-color: rgba(255, 255, 255, 0.2);
            transform: translateX(-50%) scale(1.1);
        }

        .scroll-arrow i {
            font-size: 1.2rem;
            color: var(--primary-text-color);
        }

        .scroll-arrow.hidden {
            opacity: 0;
            pointer-events: none;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateX(-50%) translateY(0);
            }
            40% {
                transform: translateX(-50%) translateY(-10px);
            }
            60% {
                transform: translateX(-50%) translateY(-5px);
            }
        }

        /* About Section */
        #about {
            background-color: #fff;
            text-align: center;
        }

        .about-image {
            flex: 1 1 300px; /* Allows image to grow/shrink, min-width 300px */
            text-align: center;
        }

        .about-image img {
            max-width: 100%;
            height: auto;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .about-content {
            max-width: 800px;
            margin: 0 auto;
            text-align: left;
        }

        .about-content p {
            font-size: 1.1em;
            margin-bottom: 15px;
            color: var(--secondary-text-color);
        }

        /* Skills Section */
        .skills-section {
            margin-top: 3rem;
            padding: 2rem 0;
        }

        .skills-section h3 {
            font-size: var(--font-size-xl);
            margin-bottom: var(--spacing-6);
            color: var(--text-primary);
            text-align: center;
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
            max-width: 800px;
            margin: 0 auto;
        }

        .skill-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 1.5rem 1rem;
            background-color: #fff;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            transition: all 0.3s ease;
            cursor: pointer;
            text-align: center;
        }

        .skill-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            border-color: var(--accent-color-light);
        }

        .skill-item i {
            font-size: 2.5rem;
            margin-bottom: 0.75rem;
            color: var(--accent-color-light);
            transition: color 0.3s ease;
        }

        .skill-item:hover i {
            color: var(--accent-color-dark);
        }

        .skill-item span {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--primary-text-color);
            transition: color 0.3s ease;
        }

        .skill-item:hover span {
            color: var(--accent-color-dark);
        }

        /* Experience Section */
        #experience {
            background-color: var(--light-background);
        }

        #experience h2 {
            text-align: center;
            margin-bottom: 60px;
        }

        .timeline {
            position: relative;
            padding: 20px 0;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 4px;
            background-color: var(--border-color);
            transform: translateX(-50%);
        }

        .timeline-item {
            display: flex;
            margin-bottom: 50px;
            position: relative;
        }

        .timeline-item:nth-child(odd) {
            flex-direction: row-reverse;
        }

        .timeline-item:nth-child(even) {
            flex-direction: row;
        }

        .timeline-content {
            flex: 1;
            padding: 20px 40px;
            background-color: #fff;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            position: relative;
        }

        .timeline-content h3 {
            font-size: 1.5em;
            margin-bottom: 5px;
            color: var(--primary-text-color);
        }

        .timeline-content p {
            font-size: 1em;
            color: var(--secondary-text-color);
            margin-bottom: 10px;
        }

        .timeline-content .duration {
            font-style: italic;
            color: #888;
            font-size: 0.9em;
        }

        .timeline-dot {
            width: 20px;
            height: 20px;
            background-color: var(--accent-color-light);
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1;
            border: 3px solid #fff;
        }

        .section-button-container {
            text-align: center;
            margin-top: 40px;
        }

        .section-button {
            background-color: var(--dark-background);
            color: #fff;
            padding: 15px 30px;
            border-radius: 30px;
            text-decoration: none;
            font-size: 1.1em;
            font-weight: 600;
            transition: background-color 0.3s ease, transform 0.2s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            display: inline-block; /* Allows margin and padding to be applied */
        }

        .section-button:hover {
            background-color: #333;
            transform: translateY(-3px);
        }
        


        /* AI Chat Assistant Section */
        #ai-assistant {
            background-color: var(--light-background);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        #ai-assistant::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: radial-gradient(circle at 20% 80%, rgba(0, 122, 255, 0.05) 0%, transparent 50%),
                        radial-gradient(circle at 80% 20%, rgba(0, 122, 255, 0.05) 0%, transparent 50%);
            pointer-events: none;
        }

        .ai-header {
            position: relative;
            z-index: 1;
            margin-bottom: 3rem;
        }

        .ai-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--accent-color-light), var(--accent-color-dark));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
            animation: float 3s ease-in-out infinite;
        }

        .ai-icon i {
            font-size: 2rem;
            color: white;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        #ai-assistant h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, var(--primary-text-color), var(--accent-color-dark));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .ai-subtitle {
            font-size: 1.1rem;
            color: var(--secondary-text-color);
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }

        .ai-interface {
            position: relative;
            z-index: 1;
            max-width: 900px;
            margin: 0 auto;
        }

        .conversation-starter {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .conversation-starter h3 {
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            color: var(--primary-text-color);
        }

        .starter-buttons {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
            max-width: 500px;
            margin: 0 auto;
        }

        .starter-btn {
            background: rgba(255, 255, 255, 0.85);
            border: 1px solid rgba(0, 0, 0, 0.06);
            border-radius: 16px;
            padding: 1rem 0.75rem;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            text-align: center;
            position: relative;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 
                0 1px 3px rgba(0, 0, 0, 0.05),
                0 4px 12px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
        }

        .starter-btn:active {
            transform: scale(0.96);
            box-shadow: 
                0 1px 2px rgba(0, 0, 0, 0.1),
                0 2px 8px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }

        .starter-btn:hover {
            background: rgba(255, 255, 255, 0.95);
            border-color: rgba(0, 122, 255, 0.15);
            box-shadow: 
                0 2px 8px rgba(0, 0, 0, 0.08),
                0 8px 24px rgba(0, 122, 255, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
        }

        .starter-btn i {
            font-size: 1.3rem;
            color: var(--accent-color-light);
            transition: all 0.2s ease;
            padding: 8px;
            border-radius: 10px;
            background: rgba(0, 122, 255, 0.08);
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .starter-btn:hover i {
            background: rgba(0, 122, 255, 0.12);
            transform: scale(1.05);
        }

        .starter-btn:active i {
            transform: scale(0.95);
        }

        .starter-btn span {
            font-weight: 500;
            color: var(--primary-text-color);
            font-size: 0.85rem;
            line-height: 1.2;
            opacity: 0.9;
        }

        .starter-btn:hover span {
            opacity: 1;
        }

        .chat-container {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(15px);
            border-radius: 20px;
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            height: 500px;
        }

        .chat-messages {
            flex-grow: 1;
            padding: 20px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 15px;
            scroll-behavior: smooth;
        }

        .chat-message {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            opacity: 0; /* For fade-in animation */
            transform: translateY(10px); /* For fade-in animation */
            animation: fadeInMessage 0.3s ease-out forwards;
        }

        .chat-message.user {
            justify-content: flex-end;
        }

        .chat-message.ai .avatar {
            background-color: var(--accent-color-light);
            color: #fff;
        }

        .chat-message .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-color-light), var(--accent-color-dark));
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1rem;
            color: white;
            flex-shrink: 0;
            box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
        }

        .chat-bubble {
            max-width: 75%;
            padding: 15px 20px;
            border-radius: 20px;
            line-height: 1.6;
            word-wrap: break-word;
            position: relative;
            backdrop-filter: blur(10px);
        }

        .chat-message.user .chat-bubble {
            background: linear-gradient(135deg, var(--accent-color-light), var(--accent-color-dark));
            color: #fff;
            border-bottom-right-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
        }

        .chat-message.ai .chat-bubble {
            background: rgba(248, 249, 250, 0.9);
            color: var(--primary-text-color);
            border-bottom-left-radius: 8px;
            border: 1px solid rgba(0, 0, 0, 0.05);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }

        .chat-input-area {
            display: flex;
            padding: 20px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            gap: 12px;
        }

        .chat-input-area input {
            flex-grow: 1;
            padding: 15px 20px;
            border: 2px solid rgba(0, 0, 0, 0.1);
            border-radius: 25px;
            font-size: 1rem;
            font-family: inherit;
            background: rgba(255, 255, 255, 0.9);
            transition: all 0.3s ease;
        }

        .chat-input-area input:focus {
            outline: none;
            border-color: var(--accent-color-light);
            box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
            background: white;
        }

        .chat-input-area button {
            background: linear-gradient(135deg, var(--accent-color-light), var(--accent-color-dark));
            color: #fff;
            border: none;
            border-radius: 25px;
            padding: 15px 20px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
        }

        .chat-input-area button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
        }

        .typing-indicator {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.9em;
            color: var(--secondary-text-color);
            margin-top: 5px;
        }

        .typing-indicator span {
            width: 8px;
            height: 8px;
            background-color: var(--secondary-text-color);
            border-radius: 50%;
            animation: typingPulse 1.2s infinite ease-in-out;
        }
        .typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
        .typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

        @keyframes typingPulse {
            0%, 80%, 100% { transform: scale(1); opacity: 1; }
            40% { transform: scale(1.2); opacity: 0.7; }
        }

        @keyframes fadeInMessage {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }


        /* Projects Section */
        #projects {
            background-color: #fff;
        }

        #projects h2 {
            text-align: center;
            margin-bottom: 60px;
        }

        .project-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .project-card {
            background-color: #fff;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            text-decoration: none;
            color: var(--primary-text-color);
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }

        .project-card img {
            width: 100%;
            height: 220px; /* Fixed height for consistency */
            object-fit: cover;
            display: block;
        }

        .project-info {
            padding: 25px;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .project-info h3 {
            font-size: 1.6em;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .project-info p {
            font-size: 1em;
            color: var(--secondary-text-color);
            margin-bottom: 20px;
        }

        .project-buttons {
            display: flex;
            gap: 10px;
        }

        .project-button {
            padding: 10px 20px;
            border-radius: 20px;
            text-decoration: none;
            font-size: 0.9em;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .project-button.view {
            background-color: var(--accent-color-light);
            color: #fff;
            border: 1px solid var(--accent-color-light);
        }

        .project-button.view:hover {
            background-color: var(--accent-color-dark);
            border-color: var(--accent-color-dark);
        }

        .project-button.source {
            background-color: transparent;
            color: var(--primary-text-color);
            border: 1px solid var(--border-color);
        }

        .project-button.source:hover {
            background-color: var(--border-color);
        }

        /* Contact Section */
        #contact {
            background-color: var(--light-background);
            text-align: center;
        }

        #contact h2 {
            margin-bottom: 40px;
        }

        .contact-form {
            max-width: 600px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 20px;
            background-color: #fff;
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        }

        .contact-form input,
        .contact-form textarea {
            width: 100%;
            padding: 15px;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            font-size: 1em;
            font-family: inherit;
            transition: border-color 0.3s ease;
        }

        .contact-form input:focus,
        .contact-form textarea:focus {
            outline: none;
            border-color: var(--accent-color-light);
            box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
        }

        .contact-form textarea {
            resize: vertical;
            min-height: 120px;
        }

        .contact-form button {
            background-color: var(--dark-background);
            color: #fff;
            padding: 15px 30px;
            border: none;
            border-radius: 30px;
            font-size: 1.1em;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s ease, transform 0.2s ease;
        }

        .contact-form button:hover {
            background-color: #333;
            transform: translateY(-3px);
        }

        .social-icons {
            margin-top: 30px;
            display: flex;
            justify-content: center;
            gap: 25px;
        }

        .social-icons a {
            color: var(--primary-text-color);
            font-size: 1.8em;
            transition: color 0.3s ease;
        }

        .social-icons a:hover {
            color: var(--accent-color-light);
        }

        /* Footer */
        .footer {
            background: rgba(0, 0, 0, 0.92);
            color: rgba(226, 232, 240, 0.85);
            padding: 3rem 1.5rem;
            text-align: center;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .footer p {
            color: inherit;
            font-size: 0.95rem;
        }

        .footer-links {
            list-style: none;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1.5rem;
            font-weight: 500;
        }

        .footer-links a {
            text-decoration: none;
            color: rgba(226, 232, 240, 0.7);
            transition: color var(--transition-base);
        }

        .footer-links a:hover,
        .footer-links a:focus {
            color: #fff;
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            h1 { font-size: 3.5em; }
            h2 { font-size: 2em; }
            .hero p { font-size: 1.5em; }

            .timeline::before {
                left: 20px; /* Move timeline line to left */
            }

            .timeline-item {
                flex-direction: column; /* Stack items */
                align-items: flex-start;
            }

            .timeline-item:nth-child(odd) {
                flex-direction: column; /* Ensure stacking */
            }

            .timeline-content {
                padding: 20px;
                margin-left: 40px; /* Space for the dot */
                width: calc(100% - 40px);
            }

            .timeline-dot {
                left: 20px; /* Align dot with line */
                transform: translate(-50%, -50%); /* Adjust for new left position */
            }

            .skills-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 1.25rem;
            }

            .skill-item {
                padding: 1rem 0.75rem;
            }

            .skill-item i {
                font-size: 2rem;
                margin-bottom: 0.5rem;
            }

            .skill-item span {
                font-size: 0.85rem;
            }

            .ai-icon {
                width: 70px;
                height: 70px;
            }

            .ai-icon i {
                font-size: 1.8rem;
            }

            #ai-assistant h2 {
                font-size: 2.2rem;
            }

            .starter-buttons {
                grid-template-columns: repeat(2, 1fr);
            }

            .chat-container {
                height: 450px;
            }
        }

        @media (max-width: 768px) {
            :root {
                --section-padding: 60px;
            }
            
            h1 { font-size: 3em; }
            h2 { font-size: 1.8em; }
            .hero p { font-size: 1.2em; }

            .navbar {
                padding: 0 20px;
                width: 95%;
                max-width: none;
            }

            .navbar.scrolled {
                width: 95%;
                padding: 0 20px;
                border-radius: 20px;
            }

            .nav-links {
                display: none; /* Hide desktop nav items */
            }

            .hamburger {
                display: flex; /* Show hamburger on mobile as flexbox */
                width: 32px;
                height: 32px;
            }

            .hamburger-line {
                height: 3px;
            }

            /* Enhanced mobile nav drawer */
            .nav-drawer a {
                font-size: 1.8rem;
                min-width: 280px;
                padding: 18px 25px;
            }

            .hero h1 {
                font-size: 3.5em;
            }

            .hero p {
                font-size: 1.3em;
            }

            #about {
                flex-direction: column;
                gap: 30px;
            }

            .about-image, .about-content {
                flex: 1 1 100%; /* Full width on mobile */
                text-align: center;
            }

            .about-content {
                padding: 0 15px;
            }

            .project-grid {
                grid-template-columns: 1fr; /* Single column on mobile */
            }

            .skills-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 1rem;
            }

            .skill-item {
                padding: 0.75rem 0.5rem;
            }

            .skill-item i {
                font-size: 1.8rem;
                margin-bottom: 0.5rem;
            }

            .skill-item span {
                font-size: 0.8rem;
            }

            .scroll-arrow {
                bottom: 20px;
                width: 45px;
                height: 45px;
            }

            .scroll-arrow i {
                font-size: 1rem;
            }

            .ai-icon {
                width: 60px;
                height: 60px;
            }

            .ai-icon i {
                font-size: 1.5rem;
            }

            #ai-assistant h2 {
                font-size: 2rem;
            }

            .conversation-starter {
                padding: 1.5rem;
            }

            .starter-buttons {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.6rem;
                max-width: 400px;
            }

            .starter-btn {
                padding: 0.85rem 0.6rem;
                border-radius: 14px;
            }

            .starter-btn i {
                font-size: 1.2rem;
                width: 36px;
                height: 36px;
                padding: 6px;
            }

            .starter-btn span {
                font-size: 0.8rem;
            }

            .chat-container {
                height: 400px;
            }

            .contact-form {
                padding: 30px 20px;
            }

            .chat-bubble {
                max-width: 85%;
            }
        }

        @media (max-width: 480px) {
            :root {
                --section-padding: 40px;
            }
            
            h1 { font-size: 2.5em; }
            h2 { font-size: 1.5em; }
            .hero p { font-size: 1em; }

            .navbar-logo {
                font-size: 1.3em;
            }

            .hero-cta {
                padding: 12px 25px;
                font-size: 1em;
            }

            .timeline-content {
                padding: 15px;
            }

            .project-info {
                padding: 20px;
            }

            .project-info h3 {
                font-size: 1.4em;
            }

            .project-button {
                padding: 8px 15px;
                font-size: 0.85em;
            }

            .skills-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.75rem;
            }

            .skill-item {
                padding: 0.6rem 0.4rem;
            }

            .skill-item i {
                font-size: 1.5rem;
                margin-bottom: 0.4rem;
            }

            .skill-item span {
                font-size: 0.75rem;
            }

            .ai-icon {
                width: 50px;
                height: 50px;
            }

            .ai-icon i {
                font-size: 1.2rem;
            }

            #ai-assistant h2 {
                font-size: 1.8rem;
            }

            .ai-subtitle {
                font-size: 1rem;
            }

            .conversation-starter {
                padding: 1rem;
            }

            .starter-buttons {
                grid-template-columns: 1fr;
                gap: 0.5rem;
                max-width: 320px;
            }

            .starter-btn {
                padding: 0.75rem 1rem;
                flex-direction: row;
                gap: 0.75rem;
                border-radius: 12px;
                justify-content: flex-start;
            }

            .starter-btn i {
                font-size: 1.1rem;
                width: 32px;
                height: 32px;
                padding: 5px;
            }

            .starter-btn span {
                font-size: 0.85rem;
                text-align: left;
            }

            .chat-container {
                height: 350px;
            }

            .chat-input-area input {
                font-size: 0.9rem;
            }
        }