/* Barış Bayri — Clean Portfolio */

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

:root {
    --bg: #faf9f6;
    --bg2: #e8f0fa;
    --card: #ffffff;
    --text: #3d4f63;
    --heading: #1a365d;
    --accent: #c17817;
    --accent2: #e6a020;
    --border: rgba(26, 54, 93, 0.12);
    --shadow: rgba(26, 54, 93, 0.08);
    --shadow-lg: rgba(26, 54, 93, 0.15);
    --radius: 14px;
    --font: 'DM Sans', system-ui, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
    --max: 1140px;
    --header-h: 72px;
}

html { scroll-behavior: smooth; background: var(--bg); }

body {
    font-family: var(--font);
    background: var(--bg) !important;
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: 0.25s; }
a:hover { color: var(--accent2); }

.container {
    width: min(var(--max), 100% - 40px);
    margin-inline: auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--heading);
    line-height: 1.2;
    font-weight: 600;
}

/* ---- Header ---- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    height: var(--header-h);
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: 0.3s;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 24px var(--shadow);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand img {
    height: 40px;
    width: auto;
}

.brand-text {
    font-family: 'Great Vibes', cursive;
    font-size: 2.15rem;
    font-weight: 400;
    color: var(--heading);
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.brand-text-footer {
    display: inline-block;
    font-size: 1.85rem;
    margin-bottom: 8px;
}

.site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav > ul > li { position: relative; }

.site-nav a {
    display: block;
    padding: 8px 14px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--accent);
    background: rgba(184, 134, 11, 0.1);
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
    box-shadow: 0 12px 32px var(--shadow-lg);
}

.has-sub:hover .sub-menu { display: block; }

.sub-menu a { font-size: 0.85rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--heading);
    transition: 0.3s;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    transition: 0.25s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #1a1200;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.28);
    color: #1a1200;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(184, 134, 11, 0.5);
    color: var(--accent);
}

.btn-outline:hover {
    background: rgba(184, 134, 11, 0.08);
    color: var(--accent2);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    height: 62vh;
    min-height: 380px;
    max-height: 520px;
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(26, 54, 93, 0.55) 35%, rgba(26, 54, 93, 0.15) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
}

.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent2);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    margin-bottom: 16px;
    color: #ffffff;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-lead {
    font-size: 1.15rem;
    max-width: 520px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.65);
    color: #ffffff;
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: #ffffff;
}

/* ---- Sections ---- */
.section {
    padding: 90px 0;
}

.section-alt {
    background: var(--bg2);
}

.section:not(.section-alt):not(.section-stats) {
    background: var(--bg);
}

.section-stats {
    padding: 44px 0;
}

.section-head {
    margin-bottom: 48px;
    text-align: left;
}

.section-head.center { text-align: center; }

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-head p {
    margin-top: 12px;
    max-width: 560px;
}

.section-head.center p { margin-inline: auto; }

/* ---- About grid ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-grid-single {
    grid-template-columns: 1fr;
    max-width: 820px;
}

.about-grid p {
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.info-cards {
    display: grid;
    gap: 14px;
}

.info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: 0.25s;
    box-shadow: 0 4px 16px var(--shadow);
}

.info-card:hover {
    border-color: rgba(184, 134, 11, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow-lg);
}

.info-card strong {
    display: block;
    color: var(--heading);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    color: var(--accent);
}

.info-card span { font-size: 0.95rem; }

/* ---- Stats ---- */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    margin-top: 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text);
}

/* ---- Blog cards ---- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px var(--shadow);
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(184, 134, 11, 0.3);
    box-shadow: 0 16px 40px var(--shadow-lg);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.blog-card-body p {
    font-size: 0.92rem;
    flex: 1;
    margin-bottom: 16px;
}

.read-more {
    font-weight: 600;
    font-size: 0.88rem;
}

/* ---- Page hero (inner) ---- */
.page-hero {
    padding: calc(var(--header-h) + 60px) 0 60px;
    background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }

/* ---- Two column layout ---- */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    padding: 60px 0 90px;
}

.page-layout-single {
    grid-template-columns: 1fr;
    max-width: 820px;
}

.contact-head {
    margin-bottom: 32px;
    padding-top: calc(var(--header-h) + 40px);
}

.contact-head h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.contact-head p {
    margin-top: 0;
    max-width: none;
    color: var(--text);
    font-size: 1.02rem;
}

.prose { font-size: 1.02rem; }
.prose p { margin-bottom: 18px; color: var(--text); }
.prose h2, .prose h3, .prose h4 { margin: 24px 0 12px; color: var(--heading); }
.prose ul, .prose ol { margin: 0 0 18px 24px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose strong { color: var(--heading); }

.sidebar-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px var(--shadow);
}

.sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--accent);
}

.sidebar-card blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    font-style: italic;
    color: var(--heading);
}

.video-embed {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg2);
}

.video-embed iframe,
.video-embed video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-embed video {
    object-fit: contain;
    background: #0f2744;
}

/* ---- Contact form ---- */
.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--heading);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--heading);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.92rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #15803d;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #b91c1c;
}

/* ---- Pagination ---- */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 40px;
    list-style: none;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
}

.pagination a.active,
.pagination a:hover {
    background: var(--accent);
    color: #1a1200;
    border-color: var(--accent);
}

.text-center { text-align: center; }
.mt-lg { margin-top: 40px; }

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
    aspect-ratio: 4 / 3;
    transition: 0.3s;
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 134, 11, 0.35);
    box-shadow: 0 12px 32px var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px;
    background: linear-gradient(transparent, rgba(15, 39, 68, 0.82));
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
}

.gallery-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(212, 168, 67, 0.95);
    color: #1a1200;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    padding-left: 4px;
    box-shadow: 0 8px 24px var(--shadow-lg);
}

/* ---- Certificates ---- */
.page-section {
    padding: 60px 0 90px;
}

.page-hero-lead {
    margin-top: 12px;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.cert-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px var(--shadow-lg);
}

.cert-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f6fa;
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.cert-card:hover .cert-image img {
    transform: scale(1.04);
}

.cert-title {
    margin: 0;
    padding: 16px 18px 18px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
}

/* ---- Footer ---- */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding-top: 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: start;
    padding-bottom: 40px;
}

.footer-logo {
    height: 36px;
    opacity: 0.85;
    margin-bottom: 10px;
}

.footer-block h4 {
    font-family: var(--font);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
}

.footer-block p,
.footer-block a {
    font-size: 0.9rem;
    color: var(--text);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    padding: 6px 12px;
    background: rgba(184, 134, 11, 0.1);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--accent);
}

.social-links a:hover {
    background: var(--accent);
    color: #1a1200;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 18px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text);
}

/* ---- Animations ---- */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .about-grid,
    .page-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats { grid-template-columns: 1fr; gap: 20px; }

    .section-stats { padding: 36px 0; }

    .nav-toggle { display: flex; }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto;
        background: var(--card);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: 0.3s;
        box-shadow: 0 8px 24px var(--shadow);
    }

    .site-nav.open {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav ul { flex-direction: column; align-items: stretch; }

    .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 12px;
    }
}

@media (max-width: 600px) {
    .section { padding: 60px 0; }
    .hero {
        height: 50vh;
        min-height: 320px;
        max-height: 420px;
    }
    .hero h1 { font-size: 2.2rem; }
}
