:root {
    --shell-width: min(1780px, calc(100% - 18px));
    --shell-radius: 18px;
    --bg-main: #04162d;
    --bg-secondary: #082347;
    --surface: rgba(7, 24, 47, 0.8);
    --surface-soft: rgba(11, 34, 64, 0.75);
    --text-main: #f5f7fb;
    --text-soft: #b9c8db;
    --border: rgba(255, 194, 65, 0.26);
    --line: rgba(102, 158, 225, 0.25);
    --gold: #f3b537;
    --gold-2: #ffd86e;
    --gold-glow: rgba(243, 181, 55, 0.45);
    --blue-glow: rgba(51, 132, 255, 0.2);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

body.theme-light {
    --bg-main: #eef5fc;
    --bg-secondary: #dcebf9;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-soft: rgba(255, 255, 255, 0.8);
    --text-main: #0f2341;
    --text-soft: #4e647f;
    --border: rgba(243, 181, 55, 0.38);
    --line: rgba(19, 72, 141, 0.16);
    --gold: #da9e20;
    --gold-2: #f4c85d;
    --gold-glow: rgba(218, 158, 32, 0.3);
    --blue-glow: rgba(33, 106, 213, 0.12);
    --shadow: 0 18px 42px rgba(31, 59, 94, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background:
      radial-gradient(circle at top right, rgba(58, 120, 207, 0.24), transparent 30%),
      radial-gradient(circle at bottom left, rgba(58, 120, 207, 0.14), transparent 26%),
      linear-gradient(135deg, var(--bg-main) 0%, #031226 35%, var(--bg-secondary) 100%);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.site-shell {
    width: var(--shell-width);
    margin: 10px auto;
    padding-top: 82px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--shell-radius);
    overflow: visible;
    background: linear-gradient(180deg, rgba(7, 24, 47, 0.28), rgba(7, 24, 47, 0.10));
    box-shadow: 0 25px 80px rgba(0,0,0,.24);
}
body.theme-light .site-shell {
    background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.46));
}

