:root {
            --primary: #266faf;
            --secondary: #16a085;
            --accent: #19ba9a;
            --light: #f8fafc;
            --dark: #0f172a;
            --darker: #020617;
            --card-bg: rgba(30, 41, 59, 0.5);
            --text: #e2e8f0;
            --text-secondary: #94a3b8;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
        }
                main {
            position: relative;
            z-index: 1;
        }

        /* Animated Background */
        .bg-animation {
            position: fixed;
            top: -5%;      /* Moves the element up */
            left: -5%;     /* Moves the element left */
            width: 110%;   /* Makes the element wider than the screen */
            height: 110%;  /* Makes the element taller than the screen */
            z-index: -2;
            background: transparent;
        }

        .bg-animation::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                radial-gradient(circle at 20% 50%, rgba(15, 76, 129, 0.1) 0%, transparent 50%),   /* Updated Primary */
                radial-gradient(circle at 80% 80%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),  /* Updated Accent */
                radial-gradient(circle at 40% 20%, rgba(22, 160, 133, 0.1) 0%, transparent 50%); /* Updated Secondary */
            animation: bgMove 20s ease infinite;
        }

        @keyframes bgMove {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            33% { transform: translate(20px, -20px) rotate(1deg); }
            66% { transform: translate(-20px, 20px) rotate(-1deg); }
        }

        /* Floating Particles */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
        }

        .particle {
            position: absolute;
            background: var(--primary);
            border-radius: 50%;
            opacity: 0.2;
            animation: float 15s infinite linear;
        }

        @keyframes float {
            from {
                transform: translateY(100vh) translateX(0);
                opacity: 0;
            }
            10% {
                opacity: 0.2;
            }
            90% {
                opacity: 0.2;
            }
            to {
                transform: translateY(-100vh) translateX(100px);
                opacity: 0;
            }
        }

        /* Header Styles */
        header {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 0.5rem 5%;
            background: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            z-index: 1000;
            transition: all 0.3s ease;
        }

        nav {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 1rem 5%;
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .logo::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s ease;
        }

        .logo:hover::before {
            left: 100%;
        }

        .logo i {
            margin-right: 10px;
            color: var(--accent);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .nav-links {
            display: flex;
            align-items: center;
            list-style: none;
            gap: 2rem; 
        }

        /* Language Toggle Styles */
        .lang-toggle {
            position: absolute;
            right: 5%; 
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            gap: 0.5rem;
        }

        .mobile-lang-toggle {
            display: none;
        }

        .lang-option {
            text-decoration: none;
            color: var(--text-secondary);
            font-weight: 600;
            padding: 0.3rem 0.6rem;
            border: 1px solid var(--text-secondary);
            border-radius: 6px;
            transition: all 0.3s ease;
        }

        .lang-option:hover {
            color: var(--primary);
            border-color: var(--primary);
            background: rgba(99, 102, 241, 0.1);
        }

        .lang-option.active {
            color: white;
            background: var(--primary);
            border-color: var(--primary);
        }

        /* Adjust for mobile view */
        @media (max-width: 768px) {
            .lang-toggle {
                position: absolute;
                right: 5rem;
                margin-right: 0;
                top: 50%; 
                transform: translateY(-50%);
                    }
        /* Hide the original desktop language switcher on mobile */
            .language-switcher {
                 display: none;
             }

         /* Show and style the new mobile language switcher */
             .mobile-lang-toggle {
                 display: flex;
                 align-items: center;
                 gap: 0.5rem;
                 margin-top: 1.5rem; /* Adds space between it and the "Contact" link */
                 padding: 0.5rem;
                border: 1px solid var(--text-secondary);
                border-radius: 8px;
             }

            .mobile-lang-toggle a {
                 color: var(--text-secondary);
                 text-decoration: none;
                font-weight: 600;
                transition: color 0.3s ease;
             }

            /* Style for the currently active language */
             .mobile-lang-toggle a.active {
                  color: var(--primary);
             }

             .mobile-lang-toggle span {
                  color: var(--text-secondary);
              }
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text);
            font-weight: 500;
            position: relative;
            transition: all 0.3s ease;
            padding: 0.5rem 0;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            transition: width 0.3s ease;
        }

        .nav-links a:hover {
            color: var(--primary);
            transform: translateY(-2px);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        /* =========================================
            Language Switcher Dropdown Styles
        ========================================= */
        .language-switcher {
            position: relative; /* This is crucial for positioning the dropdown */
            margin-left: 2rem; /* Adds some space between it and the last nav item */
        }

        .dropdown-lang {
            position: absolute;
            top: 120%; /* Position it slightly below the main flag */
            right: 0;
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 0.5rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            z-index: 1001; /* Ensure it's above other elements */
            
            /* --- Start Hidden by Default --- */
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
        }

        /* --- Show Dropdown --- */
        .language-switcher.active .dropdown-lang {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-lang a {
            padding: 0; /* Remove padding from parent nav links */
        }

        .dropdown-lang a {
            padding: 0.2rem 0.5rem; /* Add some padding for a better hover area */
            display: flex;         /* Make it a flex container */
            align-items: center;   /* Vertically align items */
            gap: 0.75rem;          /* Space between flag and text */
            border-radius: 6px;    /* Add rounded corners to the hover background */
            transition: background-color 0.3s ease;
        }   

        .dropdown-lang a::after {
            display: none; /* Remove the underline effect */
        }

        /* --- START: ADD NEW CSS --- */
        .current-lang {
            display: flex;
            align-items: center;
            gap: 0.5rem; /* Space between flag and arrow */
        }

        .current-lang img,
        .dropdown-lang img {
            height: 24px; /* Set a fixed height */
            width: auto;  /* Let width adjust to maintain aspect ratio */
            border-radius: 4px; /* Optional: slightly rounded corners */
            transition: transform 0.3s ease;
        }

        .current-lang i {
            color: var(--text-secondary);
            transition: color 0.3s ease;
        }

        .language-switcher:hover .current-lang i {
            color: var(--primary);
        }

        .dropdown-lang a:hover img {
            transform: scale(1.1); /* Slightly enlarge flag on hover */
        }

        .current-lang span,
        .dropdown-lang span {
            color: var(--text);
            font-weight: 500;
            font-size: 0.9rem; /* Makes text slightly smaller than main nav links */
            transition: color 0.3s ease;
            line-height: 1; /* Ensures consistent vertical alignment */
        }

        .dropdown-lang a:hover {
            background-color: rgba(99, 102, 241, 0.1);
        }

        .dropdown-lang a:hover span {
            color: var(--primary);
        }
        /* --- END: ADD NEW CSS --- */

        .dropdown-lang a:hover img {
            transform: scale(1.1); /* Slightly enlarge flag on hover */
        }

        .menu-toggle {
            display: none;
            cursor: pointer;
            font-size: 1.5rem;
            color: var(--text);
            background: none;
            border: none;
            padding: 0;
        }

        /* Hero Section */
        .hero {
            height: 90vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .hero-content {
            text-align: center;
            z-index: 2;
            max-width: 800px;
            padding: 0 2rem;
        }

        .hero h1 {
            font-size: 4rem;
            font-weight: 800;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text; 
            -webkit-text-fill-color: transparent; 
            animation: fadeInUp 1s ease;
        }

        .hero h1 span:first-child {
            margin-right: 9px;
        }

        .typing-container {
            height: 2.5rem;
            margin-bottom: 2rem;
        }

        .typing-text {
            font-size: 1.8rem;
            font-weight: 500;
            color: var(--text-secondary);
            display: inline-block;
        }

        .cursor {
            display: inline-block;
            width: 3px;
            height: 1.8rem;
            background: var(--primary);
            animation: blink 1s infinite;
            vertical-align: text-bottom;
            margin-left: 3px;
        }

        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0; }
        }

        .hero p {
            font-size: 1.2rem;
            margin-bottom: 2.5rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            color: var(--text-secondary);
            animation: fadeIn 1.6s ease;
        }

        .btn-group {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 14px 32px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border: none;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.2);
            transform: translateX(-100%);
            transition: transform 0.3s ease;
            z-index: -1;
        }

        .btn:hover::before {
            transform: translateX(0);
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(15, 76, 129, 0.3);
        }

        .btn-outline {
            background: transparent;
            border: 2px solid var(--primary);
            color: var(--primary);
        }

        .btn-outline:hover {
            background: var(--primary);
            color: white;
        }

        /* Floating Icons */
        .floating-icons {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            pointer-events: none;
        }

        .floating-icon {
            position: absolute;
            font-size: 2rem;
            opacity: 0.1;
            animation: floatIcon 20s infinite linear;
        }

        @keyframes floatIcon {
            0% { transform: translateY(100vh) rotate(0deg); }
            100% { transform: translateY(-100vh) rotate(360deg); }
        }

        /* About Section */
        .about {
            padding: 5rem 5%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 3rem;
            color: var(--text);
            position: relative;
            display: inline-block;
            width: 100%;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 2px;
        }

        .about-content {
            display: flex;
            align-items: center;
            gap: 3rem;
            flex-wrap: wrap;
        }

        .about-text {
            flex: 1;
            min-width: 300px;
        }

        .about-text h3 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            color: var(--primary);
        }

        .about-text p {
            margin-bottom: 1.5rem;
            color: var(--text-secondary);
            line-height: 1.8;
        }

        .waving-emoji {
            height: 1.2em;
            width: auto; 
            vertical-align: middle;
            margin-left: 8px;
        }

        .about-image {
            flex: 1;
            min-width: 300px;
            text-align: center;
            position: relative;
        }

        .about-image-wrapper {
            position: relative;
            display: inline-block;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            transform: perspective(1000px) rotateY(-15deg);
            transition: transform 0.5s ease;
        }

        .about-image-wrapper:hover {
            transform: perspective(1000px) rotateY(0deg);
        }

        .about-image img {
            width: 100%;
            max-width: 400px;
            height: auto;
            display: block;
        }

        .about-image::before {
            content: '';
            position: absolute;
            top: -20px;
            right: -20px;
            width: 100px;
            height: 100px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            border-radius: 50%;
            filter: blur(40px);
            z-index: -1;
            animation: pulse 3s infinite;
        }

        /* Skills Section */
        .skills {
            padding: 5rem 5%;
        }

        .skills-container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .skill-card {
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 2rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .skill-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(15, 76, 129, 0.1), rgba(52, 152, 219, 0.1));
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .skill-card:hover::before {
            opacity: 1;
        }

        .skill-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(15, 76, 129, 0.2);
            border-color: var(--primary);
        }

        .skill-card h3 {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
            color: var(--primary);
            font-size: 1.3rem;
            position: relative;
            z-index: 1;
        }

        .skill-card h3 i {
            margin-right: 10px;
            font-size: 1.5rem;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .skill-item {
            margin-bottom: 1.5rem;
            position: relative;
            z-index: 1;
        }

        .skill-name {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .skill-bar {
            height: 10px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 5px;
            overflow: hidden;
            position: relative;
        }

        .skill-level {
            height: 100%;
            border-radius: 5px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            width: 0;
            transition: width 1.5s ease;
            position: relative;
            overflow: hidden;
        }

        .skill-level::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        /* Experience Section */
        .experience {
            padding: 5rem 5%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .timeline {
            position: relative;
            max-width: 1000px;
            margin: 0 auto;
        }

        .timeline::before {
            content: '';
            position: absolute;
            width: 4px;
            background: linear-gradient(to bottom, var(--primary), var(--accent));
            top: 0;
            bottom: 0;
            left: 50%;
            margin-left: -2px;
            border-radius: 2px;
        }

        .timeline-item {
            padding: 10px 40px;
            position: relative;
            background-color: inherit;
            width: 50%;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.5s ease;
        }

        .timeline-item.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .timeline-item::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            right: -10px;
            background: var(--darker);
            border: 3px solid var(--primary);
            top: 15px;
            border-radius: 50%;
            z-index: 1;
            box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.2);
        }

        .left {
            left: 0;
        }

        .right {
            left: 50%;
        }

        .right::after {
            left: -10px;
        }

        .timeline-content {
            padding: 25px 30px;
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }

        .timeline-content::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(15, 76, 129, 0.1), rgba(52, 152, 219, 0.1));
            border-radius: 16px; 
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 0;
        }

        .timeline-content:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(15, 76, 129, 0.2); 
            border-color: var(--primary);
        }

        .timeline-content:hover::before {
            opacity: 1;
        }

        .timeline-content h3 {
            color: var(--primary);
            margin-bottom: 5px;
            font-size: 1.3rem;
        }

        .timeline-content > * {
            position: relative;
            z-index: 1;
        }

        .timeline-content h4 {
            color: var(--accent);
            margin-bottom: 10px;
            font-weight: 500;
        }

        .timeline-content p {
            color: var(--text-secondary);
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .date {
            color: var(--text-secondary);
            font-weight: 600;
            margin-bottom: 10px;
            font-size: 0.9rem;
            display: inline-block;
            background: rgba(99, 102, 241, 0.1);
            padding: 4px 12px;
            border-radius: 20px;
        }

        /* Projects Section */
        .projects {
        padding: 5rem 5%;
        }

        .projects-container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .project-card {
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            overflow: hidden;
            transform-style: preserve-3d;
            perspective: 1000px;
            opacity: 0;
            transform: scale(0.95);
            transition: all 0.3s ease;
        }

        .project-card.visible:hover {
            transform: scale(1) translateY(-10px);
            box-shadow: 0 20px 40px rgba(15, 76, 129, 0.2);
            border-color: var(--primary);
        }

        .project-card.visible {
            opacity: 1;
            transform: scale(1);
        }

        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(15, 76, 129, 0.1), rgba(52, 152, 219, 0.1));
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 2;
        }

        .project-image {
            height: 200px;
            width: 100%;
            object-fit: cover;
            position: relative;
            overflow: hidden;
        }

        .project-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(99, 102, 241, 0.8));
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: all 0.3s ease;
            transform: translateY(100%);
        }

        .project-card:hover .project-overlay {
            opacity: 1;
            transform: translateY(0);
        }

        .project-card:hover::before {
            opacity: 1;
        }

        .project-links {
            display: flex;
            gap: 1.5rem;
        }

        .project-links a {
            color: white;
            font-size: 1.5rem;
            transition: all 0.3s ease;
            transform: scale(0.8);
        }

        .project-card:hover .project-links a {
            transform: scale(1);
        }

        .project-links a:hover {
            color: var(--accent);
            transform: scale(1.2);
        }

        .project-info {
            padding: 1rem;
            text-align: center;
        }

        .project-info h3 {
            margin-bottom: 1.9rem;
            color: var(--primary);
            font-size: 1.3rem;
        }

        .project-details-list {
            display: inline-block;
            text-align: left;
            list-style: none; 
            padding: 0;
        }


        .project-info p {
            color: var(--text-secondary);
            margin-bottom: 1rem;
            line-height: 1.6;
        }

        .project-detail-item {
            display: flex;
            align-items: center;
            gap: 1rem; 
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 0.8rem;
        }

        .project-detail-item i {
            color: var(--primary);
            font-size: 1.1rem;
        }

        .tech-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .tech-tag {
            background: rgba(99, 102, 241, 0.1);
            color: var(--primary);
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
            border: 1px solid rgba(99, 102, 241, 0.3);
            transition: all 0.3s ease;
        }

        .tech-tag:hover {
            background: rgba(99, 102, 241, 0.2);
            transform: translateY(-2px);
        }

        /* Contact Section */
        .contact {
            padding: 5rem 5%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .contact-container {
            display: flex;
            gap: 3rem;
            margin-top: 3rem;
            flex-wrap: wrap;
        }

        .contact-info {
            flex: 1;
            min-width: 300px;
        }

        .contact-info h3 {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
            color: var(--primary);
        }

        .contact-info p {
            margin-bottom: 1.5rem;
            color: var(--text-secondary);
            line-height: 1.8;
        }

        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
            padding: 1rem;
            background: rgba(30, 41, 59, 0.3);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }

        .contact-item:hover {
            background: rgba(15, 76, 129, 0.1);
            border-color: var(--primary);
            transform: translateX(10px);
        }

        .contact-item i {
            font-size: 1.5rem;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-right: 1rem;
            width: 30px;
        }

        .contact-form {
            flex: 1;
            min-width: 300px;
        }

        .form-group {
            margin-bottom: 1.5rem;
            position: relative;
        }

        .form-group label {
            position: absolute;
            top: 14px;
            left: 15px;
            color: var(--text-secondary);
            transition: all 0.3s ease;
            pointer-events: none;
            padding: 0 5px;
        }

        .form-control {
            width: 100%;
            padding: 14px 15px;
            background: rgba(30, 41, 59, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            font-size: 1rem;
            color: var(--text);
            transition: all 0.3s ease;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.2);
            background: rgba(30, 41, 59, 0.5);
        }

        .form-control:focus + label,
        .form-control:not(:placeholder-shown) + label {
            top: 2px;
            left: 10px;
            font-size: 0.8rem;
            color: var(--primary);
            padding: 0 5px; 
        }

        textarea.form-control {
            resize: vertical;
            min-height: 150px;
        }


        /* Footer */
        footer {
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(20px);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            padding: 1rem 5%;
            text-align: center;
        }

        .heart {
            color: var(--primary);
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 1rem;
            margin-top: 1rem;
        }

        .social-links a {
            color: var(--text);
            font-size: 1.5rem;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(30, 41, 59, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }

        .social-links a:hover {
            color: var(--primary);
            background: rgba(99, 102, 241, 0.1);
            border-color: var(--primary);
            transform: translateY(-5px);
        }

        .copyright {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        /* Hide the Google reCAPTCHA badge */
        .grecaptcha-badge { 
            visibility: hidden !important;
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .hero h1 {
                font-size: 3rem;
            }
            
            .typing-container {
                height: 2rem;
            }
            
            .typing-text {
                font-size: 1.5rem;
            }
            
            .about-content {
                flex-direction: column;
            }
            
            .contact-container {
                flex-direction: column;
            }
        }

@media (max-width: 768px) {
    nav {
        justify-content: flex-end;
    }

    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .timeline::before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 19px;
    }
    
    .right {
        left: 0%;
    }
}

        @media (max-width: 576px) {
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .typing-container {
                height: 1.8rem;
            }
            
            .typing-text {
                font-size: 1.2rem;
            }
            
            .section-title {
                font-size: 2rem;
            }
            
            .projects-grid {
                grid-template-columns: 1fr;
            }
        }

        /* =========================================
            Print-Friendly Styles
        ========================================= */
    @media print {
    /* --- 1. Basic Resets for a Clean Look --- */
            body {
                background: #ffffff !important; /* Force a white background */
                color: #000000 !important;      /* Black text for high contrast */
                font-size: 12pt;                /* Use points for print size */
                line-height: 1.4;
            }

            /* Remove all animations, transitions, and shadows */
            * {
                animation: none !important;
                transition: none !important;
                box-shadow: none !important;
                text-shadow: none !important;
                backdrop-filter: none !important;
                -webkit-backdrop-filter: none !important;
            }

            /* --- 2. Hide Unnecessary Elements --- */
            header,
            .bg-animation,
            .particles,
            .floating-icons,
            .menu-toggle,
            .hero .btn-group,
            .about .btn,
            .contact-form,
            footer .social-links,
            .waving-emoji,
            .cursor {
                display: none !important;
            }

            /* --- 3. Restyle All Sections for Printing --- */
            section {
                padding: 2rem 0; /* Reduce padding for a more compact layout */
                page-break-before: auto;
            }

            /* Ensure sections don't get cut across pages */
            .card, .timeline-item, .project-card {
                page-break-inside: avoid;
            }

            /* --- 4. Specific Element Adjustments --- */

            /* Hero Section */
            .hero {
                height: auto;
                padding: 2rem 0;
            }
            .hero h1 {
                -webkit-text-fill-color: #000000; /* Make gradient text solid black */
                font-size: 28pt;
            }
            .typing-text::after {
                content: "Software Testing Professional"; /* Replace typing animation with a static title */
            }
            .typing-text {
                color: #333;
            }

            /* Titles and Links */
            .section-title {
                font-size: 20pt;
                text-align: left;
            }
            .section-title::after {
                display: none; /* Hide the decorative underline */
            }
            a {
                text-decoration: underline;
                color: #000000;
            }

            /* About Section */
            .about-content {
                flex-direction: row; /* Ensure it stays in a row */
            }
            .about-image {
                display: none; /* Hide profile picture to save space and ink */
            }
            .about-text {
                flex-basis: 100%;
            }

            /* Skills Section */
            .skill-card, .timeline-content, .project-card, .contact-item {
                background: transparent !important;
                border: 1px solid #cccccc; /* Add a light border to separate cards */
                padding: 1rem;
            }
            .skills-grid {
                grid-template-columns: 1fr; /* Stack skill cards vertically */
            }
            .skill-level {
                background: #cccccc !important; /* Use solid gray for skill bars */
                -webkit-print-color-adjust: exact; /* Instructs WebKit browsers (Chrome, Safari) to print the background */
                print-color-adjust: exact;         /* The standard property for printing backgrounds */
            }
            .skill-name span:nth-child(2) {
                color: #000; /* Ensure percentage is black */
            }

            /* Experience Timeline */
            .timeline {
                padding: 0;
            }
            .timeline::before {
                display: none; /* Remove the center line */
            }
            .timeline-item, .timeline-item.right, .timeline-item.left {
                width: 100%;
                padding: 0 0 1rem 0;
                left: 0;
            }
            .timeline-item::after {
                display: none; /* Remove timeline circles */
            }
            .timeline-content {
                padding: 1rem;
            }

            /* Projects Section */
            .projects-grid {
                grid-template-columns: repeat(2, 1fr); /* Two columns for projects */
                gap: 1rem;
            }
            .project-image {
                display: none; /* Hide images to focus on text */
            }
            .project-info {
                padding: 0;
            }

            /* Contact Info */
            .contact-info {
                flex-basis: 100%;
            }

            /* Footer */
            footer {
                border-top: 1px solid #ccc;
                padding: 1rem 0;
                background: transparent;
            }
            .copyright {
                color: #000;
            }
        }
            /* --- Add New CSS for Success Message --- */
            .success-popup {
                position: fixed;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                background: linear-gradient(135deg, var(--primary), var(--secondary));
                color: white;
                padding: 2rem;
                border-radius: 16px;
                box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
                z-index: 10000;
                text-align: center;
                max-width: 400px;
                animation: fadeInUp 0.5s ease;
                opacity: 1;
                transition: opacity 0.5s ease;
            }

            .success-popup.fade-out {
                opacity: 0;
            }

            .success-popup i {
                font-size: 3rem;
                margin-bottom: 1rem;
                color: white;
            }

            .success-popup h3 {
                margin-bottom: 1rem;
            }

        