/* 
 * Biray Çelik - Merkezi Tasarım Sistemi
 * Bu dosya projenin ana görsel kimliğini ve ortak bileşenlerini içerir.
 */

:root {
    /* Industrial luxury tema sistemi */
    --color-void: #F7F7F5;
    --color-navy-deep: #EDEFF2;
    --color-shell-dark: #0B1620;
    --color-navy-card: #132331;
    --color-steel: #2E3F4D;

    --color-accent-blue: #C5A059; /* Elite Gold */
    --color-accent-blue-hover: #D6B26A;
    --color-accent-blue-rgb: 197, 160, 89;
    --color-accent-gold: #D8B27A;

    --color-text-prime: #142534;
    --color-text-muted: #5C748D;
    --color-border: rgba(20, 37, 52, 0.12);

    --shadow-soft: 0 10px 30px rgba(11, 22, 32, 0.08);
    --shadow-medium: 0 18px 50px rgba(11, 22, 32, 0.12);
    --shadow-strong: 0 24px 70px rgba(11, 22, 32, 0.16);

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;

    --font-display: 'Onest', sans-serif;
    --font-body: 'Onest', sans-serif;
    --font-mono: 'Onest', sans-serif;

    --transition: cubic-bezier(0.4, 0, 0.2, 1);
    --speed: 0.35s;
}

/* Nuclear Reset & Safety Constraints */
svg { max-width: 100%; height: auto; vertical-align: middle; }
img { max-width: 100%; height: auto; }

/* Icon Group Safety - Prevents the "Giant Icon" bug on mobile */
.top-item svg, .footer-contact-item svg, .team-icon svg, .v-icon svg, .cert-watermark, .card-location-badge svg, .meta-tag svg, .m-action-btn svg {
    width: auto !important;
    max-width: 28px !important;
    height: 24px !important;
    display: inline-block !important;
}

/* Mobile Actions Bar & Buttons */
.mobile-actions-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0B1620;
    display: none; /* Desktopta gizli */
    grid-template-columns: repeat(3, 1fr);
    z-index: 10003;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
}

.m-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    color: white;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    gap: 4px;
    transition: background 0.3s;
}

.m-action-btn svg {
    width: 20px !important;
    height: 20px !important;
}

.btn-call { background: #0B1620; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-offer { background: #C5A059; color: #0B1620; }

.m-action-btn:active { opacity: 0.8; }

@media (max-width: 991px) {
    .mobile-actions-bar { display: grid; }
    .footer { padding-bottom: 100px !important; } /* Actions bar payı */
}

/* Legacy Elements cleanup */
.floating-contact, .mobile-actions-v1, .phone-fix, .top-fix {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

body {
    background: var(--color-void);
    color: var(--color-text-prime);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-void); }
::-webkit-scrollbar-thumb { background: var(--color-steel); }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent-blue); }

/* Common Layout */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section-padding { padding: 120px 0; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 42px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.4s var(--transition);
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-accent-blue);
    color: var(--color-shell-dark);
    border: 1px solid var(--color-accent-blue);
}

.btn-primary:hover {
    background: var(--color-accent-blue-hover);
    border-color: var(--color-accent-blue-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(var(--color-accent-blue-rgb), 0.25);
}

.btn-outline {
    border: 1px solid rgba(var(--color-accent-blue-rgb), 0.22);
    color: var(--color-text-prime);
    background: rgba(var(--color-accent-blue-rgb), 0.04);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    border-color: var(--color-accent-blue);
    color: var(--color-accent-blue);
    background: rgba(var(--color-accent-blue-rgb), 0.1);
    transform: translateY(-5px);
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s var(--transition);
}

.header-top { 
    background: var(--color-shell-dark); 
    border-bottom: 1px solid rgba(255,255,255,0.03); 
    padding: 10px 0; 
    font-family: var(--font-mono); 
    font-size: 11px; 
    color: var(--color-text-muted); 
    letter-spacing: 0.05em; 
    transition: all 0.3s;
    position: relative;
    z-index: 1001;
}

.top-item svg {
    width: 14px;
    height: 14px;
    color: var(--color-accent-blue);
}

.navbar {
    padding: 24px 0;
    transition: all 0.4s var(--transition);
    background: var(--color-shell-dark);
    border-bottom: 1px solid transparent;
}

.logo { 
    display: flex; 
    flex-direction: column;
    text-decoration: none; 
    color: white;
    position: relative;
    padding-left: 15px;
    border-left: 4px solid var(--color-accent-blue);
}

.logo-main { 
    font-family: var(--font-display); 
    font-size: 30px; 
    font-weight: 950; 
    line-height: 0.9;
    letter-spacing: -0.05em; 
}

.logo-sub { 
    font-family: var(--font-mono); 
    font-size: 10px; 
    font-weight: 780; 
    color: var(--color-accent-blue);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-link {
    text-decoration: none;
    color: #F8FAFC;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.08em;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active { color: var(--color-accent-blue); }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
    padding: 10px;
    margin-right: -10px; /* Offset padding for alignment */
}

}

/* --- SUBPAGE COMPONENTS (Hakkimizda, Projeler, Hizmetler) --- */

/* Page Hero */
.page-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.7), rgba(11, 22, 32, 0.9));
    z-index: 2;
}

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

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 950;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-accent-blue);
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* Sections */
.section-title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--color-shell-dark);
}

.section-title span {
    color: var(--color-accent-blue);
    font-size: 0.6em;
    display: block;
    margin-top: 5px;
}

.section-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--color-accent-blue);
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Hakkimizda Grid */
.about-split-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

.team-card {
    background: var(--color-navy-card);
    padding: 40px;
    border-radius: var(--radius-md);
    color: white;
}

.team-list { list-style: none; padding: 0; margin: 30px 0; }
.team-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.team-icon {
    width: 48px;
    height: 48px;
    background: rgba(var(--color-accent-blue-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-blue);
}

.values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-card {
    padding: 40px;
    background: white;
    border-radius: var(--radius-md);
    transition: all 0.4s var(--transition);
    border: 1px solid transparent;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent-blue);
    box-shadow: var(--shadow-medium);
}

/* Certificates */
.cert-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cert-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
}

.cert-card.featured {
    background: var(--color-shell-dark);
    color: white;
}

/* Projeler & Gallery */
.filter-section {
    position: sticky;
    top: 80px;
    background: white;
    z-index: 100;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.filter-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--color-accent-blue);
    color: white;
    border-color: var(--color-accent-blue);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.proje-karti {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: 0.4s;
    cursor: pointer;
}

.proje-karti:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.card-media {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s transform;
}

.proje-karti:hover .card-media img {
    transform: scale(1.1);
}

/* Footer Bottom Fix */
.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #475569;
}

/* Mobile Adjustments for Subpages */
@media (max-width: 991px) {
    .section-padding { padding: 80px 0; }
    .about-split-grid, .values-grid, .cert-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .page-hero { height: 300px; }
}
