:root {

    --bg: #0d1117;

    --card: #161b22;

    --accent: #58a6ff;

    --text: #c9d1d9;

    --heading: #ffffff;

    --border: #30363d;

    --radius: 12px;

}


/* 2. CORE RESET & FLUID FOUNDATION */

* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}


body {

    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;

    background-color: var(--bg);

    color: var(--text);

    line-height: 1.6;

    /* Responsive Padding: smaller on mobile, larger on desktop */

    padding: clamp(1rem, 5vw, 3rem); 

}


main {

    max-width: 850px;

    margin: 0 auto;

}


/* 3. MOBILE-OPTIMIZED TYPOGRAPHY */

h1 {

    font-size: clamp(2rem, 8vw, 3.5rem); /* Fluid size */

    color: var(--heading);

    text-align: center;

    margin-bottom: 1.5rem;

    line-height: 1.2;

}


h2 {

    font-size: 1.4rem;

    color: var(--accent);

    margin: 2rem 0 1rem;

    display: flex;

    align-items: center;

    gap: 10px;

}


/* Add a small decorative line next to headings */

h2::after {

    content: "";

    flex: 1;

    height: 1px;

    background: var(--border);

}


p {

    margin-bottom: 1rem;

    font-size: 1.05rem;

}


/* 4. RESPONSIVE CARDS */

section {

    background: var(--card);

    padding: clamp(1.2rem, 4vw, 2rem);

    border-radius: var(--radius);

    border: 1px solid var(--border);

    margin-bottom: 2rem;

}


/* 5. THE "MOBILE TABLE" FIX */

/* On mobile, tables are notorious for breaking layouts. 

   This creates a smooth horizontal swipe area. */

.relative {

    width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

    border-radius: 8px;

    border: 1px solid var(--border);

    margin: 1.5rem 0;

}


table {

    width: 100%;

    border-collapse: collapse;

    min-width: 500px; /* Prevents text squashing */

}


th, td {

    padding: 1rem;

    text-align: left;

    border-bottom: 1px solid var(--border);

}


th {

    background: #21262d;

    font-size: 0.8rem;

    text-transform: uppercase;

    letter-spacing: 1px;

}


/* 6. RESPONSIVE IMAGES & MEDIA */

img {

    display: block;

    width: 100%;

    max-width: 100%;

    height: auto;

    border-radius: var(--radius);

    margin: 1rem 0;

}


/* Pro Video Container (16:9 Aspect Ratio) */

.video-container {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    margin-top: 2rem;

    border-radius: var(--radius);

    overflow: hidden;

    border: 1px solid var(--border);

}


.video-container iframe {

    position: absolute;

    width: 100%;

    height: 100%;

    top: 0;

    left: 0;

}


/* 7. DARK MODE INTERACTIVITY */

li {

    margin-bottom: 0.8rem;

    list-style-position: inside;

}


strong {

    color: var(--heading);

    font-weight: 600;

}


/* Custom scrollbar for the table area */

.relative::-webkit-scrollbar {

    height: 6px;

}

.relative::-webkit-scrollbar-thumb {

    background: var(--border);

    border-radius: 10px;

}

/* 12. NAVIGATION BAR */


header.main-nav {

    position: sticky;

    top: 0;

    z-index: 1000;

    background: rgba(13, 17, 23, 0.8); /* Semi-transparent version of --bg */

    backdrop-filter: blur(12px); /* Glassmorphism effect */

    border-bottom: 1px solid var(--border);

    padding: 1rem 0;

    margin-bottom: 2rem;

}


nav.container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    max-width: 850px;

    margin: 0 auto;

    padding: 0 clamp(1rem, 5vw, 3rem);

}


.nav-logo {

    font-weight: 700;

    font-size: 1.2rem;

    color: var(--heading);

    text-decoration: none;

}


.nav-links {

    display: flex;

    gap: 1.5rem;

    list-style: none;

    margin-bottom: 0; /* Override default ul margin */

    padding-left: 0;

}


.nav-links a {

    font-size: 0.95rem;

    font-weight: 500;

    color: var(--text);

    transition: color 0.2s ease;

}


.nav-links a:hover {

    color: var(--accent);

    border-bottom: none; /* Override standard link style for nav */

}


/* Active Page Indicator */

.nav-links a.active {

    color: var(--accent);

    font-weight: 600;

}
