* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f1f5f9;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --neon-glow: 0 0 5px #6366f1, 0 0 20px #6366f1, 0 0 40px #6366f1, 0 0 80px #6366f1;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    perspective: 1000px;
}

/* Animated Background Grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 0 0;
    animation: gridScroll 20s linear infinite;

    z-index: 0;
}

@keyframes gridScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}



/* Enhanced Grain Effect */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    opacity: 0.05;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* Navbar with 3D Effect */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    transform-style: preserve-3d;
    animation: navSlideDown 1s ease-out;
}

@keyframes navSlideDown {
    from {
        transform: translateY(-100%) rotateX(-90deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotateX(0);
        opacity: 1;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    position: relative;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8)); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    transform-style: preserve-3d;
}

.nav-links a::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--primary);
    overflow: hidden;
    width: 0;
    transition: width 0.3s;
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* Hero Section with Enhanced 3D */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

/* Animated Orbs with 3D Depth */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float3D 8s ease-in-out infinite;
    transform: translateZ(-100px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float3D 10s ease-in-out infinite reverse;
    transform: translateZ(-100px);
}

@keyframes float3D {
    0%, 100% { 
        transform: translate(0, 0) rotateX(0deg) rotateY(0deg) translateZ(-100px);
    }
    25% {
        transform: translate(30px, -30px) rotateX(5deg) rotateY(5deg) translateZ(-80px);
    }
    50% { 
        transform: translate(50px, -50px) rotateX(10deg) rotateY(-5deg) translateZ(-50px);
    }
    75% {
        transform: translate(20px, -20px) rotateX(-5deg) rotateY(10deg) translateZ(-80px);
    }
}

.hero-content {
    max-width: 700px;
    z-index: 2;
    transform-style: preserve-3d;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(-90deg);
    animation: wordReveal3D 0.8s forwards;
    transform-style: preserve-3d;
    text-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.hero-title .word:nth-child(1) { animation-delay: 0.1s; }
.hero-title .word:nth-child(2) { animation-delay: 0.2s; }
.hero-title .word:nth-child(3) { animation-delay: 0.3s; }
.hero-title .word:nth-child(4) { animation-delay: 0.4s; }

@keyframes wordReveal3D {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(241, 245, 249, 0.7);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp3D 1s 0.6s forwards;
    padding-right: 2px;
}

@keyframes fadeInUp3D {
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

/* CTA Button with 3D Ripple */
.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary);
    border-radius: 50px;
    transition: all 0.3s;
    opacity: 0;
    animation: fadeInUp3D 1s 0.8s forwards;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button span {
    position: relative;
    z-index: 2;
}

.button-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transition: left 0.5s ease;
    z-index: 1;
}

.cta-button:hover .button-bg {
    left: 0;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.5);
}

/* Enhanced 3D Floating Cubes */
.hero-3d {
    position: relative;
    width: 400px;
    height: 400px;
    z-index: 2;
    transform-style: preserve-3d;
    animation: hero3DRotate 20s linear infinite;
}

@keyframes hero3DRotate {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.floating-cube {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    animation: cube-float3D 6s ease-in-out infinite;
    transform-style: preserve-3d;
    box-shadow: 
        0 0 40px rgba(99, 102, 241, 0.4),
        inset 0 0 20px rgba(99, 102, 241, 0.2);
}

.floating-cube::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s;
    filter: blur(20px);
    z-index: -1;
}

.floating-cube:hover::before {
    opacity: 0.7;
}

.floating-cube:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.floating-cube:nth-child(2) {
    top: 50%;
    right: 0;
    animation-delay: 2s;
}

.floating-cube:nth-child(3) {
    bottom: 0;
    left: 50%;
    animation-delay: 4s;
}

@keyframes cube-float3D {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0);
    }
    25% {
        transform: translateY(-30px) rotateX(45deg) rotateY(45deg) rotateZ(45deg) translateZ(50px);
    }
    50% {
        transform: translateY(-60px) rotateX(180deg) rotateY(180deg) rotateZ(180deg) translateZ(100px);
    }
    75% {
        transform: translateY(-30px) rotateX(270deg) rotateY(270deg) rotateZ(270deg) translateZ(50px);
    }
}

/* Services Section with Card Flip */
.services {
    padding: 8rem 5%;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    box-shadow: 0 0 20px var(--primary);
    animation: lineExpand 2s ease-in-out infinite;
}

@keyframes lineExpand {
    0%, 100% { width: 100px; }
    50% { width: 150px; }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 1000px;
}

.service-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(99, 102, 241, 0.3),
        transparent 30%
    );
    animation: cardRotate 4s linear infinite;
}

