/* ===================================
   EYB Ajans — Home Page Styles
   Awwwards Light Theme 
   =================================== */

/* ─── Hero Section (Massive Typography & Asymmetry) ─── */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--navbar-height) + 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 55vw; /* Prevent overlapping with the 45vw right image */
}

.hero-badge {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    color: var(--color-primary);
    margin-bottom: var(--space-8);
    position: relative;
    padding-left: var(--space-8);
}

.hero-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 2px;
    background: var(--color-primary);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 6rem) !important; /* Scaled down slightly to prevent overflow */
    font-weight: 700 !important; /* Bold instead of extrabold to reduce extreme horizontal width */
    letter-spacing: -0.02em !important;
    margin: 0;
    line-height: 1;
    color: var(--color-text-dark);
}

.hero-title .italic-text {
    font-family: var(--font-primary);
    font-style: italic;
    font-weight: 300;
    color: var(--color-primary);
}

.hero-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    margin-top: var(--space-16);
    align-items: end;
}

.hero-description {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    max-width: 500px;
}

/* Asymmetric Hero Image Mask */
.hero-image-mask {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45vw;
    height: 70vh;
    overflow: hidden;
    border-radius: var(--radius-3xl) 0 0 var(--radius-3xl);
    z-index: 1;
}

.hero-image-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1); /* for parallax */
}

@media (max-width: 1024px) {
    .hero-image-mask {
        display: none;
    }
    .hero-bottom-grid {
        grid-template-columns: 1fr;
    }
    .hero-content {
        max-width: 100%;
    }
}

/* ─── Marquee Section (Trust & Metrics) ─── */
.marquee-section {
    background: var(--color-bg-surface);
    padding: var(--space-8) 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    animation: marquee-scroll 30s linear infinite;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    margin-right: var(--space-16);
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-text-dark);
}

.marquee-item .metric {
    color: var(--color-primary);
}

.marquee-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── Services Bento Grid ─── */
.services-section {
    background: var(--color-bg);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    gap: var(--space-6);
}

.bento-card {
    background: var(--color-bg-surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background var(--transition-base);
    border: 1px solid var(--color-border-light);
}

.bento-card:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

/* First card is larger */
.bento-card:nth-child(1) {
    grid-column: span 2;
    background: var(--color-primary);
    color: var(--color-white);
}

.bento-card:nth-child(1) .card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border: none;
}

.bento-card:nth-child(1) .card-title,
.bento-card:nth-child(1) .card-text {
    color: var(--color-white);
}

.bento-card .card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--color-border);
}

.bento-card .card-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-2);
}

.bento-card .card-text {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-card:nth-child(1) {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .bento-card:nth-child(1) {
        grid-column: span 1;
    }
    .bento-card {
        min-height: 280px;
    }
}

/* ─── Portfolio Interactive List ─── */
.portfolio-section {
    background: var(--color-bg-surface);
    border-radius: var(--radius-3xl);
    margin: var(--space-12) var(--space-4);
    padding: var(--space-24) 0;
}

.portfolio-list {
    border-top: 1px solid var(--color-border);
}

.portfolio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-8) 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 2;
    text-decoration: none;
    color: var(--color-text-dark);
    transition: padding var(--transition-base);
}

.portfolio-item:hover {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
    font-weight: var(--font-extrabold);
    letter-spacing: var(--tracking-tighter);
    margin: 0;
    transition: color var(--transition-fast);
}

.portfolio-category {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* Cursor Follow Image Reveal */
.portfolio-hover-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 300px;
    pointer-events: none;
    opacity: 0;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
}

.portfolio-hover-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-item:hover ~ .portfolio-hover-img {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.portfolio-item:hover .portfolio-title {
    color: var(--color-primary);
}

@media (max-width: 1024px) {
    .portfolio-hover-img {
        display: none !important;
    }
    .portfolio-title {
        font-size: var(--text-3xl);
    }
}

/* ─── Pricing Cards (Clean Minimal) ─── */
.pricing-section {
    background: var(--color-bg);
}

.pricing-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-12) var(--space-8);
    transition: all var(--transition-base);
    text-align: center;
}

.pricing-card.featured {
    background: var(--color-white);
    box-shadow: var(--shadow-xl);
    transform: scale(1.02);
    border-color: var(--color-primary);
}

.pricing-card .price-amount {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4rem); /* Responsive, smaller size to prevent overflow */
    font-weight: var(--font-bold); /* Bold instead of extrabold to reduce width */
    color: var(--color-text-dark);
    line-height: 1;
    margin: var(--space-6) 0;
    word-break: break-word; /* Ensure long prices wrap */
}

.pricing-card .feature-list {
    text-align: left;
    margin-top: var(--space-8);
}

.pricing-card .feature-list li {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* ─── Custom Tailwind-like Utilities ─── */
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.m-0 { margin: 0; }
.ml-0 { margin-left: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-24 { margin-top: 6rem; }
.mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.pb-4 { padding-bottom: 1rem; }
.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }

.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.shrink-0 { flex-shrink: 0; }

.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.-top-24 { top: -6rem; }
.-bottom-24 { bottom: -6rem; }
.-left-24 { left: -6rem; }
.-right-24 { right: -6rem; }
.left-1\/2 { left: 50%; }

.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-64 { width: 16rem; }
.h-64 { height: 16rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.w-96 { width: 24rem; }
.h-96 { height: 24rem; }
.h-10 { height: 2.5rem; }
.w-3\/4 { width: 75%; }

.bg-white { background-color: var(--color-white); }
.bg-slate-50 { background-color: var(--color-bg); }
.bg-slate-100 { background-color: var(--color-bg-surface); }
.bg-transparent { background-color: transparent; }
.bg-primary { background-color: var(--color-primary); }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.text-white { color: var(--color-white); }
.text-slate-300 { color: var(--color-text-muted); }
.text-slate-400 { color: var(--color-text-secondary); }
.text-slate-800 { color: var(--color-text-dark); }
.text-slate-900 { color: var(--color-text-dark); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.italic { font-style: italic; }
.line-through { text-decoration: line-through; }

.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.opacity-0 { opacity: 0; }
.opacity-10 { opacity: 0.1; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.filter { filter: var(--tw-filter); }
.blur-\[100px\] { filter: blur(100px); }

.transform { transform: var(--tw-transform); }

.transition-transform { transition-property: transform; }
.transition-opacity { transition-property: opacity; }
.duration-300 { transition-duration: 300ms; }

.object-cover { object-fit: cover; }

.z-10 { z-index: 10; }

.space-y-4 > * + * { margin-top: 1rem; }

@media (min-width: 768px) {
    .md\:p-16 { padding: 4rem; }
    .md\:text-5xl { font-size: 3rem; }
    .md\:text-xl { font-size: 1.25rem; }
}
