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

body {
    font-family: 'Lexend', sans-serif;
    background-color: #0f0f1a;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(240, 147, 251, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 60%, rgba(118, 75, 162, 0.08) 0%, transparent 40%);
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.1) rotate(3deg); }
}

/* Floating Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: 50%;
    right: -100px;
    animation-delay: -5s;
    animation-duration: 25s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: 10%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.orb-4 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
    top: 30%;
    left: 60%;
    animation-delay: -7s;
    animation-duration: 18s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

/* Particle dots */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: -2s; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: -4s; }
.particle:nth-child(4) { left: 50%; top: 60%; animation-delay: -6s; }
.particle:nth-child(5) { left: 70%; top: 30%; animation-delay: -8s; }
.particle:nth-child(6) { left: 80%; top: 70%; animation-delay: -10s; }
.particle:nth-child(7) { left: 90%; top: 50%; animation-delay: -12s; }
.particle:nth-child(8) { left: 15%; top: 60%; animation-delay: -3s; }
.particle:nth-child(9) { left: 65%; top: 15%; animation-delay: -7s; }
.particle:nth-child(10) { left: 45%; top: 85%; animation-delay: -11s; }

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger children animation */
.stagger-children .service-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible .service-card:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible .service-card:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible .service-card:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible .service-card:nth-child(4) { transition-delay: 0.4s; }

.stagger-children.visible .service-card {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.logo-container {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: lowercase;
    color: #ffffff;
    text-shadow:
        0 0 40px rgba(102, 126, 234, 0.6),
        0 0 80px rgba(118, 75, 162, 0.3);
    position: relative;
    display: inline-block;
    animation: logoReveal 1.2s ease-out forwards;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        #667eea 20%,
        #f093fb 50%,
        #667eea 80%,
        transparent 100%
    );
    border-radius: 2px;
    animation: pulse 2.5s ease-in-out infinite, lineExpand 1s ease-out 0.5s forwards;
    transform-origin: center;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes lineExpand {
    0% {
        transform: translateX(-50%) scaleX(0);
    }
    100% {
        transform: translateX(-50%) scaleX(1);
    }
}

.tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: taglineReveal 1s ease-out 0.6s forwards;
    opacity: 0;
}

@keyframes taglineReveal {
    0% {
        opacity: 0;
        letter-spacing: 10px;
    }
    100% {
        opacity: 0.7;
        letter-spacing: 2px;
    }
}

/* Glow ring animation around hero */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    animation: ringPulse 4s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(240, 147, 251, 0.08);
    border-radius: 50%;
    animation: ringPulse 4s ease-in-out infinite 1s;
}

@keyframes ringPulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    stroke: rgba(255, 255, 255, 0.5);
    transition: stroke 0.3s ease;
}

.scroll-indicator:hover svg {
    stroke: rgba(255, 255, 255, 0.9);
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(180deg, rgba(15, 15, 26, 0.95) 0%, transparent 100%);
    animation: navSlideDown 0.8s ease-out forwards;
}

@keyframes navSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: lowercase;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
}

.nav-logo:hover {
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.8);
    transform: scale(1.05);
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #f093fb);
    transition: width 0.3s ease;
}

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

/* Sections */
section {
    padding: 6rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #ffffff 0%, #667eea 50%, #f093fb 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 5s ease infinite;
}

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

.section-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #f093fb);
    margin-bottom: 2rem;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.section-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

/* About Section */
#about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    font-weight: 300;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, transparent 50%, rgba(240, 147, 251, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: rotate(45deg);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow:
        0 10px 40px rgba(102, 126, 234, 0.2),
        0 0 0 1px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateY(-8px) scale(1.02);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.service-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* Contact Section */
#contact {
    text-align: center;
    padding-bottom: 4rem;
}

#contact .section-line {
    margin: 0 auto 2rem auto;
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: inline-block;
    margin: 1rem 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-weight: 300;
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Dropdown Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    background: rgba(15, 15, 26, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    padding-top: 70px;
    padding-bottom: 1.5rem;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.mobile-menu ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s ease, background 0.2s ease;
}

.mobile-menu ul li:last-child a {
    border-bottom: none;
}

.mobile-menu ul li a:hover {
    color: #ffffff;
    background: rgba(102, 126, 234, 0.08);
}

/* Tablet & Mobile Responsive */
@media (max-width: 1024px) {
    .orb-1 { width: 350px; height: 350px; }
    .orb-2 { width: 300px; height: 300px; }
    .orb-3 { width: 250px; height: 250px; }
    .orb-4 { width: 200px; height: 200px; }
}

@media (max-width: 768px) {
    .logo {
        font-size: 36px;
    }

    /* Scale hero rings down so they don't overflow */
    .hero::before {
        width: 80vw;
        height: 80vw;
    }

    .hero::after {
        width: 95vw;
        height: 95vw;
    }

    /* Shrink orbs further */
    .orb-1 { width: 250px; height: 250px; top: -80px; left: -80px; }
    .orb-2 { width: 220px; height: 220px; right: -60px; }
    .orb-3 { width: 180px; height: 180px; }
    .orb-4 { width: 160px; height: 160px; }

    nav {
        padding: 1rem 1.5rem;
    }

    /* Hide nav links, show hamburger */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .contact-item {
        display: block;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 28px;
    }

    .tagline {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }

    /* Hero rings fit within screen */
    .hero::before {
        width: 85vw;
        height: 85vw;
    }

    .hero::after {
        width: 98vw;
        height: 98vw;
    }

    /* Shrink orbs to avoid overflow */
    .orb-1 { width: 180px; height: 180px; top: -60px; left: -60px; }
    .orb-2 { width: 160px; height: 160px; right: -40px; }
    .orb-3 { width: 140px; height: 140px; }
    .orb-4 { width: 120px; height: 120px; }

    nav {
        padding: 0.9rem 1.2rem;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    section {
        padding: 3.5rem 1.2rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    #about p {
        font-size: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .cta-button {
        padding: 0.85rem 2rem;
        font-size: 0.95rem;
    }
}
