@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --primary: #3b82f6;
    --primary-rgb: 59, 130, 246;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #1f2937;
    --accent: #fbbf24;

    /* Light Mode Tokens */
    --bg-body: #f9fafb;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-card: rgba(255, 255, 255, 1);
    --bg-card-rgb: 255, 255, 255;
    --text-main: #111827;
    --text-muted: #4b5563;
    --border-glass: rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
    /* Dark Mode Tokens */
    --bg-body: #111827;
    --bg-glass: rgba(17, 24, 39, 0.7);
    --bg-card: rgba(31, 41, 55, 0.6);
    --bg-card-rgb: 31, 41, 55;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-soft);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: var(--bg-glass);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border-glass);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-main);
    font-size: 1.5rem;
    line-height: 1;
    transition: background-color 0.2s ease;
    border-radius: 8px;
}

.menu-toggle:hover {
    background-color: var(--border-glass);
}

.menu-toggle svg,
.menu-toggle i {
    display: block;
    width: 24px;
    height: 24px;
}

/* Mobile Theme Toggle - Hidden by default, shown in mobile menu */
.theme-toggle-mobile {
    display: none;
    list-style: none;
}

.theme-toggle-mobile .theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.theme-toggle-mobile .theme-toggle:hover {
    background-color: var(--border-glass);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.theme-toggle:hover {
    background-color: var(--border-glass);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    opacity: 0.5;
}

.hero-content {
    width: 100%;
    max-width: 100%;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    word-wrap: break-word;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    word-wrap: break-word;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--border-glass);
}

/* Blog/Project Grid */
.section-title {
    margin-bottom: 48px;
    margin-top: 0;
    font-size: clamp(2rem, 4vw, 2.25rem);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 32px;
}

.post-card img,
.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.post-card p,
.project-card p {
    margin: 12px 0 20px;
    color: var(--text-muted);
}

.card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

