/* ==========================================================================
   NEXORA PURPLE STYLE - LARGER 3D TOWER OVERFLOWING INTO WHITE AREA & GENTLE 360°
   ========================================================================== */

:root {
    --bg-page: #F0F0F0;
    --card-bg: #ffffff;
    
    --purple-primary: #1d1538;
    --purple-dark: #392b66;
    --purple-deep: #120c24;
    --purple-light: #4c3b80;
    --purple-soft: #f4f1fa;
    --purple-badge: #e6e0f3;
    
    --text-body: #374151;
    --text-muted: #6b7280;
    
    --accent-lime: #A5BF13;
    --accent-teal: #62929E;
    --accent-pink: #ec4899;
    --accent-yellow: #f59e0b;
    --accent-orange: #f97316;
    
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-script: 'Caveat', cursive;
    
    --radius-card: 40px;
    --radius-inner: 32px;
}

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

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    padding: 24px 16px 40px 16px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.page-canvas {
    width: 100%;
    max-width: 1020px;
}

/* Main Portfolio Card Container */
.portfolio-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.12), 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: visible;
    padding: 0 0 40px 0;
    position: relative;
    isolation: isolate;
}

/* --- 1. TOP HEADER BAR --- */
.nexora-header {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 24px 28px 12px 28px;
    gap: 12px;
    position: relative;
    z-index: 9000;
    pointer-events: auto;
}

/* Ensure all nav buttons inside header are always clickable */
.nexora-header * {
    pointer-events: auto;
}

.nexora-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.header-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1d1538 0%, #392b66 100%);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 22px;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 14.5px;
    box-shadow: 0 4px 14px rgba(29, 21, 56, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-brand-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 21, 56, 0.35);
}

.header-brand-pill .brand-icon {
    font-size: 16px;
    color: var(--accent-yellow);
}

.nexora-nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow: visible;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px 8px 2px;
    position: relative;
    z-index: 500;
    flex-wrap: wrap;
    justify-content: center;
}

.nexora-nav-left::-webkit-scrollbar {
    display: none;
}

.nav-flat-btn {
    border: 1.5px solid #e9d5ff;
    background: #faf5ff;
    color: #374151;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.04);
}

.nav-flat-btn:hover, .nav-flat-btn.active {
    background: #e9d5ff;
    color: #392b66;
    border-color: #7c3aed;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.18);
}

.special-icon {
    font-size: 13px;
}

