/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for navbar */
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column-reverse;
        text-align: center;
        margin-top: var(--space-4);
    }
    .hero-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-inline: var(--space-2);
    }
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    .hero-visual {
        margin-bottom: var(--space-4);
    }
    .hero-3d-logo {
        max-width: 250px;
    }
}

.hero-title {
    margin-block-end: var(--space-4);
    opacity: 0;
    transform: translateY(20px);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--clr-secondary);
    margin-block-end: var(--space-6);
    opacity: 0;
    transform: translateY(20px);
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    opacity: 0;
    transform: translateY(20px);
}

/* Animation classes added by JS */
.hero-content.animate-in .hero-title {
    animation: fadeUp 0.8s forwards 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-content.animate-in .hero-subtitle {
    animation: fadeUp 0.8s forwards 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-content.animate-in .hero-actions {
    animation: fadeUp 0.8s forwards 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Header */
.section-header {
    margin-block-end: var(--space-8);
}
.section-header p {
    color: var(--clr-secondary);
    font-size: 1.125rem;
    margin-inline: auto; /* mx-auto equivalent */
}
.mx-auto { margin-inline: auto; }
.text-muted { color: var(--clr-text-muted); }

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
}

/* Service Card */
.service-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top left, var(--clr-primary-glow), transparent 60%);
    opacity: 0;
    transition: var(--transition-slow);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.service-icon {
    width: 48px;
    height: 48px;
    margin-block-end: var(--space-3);
    color: var(--clr-text-main);
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-block-end: var(--space-2);
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--clr-secondary);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Service Card Animated Hover Effects */
.service-icon svg {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
}
.service-card:hover .service-icon svg {
    transform: scale(1.1) translateY(-5px);
    color: #4A83D4; /* Light pulse color */
    filter: drop-shadow(0 0 10px rgba(74, 131, 212, 0.5));
}

/* Work Gallery */
.work-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-block-start: var(--space-6);
}

.work-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-6);
    transition: var(--transition-normal);
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(35, 64, 113, 0.2);
}

.work-visual {
    width: 150px;
    height: 150px;
    margin-bottom: var(--space-6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.work-info h3 { 
    font-size: 1.2rem; 
    line-height: 1.5;
    margin: 0;
    color: var(--clr-text-main);
    font-weight: 700;
}

/* --- Work SVG Animations --- */
svg[class^="anim-"] {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* 1. Brand Animation */
.brand-hex {
    transform-origin: center;
    animation: spinHex 10s linear infinite;
}
.brand-tri {
    transform-origin: center;
    animation: floatTri 4s ease-in-out infinite;
}
.brand-circle {
    animation: pulseCircle 2s ease-in-out infinite;
}

@keyframes spinHex {
    100% { transform: rotate(360deg); }
}
@keyframes floatTri {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(15deg); }
}
@keyframes pulseCircle {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; fill: #00d4ff; }
}

/* 2. Reels/Content Animation */
.reel-phone {
    transform-origin: center;
    animation: phoneTilt 6s ease-in-out infinite;
}
.reel-play {
    transform-origin: 50px 50px;
    animation: playPulse 2s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
}
.reel-like {
    animation: floatUp 3s ease-in infinite;
}
.reel-bubble {
    animation: floatUp 4s ease-in infinite 1s;
}

@keyframes phoneTilt {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}
@keyframes playPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); fill: var(--clr-primary-glow); }
}
@keyframes floatUp {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    20% { opacity: 1; transform: translateY(-10px) scale(1); }
    80% { opacity: 1; }
    100% { transform: translateY(-40px) scale(0.5); opacity: 0; }
}

/* 3. Marketing/Results Animation */
.chart-bar {
    transform-origin: bottom;
}
.work-item:hover .chart-bar {
    animation: barGrow 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.chart-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}
.work-item:hover .chart-line {
    animation: drawLine 1.5s ease-out forwards;
}
.chart-point {
    opacity: 0;
    transform: scale(0);
    transform-origin: 85px 25px;
}
.work-item:hover .chart-point {
    animation: popPoint 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.2s;
}

@keyframes barGrow {
    0% { transform: scaleY(0); }
    100% { transform: scaleY(1); }
}
@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}
@keyframes popPoint {
    to { opacity: 1; transform: scale(1.5); filter: drop-shadow(0 0 10px #00d4ff); }
}

/* Why Us Section */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}
@media (max-width: 768px) {
    .why-grid { grid-template-columns: 1fr; }
}
.why-list {
    margin-block-start: var(--space-4);
}
.why-list li {
    margin-block-end: var(--space-2);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.why-card-visual {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 400px;
    margin-inline: auto;
}
.pulse-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid var(--clr-primary-glow);
    animation: ping 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
    75%, 100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Partners Marquee */
.partners-section {
    padding-block: var(--space-6);
    background: var(--clr-surface);
    border-block: 1px solid var(--clr-surface-border);
    overflow: hidden;
}
.marquee {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
}
.marquee-content {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    animation: scroll 20s linear infinite;
    padding-inline: var(--space-2);
    font-family: var(--font-en-head);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--clr-surface-border);
    letter-spacing: 2px;
}
[dir="rtl"] .marquee-content {
    animation-direction: reverse;
}
.marquee-content .dot {
    color: var(--clr-primary);
}
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - var(--space-4))); }
}

/* Custom UI Animations */
.anim-bounce {
    animation: gentleBounce 2.5s infinite ease-in-out;
}
.anim-bounce:hover {
    animation-play-state: paused;
}
@keyframes gentleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0,212,255,0.3); }
}
