/* Index Page Specific Styles */

/* Header (Absolute for Hero Overlay) */
/* Header styles moved to global.css */

/* Hero Section (Dark 3D) */
.hero-dark {
    background-color: var(--dark-bg);
    padding: 12rem 0 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    perspective: 1200px;
    /* Enable 3D space */
}

/* Animated Background */
.hero-bg-animated {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

.hero-glow-1,
.hero-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float-glow 8s ease-in-out infinite;
}

.hero-glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-blue), transparent);
    top: -100px;
    left: -100px;
}

.hero-glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #7B2CBF, transparent);
    bottom: -200px;
    right: -200px;
    animation-delay: 4s;
}

@keyframes float-glow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }
}

/* 3D Content Wrapper */
.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.hero-3d-wrapper {
    max-width: 900px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* 3D Depth Elements */
.badge {
    transform: translateZ(50px);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--white);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge .dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-blue);
}

.hero-title {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    transform: translateZ(80px);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 400;
    transform: translateZ(40px);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    transform: translateZ(60px);
}

/* Glass Button override for Hero */
.btn-glass {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px) translateZ(0);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services and other sections */
.services-section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.section-header p {
    max-width: 600px;
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.link-arrow:hover {
    gap: 0.5rem;
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1), 0 1px 2px rgba(16, 24, 40, 0.06);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -8px rgba(16, 24, 40, 0.08);
}

.card-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon-box span {
    font-size: 28px;
}

/* Icon Colors */
.blue-soft {
    background-color: var(--blue-soft);
    color: var(--blue-icon);
}

.pink-soft {
    background-color: var(--pink-soft);
    color: var(--pink-icon);
}

.purple-soft {
    background-color: var(--purple-soft);
    color: var(--purple-icon);
}

.green-soft {
    background-color: var(--green-soft);
    color: var(--green-icon);
}

.indigo-soft {
    background-color: var(--indigo-soft);
    color: var(--indigo-icon);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.cta-card {
    background-color: #F5F9FF;
    border: 2px dashed var(--blue-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.rocket-icon {
    font-size: 48px;
    color: var(--primary-blue);
}

/* Why Choose Us */
.why-us-section {
    background-color: #0B1120;
    padding: 6rem 0;
    margin: 4rem 1rem;
    border-radius: var(--radius-lg);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.why-us-text h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.why-us-text p {
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    color: var(--primary-blue);
    font-size: 2rem;
    background: rgba(0, 102, 255, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

.feature-item h4 {
    color: var(--white);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.feature-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.why-us-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card p {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tech Stack */
.tech-stack {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--white);
}

.tech-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text-light);
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.tech-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Optional: Fade edges */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.tech-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.tech-item span {
    color: var(--primary-blue);
    font-size: 1.5rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.tech-stack:hover .tech-track {
    animation-play-state: paused;
}

/* Footer styles are now in global.css */



/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .why-us-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-bg);
        z-index: 1000;
        justify-content: center;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease-in-out;
    }

    .nav.active {
        visibility: visible;
        opacity: 1;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    /* Tech Stack Mobile */
    .tech-label {
        font-size: 0.65rem;
        margin-bottom: 2rem;
    }

    .tech-track {
        gap: 2rem;
    }

    .tech-item {
        font-size: 1rem;
    }

    .tech-item span {
        font-size: 1.25rem;
    }

    .why-us-section {
        padding: 4rem 0;
        margin: 2rem 1rem;
    }

    .nav-list a {
        font-size: 1.5rem;
        color: var(--white);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .why-us-stats {
        grid-template-columns: 1fr;
    }


}