/**
 * TPL SOFT - Main CSS
 * Ana stil dosyası: CSS değişkenleri, reset, temel stiller
 */

/* ──────────────────────────────────────────────── */
/* CSS DEĞİŞKENLERİ                                   */
/* ──────────────────────────────────────────────── */

:root {
    /* ─── Arka Planlar ─── */
    --bg:           #080808;   /* Site ana arka planı */
    --bg-alt:       #0F0F0F;   /* Alternatif section (zebra pattern) */
    --surface:      #161616;   /* Kart, panel arka planı */
    --surface-2:    #1E1E1E;   /* Hover durumu, input arka planı */
    --surface-3:    #262626;   /* Active, seçili durum */

    /* ─── Kenarlar ─── */
    --border:       #2A2A2A;
    --border-red:   rgba(220, 20, 40, 0.35);
    --border-hover: rgba(220, 20, 40, 0.7);

    /* ─── Marka Renkleri ─── */
    --red:          #DC1428;   /* Logodaki kırmızı */
    --red-dark:     #A80F1F;   /* Hover, daha koyu kırmızı */
    --red-light:    #FF2A40;   /* Aktif, parlak kırmızı */
    --red-glow:     rgba(220, 20, 40, 0.18);
    --red-glow-lg:  rgba(220, 20, 40, 0.08);

    --white:        #FFFFFF;
    --wolf-gray:    #A8A8B8;   /* Kurt'un gri tonu */
    --wolf-gray-dk: #6B6B7A;   /* Koyu gri */

    /* ─── Metinler ─── */
    --text:         #F2F2F2;   /* Ana metin */
    --text-muted:   #8A8A9A;   /* İkincil metin */
    --text-dim:     #4A4A5A;   /* Çok soluk metin */
    --text-red:     #FF3347;   /* Vurgulu kırmızı metin */

    /* ─── Durum Renkleri ─── */
    --success:      #22C55E;
    --warning:      #F59E0B;
    --danger:       #EF4444;
    --info:         #3B82F6;

    /* ─── Tipografi ─── */
    --font-heading: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

    /* ─── Border Radius ─── */
    --radius-xs:  4px;
    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  22px;
    --radius-xl:  36px;
    --radius-full: 9999px;

    /* ─── Gölge & Glow ─── */
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.5);
    --shadow-md:   0 4px 20px rgba(0,0,0,0.6);
    --shadow-lg:   0 8px 40px rgba(0,0,0,0.7);
    --shadow-red:  0 0 24px rgba(220,20,40,0.3), 0 0 60px rgba(220,20,40,0.12);
    --shadow-card: 0 2px 16px rgba(0,0,0,0.8);

    /* ─── Geçiş ─── */
    --ease:     cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.25s;
    --transition: var(--duration) var(--ease);

    /* ─── Spacing ─── */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* ─── Layout ─── */
    --container-max: 1280px;
    --header-height: 80px;
}

/* ──────────────────────────────────────────────── */
/* RESET                                             */
/* ──────────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ──────────────────────────────────────────────── */
/* TEMEL STİLLER                                    */
/* ──────────────────────────────────────────────── */

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

a:hover {
    color: var(--red-light);
}

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

ul, ol {
    list-style: none;
}

/* ──────────────────────────────────────────────── */
/* TYPOGRAPHY                                        */
/* ──────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: var(--space-md);
}

/* ──────────────────────────────────────────────── */
/* HERO WOLF WATERMARK                               */
/* ──────────────────────────────────────────────── */

#hero .wolf-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    max-width: 450px;
    min-width: 280px;
    height: auto;
    object-fit: contain;
    opacity: 0.025;
    filter: grayscale(100%);
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 1024px) {
    #hero .wolf-bg {
        width: 25%;
        max-width: 350px;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    #hero .wolf-bg {
        width: 40%;
        max-width: 250px;
        min-width: 150px;
        opacity: 0.02;
    }
}

@media (max-width: 480px) {
    #hero .wolf-bg {
        width: 50%;
        max-width: 200px;
        min-width: 120px;
        opacity: 0.015;
    }
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* ──────────────────────────────────────────────── */
/* HERO CONTENT Z-INDEX                              */
/* ──────────────────────────────────────────────── */

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

#hero .hero-gradient {
    z-index: 1;
}

/* ──────────────────────────────────────────────── */
/* RESPONSIVE ORME KORUMASI                            */
/* ──────────────────────────────────────────────── */

