/* ===================================
   EYB Ajans — Base Styles
   Awwwards Light Theme & Reset
   =================================== */

/* ─── Reset ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

/* Lenis smooth scroll override */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

/* ─── Typography (Awwwards Style) ─── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text-dark);
}

h1 { font-size: clamp(var(--text-5xl), 8vw, var(--text-8xl)); font-weight: var(--font-extrabold); letter-spacing: var(--tracking-tighter); }
h2 { font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl)); letter-spacing: var(--tracking-tight); }
h3 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

strong { font-weight: var(--font-semibold); color: var(--color-text-dark); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol { list-style: none; }

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

button { cursor: pointer; border: none; background: none; }

/* ─── Layout ─── */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-sm { max-width: var(--container-sm); }
.container-md { max-width: var(--container-md); }
.container-lg { max-width: var(--container-lg); }
.container-2xl { max-width: var(--container-2xl); }

.section {
    padding: clamp(var(--space-16), 10vw, var(--space-32)) 0;
    position: relative;
}

.section-sm {
    padding: clamp(var(--space-10), 6vw, var(--space-16)) 0;
}

.section-lg {
    padding: clamp(var(--space-20), 15vw, var(--space-48)) 0;
}

/* ─── Section Headers ─── */
.section-header {
    margin-bottom: var(--space-16);
}

/* Awwwards specific: huge asymmetric headers instead of centered small ones */
.awwwards-title {
    font-size: clamp(1.8rem, 8vw, var(--text-7xl));
    line-height: 1.05;
    margin-bottom: var(--space-6);
    color: var(--color-text-dark);
    font-weight: 800;
    word-break: break-word;
    overflow-wrap: break-word;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-surface);
    color: var(--color-primary);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.section-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

.section-description {
    font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
    color: var(--color-text-secondary);
    max-width: 600px;
    font-weight: 400;
}

/* ─── Utility Classes ─── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-white { color: var(--color-white); }
.text-dark { color: var(--color-text-dark); }
.text-accent { color: var(--color-accent); }

.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }
.gap-16 { gap: var(--space-16); }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* ─── Selection ─── */
::selection {
    background: var(--color-text-dark);
    color: var(--color-white);
}

/* ─── Scrollbar (Clean Light) ─── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-4,
    .grid-3,
    .grid-2 { grid-template-columns: 1fr; }
    
    .section-header {
        margin-bottom: var(--space-10);
    }
}

/* ─── Preloader (Light Minimal) ─── */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--color-bg-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.preloader.hidden {
    transform: translateY(-100%);
}

.preloader-logo {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    color: var(--color-text-dark);
    overflow: hidden;
}

.preloader-logo span {
    display: inline-block;
    transform: translateY(100%);
    animation: revealUp 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: var(--color-border);
    margin-top: var(--space-4);
    position: relative;
    overflow: hidden;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    animation: loadBar 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes revealUp {
    to { transform: translateY(0); }
}
@keyframes loadBar {
    to { width: 100%; }
}

/* ─── Custom Awwwards Cursor (Triangle) ─── */
/* Hides default cursor on desktop */
@media (min-width: 1024px) {
    body, a, button, .cursor-hover {
        cursor: none !important;
    }
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    /* Create a triangle using border trick */
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 14px solid var(--color-primary);
    pointer-events: none;
    z-index: var(--z-cursor);
    transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, border-bottom-color 0.3s ease;
    transform-origin: center center;
    /* Optional rotation to look like an arrow */
    margin-left: -8px;
    margin-top: -7px;
}

.cursor-dot.hover-link {
    transform: scale(1.5) rotate(90deg);
    border-bottom-color: var(--color-accent);
}

.cursor-dot.hover-view {
    transform: scale(2) rotate(180deg);
    border-bottom-color: var(--color-text-dark);
}

@media (max-width: 1024px) {
    .cursor-dot {
        display: none !important;
    }
    body, a, button, .cursor-hover {
        cursor: auto !important;
    }
}

/* ─── Soft UI / Glass Utilities ─── */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
}

/* Soft shadow container (replaces dark neon glow) */
.soft-shadow {
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-base);
}

.soft-shadow:hover {
    box-shadow: var(--shadow-xl);
}

/* Text Masking for GSAP Lines */
.text-mask-wrapper {
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
}
@media (max-width: 768px) { .awwwards-title { font-size: clamp(1.5rem, 8vw, 2.2rem) !important; word-break: break-all; hyphens: auto; } }
