/* ============================================
   MACIT EMLAK — Premium Real Estate
   Ultra-luxury dark theme with gold accents
   ============================================ */

/* === CSS Variables === */
:root {
    /* Core Colors */
    --black: #0a0a0a;
    --black-light: #111111;
    --black-lighter: #1a1a1a;
    --dark: #141414;
    --dark-card: #161616;
    --dark-border: #222222;
    --dark-border-light: #2a2a2a;

    /* Gold Palette */
    --gold: #c8a45e;
    --gold-light: #d4b56e;
    --gold-lighter: #e0c88a;
    --gold-dark: #a8863e;
    --gold-glow: rgba(200, 164, 94, 0.15);
    --gold-glow-strong: rgba(200, 164, 94, 0.3);

    /* Text */
    --white: #ffffff;
    --text: #e8e8e8;
    --text-muted: #999999;
    --text-dim: #666666;

    /* Fonts */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;

    /* Spacing */
    --section-pad: 120px;
    --container-width: 1280px;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --duration: 0.6s;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--gold);
    color: var(--black);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }

/* === Preloader === */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease), visibility 0.8s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.preloader-logo-img {
    height: 160px;
    width: auto;
    animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-line {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 16px auto;
    animation: preloaderLine 1.5s var(--ease) infinite;
    transform-origin: left;
}


@keyframes preloaderPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes preloaderLine {
    0% { transform: scaleX(0); }
    50% { transform: scaleX(1); }
    100% { transform: scaleX(0); transform-origin: right; }
}

/* === Custom Cursor === */
.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(200, 164, 94, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s var(--ease), width 0.3s, height 0.3s, border-color 0.3s;
    transform: translate(-50%, -50%);
}

.cursor-ring.hover {
    width: 56px;
    height: 56px;
    border-color: var(--gold);
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* === Navigation === */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.4s var(--ease);
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid var(--dark-border);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    transition: opacity 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--ease);
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-phone:hover { opacity: 0.8; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    text-align: center;
}

.mobile-link {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-muted);
    margin: 16px 0;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.mobile-menu.active .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(6) { transition-delay: 0.35s; }

.mobile-link:hover {
    color: var(--gold);
}

.mobile-menu-footer {
    margin-top: 48px;
    opacity: 0;
    transition: opacity 0.4s ease 0.4s;
}

.mobile-menu.active .mobile-menu-footer {
    opacity: 1;
}

.mobile-menu-footer a {
    font-size: 1.2rem;
    color: var(--gold);
}

.mobile-menu-footer p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 8px;
}

/* === Hero Section === */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, #0a0a0a 0%, #1a1510 40%, #0f0d0a 70%, #0a0a0a 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(200, 164, 94, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(200, 164, 94, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(200, 164, 94, 0.03) 0%, transparent 40%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% {
        opacity: 0;
        transform: translateY(-20vh) scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-badge span:not(.badge-line) {
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    color: var(--gold);
    font-weight: 500;
}

.badge-line {
    width: 40px;
    height: 1px;
    background: var(--gold-dark);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 28px;
}

.title-line {
    display: block;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    color: var(--white);
}

.title-italic {
    font-style: italic;
    color: var(--gold);
    font-weight: 500;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 44px;
    line-height: 1.8;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 72px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-light);
    transform: translateX(-101%);
    transition: transform 0.4s var(--ease);
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-primary span, .btn-primary i {
    position: relative;
    z-index: 1;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--dark-border-light);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-white {
    background: var(--white);
    color: var(--black);
}

.btn-white:hover {
    background: var(--gold);
}

.btn-lg {
    padding: 18px 44px;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero KGS Banner */
.hero-kgs-banner {
    display: flex;
    justify-content: center;
}

.kgs-banner-link {
    display: block;
    text-decoration: none;
    position: relative;
    border: 1px solid var(--dark-border-light);
    background: rgba(200, 164, 94, 0.04);
    padding: 20px 40px;
    transition: all 0.5s var(--ease);
    overflow: hidden;
}

.kgs-banner-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200, 164, 94, 0.08), rgba(200, 164, 94, 0.02));
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}