/* Container genişlikleri mobilde daha çok kullan */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    /* Body scroll kilitlemesini kaldır */
    body {
        overflow-x: hidden;
        width: 100vw;
    }

    .container {
        padding: 0 var(--space-md);
        max-width: 100vw;
    }

    /* Hero mobilde tam ekran */
    #hero {
        min-height: 100vh;
        height: auto;
        padding: var(--space-3xl) 0;
    }

    #hero .container {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    #hero .hero-content {
        width: 100%;
        padding: 0 var(--space-md);
    }

    #hero .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    #hero .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    #hero .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    #hero .wolf-bg {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 70%;
        max-width: 200px;
        opacity: 0.03;
    }

    section {
        padding: var(--space-xl) 0;
    }

    .section-header {
        padding: 0 var(--space-md);
        margin-bottom: var(--space-lg);
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 var(--space-md);
    }

    /* Grid sistemleri mobilde tek kolon */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
        gap: var(--space-md) !important;
    }

    .stats-section .grid-3 {
        grid-template-columns: 1fr !important;
        gap: var(--space-sm) !important;
    }

    /* Stats mobilde tek kolon */
    .stat-item {
        text-align: center;
    }

    /* Navbar mobil */
    .navbar-logo img {
        height: 32px;
        width: auto;
    }

    .navbar-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--surface);
        padding: var(--space-md);
        gap: var(--space-sm);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        border-bottom: 1px solid var(--border);
        z-index: 100;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .navbar-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-nav a {
        width: 100%;
        text-align: center;
        padding: var(--space-md);
        border-bottom: 1px solid var(--border);
    }

    .navbar-nav a:last-child {
        border-bottom: none;
    }

    /* Footer mobilde */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: 0 var(--space-md);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
        padding: 0 var(--space-md);
    }

    .footer-social {
        justify-content: center;
    }

    /* Cards mobilde */
    .card {
        padding: var(--space-md);
    }

    .card-body {
        padding: 0;
    }

    /* Contact form mobilde */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    /* Butonlar mobilde */
    .btn {
        padding: 12px 20px;
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 14px 24px;
    }

    /* Form mobilde */
    .form-input, .form-textarea, .form-select {
        font-size: 16px; /* iOS zoom önleme */
    }

    /* İletişim section mobilde */
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
}

/* ──────────────────────────────────────────────── */
/* TABLET AYARLARI (768px - 1024px)               */
/* ──────────────────────────────────────────────── */

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #hero .wolf-bg {
        width: 25%;
        max-width: 350px;
    }

    /* Tablet'te stats 3 kolon */
    .stats-section .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ──────────────────────────────────────────────── */
/* DESKTOP > 1024px                                  */
/* ──────────────────────────────────────────────── */

@media (min-width: 1025px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-muted);
}

.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }

/* ──────────────────────────────────────────────── */
/* CONTAINER                                        */
/* ──────────────────────────────────────────────── */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ──────────────────────────────────────────────── */
/* SECTIONS                                          */
/* ──────────────────────────────────────────────── */

section {
    padding: var(--space-3xl) 0;
    position: relative;
}

/* ──────────────────────────────────────────────── */
/* ABOUT CONTENT CENTER                              */
/* ──────────────────────────────────────────────── */

.about-content-center {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content-center p {
    font-size: 1.0625rem;
    line-height: 1.8;
}

section:nth-child(even) {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.section-title span {
    color: var(--red);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--red), transparent);
    margin: var(--space-md) auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ──────────────────────────────────────────────── */
/* NAVBAR                                            */
/* ──────────────────────────────────────────────── */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
    background: rgba(8, 8, 8, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.navbar-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 480px) {
    .navbar-logo img {
        height: 32px;
    }
}

.navbar-logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.02em;
}

.navbar-logo-text span {
    color: var(--red);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.navbar-nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--red);
}

/* ──────────────────────────────────────────────── */
/* MOBILE MENU TOGGLE                                */
/* ──────────────────────────────────────────────── */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-sm);
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ──────────────────────────────────────────────── */
/* FOOTER                                            */
/* ──────────────────────────────────────────────── */

footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-brand img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-md);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--red);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.footer-copyright {
    color: var(--text-dim);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.footer-social a:hover {
    color: var(--red);
}

/* ──────────────────────────────────────────────── */
/* SCROLL TO TOP BUTTON                              */
/* ──────────────────────────────────────────────── */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        var(--red) 0%,
        var(--red-light) 50%,
        var(--red) 100%
    );
    background-size: 200% auto;
    border: 2px solid rgba(220, 20, 40, 0.3);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(220, 20, 40, 0.3);
    animation: scrollButtonShine 3s linear infinite;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 40px rgba(220, 20, 40, 0.5);
    border-color: rgba(220, 20, 40, 0.6);
}

@keyframes scrollButtonShine {
    to {
        background-position: 200% center;
    }
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.02);
}

/* Ok işareti için pulse animasyonu */
.scroll-to-top svg {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.scroll-to-top:hover svg {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    animation: scrollArrowPulse 1s ease-in-out infinite alternate;
}

@keyframes scrollArrowPulse {
    0% {
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
        transform: translateY(-3px);
    }
    100% {
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9));
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ──────────────────────────────────────────────── */
/* RESPONSIVE                                        */
/* ──────────────────────────────────────────────── */

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .menu-toggle {
        display: flex;
    }

    .navbar-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--surface);
        padding: var(--space-lg);
        gap: var(--space-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        border-bottom: 1px solid var(--border);
    }

    .navbar-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    section {
        padding: var(--space-xl) 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}
