/* =============================================
   NEHIR KANDEMIR — PORTFOLIO WEBSITE
   Design System & Styles
   ============================================= */

/* ── CSS Variables ── */
:root {
    /* Light Theme */
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --bg-sidebar: rgba(255, 255, 255, 0.9);
    --bg-nav: rgba(240, 244, 248, 0.85);

    --text-primary: #1a1d23;
    --text-secondary: #4a5568;
    --text-muted: #8896a6;
    --text-inverse: #ffffff;

    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-dark: #5341c5;
    --accent-gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --accent-glow: 0 8px 32px rgba(108, 92, 231, 0.3);

    --gold: #f0b429;
    --gold-gradient: linear-gradient(135deg, #f0b429 0%, #f7d070 100%);

    --border: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50%;

    --sidebar-width: 300px;
    --nav-height: 64px;
    --mobile-nav-height: 72px;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-script: 'Dancing Script', cursive;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dark Theme ── */
[data-theme="dark"] {
    --bg-primary: #0f1117;
    --bg-secondary: #1a1d27;
    --bg-card: rgba(26, 29, 39, 0.85);
    --bg-card-hover: rgba(35, 38, 50, 1);
    --bg-glass: rgba(26, 29, 39, 0.6);
    --bg-sidebar: rgba(15, 17, 23, 0.95);
    --bg-nav: rgba(15, 17, 23, 0.85);

    --text-primary: #e8eaed;
    --text-secondary: #a0aec0;
    --text-muted: #64748b;
    --text-inverse: #0f1117;

    --border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-light);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 24px;
    width: 100%;
}

.sidebar-logo {
    width: 64px;
    height: 64px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--accent-glow);
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.sidebar-photo {
    width: 200px;
    height: 260px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--border);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.sidebar-photo:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.sidebar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.sidebar-socials {
    display: flex;
    gap: 12px;
}

.sidebar-socials a {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    background: var(--bg-card);
}

.sidebar-socials a:hover {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--accent-glow);
}

.sidebar-cta {
    display: block;
    width: 100%;
    max-width: 220px;
    padding: 14px 24px;
    background: var(--accent-gradient);
    color: #fff !important;
    text-align: center;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    box-shadow: var(--accent-glow);
}

.sidebar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.45);
}

/* =============================================
   MOBILE BOTTOM NAV
   ============================================= */
.mobile-nav {
    display: none;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* ── Top Nav ── */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-base);
}

.top-nav-links {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 4px;
    border: 1px solid var(--border);
}

.nav-link {
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.nav-link.active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: var(--accent-glow);
}

.theme-toggle {
    position: absolute;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
}

/* =============================================
   SECTIONS — GENERAL
   ============================================= */
.section {
    padding: 80px 48px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-badge {
    display: inline-block;
    padding: 6px 20px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* =============================================
   HOME SECTION
   ============================================= */
.section-home {
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: calc(100vh - var(--nav-height));
    padding-top: 40px;
    padding-bottom: 40px;
}

.home-content {
    flex: 1;
}

.home-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.greeting-line {
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.greeting-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.home-name {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 12px;
}

.name-first {
    display: block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.name-last {
    display: block;
    color: var(--text-primary);
}

.home-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-weight: 400;
}

.tagline-dot {
    color: var(--accent);
    margin: 0 4px;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.home-cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    box-shadow: var(--accent-glow);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.45);
    color: #fff;
}

.btn-primary i {
    transition: transform var(--transition-fast);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ── Hero Image ── */
.home-hero-image {
    flex: 0 0 380px;
    position: relative;
}

.hero-image-frame {
    width: 380px;
    height: 500px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--border);
    position: relative;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--transition-slow);
}

.hero-image-frame:hover img {
    transform: scale(1.05);
}

.hero-float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    animation: float 4s ease-in-out infinite;
}

.hero-float-badge i {
    color: var(--accent);
    font-size: 1.1rem;
}

.badge-top {
    top: 24px;
    right: -20px;
    animation-delay: 0s;
}

.badge-bottom {
    bottom: 40px;
    left: -30px;
    animation-delay: 2s;
}

/* =============================================
   SKILLS MARQUEE
   ============================================= */
.skills-marquee {
    overflow: hidden;
    padding: 20px 0;
    background: var(--accent-gradient);
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 40px;
    animation: marquee 25s linear infinite;
    width: max-content;
}