/* Navigation Dropdown Menu for 8. Sınıf */
.nav-dropdown-wrapper {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.nav-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.dropdown-arrow {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.nav-dropdown-wrapper.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown menü - body'e portal olarak ekleniyor, overflow clipping sorunu yok */
.nav-dropdown-menu {
    position: fixed;
    background: #ffffff !important;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.25), 0 6px 20px rgba(0, 0, 0, 0.12);
    border: 2px solid #e9d5ff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    transform-origin: top left;
    transition: opacity 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0.25s;
    z-index: 999999 !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.nav-dropdown-menu.active,
.nav-dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

/* Unit Page Specific Styles */
.unit-page-header {
    padding: 24px 36px 12px 36px;
}

.unit-header-card {
    background: linear-gradient(135deg, #1d1538 0%, #392b66 100%);
    border-radius: var(--radius-inner);
    padding: 40px 36px;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(29, 21, 56, 0.3);
}

.unit-tag-pill {
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 14px;
    backdrop-filter: blur(4px);
}

.unit-header-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.unit-header-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.unit-content-area {
    padding: 24px 36px 40px 36px;
}

.blank-content-box {
    background: #faf5ff;
    border: 2px dashed #e9d5ff;
    border-radius: var(--radius-inner);
    padding: 60px 40px;
    text-align: center;
    color: var(--text-body);
}

.blank-icon {
    font-size: 48px;
    color: var(--purple-primary);
    margin-bottom: 16px;
}

.blank-content-box h3 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 24px;
    color: var(--purple-dark);
    margin-bottom: 8px;
}

.blank-content-box p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ==========================================================================
   UNIT SUB-TOPICS SECTION STYLING (Siyah Güzel Font & Site İle Uyumlu Tasarım)
   ========================================================================== */

.unit-subtopics-header {
    margin-bottom: 24px;
}

.subtopics-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--purple-badge);
    color: var(--purple-primary);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.subtopics-title {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 800;
    color: #0f172a; /* Deep rich black */
    letter-spacing: -0.02em;
}

.topic-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topic-card {
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 24px;
    padding: 26px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.topic-card:hover {
    transform: translateY(-5px);
    border-color: #c084fc;
    box-shadow: 0 16px 36px rgba(124, 58, 237, 0.14);
}

.topic-card-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.topic-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.topic-icon-wrapper.theme-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.topic-icon-wrapper.theme-blue {
    background: #e0f2fe;
    color: #0284c7;
}

.topic-icon-wrapper.theme-amber {
    background: #fef3c7;
    color: #d97706;
}

.topic-icon-wrapper.theme-rose {
    background: #ffe4e6;
    color: #e11d48;
}

.topic-badge {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px 14px;
    border-radius: 14px;
}

.topic-heading-black {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 21px;
    line-height: 1.35;
    color: #09090b; /* Siyah özel ve yüksek kaliteli font */
    margin-bottom: 12px;
    letter-spacing: -0.015em;
}

.topic-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 20px;
    flex-grow: 1;
}

.topic-tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.topic-card:hover .tag-pill {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #6d28d9;
}

.tag-pill i {
    font-size: 11px;
    color: #7c3aed;
}

/* Minimal Resource Buttons Style */
.topic-resources-container {
    margin-top: 14px;
    margin-bottom: 16px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

.resources-title {
    display: block;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.resource-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resource-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.resource-btn:hover {
    background: var(--purple-soft);
    border-color: #c084fc;
    color: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-body);
    transition: all 0.2s ease;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 100001;
    pointer-events: auto;
}

.dropdown-item * {
    pointer-events: none;
}

.dropdown-item:hover {
    background: var(--purple-soft);
    color: var(--purple-dark);
    transform: translateX(4px);
}

.unit-badge {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 11px;
    background: var(--purple-badge);
    color: var(--purple-dark);
    padding: 3px 9px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.dropdown-item:hover .unit-badge {
    background: var(--purple-primary);
    color: #ffffff;
}

.unit-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.35;
}

.nexora-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}

.icon-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-circle-btn:hover {
    background: var(--purple-badge);
    color: var(--purple-dark);
}

.archive-pill-btn {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.archive-pill-btn:hover {
    background: var(--purple-dark);
    color: #ffffff;
    border-color: var(--purple-dark);
}

/* --- 2. HERO SECTION --- */
.nexora-hero-section {
    padding: 0px 36px 12px 36px;
    position: relative;
    z-index: 1;
}

/* Big Typography Header / Brand Logo */
.hero-split-titles {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
    position: relative;
    z-index: 10;
}

.hero-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.hero-brand-logo {
    height: 180px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,0.04));
}

/* Enlarged Interactive Logo Button */
.hadi-logo-btn {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer !important;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 100;
    pointer-events: auto !important;
    outline: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    margin-top: -15px;
}

.hadi-logo-btn:hover {
    transform: scale(1.06) translateY(-4px);
}

.hadi-logo-btn:active {
    transform: scale(0.98);
}

.hero-brand-logo.secondary-logo.enlarged-logo {
    height: 220px; /* Noticeably enlarged logo */
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 8px 24px rgba(124, 58, 237, 0.15));
}

.hadi-logo-btn:hover .hero-brand-logo.secondary-logo.enlarged-logo {
    filter: drop-shadow(0 12px 32px rgba(124, 58, 237, 0.35));
}

.chat-badge-pill {
    background: linear-gradient(135deg, #1d1538 0%, #392b66 100%);
    color: #ffffff;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 800;
    padding: 7px 18px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: -48px;
    box-shadow: 0 6px 20px rgba(29, 21, 56, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    animation: badgePulseGlow 3s infinite alternate;
}

.hadi-logo-btn:hover .chat-badge-pill {
    background: linear-gradient(135deg, #392b66 0%, #120c24 100%);
    box-shadow: 0 8px 26px rgba(29, 21, 56, 0.5);
    transform: translateY(-2px);
}

.spark-icon {
    color: var(--accent-yellow);
    font-size: 11px;
}

@keyframes badgePulseGlow {
    0% { box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3); }
    100% { box-shadow: 0 8px 28px rgba(124, 58, 237, 0.55), 0 0 0 6px rgba(124, 58, 237, 0.12); }
}

/* Purple Hero Container Box (#1d1538 Midnight Indigo Palette) */
.purple-hero-box {
    background: linear-gradient(135deg, #1d1538 0%, #392b66 100%);
    border-radius: var(--radius-inner);
    padding: 40px 40px 20px 40px;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 24px;
    align-items: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(29, 21, 56, 0.4);
    overflow: visible;
}

.purple-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    pointer-events: none;
    border-radius: var(--radius-inner);
}

/* Left Content inside Purple Box */
.purple-box-left {
    position: relative;
    z-index: 20;
}

.hero-tag-badge {
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 14px;
    backdrop-filter: blur(4px);
}

.purple-box-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 12px;
}

.purple-box-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
    margin-bottom: 22px;
    max-width: 440px;
}

