/* ============================================
   DIGITAL EXPERTS - PAGE-SPECIFIC STYLES
   ============================================ */

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--space-20);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-xl);
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation: float 8s ease-in-out infinite, rotate 30s linear infinite;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation: floatSlow 10s ease-in-out infinite;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
}

.hero-shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 25%;
    animation: float 6s ease-in-out infinite reverse;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-badge {
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: var(--text-7xl);
    font-weight: var(--font-black);
    line-height: 1.05;
    margin-bottom: var(--space-6);
}

.hero-title .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.hero-title .word-inner {
    display: inline-block;
    transform: translateY(100%);
    animation: slideUp 0.8s var(--ease-out) forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.hero-title .word:nth-child(1) .word-inner {
    animation-delay: 0.1s;
}

.hero-title .word:nth-child(2) .word-inner {
    animation-delay: 0.2s;
}

.hero-title .word:nth-child(3) .word-inner {
    animation-delay: 0.3s;
}

.hero-title .word:nth-child(4) .word-inner {
    animation-delay: 0.4s;
}

.hero-title .word:nth-child(5) .word-inner {
    animation-delay: 0.5s;
}

.hero-title .word:nth-child(6) .word-inner {
    animation-delay: 0.6s;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--gray-300);
    margin-bottom: var(--space-10);
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out) 1s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    color: var(--gray-500);
    font-size: var(--text-sm);
    animation: bounce 2s infinite 2s;
}

.hero-scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray-600);
    border-radius: 12px;
    position: relative;
}

.hero-scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-light);
    border-radius: 2px;
    animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }
}

/* TRUST/STATS SECTION */
.trust-section {
    padding: var(--space-20) 0;
    background: var(--black-light);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* SERVICES PREVIEW */
.services-section {
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* PROCESS SECTION */
.process-section {
    background: var(--black-light);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-4);
    position: relative;
}

.process-line {
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--gray-800);
}

.process-line-fill {
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 1.5s var(--ease-out);
}

.process-line-fill.active {
    width: 100%;
}

.process-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: var(--black);
    border: 2px solid var(--gray-700);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    transition: all 0.5s var(--ease-out);
}

.process-item.active .process-icon {
    background: var(--gradient-primary);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.process-item h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.process-item p {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

@media (max-width: 968px) {
    .process-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .process-line {
        display: none;
    }
}

/* WHY CHOOSE US */
.why-section {
    position: relative;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.why-card {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all 0.4s var(--ease-out);
}

.why-card:hover {
    background: var(--glass-hover);
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateX(10px);
}

.why-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
}

.why-content h4 {
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
}

.why-content p {
    font-size: var(--text-sm);
    color: var(--gray-400);
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA SECTION */
.cta-section {
    position: relative;
    padding: var(--space-24) 0;
    background: var(--black-light);
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 60%);
    pointer-events: none;
    animation: glowPulse 3s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-6);
}

.cta-content p {
    font-size: var(--text-xl);
    color: var(--gray-300);
    margin-bottom: var(--space-10);
}

/* TESTIMONIALS */
.testimonials-section {
    position: relative;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

/* PAGE HEADERS */
.page-header {
    position: relative;
    padding: var(--space-40) 0 var(--space-20);
    text-align: center;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
}

.page-header h1 {
    font-size: var(--text-6xl);
    margin-bottom: var(--space-4);
}

.page-header p {
    font-size: var(--text-xl);
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
}

/* CONTACT PAGE */
.contact-section {
    padding: var(--space-20) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.contact-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
}

.contact-item p {
    color: var(--gray-400);
}

.contact-item a {
    color: var(--primary-light);
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--white);
}

.contact-form-wrapper {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
}

.contact-form-wrapper h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-8);
}

.contact-map {
    margin-top: var(--space-16);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    filter: grayscale(100%) invert(92%) contrast(83%);
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}