.kgs-banner-link:hover {
    border-color: var(--gold-dark);
    box-shadow: 0 0 30px rgba(200, 164, 94, 0.12), 0 0 60px rgba(200, 164, 94, 0.06);
    transform: translateY(-2px);
}

.kgs-banner-link:hover::before {
    opacity: 1;
}

.kgs-banner-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.kgs-banner-icon {
    width: 28px;
    height: 28px;
    color: var(--gold);
    flex-shrink: 0;
}

.kgs-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kgs-banner-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.02em;
}

.kgs-banner-sub {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-weight: 300;
    letter-spacing: 0.03em;
}

.kgs-banner-arrow {
    width: 18px;
    height: 18px;
    color: var(--gold-dark);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
}

.kgs-banner-link:hover .kgs-banner-arrow {
    transform: translateX(4px);
    color: var(--gold);
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.scroll-indicator {
    width: 20px;
    height: 32px;
    border: 1px solid var(--dark-border-light);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-line {
    width: 2px;
    height: 8px;
    background: var(--gold);
    border-radius: 1px;
    animation: scrollBounce 2s var(--ease) infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

.hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* === Section Styles === */
section {
    padding: var(--section-pad) 0;
}

.section-tag {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.section-tag.center {
    justify-content: center;
}

.section-tag span:not(.tag-line) {
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    color: var(--gold);
    font-weight: 500;
}

.tag-line {
    width: 32px;
    height: 1px;
    background: var(--gold-dark);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-title.center {
    text-align: center;
}

.section-title em {
    color: var(--gold);
    font-style: italic;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.8;
}

.section-header {
    margin-bottom: 64px;
}

/* === About Section === */
#about {
    background: var(--black);
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dark-border), transparent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    aspect-ratio: 3/4;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.4), transparent);
    z-index: 1;
}

.about-image-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid var(--gold-dark);
    opacity: 0.3;
    z-index: -1;
}

.about-experience {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gold);
    color: var(--black);
    padding: 28px;
    text-align: center;
    z-index: 2;
}

.exp-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
}

.exp-text {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-top: 4px;
    font-weight: 500;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.8;
}

.about-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--dark-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
    transition: all 0.3s ease;
}

.about-feature:hover .feature-icon {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.about-feature h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.about-feature p {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 300;
}

/* === Services Section === */
#services {
    background: var(--black);
    position: relative;
}

#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dark-border), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.service-card-kgs {
    cursor: pointer;
}

.service-card-kgs:hover {
    border-color: var(--gold-dark);
    box-shadow: 0 16px 48px rgba(200, 164, 94, 0.1);
}

.service-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    padding: 40px 32px;
    position: relative;
    transition: all 0.5s var(--ease);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.5s var(--ease);
}

.service-card:hover {
    border-color: var(--dark-border-light);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--dark-border);
    position: absolute;
    top: 16px;
    right: 20px;
    line-height: 1;
    transition: color 0.3s ease;
}

.service-card:hover .service-number {
    color: var(--gold-glow-strong);
}

.service-icon {
    width: 56px;
    height: 56px;
    border: 1px solid var(--dark-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.7;
    font-weight: 300;
}

.service-line {
    width: 40px;
    height: 1px;
    background: var(--dark-border-light);
    margin-top: 24px;
    transition: all 0.4s var(--ease);
}

.service-card:hover .service-line {
    width: 60px;
    background: var(--gold);
}

/* === Team Section === */
#team {
    background: var(--black-light);
    position: relative;
}

#team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dark-border), transparent);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    max-width: 960px;
    margin: 0 auto;
}

.team-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    overflow: hidden;
    transition: all 0.5s var(--ease);
    text-align: center;
}

.team-card:hover {
    border-color: var(--gold-dark);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px var(--gold-glow);
}

.team-icon-header {
    padding: 36px 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.team-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-glow);
    transition: all 0.4s var(--ease);
}