.explore-black-btn {
    border: none;
    background: #A5BF13;
    color: #1a1a1a;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 14px;
    padding: 13px 26px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 6px 18px rgba(165, 191, 19, 0.3);
    margin-bottom: 0;
}

.explore-black-btn:hover {
    background: #b8d415;
    transform: translateY(-2px);
}

/* History Fact Card inside Hero Box (Transparent Background - No Box/Shadow) */
.history-fact-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 20px;
    max-width: 480px;
    box-shadow: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 50;
    pointer-events: auto;
}

.fact-icon-badge {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 800;
    color: #1a1a1a;
    background: #A5BF13;
    border: none;
    padding: 5px 14px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(165, 191, 19, 0.35);
}

.fact-icon-badge i {
    color: #1a1a1a;
}

.fact-text {
    font-size: 15px;
    line-height: 1.55;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 12px;
}

.fact-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 60;
    pointer-events: auto;
}

.fact-tag {
    font-size: 12px;
    font-weight: 700;
    color: #ddd6fe;
}

.next-fact-btn {
    border: none;
    background: #A5BF13;
    color: #1a1a1a;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 12.5px;
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 100 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 4px 14px rgba(165, 191, 19, 0.35);
}

.next-fact-btn:hover {
    background: #b8d415;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(165, 191, 19, 0.5);
}

.hero-action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.loved-by-pill {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
}

.avatar-stack {
    display: flex;
    margin-right: -4px;
}

.mini-av {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    margin-right: -6px;
    border: 1px solid var(--purple-primary);
}

.pink-heart {
    color: var(--accent-pink);
}

/* RIGHT TOWER CONTAINER: ANCHORED AT PURPLE BOX BOTTOM & EXTENDING TURKISH FLAG HIGH INTO WHITE TOP AREA */
.purple-box-right-tower {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    align-self: flex-end;
    z-index: 5;
    perspective: 1200px;
    margin-top: -460px; /* Bayrağın üstteki beyaz alana dengeli taşmasını sağlar */
    margin-bottom: -90px; /* Soldan taşmadan alt tabana dengeli oturması */
    pointer-events: none;
}

.badge-360 {
    background: #ffffff;
    color: var(--purple-dark);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: floatBadge 3.5s ease-in-out infinite alternate;
    z-index: 25;
    pointer-events: auto;
    cursor: pointer;
}

.badge-360 i {
    color: var(--purple-primary);
    animation: spinIcon 5s linear infinite;
}

@keyframes spinIcon {
    100% { transform: rotate(360deg); }
}

@keyframes floatBadge {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

/* Standalone 3D PNG Tower Wrapper - Optimal size fitting neatly on right side */
.tower-3d-wrapper {
    position: relative;
    width: 660px;
    height: 960px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    background: transparent;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}

/* Crisp Clean High-Res 3D Tower Image (Static & Crisp) */
.tower-png-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    background: transparent;
    filter: brightness(1.22) contrast(1.08) drop-shadow(0 12px 35px rgba(255, 255, 255, 0.3));
    pointer-events: none;
}

/* --- 3. ABOUT ME SECTION --- */
.section-container {
    padding: 40px 48px;
}

.about-label {
    font-style: italic;
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
}

.about-grid-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: center;
}

.about-text-col {
    position: relative;
}

.purple-arrow-doodle {
    position: absolute;
    top: -35px;
    right: 40px;
    pointer-events: none;
}

