/* genel ayarlar */
:root {
  --bg-dark: #020617;
  --bg-sidebar: rgba(15, 23, 42, 0.6);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-accent: #38bdf8;
  --text-glow: #0ea5e9;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(30, 41, 59, 0.3);
  --glass-border: rgba(255, 255, 255, 0.05);
  
  --sidebar-width: 280px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.1), transparent 25%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.7;
    overflow-x: hidden;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* yan menü */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #38bdf8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-group {
    margin-bottom: 35px;
}

.nav-group h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    font-weight: 700;
    opacity: 0.8;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-link {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    transform: translateX(3px);
}

.nav-link.active {
    background: rgba(56, 189, 248, 0.1);
    color: var(--text-accent);
    border-color: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

/* icerik kismi */
.main-content {
    flex: 1;
    padding: 60px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* mobil ust menu */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(15px);
    z-index: 90;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.mobile-logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
}

/* yazilar */
h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    background: linear-gradient(to bottom right, #fff, #cbd5e1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 60px 0 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #f1f5f9;
}

p {
    margin-bottom: 24px;
    color: #cbd5e1;
    font-size: 1.05rem;
    max-width: 75ch;
}


a {
    color: var(--text-accent);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.main-content a:not(.btn):hover {
    color: #7dd3fc;
    border-bottom-color: #7dd3fc;
}

.lead {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-weight: 300;
    line-height: 1.6;
    max-width: 65ch;
}

/* kartlar */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: var(--radius-md);
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(30, 41, 59, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* uyarilar */
.alert {
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    margin: 30px 0;
    font-size: 0.95rem;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    line-height: 1.6;
}

.alert-info { border-left: 4px solid #38bdf8; border-color: rgba(56, 189, 248, 0.1); }
.alert-warning { border-left: 4px solid #fbbf24; border-color: rgba(251, 191, 36, 0.1); }
.alert-danger { border-left: 4px solid #f43f5e; border-color: rgba(244, 63, 94, 0.1); }

/* link yolu */
.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    display: block;
    font-weight: 600;
}

/* kod bloklari */
pre {
    background: #0f172a;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin: 30px 0;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
}

/* anasayfa ozellikleri */
.homepage .sidebar { display: none; }
.homepage .main-content { padding: 0; max-width: 100%; }

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.landing-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding: 100px 0 60px;
    position: relative;
}

.landing-hero h1 {
    font-size: 4.5rem;
    letter-spacing: -2px;
    margin-bottom: 30px;
    text-shadow: 0 0 40px rgba(56,189,248,0.2);
}

.hero-image img {
    max-width: 100%;
    filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.purpose-section {
    padding: 80px 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.purpose-box {
    background: linear-gradient(180deg, rgba(30,41,59,0.3) 0%, rgba(30,41,59,0.1) 100%);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.purpose-box h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: none;
    color: #f1f5f9;
}

.feature-section {
    padding: 120px 0;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.feature-content h2 {
    font-size: 2.8rem;
    border: none;
    margin-top: 0;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-image img {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
}

.cta-section {
    padding: 100px 0 150px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-text {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 40px;
    font-weight: 600;
}

.welcome-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px 60px;
    background: linear-gradient(135deg, var(--text-accent), #2563eb);
    color: #fff;
    font-weight: 700;
    border-radius: 100px;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -5px rgba(56, 189, 248, 0.4);
    position: relative;
    overflow: hidden;
}

.welcome-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px -5px rgba(56, 189, 248, 0.5);
    color: #fff;
}

/* mobil ayarlar */
@media (max-width: 1024px) {
    .main-content { padding: 40px; }
    .landing-hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    
    .app-layout {
        flex-direction: column;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 80%;
        max-width: 300px;
        transform: translateX(-100%);
        z-index: 999;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.7);
        backdrop-filter: blur(3px);
        z-index: 998;
        display: none;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .sidebar.active + .sidebar-overlay {
        display: block;
        opacity: 1;
    }

    .main-content {
        padding: 80px 20px 40px;
    }
    
    .landing-hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
        min-height: auto;
    }
    
    .landing-hero h1 {
        font-size: 2.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .feature-grid.reverse {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .feature-content h2 {
        font-size: 2rem;
    }
    
    .welcome-btn {
        width: 100%;
        padding: 20px;
        font-size: 1.1rem;
    }
}
:root {
  /* Professional Dark Palette */
  --bg-dark: #020617; /* Slate 950 - Darker base */
  --bg-sidebar: rgba(15, 23, 42, 0.6); /* Semi-transparent */
  
  --text-main: #f8fafc; /* Slate 50 */
  --text-muted: #94a3b8; /* Slate 400 */
  --text-accent: #38bdf8; /* Sky 400 */
  --text-glow: #0ea5e9;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(30, 41, 59, 0.3);
  --glass-border: rgba(255, 255, 255, 0.05);
  
  --sidebar-width: 280px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    /* Global Ambient Glow */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.1), transparent 25%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* LAYOUT */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #38bdf8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-group {
    margin-bottom: 35px;
}

.nav-group h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    font-weight: 700;
    opacity: 0.8;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-link {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    transform: translateX(3px);
}

.nav-link.active {
    background: rgba(56, 189, 248, 0.1);
    color: var(--text-accent);
    border-color: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    padding: 60px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* MOBILE HEADER & TOGGLE */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(15px);
    z-index: 90;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.mobile-logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
}

/* TYPOGRAPHY */
h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    background: linear-gradient(to bottom right, #fff, #cbd5e1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 60px 0 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #f1f5f9;
}

p {
    margin-bottom: 24px;
    color: #cbd5e1;
    font-size: 1.05rem;
    max-width: 75ch; /* Optimal reading width */
}


a {
    color: var(--text-accent);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.main-content a:not(.btn):hover {
    color: #7dd3fc;
    border-bottom-color: #7dd3fc;
}

.lead {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-weight: 300;
    line-height: 1.6;
    max-width: 65ch;
}

/* CARDS */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: var(--radius-md);
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(30, 41, 59, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ALERTS */
.alert {
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    margin: 30px 0;
    font-size: 0.95rem;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    line-height: 1.6;
}

.alert-info { border-left: 4px solid #38bdf8; border-color: rgba(56, 189, 248, 0.1); }
.alert-warning { border-left: 4px solid #fbbf24; border-color: rgba(251, 191, 36, 0.1); }
.alert-danger { border-left: 4px solid #f43f5e; border-color: rgba(244, 63, 94, 0.1); }

/* BREADCRUMB */
.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    display: block;
    font-weight: 600;
}

/* CODE */
pre {
    background: #0f172a;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin: 30px 0;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
}

/* HOMEPAGE SPECIFIC */
.homepage .sidebar { display: none; }
.homepage .main-content { padding: 0; max-width: 100%; }

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* HERO SECTION */
.landing-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    padding: 100px 0 60px;
    position: relative;
}

/* Glowing text effect for Hero Title */
.landing-hero h1 {
    font-size: 4.5rem;
    letter-spacing: -2px;
    margin-bottom: 30px;
    text-shadow: 0 0 40px rgba(56,189,248,0.2);
}

.hero-image img {
    max-width: 100%;
    filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* NEW: PURPOSE SECTION */
.purpose-section {
    padding: 80px 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.purpose-box {
    background: linear-gradient(180deg, rgba(30,41,59,0.3) 0%, rgba(30,41,59,0.1) 100%);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.purpose-box h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: none;
    color: #f1f5f9;
}

/* FEATURE SECTIONS */
.feature-section {
    padding: 120px 0;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.feature-content h2 {
    font-size: 2.8rem;
    border: none;
    margin-top: 0;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-image img {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 0 auto;
}

/* BOTTOM CTA SECTION */
.cta-section {
    padding: 100px 0 150px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-text {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 40px;
    font-weight: 600;
}

.welcome-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px 60px;
    background: linear-gradient(135deg, var(--text-accent), #2563eb);
    color: #fff;
    font-weight: 700;
    border-radius: 100px;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -5px rgba(56, 189, 248, 0.4);
    position: relative;
    overflow: hidden;
}

.welcome-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px -5px rgba(56, 189, 248, 0.5);
    color: #fff;
}

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
    .main-content { padding: 40px; }
    .landing-hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    
    .app-layout {
        flex-direction: column;
    }
    
    .mobile-header {
        display: flex;
    }
    
    /* Sidebar as Mobile Drawer */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 80%;
        max-width: 300px;
        transform: translateX(-100%); /* Hidden by default */
        z-index: 999;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    /* Overlay when sidebar is open */
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.7);
        backdrop-filter: blur(3px);
        z-index: 998;
        display: none;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .sidebar.active + .sidebar-overlay {
        display: block;
        opacity: 1;
    }

    .main-content {
        padding: 80px 20px 40px; /* Add top padding for fixed header */
    }
    
    /* Landing Page Mobile */
    .landing-hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
        min-height: auto;
    }
    
    .landing-hero h1 {
        font-size: 2.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .feature-grid.reverse {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .feature-content h2 {
        font-size: 2rem;
    }
    
    .welcome-btn {
        width: 100%;
        padding: 20px;
        font-size: 1.1rem;
    }
}
:root {
  /* Professional Dark Palette */
  --bg-dark: #0f172a; /* Slate 900 */
  --bg-sidebar: #020617; /* Slate 950 */
  
  --text-main: #f1f5f9; /* Slate 100 */
  --text-muted: #94a3b8; /* Slate 400 */
  --text-accent: #38bdf8; /* Sky 400 */
  
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(30, 41, 59, 0.4);
  
  --sidebar-width: 260px;
  --radius-sm: 8px;
  --radius-md: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background: var(--bg-dark);
    min-height: 100vh;
    line-height: 1.6;
}

/* LAYOUT */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.nav-group {
    margin-bottom: 30px;
}

.nav-group h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-link.active {
    border-left: 2px solid var(--text-accent);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    padding: 40px 60px;
    max-width: 1200px;
}

/* TYPOGRAPHY */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--text-main);
}

p {
    margin-bottom: 20px;
    color: var(--text-main);
}


a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
    color: #fff;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

/* GRIDS */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* COMPONENTS */
/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
}

th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    color: var(--text-muted);
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.alert-info {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
    color: #bae6fd;
}

.alert-warning {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.2);
    color: #fde68a;
}

.alert-danger {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.2);
    color: #fecdd3;
}

/* Breadcumb */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

/* Code Blocks */
pre {
    background: #020617;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow-x: auto;
    margin: 20px 0;
}

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-accent);
}

/* HOMEPAGE / LANDING SPECIFIC */
.homepage .sidebar {
    display: none; /* Hide sidebar on homepage */
}

.homepage .main-content {
    margin: 0 auto;
    padding: 0;
    max-width: 100%;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Updated Hero for Landing */
.landing-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 80px 0;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img, .feature-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.3));
    animation: float 6s ease-in-out infinite;
}

/* Stagger animations so they don't move in perfect sync */
.hero-image img { animation-delay: 0s; }
.feature-section:nth-of-type(1) .feature-image img { animation-delay: 1s; }
.feature-section:nth-of-type(2) .feature-image img { animation-delay: 2s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.landing-hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Feature Sections */
.feature-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-content h2 {
    font-size: 2.5rem;
    border: none;
    margin-top: 0;
    margin-bottom: 24px;
    color: #fff;
}

.feature-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.feature-image img {
    /* Transparent / Floating Style */
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
}

/* GLOW BUTTON */
.welcome-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--text-accent), #0ea5e9);
    color: #ffffff;
    font-weight: 700;
    border-radius: 50px; /* Pillow shape for modern feel */
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.welcome-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    color: #fff;
    text-decoration: none;
    filter: brightness(1.1);
}

.welcome-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.welcome-btn:hover::after {
    left: 150%;
}

/* Reverse layout for alternating sections */
.feature-grid.reverse {
    direction: rtl; /* Simple way to swap, need to reset text direction in children */
}
.feature-grid.reverse > * {
    direction: ltr; 
}

@media (max-width: 900px) {
    .landing-hero { flex-direction: column-reverse; text-align: center; }
    .feature-grid, .feature-grid.reverse { grid-template-columns: 1fr; gap: 40px; direction: ltr; }
    .hero-content { margin: 0 auto; }
}
