:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --tertiary-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 100%);
    --neon-gradient: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff, #06ffa5);
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #a0aec0;
    --bg-light: #ffffff;
    --bg-dark: #1a202c;
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] {
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e0;
    --text-light: #718096;
    --bg-light: #2d3748;
    --bg-dark: #1a202c;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

/* Particle Background */
.particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--neon-gradient);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 20s infinite linear;
}

.particle:nth-child(1) { width: 4px; height: 4px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 6px; height: 6px; left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { width: 3px; height: 3px; left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { width: 5px; height: 5px; left: 40%; animation-delay: 6s; }
.particle:nth-child(5) { width: 4px; height: 4px; left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { width: 7px; height: 7px; left: 60%; animation-delay: 10s; }
.particle:nth-child(7) { width: 3px; height: 3px; left: 70%; animation-delay: 12s; }
.particle:nth-child(8) { width: 5px; height: 5px; left: 80%; animation-delay: 14s; }
.particle:nth-child(9) { width: 4px; height: 4px; left: 90%; animation-delay: 16s; }
.particle:nth-child(10) { width: 6px; height: 6px; left: 95%; animation-delay: 18s; }

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation with Morphing Effect */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: logo-glow 3s ease-in-out infinite alternate;
}

@keyframes logo-glow {
    0% { filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.5)); }
    100% { filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.8)); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    overflow: hidden;
    display: block;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.3s var(--elastic);
    z-index: -1;
    border-radius: 25px;
}

.nav-links a:hover::before {
    left: 0;
}

.nav-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--primary-gradient);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.3s var(--elastic);
    z-index: -1;
}

.theme-toggle:hover::before {
    left: 0;
}

.theme-toggle:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    color: white;
}

/* Hero Section with Advanced Animations */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-gradient);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: var(--neon-gradient);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
    animation: morphing-shape 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes morphing-shape {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        border-radius: 50%;
    }
    25% {
        transform: translate(-50%, -50%) scale(1.2) rotate(90deg);
        border-radius: 30%;
    }
    50% {
        transform: translate(-50%, -50%) scale(0.8) rotate(180deg);
        border-radius: 60%;
    }
    75% {
        transform: translate(-50%, -50%) scale(1.1) rotate(270deg);
        border-radius: 40%;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: title-float 4s ease-in-out infinite;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
    animation: subtitle-glow 2s ease-in-out infinite alternate;
}

@keyframes subtitle-glow {
    0% { text-shadow: 0 0 5px rgba(102, 126, 234, 0.3); }
    100% { text-shadow: 0 0 15px rgba(102, 126, 234, 0.6); }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    animation: btn-pulse 2s ease-in-out infinite;
}

@keyframes btn-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary-gradient);
    animation: btn-border-glow 2s ease-in-out infinite alternate;
}

@keyframes btn-border-glow {
    0% { box-shadow: 0 0 5px rgba(102, 126, 234, 0.3); }
    100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.6); }
}

.btn-secondary:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-3px) scale(1.05);
}

.hero-visual {
    position: relative;
    animation: slideInRight 1s ease-out;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    animation: image-float 6s ease-in-out infinite;
}

@keyframes image-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(0.5deg); }
}

.profile-image:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
}



/* Tech Badges */
.tech-badges {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.tech-badge {
    position: absolute;
    background: var(--neon-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: badge-float 4s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.tech-badge:nth-child(1) {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.tech-badge:nth-child(2) {
    top: 30%;
    right: -30px;
    animation-delay: 1s;
}

.tech-badge:nth-child(3) {
    bottom: 30%;
    left: -25px;
    animation-delay: 2s;
}

.tech-badge:nth-child(4) {
    bottom: 10%;
    right: -20px;
    animation-delay: 3s;
}

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



@keyframes float-rotate {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes float-bounce {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

@keyframes float-wave {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-15px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-5px); }
    75% { transform: translateY(-20px) translateX(5px); }
}

/* Skills Section with 3D Cards */
.skills {
    padding: 6rem 0;
    background: var(--bg-light);
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--bg-dark), transparent);
    z-index: 1;
}

.section-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: title-shine 3s ease-in-out infinite;
}

@keyframes title-shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

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

.skill-category:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 30px 60px -12px rgba(102, 126, 234, 0.25);
}

.skill-category h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: black;
    position: relative;
}

.skill-category h3 i {
    margin-right: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--tertiary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    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.2), transparent);
    transition: left 0.3s;
}

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

.skill-tag:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
}

/* Projects Section with Holographic Effect */
.projects {
    padding: 6rem 0;
    background: var(--bg-dark);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--bg-light), transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.project-card {
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(102, 126, 234, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 1;
}

.project-card:hover::before {
    transform: translateX(100%);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02) rotateX(5deg);
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.25);
}

