/* ============================================
   HOME PAGE STYLES
   ============================================ */

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 100vh;
    padding-top: 100px;
    gap: 20px;
}

.hero-content {
    padding-right: 0px;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero .subtitle {
    font-size: 0.9rem;
    color: var(--text-gray);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 2.4rem;
}

.tagline {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--primary);
}

/* Laptop animation */
.laptop-container {
    position: relative;
    width: 100%;
    perspective: 1500px;
}

.laptop-wrapper {
    position: relative;
    transform-style: preserve-3d;
}

.laptop-img {
    width: 100%;
    filter: brightness(1) contrast(1.1);
    position: relative;
    z-index: 5;
}

.hologram-overlay {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.holo-funnel {
    position: absolute;
    bottom: 40%;
    left: 25%;
    width: 50%;
    height: 50%;
    background: conic-gradient(from 180deg at 50% 100%, transparent, rgba(6, 182, 212, 0.15) 40%, rgba(59, 130, 246, 0.25) 50%, rgba(6, 182, 212, 0.15) 60%, transparent);
    transform-origin: bottom center;
    animation: funnel-spin 10s linear infinite;
    filter: blur(8px);
    mix-blend-mode: screen;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%) rotateX(75deg);
}

.ring-1 { width: 300px; height: 300px; bottom: 30%; animation: spin-flat 8s linear infinite reverse; }
.ring-2 { width: 200px; height: 200px; bottom: 40%; border-color: rgba(139, 92, 246, 0.3); animation: spin-flat 5s linear infinite; }

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px var(--cyan);
    bottom: 35%;
    left: 50%;
}

.p1 { animation: rise 3s infinite 0s; left: 45%; }
.p2 { animation: rise 4s infinite 1s; left: 55%; background: var(--accent); box-shadow: 0 0 15px var(--accent); }
.p3 { animation: rise 3.5s infinite 2s; left: 50%; }


/* Floating particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
    overflow: visible;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 4s ease-in-out infinite;
}

.particle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.8) 0%, transparent 70%);
    border-radius: 50%;
}

/* Particle positions and delays */
.particle:nth-child(1) { left: 20%; bottom: 30%; animation-delay: 0s; animation-duration: 3.5s; }
.particle:nth-child(2) { left: 35%; bottom: 25%; animation-delay: 0.5s; animation-duration: 4s; }
.particle:nth-child(3) { left: 50%; bottom: 35%; animation-delay: 1s; animation-duration: 3.2s; }
.particle:nth-child(4) { left: 65%; bottom: 28%; animation-delay: 1.5s; animation-duration: 4.2s; }
.particle:nth-child(5) { left: 80%; bottom: 32%; animation-delay: 2s; animation-duration: 3.8s; }
.particle:nth-child(6) { left: 25%; bottom: 20%; animation-delay: 0.8s; animation-duration: 4.5s; }
.particle:nth-child(7) { left: 55%; bottom: 22%; animation-delay: 1.8s; animation-duration: 3.6s; }
.particle:nth-child(8) { left: 75%; bottom: 25%; animation-delay: 2.5s; animation-duration: 4s; }

/* Different particle colors */
.particle:nth-child(2)::after,
.particle:nth-child(5)::after { background: radial-gradient(circle, rgba(139, 92, 246, 0.8) 0%, transparent 70%); }
.particle:nth-child(3)::after,
.particle:nth-child(7)::after { background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, transparent 70%); }

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-120px) scale(1);
    }
}

/* Orbit pulsing effect */
.orbit-aura ellipse {
    animation: orbitPulse 2s ease-in-out infinite;
}

@keyframes orbitPulse {
    0%, 100% { stroke-opacity: 0.8; }
    50% { stroke-opacity: 1; }
}

/* Orbiting Aura Effect */
.orbit-defs {
    position: absolute;
    width: 0;
    height: 0;
}

.orbit-ring-wrapper {
    position: absolute;
    top: 55%;
    left: 50%;
    width: 155%;
    height: 155%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.orbit-aura {
    width: 100%;
    height: 100%;
    transform: rotateX(72deg);
}

/* Back orbits - behind the laptop */
.orbit-back-wrapper {
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 100% 47%, 0 47%);
}

/* Front orbits - in front of the laptop */
.orbit-front-wrapper {
    z-index: 10;
    clip-path: polygon(0 47%, 100% 47%, 100% 100%, 0 100%);
}

/* Orbit 1 - Main horizontal orbit */
.orbit-ring-wrapper:not(.orbit-2):not(.orbit-3) .orbit-aura {
    transform: rotateX(72deg) rotateZ(0deg);
}

/* Orbit 2 - Tilted left, larger to avoid collision */
.orbit-2 {
    width: 180%;
    height: 180%;
    opacity: 0.9;
}

.orbit-2 .orbit-aura {
    transform: rotateX(72deg);
}

/* Orbit 3 - Tilted right */
.orbit-3 {
    width: 175%;
    height: 175%;
    opacity: 0.75;
}

.orbit-3 .orbit-aura {
    transform: rotateX(75deg) rotateY(-10deg) rotateZ(6deg);
}

/* Services preview */
.services-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-mini {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.service-mini:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.service-mini .icon-box {
    margin: 0 auto 16px;
}

.service-mini h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    letter-spacing: 3px;
}

.service-mini .price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
}

.service-mini .service-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* CTA section */
.cta-section {
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section h2 {
    margin-bottom: 20px;
    position: relative;
}

.cta-section > p {
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-section .btn-group {
    justify-content: center;
    position: relative;
}

/* Card paragraph margin */
.card p {
    margin-top: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        padding: 60px 0 60px;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero .subtitle {
        margin: 0 auto 30px;
        font-size: 0.8rem;
    }

    .hero .btn-group {
        justify-content: center;
    }

    .laptop-container {
        order: -1;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .services-preview {
        grid-template-columns: repeat(2, 1fr);
    }

    .orbit-ring-wrapper {
        width: 190%;
        height: 190%;
    }

    .orbit-2 {
        width: 200%;
        height: 200%;
    }

    .orbit-3 {
        width: 210%;
        height: 210%;
    }
}

@media (max-width: 600px) {
    .services-preview {
        grid-template-columns: 1fr;
    }

    .orbit-ring-wrapper {
        width: 160%;
        height: 160%;
    }

    .orbit-2 {
        width: 170%;
        height: 170%;
    }

    .orbit-3 {
        width: 180%;
        height: 180%;
    }

    .particle {
        width: 3px;
        height: 3px;
    }

    .particle::after {
        width: 8px;
        height: 8px;
    }
}