.person-name-title {
    font-family: var(--font-head);
    font-weight: 900;
    font-size: 38px;
    line-height: 1.05;
    color: var(--purple-dark);
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.person-aka {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 18px;
}

.bio-paragraph {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.65;
    margin-bottom: 24px;
}

.social-contact-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-item {
    text-decoration: none;
    color: var(--purple-dark);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease;
}

.social-item i {
    font-size: 16px;
    color: var(--purple-primary);
}

.social-item:hover {
    color: var(--accent-pink);
}

/* Circular Avatar Frame */
.circular-avatar-frame {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.15);
    border: 4px solid var(--purple-soft);
    background: #f1f5f9;
}

.avatar-circle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- 4. EDUCATION & SKILLS SECTION --- */
.skills-edu-section {
    padding-top: 10px;
}

.skills-edu-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.45fr;
    gap: 24px;
    align-items: center;
}

.block-heading {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 26px;
    color: var(--purple-dark);
    letter-spacing: -0.5px;
}

.title-with-doodle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.purple-icon {
    color: var(--purple-primary);
    font-size: 20px;
}

.left-kavramlar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.inkilap-kavramlar-btn {
    border: none;
    background: transparent;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
}

.inkilap-kavramlar-btn:hover {
    transform: translateY(-4px) scale(1.05);
}

.inkilap-kavramlar-btn:active {
    transform: scale(0.97);
}

.kavramlar-img-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.kavramlar-graphic-img {
    max-width: 100%;
    max-height: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: filter 0.35s ease, transform 0.35s ease;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.05));
}

.inkilap-kavramlar-btn:hover .kavramlar-graphic-img {
    filter: drop-shadow(0 10px 24px rgba(124, 58, 237, 0.25));
}

/* Decorative Şeyh Edebali Radio Quote Graphic */
.right-quote-card {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.radio-quote-img-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.radio-quote-img {
    max-width: 100%;
    max-height: 640px;
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.35s ease, filter 0.35s ease;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.05));
}

.radio-quote-img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 8px 20px rgba(124, 58, 237, 0.2));
}

/* --- 5. PUBLICATIONS SECTION --- */
.publications-section {
    border-top: 1px solid #f3e8ff;
    padding-top: 36px;
}

.margin-bottom-lg {
    margin-bottom: 24px;
}

.minimal-pub-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    border-radius: 16px;
    background: #faf5ff;
    transition: background 0.2s ease;
}

.pub-row:hover {
    background: #f3e8ff;
}

.pub-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 80px;
}

.pub-type-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--purple-primary);
    letter-spacing: 0.5px;
}

.pub-year-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.pub-main-info {
    flex: 1;
}

.pub-heading {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 16px;
    color: var(--purple-dark);
    margin-bottom: 2px;
}

.pub-detail {
    font-size: 13px;
    color: var(--text-body);
}

.purple-view-btn {
    border: none;
    background: var(--purple-primary);
    color: #ffffff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.purple-view-btn:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
}

/* --- 6. FOOTER --- */
.nexora-footer {
    padding: 0px 24px 20px 24px;
    margin-top: -65px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 20;
}

.contact-social-centered {
    text-align: center;
    max-width: 440px;
    width: 100%;
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
    padding: 20px 24px;
    border-radius: 24px;
    border: 1px solid #f3e8ff;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.06);
}

.contact-social-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--purple-primary);
    background: var(--purple-badge);
    padding: 3px 12px;
    border-radius: 14px;
    display: inline-block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.contact-social-title {
    font-family: 'Bodyhand', 'Bodyhand Script', 'Body Hand', 'Perfect Student', cursive;
    font-weight: 700;
    font-size: 26px;
    color: #0f172a;
    margin-bottom: 4px;
    letter-spacing: 0;
}

.contact-social-subtitle {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.45;
}

.contact-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #0f172a;
    color: #0f172a;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon-link:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

/* --- MINIMAL MODAL --- */
.minimal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(76, 29, 149, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999999;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.minimal-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    z-index: 99999999;
}

.minimal-modal-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 36px;
    max-width: 540px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.minimal-modal-overlay.active .minimal-modal-card {
    transform: translateY(0);
}

.modal-close-x {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-tag {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--purple-primary);
}

.modal-title-text {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 20px;
    color: var(--purple-dark);
    margin-top: 6px;
    margin-bottom: 14px;
}

.modal-body-content {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
}

.modal-list-item {
    background: #faf5ff;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-list-item h5 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 15px;
    color: var(--purple-dark);
}