.site-header {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--shell-width);
    z-index: 1000;
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(7, 24, 47, 0.94), rgba(7, 24, 47, 0.82));
    border: 1px solid var(--line);
    border-radius: var(--shell-radius) var(--shell-radius) 0 0;
    box-shadow: 0 12px 36px rgba(0,0,0,.24);
}
body.theme-light .site-header {
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
}
.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -.04em;
}
.brand .accent { color: var(--gold); text-shadow: 0 0 16px rgba(243,181,55,.25); }
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}
.main-nav a {
    position: relative;
    font-weight: 600;
    color: var(--text-main);
    opacity: .88;
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -16px;
    width: 0;
    height: 3px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
    box-shadow: 0 0 16px var(--gold-glow);
    transition: width .25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.theme-toggle {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.toggle-track {
    width: 92px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border: 1px solid var(--border);
    background: rgba(4, 22, 45, 0.66);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 0 24px rgba(255, 193, 47, 0.16);
}
body.theme-light .toggle-track { background: rgba(255,255,255,.82); }
.toggle-icon,
.toggle-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #f9c642;
}
.toggle-thumb {
    background: linear-gradient(180deg, #f5c74c, #f0a910);
    color: #0f2341;
    box-shadow: 0 0 16px rgba(255, 200, 72, 0.55);
}
body.theme-light .toggle-thumb { transform: translateX(-40px); }
.mobile-toggle { display: none; }

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 30px 0 12px;
    isolation: isolate;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 76% 33%, rgba(68, 134, 255, .14), transparent 22%),
      radial-gradient(circle at 0% 100%, rgba(255, 191, 0, 0.10), transparent 24%);
    z-index: -2;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    align-items: center;
    gap: 34px;
}
.hero-content { padding: 8px 0 0; }
.hero-kicker {
    margin: 0 0 18px;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: .26em;
    font-size: 1.05rem;
}
.hero-kicker::after {
    content: '';
    display: inline-block;
    width: 86px;
    height: 4px;
    margin-left: 14px;
    border-radius: 999px;
    vertical-align: middle;
    background: linear-gradient(90deg, var(--gold), transparent);
    box-shadow: 0 0 14px rgba(255, 200, 90, .55);
}
.hero-title {
    margin: 0;
    display: flex;
    flex-direction: column;
    line-height: .92;
    font-size: clamp(4rem, 8vw, 7.4rem);
    font-weight: 900;
    letter-spacing: -.06em;
}
.hero-title .accent { color: var(--gold); }
.hero-title .neon {
    text-shadow:
      0 0 10px rgba(255, 200, 90, .58),
      0 0 22px rgba(255, 188, 47, .42),
      0 0 36px rgba(255, 188, 47, .22);
}
.hero-title span:first-child {
    text-shadow: 0 0 18px rgba(240, 247, 255, 0.14);
}
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 26px 0 18px;
    font-weight: 800;
    font-size: 1.1rem;
}
.hero-tags span { display: inline-flex; align-items: center; }
.hero-tags span + span::before {
    content: '•';
    color: var(--gold);
    margin: 0 14px;
    font-size: 1.05rem;
}
.hero-description {
    max-width: 720px;
    margin: 0 0 26px;
    color: var(--text-soft);
    font-size: 1.28rem;
    line-height: 1.72;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.btn {
    min-height: 68px;
    padding: 0 34px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.15rem;
    font-weight: 800;
    transition: .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    color: #091b35;
    background: linear-gradient(180deg, #ffd64f 0%, #f1b72a 100%);
    box-shadow: 0 0 0 1px rgba(255, 214, 79, 0.6), 0 0 22px rgba(255, 208, 89, .42);
}
.btn-secondary {
    color: var(--text-main);
    border: 1px solid var(--border);
    background: rgba(8, 28, 54, 0.34);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 0 20px rgba(255, 196, 79, .10);
}
body.theme-light .btn-secondary { background: rgba(255,255,255,.54); }
.btn.small { min-height: 56px; padding: 0 24px; border-radius: 18px; font-size: 1rem; }

.social-list { display: flex; gap: 18px; }
.social-list a {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.45rem;
    border: 1px solid var(--border);
    background: rgba(7, 24, 47, 0.3);
    box-shadow: 0 0 16px rgba(255, 185, 45, 0.16);
}
body.theme-light .social-list a { background: rgba(255,255,255,.64); }

.hero-visual {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 58px;
}
.portrait-wrap {
    position: relative;
    width: 420px;
    height: 420px;
    padding: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 230, 157, 0.3), rgba(255, 209, 84, 0.06) 58%, transparent 70%);
    box-shadow:
      0 0 0 2px rgba(255, 200, 72, .58),
      0 0 26px rgba(255, 200, 72, .6),
      0 0 74px rgba(255, 183, 43, .28);
    z-index: 3;
}
.portrait-wrap::before,
.portrait-wrap::after {
    content: '';
    position: absolute;
    inset: -26px;
    border-radius: 50%;
    border: 2px solid rgba(255, 192, 57, .32);
    z-index: -1;
}
.portrait-wrap::after {
    inset: -46px;
    opacity: .36;
    border-color: rgba(255, 192, 57, .20);
}
.portrait-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
    background:
      linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
      url('../images/hasan-bakarlar-focus.png') center center / cover no-repeat;
}
.portrait-inner img {
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: cover;
}
.orbital-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 196, 79, 0.16);
    z-index: 1;
}
.ring-1 { width: 530px; height: 530px; top: 12px; right: 28px; }
.ring-2 { width: 310px; height: 310px; top: 112px; right: 0; border-color: rgba(98, 148, 255, 0.08); }
.glow-dots {
    position: absolute;
    width: 96px;
    height: 154px;
    background-image: radial-gradient(circle, rgba(255, 199, 64, 0.88) 2px, transparent 2.2px);
    background-size: 18px 18px;
    opacity: .9;
    filter: drop-shadow(0 0 8px rgba(255, 194, 65, .26));
}
.dots-left { top: 118px; left: 8px; }
.dots-right { right: 18px; bottom: 78px; }
.quote-card {
    position: absolute;
    top: 206px;
    right: -122px;
    width: 326px;
    padding: 28px 28px 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 196, 79, .58);
    background: linear-gradient(180deg, rgba(9, 27, 53, 0.94), rgba(8, 25, 47, 0.86));
    box-shadow: 0 0 26px rgba(255, 190, 54, .24);
    z-index: 4;
}
body.theme-light .quote-card { background: rgba(255,255,255,.92); }
.quote-mark {
    display: inline-block;
    color: var(--gold);
    font-size: 2.6rem;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 0 12px rgba(255, 196, 79, .36);
}
.quote-card p {
    margin: 0 0 12px;
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    line-height: 1.5;
}
.quote-card strong {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.hero-wave {
    position: absolute;
    left: -2%;
    width: 104%;
    border-radius: 50% 50% 0 0;
    pointer-events: none;
}
.hero-wave-1 {
    bottom: 2px;
    height: 64px;
    background: radial-gradient(ellipse at center, rgba(60, 128, 255, 0.18), transparent 70%);
}
.hero-wave-2 {
    bottom: 0;
    height: 52px;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 17, 34, 0.88) 100%);
    clip-path: polygon(0 62%, 12% 54%, 28% 64%, 45% 52%, 64% 67%, 80% 55%, 100% 65%, 100% 100%, 0 100%);
    box-shadow: inset 0 1px 0 rgba(255, 196, 79, .45);
}