.marquee-item {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* =============================================
   PORTFOLIO / GALLERY
   ============================================= */
.section-portfolio {
    background: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.gallery-item-large {
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-category {
    display: inline-block;
    padding: 4px 14px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: var(--radius-xl);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    width: fit-content;
}

.gallery-overlay h3 {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.about-image {
    flex: 0 0 340px;
}

.about-image-frame {
    width: 340px;
    height: 420px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--border);
    position: relative;
}

.about-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
    font-weight: 400;
}

.about-skills {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-card {
    display: flex;
    gap: 18px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.skill-card:hover {
    border-color: var(--accent-light);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.skill-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.skill-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.skill-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.section-contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.contact-cards {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    padding: 28px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition-fast);
}

.contact-card:hover {
    border-color: var(--accent-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    margin: 0 auto 16px;
    box-shadow: var(--accent-glow);
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.contact-card p,
.contact-card a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-card a:hover {
    color: var(--accent);
}

.contact-form-wrapper {
    flex: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    align-self: flex-start;
    width: 100%;
}

/* ── Footer ── */
.footer {
    text-align: center;
    padding-top: 60px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 85vw;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-md);
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
}

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent);
    border-color: transparent;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1100px) {
    .section-home {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .home-greeting {
        justify-content: center;
    }

    .home-stats {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 36px;
    }

    .home-cta-row {
        justify-content: center;
    }

    .home-hero-image {
        flex: none;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-image {
        flex: none;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-cards {
        flex: none;
        flex-direction: row;
        width: 100%;
    }

    .contact-card {
        flex: 1;
    }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 0;
    }

    html {
        font-size: 15px;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding-bottom: var(--mobile-nav-height);
    }

    /* Mobile Bottom Nav */
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--mobile-nav-height);
        background: var(--bg-sidebar);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border);
        z-index: 100;
        align-items: center;
        justify-content: space-around;
        padding: 0 8px;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 12px;
        border-radius: var(--radius-md);
        color: var(--text-muted);
        font-size: 0.65rem;
        font-weight: 500;
        transition: all var(--transition-fast);
        text-decoration: none;
    }

    .mobile-nav-item i {
        font-size: 1.15rem;
    }

    .mobile-nav-item.active {
        color: var(--accent);
    }

    .mobile-nav-item:hover {
        color: var(--accent);
    }

    .theme-toggle-mobile {
        color: var(--text-muted);
    }

    /* Top Nav Mobile */
    .top-nav {
        padding: 10px 16px;
    }

    .top-nav-links {
        gap: 2px;
        padding: 3px;
    }

    .nav-link {
        padding: 8px 14px;
        font-size: 0.78rem;
    }

    .theme-toggle {
        display: none;
    }

    /* Sections */
    .section {
        padding: 48px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Home Mobile */
    .section-home {
        min-height: auto;
        padding-top: 32px;
    }

    .home-name {
        font-size: 2.4rem;
    }

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

    .stat-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-value {
        font-size: 0.88rem;
    }

    .hero-image-frame {
        width: 280px;
        height: 370px;
    }

    .badge-top {
        right: -8px;
        top: 16px;
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .badge-bottom {
        left: -8px;
        bottom: 32px;
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .home-cta-row {
        flex-direction: column;
        align-items: center;
    }

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

    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item-large {
        grid-row: span 1;
    }

    .gallery-item-wide {
        grid-column: span 2;
    }

    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
        padding: 16px;
    }

    .gallery-category {
        font-size: 0.6rem;
        padding: 3px 10px;
    }

    .gallery-overlay h3 {
        font-size: 0.95rem;
    }

    /* About Mobile */
    .about-image-frame {
        width: 100%;
        max-width: 340px;
        height: 300px;
    }

    .about-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .skill-card {
        padding: 18px;
        gap: 14px;
    }

    .skill-card:hover {
        transform: translateX(0);
        transform: translateY(-2px);
    }

    .skill-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .skill-info h3 {
        font-size: 1rem;
    }

    .skill-info p {
        font-size: 0.85rem;
    }

    /* Contact Mobile */
    .contact-cards {
        flex-direction: column;
    }

    .contact-card {
        padding: 22px;
    }

    .btn-submit {
        align-self: stretch;
    }

    /* Lightbox Mobile */
    .lightbox-content {
        max-width: 95vw;
        max-height: 80vh;
    }

    .lightbox-close { top: 12px; right: 12px; width: 42px; height: 42px; }
    .lightbox-prev { left: 8px; width: 42px; height: 42px; }
    .lightbox-next { right: 8px; width: 42px; height: 42px; }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE
   ============================================= */
@media (max-width: 420px) {
    .home-name {
        font-size: 2rem;
    }

    .home-stats {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item-wide {
        grid-column: span 1;
    }

    .hero-image-frame {
        width: 240px;
        height: 320px;
    }

    .nav-link {
        padding: 7px 10px;
        font-size: 0.72rem;
    }
}
