/* ===========================
   CSS Custom Properties
   =========================== */
:root {
    --primary: #0032A1;
    --primary-light: #0048d4;
    --primary-lighter: #1a6bff;
    --text-dark: #1a1a2e;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --linkedin-blue: #0077b5;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Navbar
   =========================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--primary);
    box-shadow: 0 2px 12px rgba(0, 50, 161, 0.3);
}

.navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-light);
}

.brand-logo {
    height: 60px;
    width: auto;
}

.brand-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    color: var(--text-light);
}

.navbar-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-light);
    transition: width var(--transition);
}

.navbar-links a:hover {
    color: var(--text-light);
}

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

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-lighter) 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle geometric pattern overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 45%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-company {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.hero-department {
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.85;
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    margin: 2rem auto 0;
    border-radius: 2px;
}

/* ===========================
   Corporate Section
   =========================== */
.corporate {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/merkez-bina.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.corporate-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 50, 161, 0.65) 0%, rgba(0, 72, 212, 0.55) 100%);
}

.corporate-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo-wrapper {
    position: relative;
    width: 450px;
    max-width: 100%;
    aspect-ratio: 16 / 9;
}

.logo-final {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    animation: fade-in 0.5s ease 3.5s forwards;
}

.logo-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    animation: fade-out 0.5s ease 3.5s forwards;
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fade-in {
    to { opacity: 1; }
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    padding: 5rem 2rem;
    text-align: center;
    background: var(--bg-light);
}

.contact-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-family);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-email {
    background: var(--primary);
    color: var(--text-light);
    box-shadow: 0 4px 14px rgba(0, 50, 161, 0.25);
}

.btn-email:hover {
    background: var(--primary-light);
    box-shadow: 0 6px 20px rgba(0, 50, 161, 0.35);
}

.btn-linkedin {
    background: var(--linkedin-blue);
    color: var(--text-light);
    box-shadow: 0 4px 14px rgba(0, 119, 181, 0.25);
}

.btn-linkedin:hover {
    background: #005f94;
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.35);
}

/* ===========================
   Footer
   =========================== */
.footer {
    padding: 1.75rem 2rem;
    text-align: center;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
}

.footer-slogan {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.footer p {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 400;
}

/* ===========================
   Responsive — Tablet (768px)
   =========================== */
@media (max-width: 768px) {
    .navbar-inner {
        height: 60px;
    }

    .brand-logo {
        height: 60px;
    }

    .hero-name {
        font-size: 2.75rem;
    }

    .hero-department {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .hero-company {
        font-size: 1.15rem;
    }

    .corporate {
        min-height: 320px;
    }

    .logo-wrapper {
        width: 360px;
    }
}

/* ===========================
   Responsive — Mobile (480px)
   =========================== */
@media (max-width: 480px) {
    .navbar-inner {
        padding: 0 1rem;
        height: 56px;
    }

    .brand-logo {
        height: 48px;
    }

    .brand-text {
        display: none;
    }

    .navbar-links {
        gap: 1.25rem;
    }

    .navbar-links a {
        font-size: 0.8rem;
    }

    .hero {
        min-height: calc(100vh - 56px);
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-department {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }

    .hero-company {
        font-size: 1rem;
    }

    .corporate {
        min-height: 260px;
    }

    .corporate-content {
        padding: 3rem 1.5rem;
    }

    .logo-wrapper {
        width: 280px;
    }

    .contact {
        padding: 3.5rem 1.5rem;
    }

    .contact-title {
        font-size: 1.4rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* ===========================
   Animations — Load (entrance)
   =========================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes expandX {
    from { width: 0; opacity: 0; }
    to   { width: 60px; opacity: 1; }
}

/* Navbar — sayfa yuklendiginde sirayla gelir */
.brand-logo,
.brand-text,
.navbar-links li {
    opacity: 0;
    will-change: opacity, transform;
}

.brand-logo  { animation: fadeInDown 0.6s ease-out 0.1s forwards; }
.brand-text  { animation: fadeIn     0.6s ease-out 0.4s forwards; }
.navbar-links li:nth-child(1) { animation: fadeInDown 0.5s ease-out 0.55s forwards; }
.navbar-links li:nth-child(2) { animation: fadeInDown 0.5s ease-out 0.7s  forwards; }
.navbar-links li:nth-child(3) { animation: fadeInDown 0.5s ease-out 0.85s forwards; }

/* Hero — staggered fade-in */
.hero-company,
.hero-name,
.hero-department {
    opacity: 0;
    will-change: opacity, transform;
}

.hero-divider {
    width: 0;
    will-change: width, opacity;
}

.hero-company    { animation: fadeInDown 0.8s ease-out 0.3s forwards; }
.hero-name       { animation: fadeInUp   1s   cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards; }
.hero-department { animation: fadeInUp   0.8s ease-out 1.0s forwards; }
.hero-divider    { animation: expandX    0.6s ease-out 1.4s forwards; }

/* Scroll indicator (hero altinda) */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1.9s forwards;
    transition: color var(--transition);
    z-index: 2;
}

.hero-scroll svg {
    width: 32px;
    height: 32px;
    animation: bounce 2s ease-in-out infinite;
}

.hero-scroll:hover {
    color: rgba(255, 255, 255, 1);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(10px); }
}

/* ===========================
   Animations — Scroll-trigger
   =========================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-children.in-view > * {
    opacity: 1;
    transform: translateY(0);
}

.reveal-children.in-view > *:nth-child(1) { transition-delay: 0s; }
.reveal-children.in-view > *:nth-child(2) { transition-delay: 0.18s; }
.reveal-children.in-view > *:nth-child(3) { transition-delay: 0.36s; }

/* ===========================
   Reduced motion (erisilebilirlik)
   =========================== */
@media (prefers-reduced-motion: reduce) {
    .brand-logo,
    .brand-text,
    .navbar-links li,
    .hero-company,
    .hero-name,
    .hero-department,
    .hero-scroll,
    .hero-scroll svg,
    .reveal,
    .reveal-children > * {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
    .hero-scroll { transform: translateX(-50%); }
    .hero-divider {
        width: 60px;
        animation: none;
    }
    .logo-final { animation: none; opacity: 1; }
    .logo-svg   { animation: none; opacity: 0; }
}
