/* ============================================================
   DOKUZOĞLU CONSTRUCTION — "Sessiz Lüks" Design System v2.0
   2026 Quiet Luxury Theme — Adaptive Dark/Light
   ============================================================ */

/* === Design Tokens === */
:root {
    --accent: #C8A45A;
    --accent-glow: rgba(200, 164, 90, 0.35);
    --glass-border: rgba(200, 164, 90, 0.15);
    --glass-blur: 24px;
    --radius: 16px;
    --radius-sm: 10px;
    --spring: cubic-bezier(0.16, 1, 0.3, 1);

    /* Dark/Light agnostic tokens */
    --void-light: #F4F1EB;
    --void-dark: #161618;
    --text-on-dark: #E8E4DC;
}

/* === ADAPTIVE DARK / LIGHT MODE === */
[data-theme="light"] {
    --bg: #F4F1EB;
    --bg-card: #FFFFFF;
    --text: #2A2A2A;
    --text-muted: #8A8A8A;
    --glass-bg: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] {
    --bg: #161618;
    --bg-card: rgba(255, 255, 255, 0.04);
    --text: #E8E4DC;
    --text-muted: rgba(255, 255, 255, 0.45);
    --glass-bg: rgba(255, 255, 255, 0.06);
}

/* Auto-select theme from OS preference when no data-theme set */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #161618;
        --bg-card: rgba(255, 255, 255, 0.04);
        --text: #E8E4DC;
        --text-muted: rgba(255, 255, 255, 0.45);
        --glass-bg: rgba(255, 255, 255, 0.06);
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #F4F1EB;
        --bg-card: #FFFFFF;
        --text: #2A2A2A;
        --text-muted: #8A8A8A;
        --glass-bg: rgba(0, 0, 0, 0.03);
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === NOISE / GRAIN TEXTURE === */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    transition: background 0.5s var(--spring), backdrop-filter 0.5s var(--spring), padding 0.3s var(--spring);
}

.navbar.scrolled {
    background: rgba(22, 22, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 48px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--void-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    border-radius: 10px;
}

.logo-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: white;
}

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-links a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s var(--spring);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--spring);
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-login {
    background: rgba(200, 164, 90, 0.15) !important;
    border: 1px solid rgba(200, 164, 90, 0.3);
    padding: 8px 20px !important;
    border-radius: 8px;
    color: var(--accent) !important;
    transition: all 0.3s var(--spring) !important;
}

.nav-login:hover {
    background: var(--accent) !important;
    color: var(--void-dark) !important;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s var(--spring);
}

/* === HERO (Always dark — no theme override) === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Ken Burns — slow zoom + pan, 20s infinite alternate */
@keyframes kenBurns {
    0% {
        transform: scale(1.0) translate(0, 0);
    }

    100% {
        transform: scale(1.08) translate(-1%, -0.5%);
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 20s var(--spring) infinite alternate;
}

.hero.loaded .hero-bg {
    animation: kenBurns 20s var(--spring) infinite alternate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(22, 22, 24, 0.6) 0%,
            rgba(22, 22, 24, 0.3) 40%,
            rgba(22, 22, 24, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

/* Hero badge subtle pulse */
@keyframes badgePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid rgba(200, 164, 90, 0.4);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--spring) 0.3s forwards, badgePulse 3s var(--spring) 1.1s infinite;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.hero-line {
    display: block;
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 200;
    letter-spacing: -1px;
    color: white;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(40px);
}

.hero-line-1 {
    animation: fadeUp 1s var(--spring) 0.5s forwards;
}

.hero-line-2 {
    animation: fadeUp 1s var(--spring) 0.7s forwards;
    font-weight: 600;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
    max-width: 480px;
    margin: 0 auto 36px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--spring) 0.9s forwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--spring) 1.1s forwards;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--void-dark);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.4s var(--spring);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s var(--spring);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: white;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.4s var(--spring);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.8s var(--spring) 1.5s forwards;
}

.scroll-arrow {
    animation: bounceDown 2s var(--spring) infinite;
}

/* Hero stats */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 28px;
    background: rgba(22, 22, 24, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(200, 164, 90, 0.1);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 500;
    color: var(--accent);
}

.stat-suffix {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
}

/* === SECTIONS === */
.section {
    padding: 140px 48px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 200;
    line-height: 1.2;
    color: var(--text);
}

.section-title br {
    display: block;
}

/* === BENTO GRID === */
.bento-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
}