/* Entrance Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Footer */
footer {
    padding: 80px 0 40px;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    margin-top: 100px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.socials a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

input,
textarea {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Small Phones: 320px - 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
        /* Reduced side margins for more grid space */
    }

    .hero {
        min-height: 80vh;
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        margin-left: 0 !important;
    }

    /* Home page sections */
    section[style*="padding: 100px"] {
        padding: 40px 16px !important;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 24px !important;
        margin-left: 4px;
        /* Center title on mobile for balance */
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns */
        gap: 12px;
        /* Breathing space between cards */
    }

    .glass-card {
        padding: 0;
        overflow: hidden;
        border-radius: 16px;
        /* Slightly tighter radius for small cards */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    /* Mobile Card Styling */
    .post-card img,
    .project-card img {
        height: 130px;
        /* Balanced height */
        width: 100%;
        object-fit: cover;
        /* Maintain aspect ratio */
        border-radius: 0;
        /* Full bleed */
        margin-bottom: 12px;
        /* Spacing between image and text */
    }

    /* Container for text content inside the card */
    .post-card>*:not(img),
    .project-card>*:not(img) {
        margin-left: 12px;
        /* Comfortable spacing */
        margin-right: 12px;
        text-align: left;
        /* Back to left align */
    }

    .post-card h3,
    .project-card h3 {
        font-size: 0.8rem;
        margin-top: 0;
        /* Spacing handled by image margin */
        margin-bottom: 4px;
        line-height: 1.25;
        font-weight: 700;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        width: 100%;
        /* Ensure full width for centering */
    }

    .post-card p,
    .project-card p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /* Limit to 2 lines */
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.7rem;
        /* Reduced from 0.75rem */
        /* Smaller text */
        line-height: 1.25;
        color: var(--text-muted);
        width: auto;
        /* Prevent overflow with margins */
        margin: 0 10px 10px 10px;
        /* Top Right Bottom Left */
    }

    .card-tag {
        margin-top: 8px;
        font-size: 0.6rem;
        /* Reduced from 0.65rem */
        margin-bottom: 4px;
    }

    /* Button adjustments */
    .post-card .btn,
    .project-card .btn {
        padding: 4px 12px !important;
        font-size: 0.7rem !important;
        width: fit-content !important;
        margin: 0 auto 12px auto !important;
        /* Center aligned margin */
        display: table !important;
        /* Forces centering with margin auto */
        height: auto !important;
        min-height: 0 !important;
    }

    /* For Post Cards with the date/button row */
    .post-card div[style*="justify-content: space-between"] {
        flex-direction: column;
        align-items: center !important;
        /* Center align flex children (button) */
        gap: 8px;
        margin-bottom: 12px;
        margin-top: 0;
        text-align: center;
    }

    .post-card div[style*="justify-content: space-between"] span {
        font-size: 0.7rem !important;
        margin-bottom: 4px;
    }

    footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }

    .socials {
        gap: 16px;
    }

    /* About Page Mobile Styles */
    main .reveal[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column;
        gap: 24px !important;
    }

    .about-image {
        order: 1;
        width: 100%;
    }

    .about-image img {
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }

    .about-text {
        order: 2;
        width: 100%;
    }

    .about-text h1 {
        font-size: 1.75rem !important;
        text-align: center;
    }

    .about-text p {
        font-size: 1rem !important;
    }

    /* Homepage About Section Mobile */
    .about-preview-card {
        flex-direction: column !important;
        gap: 24px !important;
        padding: 32px 20px !important;
        align-items: center !important;
    }

    .about-preview-card img {
        width: 140px !important;
        height: 140px !important;
        margin: 0 auto !important;
    }

    /* Target the text container div */
    .about-preview-card>div {
        text-align: left !important;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    /* Target the button inside the text container */
    .about-preview-card .btn {
        margin: 24px auto 0 auto !important;
        /* Center the button */
        display: table !important;
        /* Helps with centering */
    }

    .about-preview-card h2 {
        text-align: center !important;
        /* Optional: Center title to match image */
        margin-bottom: 16px !important;
    }
}

/* Tablets: 481px - 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
        gap: 28px;
    }

    .hero {
        padding-top: 100px;
    }

    /* Home page sections - reduce padding on tablet */
    section[style*="padding: 100px"] {
        padding: 80px 0 !important;
    }

    .hero-btns .btn {
        margin-left: 0 !important;
    }

    /* About Page Tablet Styles */
    main .reveal[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column;
        gap: 40px !important;
    }

    .about-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .about-preview-card {
        flex-direction: column !important;
        text-align: center;
        gap: 24px !important;
        padding: 32px 24px !important;
    }

    .about-preview-card img {
        width: 120px !important;
        height: 120px !important;
    }

    .about-preview-card h2 {
        text-align: center !important;
    }

    .about-text {
        width: 100%;
    }

    .about-text h1 {
        font-size: 2.5rem !important;
        text-align: center;
    }
}

/* Mobile Navigation: Up to 768px */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 32px 32px;
        gap: 24px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-glass);
    }

    /* Hide desktop theme toggle on mobile (the one in .nav) */
    #theme-toggle {
        display: none !important;
    }

    /* Show mobile theme toggle inside nav menu */
    .theme-toggle-mobile {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 16px 0;
        border-top: 1px solid var(--border-glass);
        margin-top: 16px;
        width: 100%;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .theme-toggle-mobile:hover {
        background-color: var(--border-glass);
        border-radius: 8px;
        padding: 16px 8px;
    }

    .theme-toggle-mobile span {
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--text-main);
    }

    .theme-toggle-mobile .theme-toggle {
        display: flex !important;
        padding: 4px;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }
}

/* Desktop/Tablet: 769px and above */
@media (min-width: 769px) {

    /* Hide mobile theme toggle on larger screens */
    .theme-toggle-mobile {
        display: none !important;
    }

    /* Ensure desktop theme toggle is visible */
    #theme-toggle {
        display: flex !important;
    }
}

