/* Consistent paragraph spacing and readability for about section */
.about-text p {
    margin-bottom: 18px;
    line-height: 1.6;
}

    .education-center {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* Education Section */

.education-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    gap: 32px;
}
        .education-item {
            position: relative;
            text-align: center;
            margin: 0 auto;
            width: 100%;
            max-width: 420px;
            background: var(--card-bg, #f8f9fa);
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(33, 150, 243, 0.07);
            padding: 24px 18px 18px 18px;
        }
        .education-location {
            color: #888;
            font-size: 1rem;
            margin-bottom: 4px;
        }
        /* Education divider line */
        .education-item:not(:last-child)::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: -33px;
            transform: translateX(-50%);
            width: 4px;
            height: 32px;
            background: linear-gradient(180deg, #2196F3, #c41e3a);
            border-radius: 2px;
            opacity: 0.7;
            z-index: 1;
        }
        .education-item {
            max-width: 600px;
            width: 100%;
        }
        .education-item {
            background: var(--bg-card);
            border-radius: 16px;
            box-shadow: 0 6px 24px rgba(33, 150, 243, 0.10);
            padding: 32px 28px;
            max-width: 600px;
            width: 100%;
            text-align: left;
            border: 1px solid var(--border-color);
            transition: box-shadow 0.3s;
        }
        .education-item:hover {
            box-shadow: 0 12px 35px rgba(33, 150, 243, 0.18);
            border-color: #2196F3;
        }
        .education-item h3 {
            font-size: 24px;
            color: #2196F3;
            margin-bottom: 8px;
        }
        .education-institution {
            font-size: 18px;
            color: var(--text-secondary);
            margin-bottom: 4px;
        }
        .education-year {
            font-size: 15px;
            color: #c41e3a;
            margin-bottom: 12px;
        }
        .education-details {
            list-style: disc inside;
            color: var(--text-primary);
            font-size: 15px;
            margin-left: 0;
            padding-left: 0;
        }
        .education-details li {
            margin-bottom: 6px;
        }
/* Education Section */

/* Fixed: Clean .education-center block at top */
.education-center {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

.education-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    gap: 32px;
}
/* Clean rewrite of the top of the file to remove any hidden/corrupt characters */
.education-center {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

/* Education Section */
.education-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    gap: 32px;
}

.education-item {
    position: relative;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    background: var(--bg-card, #f8f9fa);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(33, 150, 243, 0.10);
    padding: 32px 28px;
    text-align: left;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s;
}

.education-item:hover {
    box-shadow: 0 12px 35px rgba(33, 150, 243, 0.18);
    border-color: #2196F3;
}

.education-item h3 {
    font-size: 24px;
    color: #2196F3;
    margin-bottom: 8px;
}

.education-institution {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.education-year {
    font-size: 15px;
    color: #c41e3a;
    margin-bottom: 12px;
}

.education-details {
    list-style: disc inside;
    color: var(--text-primary);
    font-size: 15px;
    margin-left: 0;
    padding-left: 0;
}

.education-details li {
    margin-bottom: 6px;
}
    .education-location {
        color: #888;
        font-size: 1rem;
        margin-bottom: 4px;
    }
    /* Education divider line */
    .education-item:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -33px;
        transform: translateX(-50%);
        width: 4px;
        height: 32px;
        background: linear-gradient(180deg, #2196F3, #c41e3a);
        border-radius: 2px;
        opacity: 0.7;
        z-index: 1;
    }

.education-item {
    max-width: 600px;
    width: 100%;
}


.education-item {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(33, 150, 243, 0.10);
    padding: 32px 28px;
    max-width: 600px;
    width: 100%;
    text-align: left;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s;
}
.education-item:hover {
    box-shadow: 0 12px 35px rgba(33, 150, 243, 0.18);
    border-color: #2196F3;
}
.education-item h3 {
    font-size: 24px;
    color: #2196F3;
    margin-bottom: 8px;
}
.education-institution {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.education-year {
    font-size: 15px;
    color: #c41e3a;
    margin-bottom: 12px;
}
.education-details {
    list-style: disc inside;
    color: var(--text-primary);
    font-size: 15px;
    margin-left: 0;
    padding-left: 0;
}
.education-details li {
    margin-bottom: 6px;
}
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* CSS Variables for Theme */
        :root {
            --bg-primary: #1a1a1a;
            --bg-secondary: #2d2d2d;
            --bg-card: rgba(255, 255, 255, 0.05);
            --text-primary: #ffffff;
            --text-secondary: #b0b0b0;
            --accent-color: #2196F3;
            --accent-hover: #c41e3a;
            --navbar-bg: rgba(26, 26, 26, 0.95);
            --border-color: rgba(255, 255, 255, 0.1);
        }

        /* Light Mode */
        body.light-mode {
            --bg-primary: #f5f5f5;
            --bg-secondary: #ffffff;
            --bg-card: rgba(0, 0, 0, 0.05);
            --text-primary: #1a1a1a;
            --text-secondary: #666666;
            --navbar-bg: rgba(255, 255, 255, 0.95);
            --border-color: rgba(0, 0, 0, 0.1);
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
            color: var(--text-primary);
            overflow-x: hidden;
            transition: background 0.3s ease, color 0.3s ease;
        }

        /* Navbar */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 5%;
            background: rgba(0, 0, 0, 0.35); /* or var(--navbar-bg) with transparency */
            backdrop-filter: blur(8px);
            z-index: 1000;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
            transition: background 0.25s ease, box-shadow 0.25s ease;
        }
        
        .logo {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: 1px;
            flex-shrink: 0;
        }
        
        .logo span{
            color: #2196F3;
        }

        .nav-links {
            display: flex;
            gap: 35px;
            list-style: none;
            margin-left: auto;
            margin-right: 2vw;
        }

        .nav-links a {
            color: var(--text-primary);
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: #c41e3a;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: #c41e3a;
            transition: width 0.3s ease;
        }

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

        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 100px 8%;
            gap: 60px;
        }

        .hero-left {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .profile-img {
            width: 380px;
            height: 380px;
            border-radius: 50%;
            border: 8px solid #2196F3;
            object-fit: cover;
            object-position: center;
            transition: all 0.4s ease;
            box-shadow: 0 10px 40px rgba(33, 150, 243, 0.3);
            animation: profileFloat 4s ease-in-out infinite, borderGlow 3s ease-in-out infinite;
        }

        .profile-img:hover {
            transform: scale(1.08) rotate(5deg);
            box-shadow: 0 20px 60px rgba(33, 150, 243, 0.5);
            animation-play-state: paused;
        }

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

        @keyframes borderGlow {
            0%, 100% { border-color: #2196F3; box-shadow: 0 10px 40px rgba(33, 150, 243, 0.3); }
            50% { border-color: #c41e3a; box-shadow: 0 15px 50px rgba(196, 30, 58, 0.4); }
        }

        .hero-right {
            flex: 1;
            max-width: 600px;
        }

        .intro {
            font-size: 18px;
            color: var(--text-secondary);
            margin-bottom: 10px;
        }

        .typing-container {
            display: inline-block;
            color: #2196F3;
            font-weight: 600;
        }

        .cursor {
            display: inline-block;
            width: 2px;
            height: 20px;
            background: #2196F3;
            margin-left: 2px;
            animation: blink 0.7s infinite;
        }

        @keyframes blink {
            0%, 50% { opacity: 1; }
            51%, 100% { opacity: 0; }
        }

        .hero-name {
            font-size: 62px;
            font-weight: 800;
            color: #2196F3;
            margin: 20px 0;
            letter-spacing: 2px;
            animation: nameGlow 3s ease-in-out infinite;
            background: linear-gradient(90deg, #2196F3, #c41e3a, #2196F3);
            background-size: 200% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        @keyframes nameGlow {
            0%, 100% { background-position: 0% center; }
            50% { background-position: 100% center; }
        }

        .hero-description {
            font-size: 17px;
            line-height: 1.8;
            color: var(--text-secondary);
            margin-bottom: 35px;
            text-align: justify;
        }

        .hero-buttons {
            display: flex;
            gap: 20px;
            margin-bottom: 40px;
        }

        .btn {
            padding: 14px 35px;
            border: 2px solid #2196F3;
            background: transparent;
            color: var(--text-primary);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.4s ease;
            border-radius: 5px;
            text-decoration: none;
            display: inline-block;
        }

        .btn:hover {
            background: #102443;
            box-shadow: 0 0 25px rgba(0, 0, 0, 0.8),
                        0 0 50px rgba(13, 71, 161, 0.5);
            transform: translateY(-3px);
        }

        .social-links {
            display: flex;
            gap: 20px;
        }

        .social-links a {
            color: var(--text-primary);
            font-size: 22px;
            transition: all 0.3s ease;
        }

        .social-links a:hover {
            color: #2196F3;
            transform: scale(1.3);
        }

        @media (max-width: 1024px) {
            .hero {
                flex-direction: column;
                text-align: center;
                padding: 120px 5%;
            }

            .hero-right {
                max-width: 100%;
            }

            .profile-img {
                width: 320px;
                height: 320px;
            }

            .hero-name {
                font-size: 48px;
            }

            .hero-description {
                text-align: center;
            }

            .hero-buttons {
                justify-content: center;
            }

            .social-links {
                justify-content: center;
            }
        }

        @media (max-width: 768px) {
            .navbar {
                padding: 15px 5%;
            }

            .logo {
                font-size: 20px;
            }

            .nav-links {
                gap: 20px;
            }

            .nav-links a {
                font-size: 14px;
            }

            .profile-img {
                width: 260px;
                height: 260px;
            }

            .hero-name {
                font-size: 38px;
            }

            .hero-buttons {
                flex-direction: column;
                width: 100%;
            }

            .btn {
                width: 100%;
                max-width: 300px;
            }
        }

        @media (max-width: 480px) {
            .nav-links {
                gap: 12px;
            }

            .nav-links a {
                font-size: 12px;
            }

            .profile-img {
                width: 220px;
                height: 220px;
            }

            .hero-name {
                font-size: 32px;
            }

            .intro {
                font-size: 16px;
            }

            .hero-description {
                font-size: 15px;
            }
        }
        .section {
            min-height: 100vh;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding: 120px 8% 0 8%;
            background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
            color: var(--text-primary);
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s ease;
        }

        .section.animate {
            opacity: 1;
            transform: translateY(0);
        }

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

        .container {
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
        }

        .section-title {
            font-size: 36px;
            font-weight: 700;
            color: #2196F3;
            margin-bottom: 40px;
            text-align: center;
            letter-spacing: 2px;
            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, #2196F3, #c41e3a);
            border-radius: 2px;
            animation: underlineExpand 2s ease-in-out infinite;
        }

        @keyframes underlineExpand {
            0%, 100% { width: 80px; opacity: 1; }
            50% { width: 120px; opacity: 0.8; }
        }

        .about-content {
            display: flex;
            gap: 40px;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
        }

        .about-text {
            flex: 1;
            min-width: 280px;
            max-width: 600px;
            font-size: 16px;
            line-height: 1.6;
            color: var(--text-secondary);
            text-align: justify;
        }

        .skills {
            margin-top: 20px;
        }

        .skills h3 {
            font-size: 20px;
            color: #2196F3;
            margin-bottom: 10px;
        }

        .skill-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .skill-tag {
            background: linear-gradient(135deg, #2196F3, #1976D2);
            color: white;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            user-select: none;
            animation: fadeInUp 0.5s ease forwards;
            opacity: 0;
            animation-delay: calc(var(--delay) * 0.1s);
            transition: all 0.3s ease;
            cursor: default;
            position: relative;
            overflow: hidden;
        }

        .skill-tag::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;
        }

        .skill-tag:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 5px 20px rgba(33, 150, 243, 0.4);
            background: linear-gradient(135deg, #c41e3a, #a01830);
        }

        .skill-tag:hover::before {
            left: 100%;
        }

        .about-image {
            flex: 1;
            min-width: 280px;
            max-width: 400px;
            display: flex;
            justify-content: center;
            perspective: 1000px;
        }

        .about-img {
            width: 100%;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(33, 150, 243, 0.3);
            object-fit: cover;
            animation: aboutImageFloat 5s ease-in-out infinite;
            transition: all 0.5s ease;
            transform-style: preserve-3d;
        }

        .about-img:hover {
            transform: scale(1.05) rotateY(5deg) rotateX(5deg);
            box-shadow: 0 20px 60px rgba(33, 150, 243, 0.5),
                        0 0 30px rgba(33, 150, 243, 0.3);
            animation-play-state: paused;
        }

        @keyframes aboutImageFloat {
            0%, 100% { 
                transform: translateY(0) rotate(0deg); 
                box-shadow: 0 10px 40px rgba(33, 150, 243, 0.3);
            }
            25% { 
                transform: translateY(-10px) rotate(1deg); 
                box-shadow: 0 20px 50px rgba(33, 150, 243, 0.4);
            }
            50% { 
                transform: translateY(-15px) rotate(0deg); 
                box-shadow: 0 25px 55px rgba(33, 150, 243, 0.45);
            }
            75% { 
                transform: translateY(-10px) rotate(-1deg); 
                box-shadow: 0 20px 50px rgba(33, 150, 243, 0.4);
            }
        }

        /* Glow pulse effect on about image */
        .about-image::before {
            content: '';
            position: absolute;
            top: -5px;
            left: -5px;
            right: -5px;
            bottom: -5px;
            background: linear-gradient(45deg, #2196F3, #c41e3a, #2196F3);
            border-radius: 20px;
            z-index: -1;
            opacity: 0;
            animation: glowPulse 3s ease-in-out infinite;
            filter: blur(15px);
        }

        @keyframes glowPulse {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.6; }
        }

        .about-image {
            position: relative;
        }

        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
        }

        .portfolio-item {
            position: relative;
            overflow: hidden;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(33, 150, 243, 0.3);
            cursor: pointer;
            transition: all 0.4s ease;
            animation: fadeInUp 0.5s ease forwards;
            opacity: 0;
            animation-delay: calc(var(--delay) * 0.1s);
        }

        .portfolio-item:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 20px 50px rgba(33, 150, 243, 0.4);
        }

        .portfolio-image img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            display: block;
            border-radius: 15px;
            transition: transform 0.5s ease;
        }

        .portfolio-item:hover .portfolio-image img {
            transform: scale(1.1);
        }

        .portfolio-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(196, 30, 58, 0.9), rgba(33, 150, 243, 0.8));
            color: white;
            opacity: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            text-align: center;
            transition: all 0.4s ease;
            border-radius: 15px;
            transform: translateY(20px);
        }

        .portfolio-item:hover .portfolio-overlay {
            opacity: 1;
            transform: translateY(0);
        }

        .portfolio-overlay h3 {
            transform: translateY(-10px);
            opacity: 0;
            transition: all 0.3s ease 0.1s;
        }

        .portfolio-overlay p {
            transform: translateY(-10px);
            opacity: 0;
            transition: all 0.3s ease 0.2s;
        }

        .portfolio-overlay .btn {
            transform: translateY(-10px);
            opacity: 0;
            transition: all 0.3s ease 0.3s;
        }

        .portfolio-item:hover .portfolio-overlay h3,
        .portfolio-item:hover .portfolio-overlay p,
        .portfolio-item:hover .portfolio-overlay .btn {
            transform: translateY(0);
            opacity: 1;
        }

        .portfolio-overlay h3 {
            margin-bottom: 10px;
            font-size: 22px;
        }

        .portfolio-overlay p {
            margin-bottom: 20px;
            font-size: 16px;
        }

        .contact-content {
            display: flex;
            gap: 60px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .contact-info {
            flex: 1;
            min-width: 280px;
            max-width: 400px;
            color: var(--text-secondary);
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 25px;
            font-size: 16px;
            padding: 12px 16px;
            border-radius: 10px;
            transition: all 0.3s ease;
            cursor: default;
            text-decoration: none;
            color: var(--text-secondary);
        }

        .contact-item.clickable {
            cursor: pointer;
        }

        .contact-item.clickable:hover {
            background: linear-gradient(135deg, var(--bg-card), rgba(33, 150, 243, 0.1));
            transform: translateX(10px);
            box-shadow: 0 5px 20px rgba(33, 150, 243, 0.2);
        }

        .contact-item i {
            font-size: 22px;
            color: #2196F3;
            transition: all 0.3s ease;
        }

        .contact-item.clickable:hover i {
            transform: scale(1.2) rotate(10deg);
            color: #c41e3a;
        }

        .contact-item p {
            margin: 0;
            transition: color 0.3s ease;
        }

        .contact-item.clickable:hover p {
            color: #2196F3;
        }

        .social-links-contact {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-links-contact a {
            color: var(--text-primary);
            font-size: 24px;
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: var(--bg-card);
            border: 2px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }

        .social-links-contact a::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #2196F3, #c41e3a);
            border-radius: 50%;
            transform: scale(0);
            transition: transform 0.3s ease;
            z-index: -1;
        }

        .social-links-contact a:hover::before {
            transform: scale(1);
        }

        .social-links-contact a:hover {
            color: white;
            transform: translateY(-5px) rotate(360deg);
            border-color: transparent;
            box-shadow: 0 10px 25px rgba(33, 150, 243, 0.4);
        }

        .contact-form {
            flex: 1;
            min-width: 280px;
            max-width: 540px;
            background: var(--bg-card);
            padding: 24px;
            border-radius: 14px;
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
            border: 1px solid var(--border-color);
            backdrop-filter: blur(10px);
            animation: formFloat 6s ease-in-out infinite;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .contact-form:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 35px rgba(33, 150, 243, 0.25);
        }

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

        .contact-form:hover {
            animation-play-state: paused;
        }

        .form-group {
            margin-bottom: 16px;
            position: relative;
        }

        .form-group label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 6px;
            letter-spacing: 0.4px;
            text-transform: uppercase;
            transition: all 0.3s ease;
            transform-origin: left;
        }

        .form-group:focus-within label {
            color: #2196F3;
            transform: scale(1.05);
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 10px 14px;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            background: var(--bg-secondary);
            color: var(--text-primary);
            font-size: 14px;
            font-family: inherit;
            resize: none;
            transition: all 0.3s ease;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: var(--text-secondary);
            opacity: 0.7;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .form-group input:hover,
        .form-group textarea:hover {
            border-color: rgba(33, 150, 243, 0.5);
            box-shadow: 0 3px 10px rgba(33, 150, 243, 0.15);
        }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: #2196F3;
            outline: none;
            box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15),
                        0 3px 10px rgba(33, 150, 243, 0.2);
            transform: translateY(-2px);
            animation: inputPulse 1.5s ease infinite;
        }

        @keyframes inputPulse {
            0%, 100% { box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15), 0 3px 10px rgba(33, 150, 243, 0.2); }
            50% { box-shadow: 0 0 0 5px rgba(33, 150, 243, 0.1), 0 5px 15px rgba(33, 150, 243, 0.25); }
        }

        .form-group input:focus::placeholder,
        .form-group textarea:focus::placeholder {
            opacity: 0.5;
            transform: translateX(5px);
        }

        /* Input underline animation */
        .form-group::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #2196F3, #c41e3a);
            transition: all 0.4s ease;
            transform: translateX(-50%);
            border-radius: 2px;
        }

        .form-group:focus-within::after {
            width: 100%;
        }

        /* Input icon indicator */
        .form-group.has-icon {
            position: relative;
        }

        .form-group.has-icon input {
            padding-left: 45px;
        }

        .form-group.has-icon i {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
            font-size: 16px;
            transition: color 0.3s ease;
        }

        .form-group.has-icon input:focus + i,
        .form-group.has-icon:hover i {
            color: #2196F3;
        }

        /* Textarea specific styling */
        .form-group textarea {
            min-height: 90px;
            line-height: 1.5;
        }

        /* Form validation states */
        .form-group input:valid:not(:placeholder-shown),
        .form-group textarea:valid:not(:placeholder-shown) {
            border-color: rgba(76, 175, 80, 0.5);
        }

        .contact-form button {
            width: 100%;
            padding: 12px 20px;
            background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
            border: none;
            border-radius: 8px;
            color: white;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.4s ease;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
            margin-top: 4px;
        }

        .contact-form button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .contact-form button:hover::before {
            left: 100%;
        }

        .contact-form button:hover {
            background: linear-gradient(135deg, #c41e3a 0%, #a01830 100%);
            box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4),
                        0 0 40px rgba(196, 30, 58, 0.2);
            transform: translateY(-2px);
        }

        .contact-form button:active {
            transform: translateY(-1px);
            box-shadow: 0 3px 12px rgba(196, 30, 58, 0.3);
        }

        .contact-form button:disabled {
            background: linear-gradient(135deg, #555 0%, #444 100%);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .contact-form button:disabled::before {
            display: none;
        }

        /* Loading spinner for button */
        .contact-form button.loading {
            pointer-events: none;
            opacity: 0.8;
        }

        .contact-form button.loading::after {
            content: '';
            position: absolute;
            width: 18px;
            height: 18px;
            border: 2px solid white;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-left: 8px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .form-message {
            display: none;
            margin-top: 15px;
            padding: 12px 16px;
            border-radius: 10px;
            text-align: center;
            font-weight: 600;
            font-size: 14px;
            animation: slideUp 0.4s ease;
        }

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

        .form-message.success {
            background: rgba(76, 175, 80, 0.15);
            border: 2px solid #4CAF50;
            color: #4CAF50;
            box-shadow: 0 3px 12px rgba(76, 175, 80, 0.2);
        }

        .form-message.success i {
            margin-right: 8px;
        }

        .form-message.error {
            background: rgba(244, 67, 54, 0.15);
            border: 2px solid #f44336;
            color: #f44336;
            box-shadow: 0 3px 12px rgba(244, 67, 54, 0.2);
        }

        .form-message.error i {
            margin-right: 8px;
        }

        /* Field validation styles */
        .form-group input.error,
        .form-group textarea.error {
            border-color: #f44336;
            background: rgba(244, 67, 54, 0.05);
        }

        .form-group input.valid,
        .form-group textarea.valid {
            border-color: #4CAF50;
        }

        .field-error {
            display: block;
            color: #f44336;
            font-size: 12px;
            margin-top: 6px;
            padding-left: 2px;
            animation: errorShake 0.4s ease;
        }

        @keyframes errorShake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            50% { transform: translateX(5px); }
            75% { transform: translateX(-5px); }
        }

        /* Form submitted success animation */
        .contact-form.submitted {
            animation: formSuccess 0.5s ease;
        }

        @keyframes formSuccess {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.02); }
        }

        /* Loading button spinner */
        .contact-form button.loading {
            position: relative;
            pointer-events: none;
        }

        .contact-form button i.fa-spinner {
            margin-right: 8px;
        }

        /* Form field entrance animations */
        .contact-form .form-group {
            opacity: 0;
            transform: translateY(20px);
            animation: formFieldFadeIn 0.5s ease forwards;
        }

        .contact-form .form-group:nth-child(1) { animation-delay: 0.1s; }
        .contact-form .form-group:nth-child(2) { animation-delay: 0.2s; }
        .contact-form .form-group:nth-child(3) { animation-delay: 0.3s; }
        .contact-form .form-group:nth-child(4) { animation-delay: 0.4s; }

        .contact-form button {
            opacity: 0;
            transform: translateY(20px);
            animation: formFieldFadeIn 0.5s ease forwards;
            animation-delay: 0.5s;
        }

        @keyframes formFieldFadeIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Light mode form adjustments */
        body.light-mode .contact-form {
            background: rgba(255, 255, 255, 0.9);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
        }

        body.light-mode .form-group input,
        body.light-mode .form-group textarea {
            background: #ffffff;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        }

        @media (max-width: 1024px) {
            .about-content,
            .contact-content {
                flex-direction: column;
                align-items: center;
            }

            .portfolio-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 768px) {
            .portfolio-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Theme Toggle Button */
        .theme-toggle {
            background: var(--accent-color);
            border: none;
            color: white;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            flex-shrink: 0;
            box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
        }

        .theme-toggle:hover {
            background: var(--accent-hover);
            color: white;
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
        }

        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--accent-color);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all 0.3s ease;
            z-index: 999;
            box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .back-to-top:hover {
            background: var(--accent-hover);
            transform: translateY(-5px);
            box-shadow: 0 6px 20px rgba(196, 30, 58, 0.5);
        }

        /* Light mode specific overrides */
        body.light-mode .section-title {
            color: var(--accent-color);
        }

        body.light-mode .hero-name {
            color: var(--accent-color);
        }

        body.light-mode .btn {
            background: var(--accent-color);
            color: white;
        }

        body.light-mode .btn:hover {
            background: var(--accent-hover);
            box-shadow: 0 0 25px rgba(196, 30, 58, 0.4);
        }

        body.light-mode .skill-tag {
            background: var(--accent-color);
            color: white;
        }

        body.light-mode .portfolio-item {
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        }

        body.light-mode .contact-form input,
        body.light-mode .contact-form textarea {
            background: white;
            border: 2px solid var(--border-color);
        }

        body.light-mode .contact-form input:focus,
        body.light-mode .contact-form textarea:focus {
            border-color: var(--accent-color);
        }

        body.light-mode .navbar {
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        }

        body.light-mode .profile-img {
            box-shadow: 0 10px 40px rgba(33, 150, 243, 0.2);
        }

        body.light-mode .about-img {
            box-shadow: 0 10px 40px rgba(33, 150, 243, 0.2);
        }

        body.light-mode .experience-item h4,
        body.light-mode .education-item h4 {
            color: var(--text-primary);
        }

        body.light-mode .contact-item i {
            color: var(--accent-color);
        }

        /* Hamburger Menu */
        .hamburger {
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 5px;
            width: 40px;
            height: 40px;
            background: transparent;
            border: none;
            cursor: pointer;
            z-index: 1001;
            order: 2;
        }

        .hamburger .bar {
            width: 25px;
            height: 3px;
            background: var(--text-primary);
            border-radius: 3px;
            transition: all 0.3s ease;
        }

        .hamburger.active .bar:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }

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

        .hamburger.active .bar:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }

        /* Footer */
        .footer {
            background: var(--bg-primary);
            padding: 60px 8% 30px;
            border-top: 1px solid var(--border-color);
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-section h3 {
            font-size: 24px;
            color: var(--text-primary);
            margin-bottom: 15px;
        }

        .footer-section h3 span {
            color: var(--accent-color);
        }

        .footer-section h4 {
            font-size: 18px;
            color: var(--accent-color);
            margin-bottom: 15px;
        }

        .footer-section p {
            color: var(--text-secondary);
            line-height: 1.8;
            margin-bottom: 10px;
        }

        .footer-section p i {
            color: var(--accent-color);
            margin-right: 10px;
            width: 20px;
        }

        .footer-social {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .footer-social a {
            color: var(--text-primary);
            font-size: 22px;
            transition: all 0.3s ease;
        }

        .footer-social a:hover {
            color: var(--accent-color);
            transform: translateY(-3px);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 10px;
        }

        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .footer-links a:hover {
            color: var(--accent-color);
            padding-left: 5px;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 30px;
            margin-top: 40px;
            border-top: none;
        }

        .footer-bottom p {
            color: var(--text-secondary);
            font-size: 14px;
            margin-bottom: 5px;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .hamburger {
                display: flex;
            }

            .nav-links {
                position: fixed;
                top: 0;
                right: -100%;
                width: 70%;
                max-width: 300px;
                height: 100vh;
                background: var(--bg-primary);
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 30px;
                transition: right 0.3s ease;
                box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
                z-index: 1000;
            }

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

            .nav-links a {
                font-size: 18px;
            }

            .navbar {
                padding: 15px 5%;
            }

            .theme-toggle {
                order: 3;
                width: 38px;
                height: 38px;
                font-size: 16px;
            }

            .logo {
                font-size: 18px;
            }

            /* Mobile overlay when menu is open */
            body.menu-open::before {
                content: '';
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.5);
                z-index: 999;
            }

            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .footer-social {
                justify-content: center;
            }

            .footer-links a:hover {
                padding-left: 0;
            }
        }

        @media (max-width: 480px) {
            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }

            .btn {
                width: 100%;
                max-width: 280px;
                text-align: center;
            }

            .social-links-contact {
                justify-content: center;
                flex-wrap: wrap;
            }

            .contact-content {
                gap: 40px;
            }
        }
    