@keyframes cardRotate {
    100% { transform: rotate(360deg); }
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 18px;
    z-index: 1;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

.service-card:hover {
    transform: translateY(-20px) rotateX(5deg) scale(1.05);
    border-color: var(--primary);
    box-shadow: 
        0 30px 60px rgba(99, 102, 241, 0.3),
        0 0 100px rgba(99, 102, 241, 0.2),
        inset 0 0 50px rgba(99, 102, 241, 0.1);
}

.service-card:hover .card-glow {
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    color: var(--primary);
    position: relative;
    z-index: 2;
    animation: iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(180deg); }
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card p {
    color: rgba(241, 245, 249, 0.8);
    line-height: 1.8;
    position: relative;
    z-index: 2;
}

/* Skills Section with 3D Cards */
.skills {
    padding: 8rem 5%;
    background: rgba(15, 23, 42, 0.3);
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 20px var(--primary);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 15px;
}

.skill-item:hover::before {
    opacity: 0.1;
}

.skill-item:hover {
    transform: translateY(-15px) rotateX(10deg) scale(1.1);
    border-color: var(--primary);
    box-shadow: 
        0 25px 50px rgba(99, 102, 241, 0.4),
        0 0 80px rgba(99, 102, 241, 0.3);
}

.skill-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
    animation: iconSpin 10s linear infinite;
}

@keyframes iconSpin {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

.skill-item span {
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Contact Section with Particles */
.contact {
    padding: 8rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    transform: translate(-50%, -50%);
    animation: contactPulse 4s ease-in-out infinite;
}

@keyframes contactPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.contact-text {
    font-size: 1.3rem;
    color: rgba(241, 245, 249, 0.7);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.contact-button {
    display: inline-block;
    padding: 1.5rem 4rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent);
    border-radius: 50px;
    transition: all 0.5s;
    z-index: 1;
    transform-style: preserve-3d;
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.3);
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.8), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    border-radius: 50%;
}

.contact-button:hover::before {
    width: 400px;
    height: 400px;
}

.contact-button span {
    position: relative;
    z-index: 2;
}

.contact-button:hover {
    transform: translateY(-5px) scale(1.1) rotateX(5deg);
    box-shadow: 0 25px 60px rgba(236, 72, 153, 0.5);
    border-color: var(--primary);
}

.contact-button:hover .button-bg {
    left: 0;
}

/* Footer with Gradient Line */
footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(99, 102, 241, 0.3);
    color: rgba(241, 245, 249, 0.5);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    box-shadow: 0 0 20px var(--primary);
    animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Ripple Effect Class */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.5);
    transform: scale(0);
    animation: ripple-animation 1s ease-out;

}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Scroll Progress Indicator */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient);
    box-shadow: 0 0 20px var(--primary);
    z-index: 10000;
    animation: scrollProgress linear;
    animation-timeline: scroll();
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-3d {
        margin-top: 3rem;
        width: 300px;
        height: 300px;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }


    .service-card:hover,
    .skill-item:hover {
        transform: translateY(-10px);
    }
}
/* Footer Styles */
.footer {
    position: relative;
    padding: 5rem 5% 2rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(2, 6, 23, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(99, 102, 241, 0.3);
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    box-shadow: 0 0 30px var(--primary);
    animation: footerLineGlow 3s ease-in-out infinite;
}

@keyframes footerLineGlow {
    0%, 100% { opacity: 0.5; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(0.95); }
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    animation: footerFadeIn 1s ease-out backwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.footer-tagline {
    color: rgba(241, 245, 249, 0.6);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    color: var(--primary);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.social-link:hover::before {
    opacity: 0.2;
}

.social-link svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.social-link:hover svg {
    transform: scale(1.2) rotateY(360deg);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    animation: titleLineExpand 2s ease-in-out infinite;
}

@keyframes titleLineExpand {
    0%, 100% { width: 40px; }
    50% { width: 60px; }
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(241, 245, 249, 0.6);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s;
    color: var(--primary);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 20px;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(241, 245, 249, 0.6);
    transition: all 0.3s;
    padding: 0.5rem;
    border-radius: 8px;
}

.footer-contact li:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(5px);
}

.footer-contact svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.footer-contact li:hover svg {
    transform: scale(1.2) rotate(10deg);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.footer-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: dividerSlide 3s linear infinite;
}

@keyframes dividerSlide {
    to { left: 100%; }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
}

.footer-copyright {
    color: rgba(241, 245, 249, 0.4);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-legal a {
    color: rgba(241, 245, 249, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    position: relative;
}

.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s;
}

.footer-legal a:hover {
    color: var(--primary);
}

.footer-legal a:hover::after {
    width: 100%;
}

.footer-legal .separator {
    color: rgba(241, 245, 249, 0.3);
}

/* Animated Background Elements */
.footer-bg-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;

}

.footer-bg-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary), transparent);
    bottom: -100px;
    left: -50px;
    animation: bgFloat1 8s ease-in-out infinite;
}

.footer-bg-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--secondary), transparent);
    top: -50px;
    right: 20%;
    animation: bgFloat2 10s ease-in-out infinite;
}

.footer-bg-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent), transparent);
    bottom: 50px;
    right: -50px;
    animation: bgFloat3 12s ease-in-out infinite;
}

@keyframes bgFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

@keyframes bgFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.15); }
}

@keyframes bgFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -20px) scale(1.2); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 5% 1.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .social-link:hover {
        transform: translateY(-3px) scale(1.05);
    }
}