/* Laptops: 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 900px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    }
}

/* Large Screens: 1025px - 1440px */
@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        max-width: 1100px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* Ultra-Wide: 1441px+ */
@media (min-width: 1441px) {
    .container {
        max-width: 1280px;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 5.5rem;
    }

    .hero-content p {
        font-size: 1.35rem;
    }
}

/* About Page Redesign Styles */
.about-container {
    max-width: 800px;
    /* Constrain width for better readability */
    margin: 0 auto;
    padding-top: 40px;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-premium);
    border: 4px solid var(--bg-card);
    /* Optional: border to separate from bg */
    margin-bottom: 24px;
}

.content-section {
    margin-bottom: 60px;
    text-align: left;
    /* Explicitly left-aligned */
}

.content-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
    border-left: 4px solid var(--primary);
    padding-left: 16px;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
}

.skill-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.skill-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}



/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
        min-width: 48px;
    }

    .glass-card:hover {
        transform: none;
    }

    .socials a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    input,
    textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
}

/* Admin Dashboard Styles - Premium Layout */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding-top: 100px;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.admin-nav {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
}

.admin-nav .glass-card {
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    height: 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(var(--bg-card-rgb), 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
}

.admin-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-nav-btn {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-nav-btn svg {
    opacity: 0.6;
    transition: all 0.2s ease;
    width: 20px;
    height: 20px;
}

.admin-nav-btn:hover {
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--text-main);
}

.admin-nav-btn:hover svg {
    opacity: 1;
    transform: scale(1.05);
}

.admin-nav-btn.active {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.1);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.05);
}

.admin-nav-btn.active svg {
    opacity: 1;
}

/* Dashboard Overview */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 24px !important;
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1px solid var(--border-glass);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.stories {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.stat-icon.projects {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-icon.messages {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* View Sections */
.admin-view {
    display: none;
    animation: fadeSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.admin-view.active {
    display: block;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
}

.view-header h2 {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

/* Forms & Tables */
.admin-form-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 0;
}

.admin-form-container.open {
    max-height: 2000px;
    opacity: 1;
    margin-bottom: 40px;
}

.item-row {
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-row:hover {
    border-color: var(--border-glass);
    background: rgba(var(--bg-card-rgb), 0.8);
    transform: translateX(4px);
}

/* Mobile Sidebar */
@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
        padding-top: 100px;
        gap: 24px;
    }

    .admin-nav {
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 100;
        padding: 0;
    }

    .admin-nav .glass-card {
        border-radius: 0;
        padding: 12px;
        flex-direction: row;
        justify-content: space-around;
        background: var(--bg-card);
        border-top: 1px solid var(--border-glass);
        backdrop-filter: blur(25px);
    }

    .nav-brand {
        display: none !important;
    }

    .admin-nav ul {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        gap: 0;
    }

    .admin-nav li {
        margin: 0;
    }

    .admin-nav-btn {
        flex-direction: column;
        padding: 6px;
        gap: 4px;
        font-size: 0.7rem;
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        text-align: center;
        justify-content: center;
    }

    .admin-nav-btn svg {
        width: 22px;
        height: 22px;
        margin: 0 auto;
    }

    .admin-nav-btn.active {
        color: var(--primary);
    }

    .admin-content {
        padding-bottom: 90px;
    }
}

/* About Page Styles */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: start;
    margin-bottom: 80px;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 32px;
    box-shadow: var(--shadow-premium);
    transition: transform 0.4s ease;
    object-fit: cover;
    aspect-ratio: 1/1.1;
}

.about-image:hover img {
    transform: scale(1.02);
}

.about-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin-top: 24px;
}

.skill-chip {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.skill-chip:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
}

/* About Page Mobile Stack */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 320px;
        margin: 0 auto;
    }

    .about-text h1 {
        text-align: center;
    }
}