.team-icon-circle i {
    width: 36px;
    height: 36px;
    color: var(--gold);
    transition: color 0.3s ease;
}

.team-card:hover .team-icon-circle {
    background: var(--gold);
    border-color: var(--gold);
}

.team-card:hover .team-icon-circle i {
    color: var(--black);
}

.team-badge-inline {
    display: inline-block;
    padding: 4px 16px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.team-info {
    padding: 28px 24px 32px;
}

.team-info h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 6px;
}

.team-role {
    display: block;
    font-size: 0.82rem;
    color: var(--gold);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.team-portfolio {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 16px;
    min-height: 18px;
}

.team-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--dark-border);
}

.team-phone i {
    color: var(--gold-dark);
}

.team-phone a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

.team-phone a:hover {
    color: var(--gold);
}

.team-actions {
    display: flex;
    gap: 10px;
}

.team-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.team-btn-call {
    background: transparent;
    border: 1px solid var(--dark-border-light);
    color: var(--text-muted);
}

.team-btn-call:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-glow);
}

.team-btn-wa {
    background: #25D366;
    border: 1px solid #25D366;
    color: #fff;
}

.team-btn-wa:hover {
    background: #20bd5a;
    border-color: #20bd5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* === CTA Section === */
#cta {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, #1a1510 0%, #251e14 50%, #1a1510 100%);
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(200, 164, 94, 0.08), transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-quote {
    margin-bottom: 28px;
}

.quote-icon {
    width: 48px;
    height: 48px;
    color: var(--gold);
    opacity: 0.5;
}

#cta h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 20px;
}

#cta h2 em {
    color: var(--gold);
    font-style: italic;
}

#cta p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 36px;
    font-weight: 300;
}

/* === Contact Section === */
#contact {
    background: var(--black);
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dark-border), transparent);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-desc {
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--dark-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
}

.contact-info-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.contact-info-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 300;
}

.contact-info-item a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.contact-info-item a:hover {
    color: var(--gold);
}

.contact-socials {
    display: flex;
    gap: 12px;
    margin-top: 36px;
}

.social-link {
    width: 44px;
    height: 44px;
    border: 1px solid var(--dark-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

/* Contact Map Embed */
.contact-map-embed {
    width: 100%;
    height: 100%;
    min-height: 420px;
    position: relative;
    border: 1px solid var(--dark-border);
    overflow: hidden;
}

.contact-map-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    filter: grayscale(1) invert(0.92) contrast(0.9);
}

.contact-map-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 10;
}

.contact-map-overlay .btn {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: var(--gold);
    padding: 10px 18px;
    font-size: 0.8rem;
}

.contact-map-overlay .btn:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

/* === KGS Modal === */
.kgs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease);
}

.kgs-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.kgs-modal {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.5s var(--ease);
}

.kgs-modal-overlay.active .kgs-modal {
    transform: translateY(0) scale(1);
}

.kgs-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--dark-border-light);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.kgs-modal-close:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.kgs-modal-header {
    text-align: center;
    padding: 48px 44px 32px;
    border-bottom: 1px solid var(--dark-border);
}

.kgs-modal-icon {
    width: 64px;
    height: 64px;
    border: 1px solid var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin: 0 auto 20px;
}

.kgs-modal-icon i {
    width: 32px;
    height: 32px;
}

.kgs-modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 6px;
}

.kgs-modal-subtitle {
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    font-weight: 400;
}

.kgs-modal-body {
    padding: 36px 44px 44px;
}

.kgs-intro p {
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.kgs-steps h3,
.kgs-benefits h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kgs-steps h3 i,
.kgs-benefits h3 i {
    color: var(--gold);
}

.kgs-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--dark-border);
    transition: border-color 0.3s ease;
}

.kgs-step:hover {
    border-color: var(--dark-border-light);
}

.kgs-step-num {
    width: 32px;
    height: 32px;
    background: var(--gold);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.kgs-step h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.kgs-step p {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 300;
    line-height: 1.6;
}

.kgs-benefits {
    margin-top: 32px;
}

.kgs-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.kgs-benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
}

