﻿/* BASE.CSS - FLUID TYPOGRAPHY SİSTEMİ */
:root {
    /* Renk paleti */
    --bg-color: #0A0E1A;
    --main-bg: #121A2C;
    --secondary-bg: #1F2943;
    --text-color: #E0E0E0;
    --text-secondary: #B0B0B0;
    --accent-color: #4FC3F7;
    --success-color: #00C851;
    --warning-color: #FFBB33;
    --danger-color: #FF4444;
    --info-color: #33B5E5;
    /* Gradient renkler */
    --gradient-primary: linear-gradient(135deg, #4FC3F7, #29B6F6);
    --gradient-success: linear-gradient(135deg, #00C851, #007E33);
    --gradient-warning: linear-gradient(135deg, #FFBB33, #FF8800);
    --gradient-danger: linear-gradient(135deg, #FF4444, #CC0000);
    /* FLUID TYPOGRAPHY SİSTEMİ */
    --fluid-min-width: 20rem; /* 320px - mobile */
    --fluid-max-width: 240rem; /* 3840px - 4K */
    /* Fluid Font Scale */
    --text-xs-fluid: clamp(0.5rem, 0.25vw + 0.4rem, 0.65rem);
    --text-sm-fluid: clamp(0.65rem, 0.35vw + 0.5rem, 0.8rem);
    --text-base-fluid: clamp(0.8rem, 0.45vw + 0.6rem, 0.95rem);
    --text-lg-fluid: clamp(0.9rem, 0.5vw + 0.7rem, 1.1rem);
    --text-xl-fluid: clamp(1rem, 0.55vw + 0.8rem, 1.25rem);
    --text-2xl-fluid: clamp(1.1rem, 0.6vw + 0.9rem, 1.4rem);
    --text-3xl-fluid: clamp(1.25rem, 0.7vw + 1rem, 1.6rem);
    --text-4xl-fluid: clamp(1.4rem, 0.8vw + 1.1rem, 1.8rem);
    /* Fluid Spacing Scale */
    --space-xs-fluid: clamp(0.25rem, 0.2vw + 0.2rem, 0.4rem);
    --space-sm-fluid: clamp(0.4rem, 0.3vw + 0.3rem, 0.6rem);
    --space-md-fluid: clamp(0.6rem, 0.4vw + 0.4rem, 0.8rem);
    --space-lg-fluid: clamp(0.8rem, 0.6vw + 0.6rem, 1.2rem);
    --space-xl-fluid: clamp(1rem, 0.8vw + 0.8rem, 1.5rem);
    --space-2xl-fluid: clamp(1.2rem, 1vw + 0.8rem, 1.8rem);
    --space-3xl-fluid: clamp(1.5rem, 1.2vw + 1rem, 2.2rem);
    --space-4xl-fluid: clamp(1.8rem, 1.5vw + 1.2rem, 2.8rem);
    --space-5xl-fluid: clamp(2.2rem, 2vw + 1.5rem, 3.5rem);
    --space-6xl-fluid: clamp(2.8rem, 2.5vw + 1.8rem, 4.5rem);
    --space-7xl-fluid: clamp(3.5rem, 3vw + 2.2rem, 5.5rem);
    --space-8xl-fluid: clamp(4.5rem, 4vw + 2.8rem, 7rem);
    --space-9xl-fluid: clamp(5.5rem, 5vw + 3.5rem, 9rem);
    --space-10xl-fluid: clamp(7rem, 6vw + 4.5rem, 11rem);
    /* Fluid Container */
    --container-fluid: clamp(20rem, 95vw, 240rem);
    /* Fluid Border Radius */
    --radius-sm-fluid: clamp(0.25rem, 0.3vw + 0.2rem, 0.5rem);
    --radius-md-fluid: clamp(0.375rem, 0.5vw + 0.3rem, 0.75rem);
    --radius-lg-fluid: clamp(0.5rem, 0.8vw + 0.4rem, 1rem);
    /* Boyutlar - rem bazlı */
    --topbar-height: 2.5rem;
    --navbar-height: 6 rem;
    --container-width: 160rem;
    --container-slider-witdh: 100%;
    --container-slider-height: 37.7rem;
    --border-radius: 0.5rem;
    --table-base: 35rem;
    --transition: all 0.3s ease;
    /* Geleneksel Font Boyutları (backward compatibility) */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    /* Opaklık değerleri */
    --opacity-low: 0.1;
    --opacity-medium: 0.3;
    --opacity-high: 0.7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px; /* 1rem = 16px */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    /* FLUID BODY FONT */
    font-size: var(--text-base-fluid);
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

    a:hover {
        color: var(--accent-color);
    }

ul {
    list-style: none;
    margin: 0;
}

/* FLUID CONTAINER */
.container {
    width: 100%;
    max-width: var(--container-fluid);
    margin: 0 auto;
    padding: 0 var(--space-lg-fluid);
}

/* FLUID CAPTION ITEM */
.caption-item {
    max-width: 80%;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    /* FLUID PADDING */
    padding: var(--space-md-fluid) var(--space-lg-fluid);
    border-radius: var(--radius-md-fluid);
    margin: var(--space-xs-fluid) 0;
    color: white;
    position: relative;
    z-index: 3;
    /* FLUID FONT */
    font-size: var(--text-xl-fluid);
    font-style: normal;
    font-weight: normal;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

    .caption-item.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* HEADINGS - FLUID */
h1 {
    font-size: var(--text-4xl-fluid);
    line-height: 1.2;
}

h2 {
    font-size: var(--text-3xl-fluid);
    line-height: 1.3;
}

h3 {
    font-size: var(--text-2xl-fluid);
    line-height: 1.4;
}

h4 {
    font-size: var(--text-xl-fluid);
    line-height: 1.4;
}

h5 {
    font-size: var(--text-lg-fluid);
    line-height: 1.5;
}

h6 {
    font-size: var(--text-base-fluid);
    line-height: 1.6;
}

/* BUTTON BASE - FLUID */
.btn-fluid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* FLUID BUTTON */
    padding: var(--space-sm-fluid) var(--space-lg-fluid);
    font-size: var(--text-base-fluid);
    border-radius: var(--radius-md-fluid);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 500;
}

/* CARD BASE - FLUID */
.card-fluid {
    background: var(--main-bg);
    /* FLUID CARD */
    padding: var(--space-lg-fluid);
    border-radius: var(--radius-lg-fluid);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* MOBILE MENÜ SCROLL DÜZENLEMESİ */
@media (max-width: 62rem) {
    body.menu-open {
        overflow: hidden;
    }

    .nav-menu-container {
        max-height: 80vh !important;
        overflow-y: auto !important;
    }
}

/* GELENEKSEL RESPONSIVE (backward compatibility) */
@media (max-width: 75rem) {
    html {
        font-size: 15px;
    }

    .caption-item {
        font-size: var(--text-lg);
    }
}

@media (max-width: 62rem) {
    html {
        font-size: 14px;
    }

    .caption-item {
        font-size: var(--text-base);
        max-width: 90%;
    }
}

@media (max-width: 48rem) {
    html {
        font-size: 13px;
    }

    .caption-item {
        font-size: var(--text-sm);
        max-width: 95%;
    }
}

@media (max-width: 36rem) {
    html {
        font-size: var(--text-xs);
    }

    .caption-item {
        font-size: var(--text-xs);
    }

    .container {
        padding: 0 var(--space-md-fluid);
    }
}

/* Body scroll lock for mobile menu */
body.menu-open {
    overflow: hidden;
}

/* Dropdown arrow transitions */
.dropdown-arrow {
    transition: transform 0.3s ease;
}
/* Header container için */
.header-container {
    position: relative;
}

/* Topbar scroll için */
.topbar-contact {
    scroll-behavior: smooth;
}

/* iOS için momentum scroll */
.topbar-contact {
    -webkit-overflow-scrolling: touch;
}

/* BODY LAYOUT - FOOTER ALTTA */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto;
    width: 100%;
}

.ultra-compact-footer {
    flex-shrink: 0;
}

/* Fade Animasyonları - Global CSS'e ekle */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}