.bento-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(200, 164, 90, 0.08);
    transition: transform 0.6s var(--spring), box-shadow 0.6s var(--spring);
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(200, 164, 90, 0.16);
}

.bento-large {
    grid-row: span 2;
    min-height: 560px;
}

.bento-small {
    min-height: 250px;
}

.bento-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--spring);
}

.bento-card:hover .bento-img {
    transform: scale(1.05);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(22, 22, 24, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}

.bento-tag {
    display: inline-block;
    width: fit-content;
    padding: 4px 12px;
    background: var(--accent);
    color: var(--void-dark);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.bento-title {
    font-size: 22px;
    font-weight: 500;
    color: white;
    margin-bottom: 6px;
}

.bento-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

/* Info card */
.bento-info {
    background: var(--void-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.bento-info-content {
    text-align: center;
}

.bento-info-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 52px;
    font-weight: 500;
    color: var(--accent);
}

.bento-info-suffix {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    color: var(--accent);
}

.bento-info-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1px;
    margin-top: 4px;
}

/* === ABOUT === */
.section-about {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 24px 0 40px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 164, 90, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.feature h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text);
}

.feature p {
    font-size: 13px;
    color: var(--text-muted);
}

.about-image-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.about-image-wrapper img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.8s var(--spring);
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
}

/* === CONTACT (Always dark — no theme override) === */
.section-contact {
    background: var(--void-dark);
    color: var(--text-on-dark);
    max-width: none;
    padding: 140px 48px;
}

.contact-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-contact .section-title {
    color: var(--text-on-dark);
}

.contact-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    margin: 16px 0 32px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.contact-icon {
    font-size: 18px;
}

/* === Glassmorphism Form — Animated Border Glow === */
@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Top glow line */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

/* Animated edge glow — rotating gradient border */
.glass-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(270deg,
            transparent 0%,
            rgba(200, 164, 90, 0.25) 25%,
            rgba(200, 164, 90, 0.5) 50%,
            rgba(200, 164, 90, 0.25) 75%,
            transparent 100%);
    background-size: 300% 300%;
    animation: borderGlow 4s var(--spring) infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s var(--spring), box-shadow 0.3s var(--spring);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
}

/* Submit button z-index above glass-card::after */
.glass-card .btn-primary,
.glass-card .btn-full {
    position: relative;
    z-index: 1;
}

/* === FOOTER === */
.footer {
    background: var(--void-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 48px;
    position: relative;
}

/* Gold gradient line — fades at edges */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(200, 164, 90, 0.1) 10%,
            var(--accent) 50%,
            rgba(200, 164, 90, 0.1) 90%,
            transparent 100%);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand .logo-mark {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
}

.footer-brand .logo-text {
    font-size: 12px;
    letter-spacing: 2px;
}

.footer-tagline {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    transition: color 0.3s var(--spring);
}

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

.footer-copy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
}

/* === ANIMATIONS === */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* Reveal on scroll — 1s duration */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--spring), transform 1s var(--spring);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tilt card */
.tilt-card {
    transition: transform 0.6s var(--spring);
}

/* === LANGUAGE SWITCHER & THEME TOGGLE === */
.lang-switcher {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 2px;
}

.lang-btn {
    padding: 4px 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s var(--spring);
    font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
    color: white;
}

.lang-btn.active {
    background: var(--accent);
    color: var(--void-dark);
}

.theme-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--spring);
    font-size: 14px;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

/* === RESPONSIVE — 768px === */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 24px;
    }

    .navbar.scrolled {
        padding: 12px 24px;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: rgba(22, 22, 24, 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 1000;
    }

    .nav-links.open a {
        font-size: 18px;
        color: white;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .section {
        padding: 100px 24px;
    }

    .section-contact {
        padding: 100px 24px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-line {
        font-size: clamp(32px, 8vw, 42px);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-ghost {
        min-height: 44px;
    }

    .hero-stats {
        gap: 24px;
        padding: 20px;
    }

    .stat-number {
        font-size: 22px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large {
        min-height: 360px;
        grid-row: span 1;
    }

    .bento-small {
        min-height: 260px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Touch target minimums — 44px */
    .btn-primary,
    .btn-ghost,
    .nav-login,
    .contact-item,
    .footer-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-line {
        font-size: 32px;
    }

    .section-title {
        font-size: 26px;
    }

    .bento-info-number {
        font-size: 40px;
    }
}