/**
 * Kılıç İnşaat - Main CSS
 * Premium Construction Company Website
 * Black-White-Gold Color Palette
 * NEF / Konfay / Damac Style
 */

/* ============================================================
   1. CSS VARIABLES & ROOT SETTINGS
   ============================================================ */
:root {
    /* Colors - Black, White, Gold Theme */
    --color-primary: #000000;
    --color-secondary: #FFFFFF;
    --color-accent: #D4AF37;
    --color-gold-light: #F4E4BC;
    --color-text: #1a1a1a;
    --color-text-secondary: #666666;
    --color-background-light: #F8F8F8;
    --color-background-dark: #0a0a0a;
    --color-border: #E0E0E0;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-size-base: 16px;
    
    /* Layout */
    --container-width: 1320px;
    --section-padding: 120px;
    --section-padding-mobile: 60px;
    
    /* Effects */
    --transition-speed: 0.3s;
    --transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
    --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   2. RESET & BASE STYLES
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* scroll-behavior: smooth; - Header fixed sorunu için devre dışı */
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Fallback: AOS yüklenmezse tüm bileşenler görünür kalsın */
body.no-aos [data-aos],
body.no-aos .aos-init {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) var(--transition-easing);
}

ul, ol {
    list-style: none;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(32px, 5vw, 56px); }
h3 { font-size: clamp(24px, 4vw, 40px); }
h4 { font-size: clamp(20px, 3vw, 32px); }
h5 { font-size: clamp(18px, 2.5vw, 24px); }
h6 { font-size: clamp(16px, 2vw, 20px); }

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

/* ============================================================
   4. LOADING SCREEN
   ============================================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

.loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   5. HEADER
   ============================================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    background: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(0px);
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    transition: background 0.3s ease;
}

.main-header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.main-header.scrolled::before {
    background: rgba(0, 0, 0, 0.95);
}

.header-logo {
    position: relative;
    z-index: 1001;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.main-header.scrolled .logo-img {
    height: 40px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0;
}

/* Desktop Navigation */
.main-nav {
    display: flex;
    justify-content: center;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0;
}

.menu-item {
    position: relative;
}

.menu-link {
    color: var(--color-secondary);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    padding: 10px 0;
    display: inline-block;
    position: relative;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.menu-link:hover::after,
.menu-link.active::after {
    width: 100%;
}

/* Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-primary);
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.menu-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-link {
    display: block;
    padding: 10px 25px;
    color: var(--color-secondary);
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.submenu-link:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    padding-left: 30px;
}

/* Hamburger Menu Button */
.hamburger-menu {
    background: transparent;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-secondary);
    transition: all 0.3s ease;
    left: 0;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu span:nth-child(3) { bottom: 0; }

.hamburger-menu.active span:nth-child(1) {
    top: 50%;
    transform: rotate(45deg) translateY(-50%);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    bottom: 50%;
    transform: rotate(-45deg) translateY(50%);
}

/* ============================================================
   6. SIDE MENU (NEF STYLE - RIGHT SIDE)
   ============================================================ */
.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
}

.side-menu.active {
    visibility: visible;
}

.side-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.side-menu.active .side-menu-overlay {
    opacity: 1;
}

.side-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: var(--color-primary);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.side-menu.active .side-menu-content {
    transform: translateX(0);
}

.side-menu-header {
    padding: 30px 40px;
    display: flex;
    justify-content: flex-end;
}

.side-menu-close {
    background: transparent;
    border: none;
    color: var(--color-secondary);
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-menu-close:hover {
    color: var(--color-accent);
    transform: rotate(90deg);
}

.side-menu-nav {
    flex: 1;
    padding: 0 40px;
}

.side-menu-list {
    margin: 0;
    padding: 0;
}

.side-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.side-menu-link:hover {
    color: var(--color-accent);
    padding-left: 10px;
}

/* Katalog Butonu Hamburger Menüde */
.side-menu-link--katalog {
    background: linear-gradient(135deg, #D4AF37 0%, #C9A227 50%, #B8941F 100%);
    color: #000000 !important;
    margin: 0 -40px 20px -40px;
    padding: 20px 40px !important;
    font-weight: 700;
}

.side-menu-link--katalog:hover {
    background: linear-gradient(135deg, #E5C047 0%, #D4AF37 50%, #C9A227 100%);
    padding-left: 50px !important;
}

.side-menu-link--katalog i {
    color: #000000;
    margin-right: 10px;
}

.side-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 20px;
}

.side-menu-item.has-children .side-submenu {
    margin-top: -20px;
}

.side-menu-item.active .side-submenu {
    max-height: 500px;
    padding-bottom: 10px;
}

.side-submenu-link {
    display: block;
    padding: 12px 0;
    color: var(--color-secondary);
    font-size: 16px;
    font-weight: 400;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.side-submenu-link:hover {
    opacity: 1;
    color: var(--color-accent);
    padding-left: 10px;
}

.side-menu-footer {
    padding: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.side-menu-social {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.side-menu-social a {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 20px;
    transition: all 0.3s ease;
}

.side-menu-social a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.side-menu-contact p {
    color: var(--color-secondary);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.side-menu-contact i {
    color: var(--color-accent);
}

/* ============================================================
   7. HERO SLIDER (FULL SCREEN - NEF STYLE)
   ============================================================ */
.hero-slider-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    max-height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    margin-top: 0;
    /* Tam ekran için - header'ın altında başlamasın, tam ekran olsun */
    z-index: 1;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-media {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--color-secondary);
}

.hero-content[data-position="left"] .hero-content-inner {
    text-align: left;
}

.hero-content[data-position="center"] .hero-content-inner {
    text-align: center;
}

.hero-content[data-position="right"] .hero-content-inner {
    text-align: right;
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(40px, 8vw, 90px);
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--color-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 45px;
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* Slider Navigation */
.hero-slider-nav {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 3;
}

.hero-nav-prev,
.hero-nav-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav-prev:hover,
.hero-nav-next:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-secondary);
    font-size: 12px;
    letter-spacing: 2px;
    z-index: 3;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================================
   8. SECTIONS
   ============================================================ */
.section-padding {
    padding: var(--section-padding) 0;
}

.section-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 800px;
}

.bg-light {
    background-color: var(--color-background-light);
}

.bg-dark {
    background-color: var(--color-background-dark);
    color: var(--color-secondary);
}

.bg-dark .section-title,
.bg-dark .section-description {
    color: var(--color-secondary);
}

/* ============================================================
   9. BUTTONS
   ============================================================ */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: transparent;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 16px;
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
    transform: translateY(-3px);
}

/* Continue in next file due to length... */