.project-image {
    width: 100%;
    height: 200px;
    background: var(--secondary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.project-image i {
    animation: icon-bounce 2s ease-in-out infinite;
}

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

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.project-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s var(--elastic);
}

.project-card:hover .project-title::after {
    width: 100%;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.tech-tag:hover {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.05);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.3s;
    z-index: -1;
    border-radius: 20px;
}

.project-link:hover::before {
    left: 0;
}

.project-link:hover {
    color: white;
    transform: translateX(5px);
}

/* Contact Section with Interactive Form */
.contact {
    padding: 6rem 0;
    background: var(--bg-light);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--bg-dark), transparent);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.contact-info {
    space-y: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-item h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: #4a5568;
    margin: 0;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

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

.contact-item:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    animation: form-rotate 10s linear infinite;
    z-index: -1;
}

@keyframes form-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    transition: var(--transition);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    transition: var(--transition);
    background: transparent;
    position: relative;
    z-index: 1;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Ensure textarea has proper styling */
.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-group input:focus + label,
.form-group textarea:focus + label {
    color: #667eea;
    transform: translateY(-5px);
}

/* Dark theme overrides for contact form */
[data-theme="dark"] .form-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
    border-color: #4a5568;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .contact-form {
    background: #2d3748;
    color: #e2e8f0;
}

[data-theme="dark"] .contact-item {
    background: #2d3748;
    color: #e2e8f0;
}

[data-theme="dark"] .contact-item h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .contact-item p {
    color: #cbd5e0;
}

/* Light theme overrides for contact form */
[data-theme="light"] .form-group label {
    color: #2d3748;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    color: #2d3748;
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: #667eea;
    background: #ffffff;
}

[data-theme="light"] .contact-form {
    background: #ffffff;
    color: #2d3748;
}

[data-theme="light"] .contact-item {
    background: #ffffff;
    color: #2d3748;
}

[data-theme="light"] .contact-item h4 {
    color: #2d3748;
}

[data-theme="light"] .contact-item p {
    color: #4a5568;
}

/* Footer with Animated Social Links */
.footer {
    background: var(--bg-dark);
    color: white;
    text-align: center;
    padding: 3rem 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--neon-gradient);
    animation: footer-glow 2s ease-in-out infinite alternate;
}

@keyframes footer-glow {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--neon-gradient);
    transition: left 0.3s;
    z-index: -1;
}

.social-link:hover::before {
    left: 0;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1) rotate(360deg);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Enhanced Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px) rotateY(-15deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px) rotateY(15deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0deg);
    }
}

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

/* Loading animation with Morphing */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(102, 126, 234, 0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: relative;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Scroll animations with Stagger */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.8s var(--elastic);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Responsive Design with Advanced Breakpoints */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

/* Additional Unique Animations */
@keyframes morphing-shape {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        border-radius: 50%;
    }
    25% {
        transform: translate(-50%, -50%) scale(1.2) rotate(90deg);
        border-radius: 30%;
    }
    50% {
        transform: translate(-50%, -50%) scale(0.8) rotate(180deg);
        border-radius: 60%;
    }
    75% {
        transform: translate(-50%, -50%) scale(1.1) rotate(270deg);
        border-radius: 40%;
    }
}

@keyframes title-shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes float-rotate {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes float-bounce {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

@keyframes float-wave {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-15px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-5px); }
    75% { transform: translateY(-20px) translateX(5px); }
}

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

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes form-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes footer-glow {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes btn-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes btn-border-glow {
    0% { box-shadow: 0 0 5px rgba(102, 126, 234, 0.3); }
    100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.6); }
}

@keyframes image-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(0.5deg); }
}

@keyframes subtitle-glow {
    0% { text-shadow: 0 0 5px rgba(102, 126, 234, 0.3); }
    100% { text-shadow: 0 0 15px rgba(102, 126, 234, 0.6); }
}

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

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(26, 32, 44, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .skill-category,
    .project-card {
        padding: 1.5rem;
    }
    
    .tech-badges {
        display: none;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Mobile-specific animations */
@media (max-width: 768px) {
    .hero-title {
        animation: mobile-title-bounce 2s ease-in-out infinite;
    }
    
    @keyframes mobile-title-bounce {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-5px); }
    }
    
    .profile-image {
        animation: mobile-image-pulse 3s ease-in-out infinite;
    }
    
    @keyframes mobile-image-pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.02); }
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .project-card:hover {
        transform: none;
    }
    
    .skill-category:hover {
        transform: none;
    }
    
    .contact-item:hover {
        transform: none;
    }
}

/* Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --bg-light: #ffffff;
        --bg-dark: #000000;
    }
}

/* Print styles */
@media print {
    .navbar,
    .floating-elements,
    .particle-background,
    .loading-overlay {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}