.teaser-section,
.mini-gallery,
.site-footer {
    position: relative;
    border-top: 1px solid rgba(255,255,255,.04);
}
.teaser-section {
    background: linear-gradient(180deg, rgba(4,22,45,.22), rgba(4,22,45,.02));
}
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 22px;
    padding: 26px 0;
}
.teaser-card,
.gallery-box,
.footer-inner {
    background: var(--surface-soft);
    border: 1px solid rgba(255,255,255,.05);
    box-shadow: var(--shadow);
}
.teaser-card {
    border-radius: 20px;
    padding: 28px;
}
.teaser-card h2,
.mini-gallery h2,
.site-footer h3 { margin: 0 0 10px; }
.teaser-card p,
.site-footer p { margin: 0; color: var(--text-soft); line-height: 1.72; }
.mini-gallery-inner { padding: 0 0 34px; }
.gallery-strip { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 22px; }
.gallery-box {
    min-height: 220px;
    border-radius: 22px;
    overflow: hidden;
}
.gallery-box.active img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.gallery-box.soft {
    background: linear-gradient(145deg, rgba(255, 196, 79, 0.12), rgba(72, 133, 255, 0.12));
}
.site-footer { padding: 20px 0 26px; }
.footer-inner {
    border-radius: 22px;
    padding: 26px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

@media (max-width: 1180px) {
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-content { padding-bottom: 6px; }
    .hero-visual { min-height: 460px; padding-right: 0; }
    .quote-card { right: 10px; top: 206px; }
    .teaser-grid,
    .gallery-strip { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
    .mobile-toggle {
        display: inline-flex;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: rgba(7, 24, 47, 0.24);
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    .mobile-toggle span {
        width: 22px;
        height: 2px;
        background: var(--text-main);
        border-radius: 10px;
    }
    .main-nav {
        position: absolute;
        top: calc(100% + 12px);
        left: 16px;
        right: 16px;
        margin-left: 0;
        padding: 18px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        border-radius: 18px;
        border: 1px solid rgba(255,255,255,.08);
        background: rgba(6, 20, 38, .96);
        box-shadow: 0 16px 44px rgba(0,0,0,.38);
    }
    body.theme-light .main-nav { background: rgba(255,255,255,.95); }
    .main-nav.open { display: flex; }
    .main-nav a::after { bottom: -5px; }
    .header-inner { min-height: 84px; }
    .brand { font-size: 1.6rem; }
    .theme-toggle { margin-left: auto; }
}

@media (max-width: 768px) {
    .container { width: min(100% - 30px, 1320px); }
    .site-shell { width: calc(100% - 8px); margin: 4px auto; padding-top: 84px; border-radius: 14px; }
    .hero-section { padding-top: 18px; }
    .hero-title { font-size: clamp(3rem, 14vw, 5.6rem); }
    .hero-kicker { font-size: .92rem; letter-spacing: .18em; }
    .hero-description { font-size: 1rem; }
    .btn { width: 100%; }
    .social-list a { width: 54px; height: 54px; font-size: 1.15rem; }
    .hero-visual { min-height: 430px; }
    .portrait-wrap { width: 280px; height: 280px; }
    .ring-1 { width: 420px; height: 420px; top: 40px; right: auto; }
    .ring-2 { width: 250px; height: 250px; right: -8px; top: 130px; }
    .quote-card {
        position: relative;
        width: 100%;
        max-width: 360px;
        top: auto;
        right: auto;
        margin: 18px auto 0;
    }
    .dots-left { top: 45px; left: -4px; }
    .dots-right { right: 0; bottom: 68px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  :root { --shell-width: calc(100% - 8px); --shell-radius: 14px; }
  .site-header { top: 4px; }
}

@media (min-width: 1181px) {
  .hero-visual { transform: translateX(-14px); }
}
