@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

body {
    font-family: var(--font-primary);
    color: var(--primary-900); /* Gri ton kaldırıldı, tam kontrast sağlandı */
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--primary-900);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.section {
    padding: var(--space-4xl) 0;
}

@media (max-width: 768px) {
    .container { --container-pad: var(--space-md); }
    .section { padding: var(--space-2xl) 0; }

    /* Layout Overrides */
    .services-grid, 
    .footer-inner,
    .contact-container { 
        grid-template-columns: 1fr !important; 
        gap: 40px; 
    }

    .about-preview { flex-direction: column; }
    
    /* Hide heavy mobile elements */
    .hero-card { display: none; }
}

/* Fluid Typography */
.hero-title { font-size: clamp(2.5rem, 8vw, 4.5rem); }
.section-title { font-size: clamp(2rem, 5vw, 3rem); }

.text-center { text-align: center; }
.text-accent { color: var(--accent-500); }
.bg-primary { background-color: var(--primary-900); color: var(--white); }

/* Selection */
::selection {
    background: var(--accent-500);
    color: var(--white);
}

:focus-visible {
    outline: 2px solid var(--accent-500);
    outline-offset: 4px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary-900); }
::-webkit-scrollbar-thumb { 
    background: var(--accent-500); 
    border-radius: var(--radius-full);
}

/* --- 3. PAGE HEADER (Sub-pages Hero) --- */
.page-header {
    position: relative;
    padding: 200px 0 100px 0; /* Büyük logo için üst boşluk artırıldı */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.header-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(11, 30, 53, 0.9), rgba(11, 30, 53, 0.6));
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.page-header .section-label {
    background: var(--accent-500);
    color: var(--white);
    padding: 6px 15px;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
}

/* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.breadcrumb a {
    color: var(--steel-300);
    text-decoration: none;
    transition: 0.3s;
}

.breadcrumb a:hover {
    color: var(--accent-500);
}

.breadcrumb-sep {
    color: var(--steel-500);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.breadcrumb .active {
    color: var(--white);
    font-weight: 700;
}

/* --- 3. LAYOUT --- */
main {
    width: 100%;
}

/* --- GLOBAL ANIMATION SYSTEM --- */
[data-animate] {
    opacity: 0;
    transition: opacity 800ms cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 800ms cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: opacity, transform;
}

[data-animate="fade-up"],
[data-animate="slide-up"]    { transform: translateY(50px); }
[data-animate="fade-in"]    { transform: none; }
[data-animate="slide-left"] { transform: translateX(60px); }
[data-animate="slide-right"]{ transform: translateX(-60px); }
[data-animate="scale-up"]   { transform: scale(0.9); }

[data-animate].is-visible {
    opacity: 1;
    transform: none;
}