.kgs-benefit:hover {
    border-color: var(--gold-dark);
}

.kgs-benefit i {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.kgs-benefit h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.kgs-benefit p {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 300;
}

.kgs-cta {
    margin-top: 36px;
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid var(--dark-border);
}

.kgs-cta p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 20px;
}

/* KGS Modal scrollbar */
.kgs-modal::-webkit-scrollbar {
    width: 4px;
}

.kgs-modal::-webkit-scrollbar-track {
    background: var(--dark-card);
}

.kgs-modal::-webkit-scrollbar-thumb {
    background: var(--dark-border-light);
}

/* === Footer === */
#footer {
    background: var(--dark);
    border-top: 1px solid var(--dark-border);
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--dark-border);
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 300;
    margin-top: 20px;
    line-height: 1.7;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-links h4, .footer-contact h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 0.88rem;
    color: var(--text-dim);
    padding: 5px 0;
    transition: all 0.3s ease;
    font-weight: 300;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 6px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 300;
}

.footer-contact a {
    color: var(--text-dim);
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 300;
}

.footer-credit {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* === WhatsApp Float === */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-tooltip {
    position: absolute;
    right: 68px;
    background: var(--dark-card);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid var(--dark-border);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 96px;
    width: 44px;
    height: 44px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

/* === Animations === */
[data-animate] {
    opacity: 0;
    transition: all 0.8s var(--ease);
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
    :root {
        --section-pad: 80px;
    }

    .container {
        padding: 0 28px;
    }

    .about-grid {
        gap: 48px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 64px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .nav-phone span {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-title .title-line {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .kgs-banner-link {
        padding: 16px 24px;
    }

    .kgs-banner-title {
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-wrapper {
        max-width: 400px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-map-embed {
        min-height: 300px;
    }

    .contact-map-embed iframe {
        min-height: 300px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .mobile-link {
        font-size: 1.8rem;
    }

    /* KGS Modal responsive */
    .kgs-modal-header {
        padding: 36px 24px 24px;
    }

    .kgs-modal-body {
        padding: 24px;
    }

    .kgs-benefits-grid {
        grid-template-columns: 1fr;
    }

    .kgs-modal-header h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .kgs-banner-link {
        padding: 14px 18px;
    }

    .kgs-banner-sub {
        display: none;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.85rem;
    }

    #cta {
        padding: 80px 0;
    }
}

/* === Smooth scrollbar styling === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}


/* ============================================
   PREMIUM LAYER — cinematic reveals, texture,
   motion & micro-interactions
   ============================================ */

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-lighter));
    transform: scaleX(0);
    transform-origin: left;
    z-index: 10005;
    pointer-events: none;
}

/* --- Film Grain Overlay --- */
.grain-overlay {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grainShift 7s steps(8) infinite;
}

@keyframes grainShift {
    0%, 100% { transform: translate(0, 0); }
    12% { transform: translate(-2%, 1%); }
    25% { transform: translate(1%, -2%); }
    37% { transform: translate(-1%, 2%); }
    50% { transform: translate(2%, 1%); }
    62% { transform: translate(-2%, -1%); }
    75% { transform: translate(1%, 2%); }
    87% { transform: translate(2%, -2%); }
}

/* --- Navbar smart hide --- */
#navbar.nav-hidden {
    transform: translateY(-110%);
}

/* --- Hero cinematic line reveal --- */
.title-line {
    overflow: hidden;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}

.title-line-inner {
    display: block;
    transform: translateY(115%);
    transition: transform 1.15s var(--ease);
}

body.is-loaded .title-line:nth-child(1) .title-line-inner {
    transform: translateY(0);
    transition-delay: 0.15s;
}

body.is-loaded .title-line:nth-child(2) .title-line-inner {
    transform: translateY(0);
    transition-delay: 0.32s;
}

/* Hero staggered reveal items */
.reveal-item {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

body.is-loaded .reveal-item {
    opacity: 1;
    transform: translateY(0);
}

body.is-loaded .hero-badge.reveal-item { transition-delay: 0.05s; }
body.is-loaded .hero-desc.reveal-item { transition-delay: 0.6s; }
body.is-loaded .hero-actions.reveal-item { transition-delay: 0.78s; }
body.is-loaded .hero-kgs-banner.reveal-item { transition-delay: 0.96s; }

.hero-scroll {
    opacity: 0;
    transition: opacity 1s ease 1.5s;
}

body.is-loaded .hero-scroll {
    opacity: 1;
}

/* Gold shimmer on hero italic line */
.title-italic .title-line-inner {
    background: linear-gradient(110deg, var(--gold) 0%, var(--gold-lighter) 25%, var(--gold) 50%, var(--gold-lighter) 75%, var(--gold) 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmer 7s linear infinite;
}

@keyframes goldShimmer {
    to { background-position: -250% center; }
}

/* --- Section title word-by-word mask reveal --- */
[data-title-reveal] .word-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-bottom: 0.14em;
    margin-bottom: -0.14em;
}

[data-title-reveal] .word-inner {
    display: inline-block;
    transform: translateY(112%);
    transition: transform 0.9s var(--ease);
}

[data-title-reveal].title-revealed .word-inner {
    transform: translateY(0);
}

/* --- Staggered group reveals --- */
.stagger-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.stagger-item.stagger-in {
    opacity: 1;
    transform: translateY(0);
}

/* Preserve hover lift after stagger lands (when JS tilt is off) */
.service-card.stagger-in:hover { transform: translateY(-4px); }
.team-card.stagger-in:hover { transform: translateY(-6px); }

/* --- Marquee divider --- */
.marquee {
    overflow: hidden;
    background: var(--black-light);
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
    padding: 26px 0;
    position: relative;
}

.marquee::before,
.marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--black-light), transparent);
}

.marquee::after {
    right: 0;
    background: linear-gradient(-90deg, var(--black-light), transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    animation: marqueeScroll 38s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track span:not(.marquee-dot) {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.55rem;
    font-weight: 400;
    color: var(--text-dim);
    white-space: nowrap;
    letter-spacing: 0.05em;
    transition: color 0.4s ease;
}

.marquee:hover .marquee-track span:not(.marquee-dot) {
    color: var(--gold);
}

.marquee-dot {
    color: var(--gold-dark);
    font-size: 0.8rem;
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    to { transform: translateX(-50%); }
}

/* --- Magnetic buttons & tilt cards --- */
[data-magnetic] {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
    will-change: transform;
}

[data-tilt] {
    transition: transform 0.45s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.8s var(--ease);
    transform-style: preserve-3d;
}

/* --- Mobile menu link numbers --- */
.mobile-link-num {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.15em;
    margin-right: 14px;
    vertical-align: super;
}

/* --- Mobile performance & sizing --- */
@media (max-width: 768px) {
    .grain-overlay {
        animation: none;
        opacity: 0.035;
    }

    .marquee-track span:not(.marquee-dot) {
        font-size: 1.15rem;
    }

    .marquee {
        padding: 18px 0;
    }

    .marquee::before,
    .marquee::after {
        width: 48px;
    }
}

/* --- No-JS fallback: everything visible --- */
html:not(.js) [data-animate],
html:not(.js) .reveal-item,
html:not(.js) .stagger-item,
html:not(.js) .hero-scroll {
    opacity: 1 !important;
    transform: none !important;
}

html:not(.js) .title-line-inner {
    transform: none !important;
}

/* --- Reduced motion: respect user preference --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .title-line-inner,
    .reveal-item,
    .stagger-item,
    .hero-scroll,
    [data-animate],
    [data-title-reveal] .word-inner {
        opacity: 1 !important;
        transform: none !important;
    }

    .grain-overlay,
    .marquee-track,
    .title-italic .title-line-inner {
        animation: none !important;
    }
}

/* --- FMS Otomasyon footer credit --- */
.footer-fms {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

.footer-fms:hover {
    opacity: 1;
}

.footer-fms span {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-fms img {
    height: 20px;
    width: auto;
}
