/* ==========================================================================
   STYLE.CSS - Global Design System & Base Skeleton
   Agency Website - BYZ Medya
   ========================================================================== */

/* ==========================================================================
   1. CSS VARIABLES (Design Tokens)
   ========================================================================== */
:root {
    /* Colors - Brand */
    --primary-red: #E60000;
    --primary-red-light: rgba(230, 0, 0, 0.1);
    --primary-red-glow: rgba(230, 0, 0, 0.4);
    
    /* Colors - Neutrals */
    --deep-black: #080808;
    --dark-bg: #05050a;
    --dark-surface: #0a0a0a;
    --soft-white: #FFFFFF;
    --platinum: #F9F9F9;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-muted-dark: rgba(255, 255, 255, 0.4);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-regular: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-2xl: 80px;
    --spacing-3xl: 100px;
    
    /* Layout */
    --container-width: 1200px;
    --container-padding: 5%;
    
    /* Transitions */
    --transition-fast: all 0.3s ease;
    --transition-smooth: all 0.4s ease;
    --transition-premium: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows */
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-red: 0 10px 30px rgba(230, 0, 0, 0.3);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 15px;
    --radius-full: 50px;
}

/* ==========================================================================
   2. BASE RESET
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #0b0b0b; /* sitenin ana rengi */

}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    background-color: var(--dark-bg);
    color: var(--soft-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   3. THEME VARIANTS
   ========================================================================== */

/* Dark Theme - Apply to body or section */
.theme-dark,
body.theme-dark {
    background-color: var(--dark-bg);
    color: var(--soft-white);
}

/* ==========================================================================
   4. CUSTOM BROWSER STYLES
   ========================================================================== */

/* Text Selection */
::selection {
    background-color: var(--primary-red);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--deep-black);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}

/* ==========================================================================
   5. LAYOUT SYSTEM
   ========================================================================== */

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.container-narrow {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

/* Section Spacing */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-lg {
    padding: var(--spacing-3xl) 0;
}

/* ==========================================================================
   6. TYPOGRAPHY UTILITIES
   ========================================================================== */

.text-accent {
    color: var(--primary-red);
    text-shadow: 0 0 15px var(--primary-red-glow);
}

.tagline {
    color: var(--primary-red);
    letter-spacing: 3px;
    font-weight: var(--font-weight-bold);
    font-size: 0.85rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.subtitle {
    color: var(--primary-red);
    font-weight: var(--font-weight-bold);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.lead-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 600px;
}

/* ==========================================================================
   7. BUTTONS
   ========================================================================== */

.btn {
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 0.95rem;
    display: inline-block;
    cursor: pointer;
    border: none;
    transition: var(--transition-premium);
}

.btn-primary {
    background: var(--primary-red);
    color: #fff;
    border: 1px solid var(--primary-red);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: var(--shadow-red);
}

.btn-outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--deep-black);
}

.btn-outline-dark {
    background: transparent;
    border: 1px solid var(--border-light);
    color: #fff;
}

.btn-outline-dark:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* ==========================================================================
   8. UTILITY CLASSES
   ========================================================================== */

/* Display */
.relative { position: relative; z-index: 1; }
.overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.85); 
}

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Flexbox */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* Grid */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); }

/* Stats Grid (specific utility) */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
}

.stat-item span { 
    font-size: 4rem; 
    font-weight: var(--font-weight-extrabold); 
    color: var(--primary-red); 
}

/* ==========================================================================
   9. ANIMATIONS & EFFECTS
   ========================================================================== */

/* Reveal Animation Base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
    backface-visibility: hidden;
}
main {
    opacity: 0;
    transition: opacity 0.4s ease;
}

body:not(.loading) main {
    opacity: 1;
}


.reveal.is-visible,
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Blink Animation */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ==========================================================================
   10. PRELOADER
   ========================================================================== */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--deep-black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.preloader-content {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-extrabold);
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--soft-white);
    letter-spacing: 2px;
    text-align: center;
}

#typewriter-text {
    color: var(--soft-white);
}

.cursor {
    color: var(--primary-red);
    text-shadow: 0 0 10px var(--primary-red-glow);
    animation: blink 0.8s infinite;
    margin-left: 5px;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

body.loading {
    overflow: hidden;
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3 { grid-template-columns: 1fr; }
    .grid-auto { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    
    .section { padding: var(--spacing-xl) 0; }
    .section-lg { padding: var(--spacing-2xl) 0; }
}
