/* =========== BASE STYLES =========== */
@font-face {
    font-family: 'Industry';
    src: url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
    font-display: swap;
}

:root {
    --primary: #fced01;
    --primary-dark: #e5d600;
    --dark: #111111;
    --darker: #0a0a0a;
    --light: #ffffff;
    --gray: #888888;
    --light-gray: #f0f0f0;
    --metal-gradient: linear-gradient(135deg, #303030 0%, #121212 100%);
    --metal-shine: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    --font-main: 'Industry', 'Segoe UI', sans-serif;
    --transition: 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 10px base */
}

body {
    font-family: var(--font-main);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    position: relative;
}

::selection {
    background-color: var(--primary);
    color: var(--dark);
}

/* =========== CUSTOM SCROLLBAR =========== */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* =========== UTILITY CLASSES =========== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.btn {
    display: inline-block;
    position: relative;
    padding: 1.5rem 4rem;
    background-color: var(--primary);
    border: none;
    color: var(--dark);
    font-family: var(--font-main);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    text-decoration: none;
    transition: var(--transition);
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-30deg);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--dark);
}

/* =========== PRELOADER (Optimize Edilmiş) =========== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    will-change: opacity, visibility; /* Tarayıcıya optimizasyon ipucu */
    backface-visibility: hidden; /* GPU hızlandırma */
    transform: translateZ(0); /* GPU hızlandırma */
}

.preloader-logo {
    width: 150px; /* Küçültülmüş logo */
    height: 150px;
    position: relative;
    transform: translateZ(0); /* GPU hızlandırma */
}

.preloader-logo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(136, 136, 136, 0.4);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite; /* Hızlandırılmış animasyon */
    will-change: transform; /* Tarayıcıya optimizasyon ipucu */
}

.preloader-logo img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    filter: drop-shadow(0 0 8px rgba(252, 237, 1, 0.5)); /* Daha hafif gölge */
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Sayfa yüklendiğinde gövde sınıfı */
body.content-loaded {
    overflow: auto !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========== CURSOR =========== */
.custom-cursor {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    z-index: 9999;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.08s ease;
}

/* =========== PARTICLE BACKGROUND =========== */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.07;
    pointer-events: none;
}

/* =========== ANIMATIONS =========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========== MEDIA QUERIES =========== */
@media screen and (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media screen and (max-width: 992px) {
    html {
        font-size: 50%;
    }
    
    .custom-cursor, .cursor-dot {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .section {
        padding: 8rem 0;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
}

/* =========== PAGE HEADER =========== */
.page-header {
    position: relative;
    height: 40vh;
    min-height: 300px;
    background-color: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--metal-gradient), url('../../assets/img/slider.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    z-index: 0;
    animation: heroBackground 30s ease infinite alternate;
}

@keyframes heroBackground {
    0% {
        background-position: 0% 30%;
    }
    100% {
        background-position: 100% 70%;
    }
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.2) 50%, rgba(10, 10, 10, 0.8) 100%);
    z-index: 0;
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--light);
}

.page-title {
    font-size: 5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--primary);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
}

.breadcrumb-item {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item.active {
    color: var(--primary);
}

.breadcrumb-separator {
    margin: 0 1rem;
    color: rgba(255, 255, 255, 0.5);
}