.modal-list-item span {
    font-size: 12px;
    color: var(--purple-primary);
    font-weight: 700;
}

/* --- WIDESCREEN MINIMAL CHAT MODAL STYLES --- */
.chat-modal-overlay {
    background: rgba(46, 16, 101, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999999;
}

.chat-widescreen-card {
    max-width: 900px;
    width: 92%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 28px 36px;
    border-radius: 36px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 30px 80px rgba(76, 29, 149, 0.35);
    background: #ffffff;
    overflow: hidden;
}

.chat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3e8ff;
    margin-bottom: 20px;
}

.chat-assistant-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-avatar-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d1538, #392b66);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: relative;
    box-shadow: 0 4px 14px rgba(29, 21, 56, 0.35);
}

.online-indicator {
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
}

.chat-assistant-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 18px;
    color: var(--purple-dark);
    line-height: 1.2;
}

.chat-status-subtext {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.chat-close-x {
    position: static;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.chat-close-x:hover {
    background: var(--purple-badge);
    color: var(--purple-dark);
}

/* Welcome Banner with "Ne sormak istersin?" */
.chat-welcome-banner {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-radius: 24px;
    padding: 18px 24px;
    text-align: center;
    border: 1px solid #e9d5ff;
    margin-bottom: 20px;
}

.banner-badge-sparkle {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--purple-primary);
    background: #ffffff;
    padding: 4px 14px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
}

.chat-direct-prompt {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 900;
    color: var(--purple-dark);
    letter-spacing: -0.5px;
    margin-bottom: 0;
}

.chat-direct-subtext {
    font-size: 14px;
    color: var(--text-body);
    margin-bottom: 18px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.chat-quick-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.chip-item {
    background: #ffffff;
    border: 1px solid #ddd6fe;
    color: var(--purple-dark);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.05);
}

.chip-item:hover {
    background: var(--purple-primary);
    color: #ffffff;
    border-color: var(--purple-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.25);
}

/* Chat Messages Area */
.chat-messages-area {
    flex: 1;
    min-height: 180px;
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 10px 12px 10px 4px;
    margin-bottom: 18px;
    scrollbar-width: thin;
    scrollbar-color: #ddd6fe transparent;
}

.chat-messages-area::-webkit-scrollbar {
    width: 6px;
}

.chat-messages-area::-webkit-scrollbar-thumb {
    background-color: #ddd6fe;
    border-radius: 10px;
}

.message-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 85%;
    animation: fadeInMsg 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.assistant-row {
    align-self: flex-start;
}

.user-row {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--purple-badge);
    color: var(--purple-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.user-row .msg-avatar {
    background: #1d1538;
    color: #ffffff;
}

.msg-bubble {
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 14.5px;
    line-height: 1.55;
}

.assistant-row .msg-bubble {
    background: #faf5ff;
    color: var(--text-body);
    border: 1px solid #f3e8ff;
    border-top-left-radius: 4px;
}

.user-row .msg-bubble {
    background: linear-gradient(135deg, #1d1538 0%, #392b66 100%);
    color: #ffffff;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 14px rgba(29, 21, 56, 0.25);
}

/* Chat Input Form */
.chat-input-form {
    width: 100%;
}

.input-inner-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #faf5ff;
    border: 2px solid #e9d5ff;
    border-radius: 30px;
    padding: 6px 8px 6px 20px;
    transition: all 0.25s ease;
}

.input-inner-wrapper:focus-within {
    border-color: var(--purple-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(29, 21, 56, 0.12);
}

.search-input-icon {
    color: var(--purple-primary);
    font-size: 16px;
}

.chat-text-field {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-body);
    outline: none;
}

.chat-text-field::placeholder {
    color: #9ca3af;
}

.chat-submit-btn {
    border: none;
    background: linear-gradient(135deg, #1d1538 0%, #392b66 100%);
    color: #ffffff;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(29, 21, 56, 0.35);
}

.chat-submit-btn:hover {
    background: linear-gradient(135deg, #392b66 0%, #120c24 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(29, 21, 56, 0.5);
}

/* ==========================================================================
   MOBILE HEADER BAR & DRAWER NAVIGATION
   ========================================================================== */
@media (max-width: 992px) {
    .nexora-header {
        padding: 16px 14px 10px 14px;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .nexora-header-top {
        justify-content: space-between;
    }

    .nexora-nav-left {
        display: flex !important;
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 4px;
        width: 100%;
        justify-content: center;
        gap: 6px;
    }

    .nexora-nav-right {
        display: flex !important;
        margin-left: 0;
        justify-content: flex-end;
    }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM (MOBILE & TABLET OPTIMIZED)
   ========================================================================== */

/* 1. LARGE TABLETS & SMALL LAPTOPS (<= 1024px) */
@media (max-width: 1024px) {
    .page-canvas {
        max-width: 98%;
    }
}

/* 2. MEDIUM TABLETS & LANDSCAPE PHONES (<= 992px) */
@media (max-width: 992px) {
    body {
        padding: 12px 8px 32px 8px;
    }
    
    .portfolio-card {
        border-radius: 28px;
        overflow: visible;
    }
    
    .nexora-header {
        padding: 16px 14px 10px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .nexora-header-top {
        justify-content: space-between;
    }

    .nexora-nav-right {
        margin-left: 0;
        justify-content: flex-end;
        gap: 8px;
    }

    .nexora-nav-left {
        margin-left: 0 !important;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
        overflow: visible;
        white-space: normal;
    }

    .nav-flat-btn {
        padding: 8px 14px;
        font-size: 14px;
        background: #f4f1fa;
        border: 1.5px solid #e9d5ff;
        border-radius: 20px;
        font-weight: 700;
    }

    .nav-flat-btn:hover, .nav-flat-btn.active {
        background: #e9d5ff;
        color: #392b66;
        border-color: #7c3aed;
    }

    .nexora-hero-section {
        padding: 0px 16px 12px 16px;
    }

    .purple-hero-box {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
        padding: 28px 20px 20px 20px;
        justify-items: center;
        overflow: visible !important;
    }

    /* Ayasofya önce, metin sonra */
    .purple-box-right-tower {
        order: 1;
    }

    .purple-box-left {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 20px;
        padding: 22px 18px;
    }

    .purple-box-desc {
        margin-left: auto;
        margin-right: auto;
    }

    /* Ayasofya görseli: tablet yatay modda önce göster */
    .purple-box-right-tower {
        order: 1;
        display: flex !important;
        visibility: visible !important;
        justify-content: center;
        align-items: center;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        width: 100%;
        pointer-events: none;
        overflow: visible;
    }

    .tower-3d-wrapper {
        display: flex !important;
        visibility: visible !important;
        width: 340px;
        height: 480px;
        max-width: 90%;
        overflow: visible;
    }

    .tower-png-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: bottom center;
        display: block !important;
        visibility: visible !important;
    }

    .badge-360 {
        font-size: 11px;
        padding: 5px 13px;
    }

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

    .hero-brand-logo {
        height: 130px;
    }

    .hero-brand-logo.secondary-logo.enlarged-logo {
        height: 160px;
    }
}

/* 3. PORTRAIT TABLETS & LARGE PHONES (<= 768px) */
@media (max-width: 768px) {
    body {
        padding: 8px 6px 20px 6px;
    }

    .portfolio-card {
        border-radius: 24px;
        padding-bottom: 24px;
        overflow: visible;
    }

    .nexora-header {
        padding: 14px 12px 8px 12px;
        gap: 10px;
    }

    .nexora-hero-section {
        padding: 0px 12px 12px 12px;
    }

    /* Ayasofya önce, cam efektli metin sonra */
    .purple-box-right-tower {
        order: 1;
        display: flex !important;
        visibility: visible !important;
        justify-content: center;
        align-items: center;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        width: 100%;
        pointer-events: none;
        overflow: visible;
    }

    .purple-box-left {
        order: 2;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 20px;
        padding: 20px 16px;
    }

    .tower-3d-wrapper {
        display: flex !important;
        visibility: visible !important;
        width: 280px;
        height: 400px;
        max-width: 88%;
        overflow: visible;
    }

    .tower-png-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: bottom center;
        display: block !important;
        visibility: visible !important;
    }

    .hero-split-titles {
        justify-content: center;
        padding: 0;
        margin-bottom: 14px;
    }

    .hero-logo-wrapper {
        justify-content: center;
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }

    .hero-brand-logo {
        height: 110px;
    }

    .hero-brand-logo.secondary-logo.enlarged-logo {
        height: 140px;
    }

    .hadi-logo-btn {
        margin-top: 0;
    }

    .chat-badge-pill {
        margin-top: -12px;
        font-size: 11.5px;
        padding: 6px 14px;
    }

    /* Dropdown genişlik kısıtlaması - pozisyonlama JS ile yapılıyor */
    .nav-dropdown-menu {
        max-width: 92vw !important;
    }

    .purple-hero-box {
        padding: 24px 16px 18px 16px;
        border-radius: 22px;
    }

    .purple-box-title {
        font-size: 22px;
        line-height: 1.25;
        margin-bottom: 10px;
    }

    .history-fact-card {
        max-width: 100%;
        width: 100%;
        padding: 0;
    }

    .section-container {
        padding: 20px 14px;
    }

    .about-grid-layout, 
    .skills-edu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .kavramlar-graphic-img {
        max-height: 190px;
        width: auto;
    }

    .radio-quote-img {
        max-height: 300px;
        width: auto;
        margin: 0 auto;
    }

    .unit-page-header {
        padding: 14px 12px 6px 12px;
    }

    .unit-header-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .unit-header-title {
        font-size: 22px;
    }

    .unit-content-area {
        padding: 14px 12px 24px 12px;
    }

    .topic-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .topic-heading-black {
        font-size: 18px;
    }

    .pub-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .purple-view-btn {
        align-self: flex-start;
    }

    .nexora-footer {
        margin-top: 0;
        padding: 20px 14px 22px 14px;
    }

    .chat-widescreen-card {
        padding: 16px 12px;
        border-radius: 22px;
        width: 95%;
        max-height: 92vh;
    }

    .chat-direct-prompt {
        font-size: 20px;
    }
}

/* 4. STANDARD SMARTPHONES (<= 576px) */
@media (max-width: 576px) {
    body {
        padding: 6px 4px 16px 4px;
    }

    .portfolio-card {
        border-radius: 20px;
        padding-bottom: 18px;
        overflow: visible;
    }

    .nexora-header {
        padding: 12px 8px 6px 8px;
        gap: 8px;
    }

    .nexora-hero-section {
        padding: 0px 8px 10px 8px;
    }

    /* Ayasofya görseli: akıllı telefon ekranında önce göster */
    .purple-box-right-tower {
        order: 1;
        display: flex !important;
        visibility: visible !important;
        justify-content: center;
        align-items: center;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        width: 100%;
        pointer-events: none;
        overflow: visible;
    }

    .badge-360 {
        display: flex !important;
        visibility: visible !important;
        font-size: 11px;
        padding: 5px 13px;
    }

    .tower-3d-wrapper {
        display: flex !important;
        visibility: visible !important;
        width: 300px;
        height: 420px;
        max-width: 95%;
        overflow: visible;
        margin: 0 auto;
    }

    .tower-png-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: bottom center;
        display: block !important;
        visibility: visible !important;
    }

    .nexora-nav-left {
        gap: 5px;
    }

    .nav-flat-btn {
        padding: 6px 10px;
        font-size: 12.5px;
        border-radius: 16px;
        background: #faf5ff;
        border: 1.5px solid #e9d5ff;
        font-weight: 700;
        box-shadow: 0 2px 6px rgba(124, 58, 237, 0.04);
    }

    .nav-dropdown-menu {
        max-width: 94vw !important;
        width: 310px !important;
    }

    .hero-split-titles {
        margin-bottom: 10px;
    }

    .hero-logo-wrapper {
        gap: 8px;
    }

    .hero-brand-logo {
        height: 85px;
    }

    .hadi-logo-btn {
        margin-top: 0;
    }

    .hero-brand-logo.secondary-logo.enlarged-logo {
        height: 110px;
    }

    .chat-badge-pill {
        margin-top: -8px;
        font-size: 11px;
        padding: 5px 12px;
        border-radius: 20px;
    }

    .purple-hero-box {
        padding: 20px 14px 24px 14px;
        border-radius: 20px;
        gap: 14px;
        overflow: visible !important;
    }

    /* Ayasofya önce, cam efektli metin sonra */
    .purple-box-right-tower {
        order: 1;
    }

    .purple-box-left {
        order: 2;
        background: rgba(255, 255, 255, 0.07);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 18px;
        padding: 18px 14px;
    }

    .hero-tag-badge {
        font-size: 11px;
        padding: 4px 12px;
        border-radius: 14px;
    }

    .purple-box-title {
        font-size: 19px;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .purple-box-desc {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 14px;
    }

    .history-fact-card {
        margin-bottom: 14px;
    }

    .fact-icon-badge {
        font-size: 11px;
        padding: 3px 10px;
    }

    .fact-text {
        font-size: 13.5px;
        line-height: 1.5;
    }

    /* tower-3d-wrapper boyutları yukarıda (satır ~2176) birleştirildi */

    .badge-360 {
        font-size: 11px;
        padding: 5px 13px;
    }

    .section-container {
        padding: 16px 12px;
    }

    .kavramlar-graphic-img {
        max-height: 170px;
    }

    .radio-quote-img {
        max-height: 260px;
    }

    .unit-page-header {
        padding: 10px 8px 4px 8px;
    }

    .unit-header-card {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .unit-tag-pill {
        font-size: 11px;
        padding: 4px 10px;
    }

    .unit-header-title {
        font-size: 20px;
    }

    .unit-header-sub {
        font-size: 13px;
    }

    .unit-content-area {
        padding: 10px 8px 18px 8px;
    }

    .subtopics-title {
        font-size: 19px;
    }

    .topic-card {
        padding: 16px 12px;
        border-radius: 16px;
    }

    .topic-heading-black {
        font-size: 16px;
    }

    .topic-desc {
        font-size: 13px;
    }

    .resource-buttons-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .resource-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 10px 14px;
        font-size: 12.5px;
        font-weight: 700;
        background: #faf5ff;
        border: 1.5px solid #e9d5ff;
        border-radius: 14px;
        color: #4c1d95;
    }

    .contact-social-centered {
        padding: 16px 12px;
        border-radius: 18px;
    }

    .contact-social-title {
        font-size: 20px;
    }

    .contact-social-subtitle {
        font-size: 12px;
    }

    /* Modal Mobile Styling */
    .minimal-modal-card {
        padding: 18px 14px;
        border-radius: 20px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .chat-widescreen-card {
        padding: 14px 12px;
        border-radius: 20px;
        width: 96%;
        max-height: 95vh;
    }

    .chat-assistant-name {
        font-size: 15px;
    }

    .chat-status-subtext {
        font-size: 11px;
    }

    .chat-welcome-banner {
        padding: 12px 10px;
        border-radius: 16px;
        margin-bottom: 10px;
    }

    .chat-direct-prompt {
        font-size: 18px;
    }

    .chat-messages-area {
        min-height: 120px;
        max-height: 42vh;
        padding: 6px 4px;
        margin-bottom: 10px;
    }

    .msg-bubble {
        padding: 10px 12px;
        font-size: 13px;
        line-height: 1.5;
    }

    .msg-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .input-inner-wrapper {
        padding: 6px 8px 6px 12px;
        gap: 8px;
    }

    .chat-text-field {
        font-size: 13.5px;
    }

    .chat-submit-btn {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 18px;
    }
}

/* 5. COMPACT PHONES (<= 380px) */
@media (max-width: 380px) {
    .purple-box-title {
        font-size: 18px;
    }

    .purple-box-desc {
        font-size: 12px;
    }

    .tower-3d-wrapper {
        display: flex !important;
        visibility: visible !important;
        width: 260px;
        height: 370px;
        max-width: 95%;
        overflow: visible;
        margin: 0 auto;
    }

    .tower-png-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: bottom center;
        display: block !important;
        visibility: visible !important;
    }

    .unit-header-title {
        font-size: 18px;
    }

    .subtopics-title {
        font-size: 17px;
    }

    .nav-flat-btn {
        padding: 5px 8px;
        font-size: 11.5px;
    }
}

/* --- WIDESCREEN VIDEO MODAL STYLES --- */
.minimal-modal-card.video-widescreen-modal {
    max-width: 880px;
    width: 94%;
    padding: 28px 32px;
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(76, 29, 149, 0.35);
    border: 1.5px solid #e9d5ff;
}

.video-modal-container video {
    outline: none;
    border-radius: 14px;
}

@media (max-width: 576px) {
    .minimal-modal-card.video-widescreen-modal {
        padding: 18px 12px;
        width: 96%;
        border-radius: 20px;
    }
}




/* Fix for Ayasofya click events */
.tower-3d-wrapper, .badge-360, .tower-png-img { pointer-events: auto !important; }

