/**
 * base.css
 * ─────────────────────────────────────────────
 * Variables, resets, typography, utility classes
 * Load this FIRST in your HTML.
 */

/* ─────────────────────────────────────────────
   CSS VARIABLES & RESET
   ───────────────────────────────────────────── */
:root {
    /* Navy palette */
    --navy-dark:   #0f1419;
    --navy-medium: #1a2332;
    --navy-light:  #2a3f5f;

    /* Legion accent colours */
    --gold:        #d4af37;
    --light-gold:  #e8c547;
    --crimson:     #8b1538;

    /* Text */
    --text-primary:   #e8e8e8;
    --text-secondary: #d8d8d8;
    --text-muted:     rgba(232, 232, 232, 0.85);

    /* Smooth transition used everywhere */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: 'Raleway', 'Segoe UI', sans-serif;
    font-size: 16px;
    background-color: var(--navy-dark);
    color: var(--text-primary);
    line-height: 1.85;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a { color: inherit; }

/* ── Skip-to-content link (visually hidden until focused) ── */
.skip-link {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    padding: 0.8rem 1.5rem;
    background: var(--gold);
    color: var(--navy-dark);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
}
.skip-link:focus {
    width: auto;
    height: auto;
    clip: auto;
    clip-path: unset;
    outline: 3px solid var(--light-gold);
    outline-offset: 2px;
}

/* ── Keyboard focus styles ── */
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}
a:focus-visible,
input:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}
.nav-toggle:focus-visible,
.btn-gold:focus-visible,
.btn-outline:focus-visible,
.social-btn:focus-visible,
.nav-link:focus-visible,
.indicator:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* ─────────────────────────────────────────────
   TYPOGRAPHY
   Cinzel for headings, Raleway for body
   ───────────────────────────────────────────── */
h1, h2, h3,
.section-title,
.hero-name,
.logo-link,
.preview-card-title,
.project-detailed-content h3 {
    font-family: 'Cinzel', serif;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--gold);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    letter-spacing: 1px;
    margin-bottom: 2.2rem;
}

/* Gold gradient divider line with crimson dots */
.roman-divider {
    max-width: 200px;
    height: 3px;
    margin: 1.5rem auto 2.5rem;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    position: relative;
}
.roman-divider::before,
.roman-divider::after {
    content: '⬤';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--crimson);
    font-size: 0.7rem;
}
.roman-divider::before { left: -18px; }
.roman-divider::after  { right: -18px; }

/* ─────────────────────────────────────────────
   SCROLLBAR
   ───────────────────────────────────────────── */
::-webkit-scrollbar       { width: 10px; }
::-webkit-scrollbar-track { background: var(--navy-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--light-gold); }

/* ── Collaborative project tags ── */
.collab-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 20px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.collab-tag i {
    font-size: 0.7rem;
}

/* Disabled/private button variant */
.disabled-btn {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}
.disabled-btn i {
    margin-right: 0.4rem;
}

/* ─────────────────────────────────────────────
   SHARED UTILITY CLASSES
   Used across multiple pages to eliminate inline styles.
   ───────────────────────────────────────────── */

/* Section background variants */
.section-bg--drone {
    background: linear-gradient(160deg, var(--navy-dark) 0%, #0d1b2a 100%);
}
.section-bg--ttt {
    background: linear-gradient(160deg, var(--navy-dark) 0%, #0d1b2a 100%);
}

/* Spacing helpers */
.spacer-bottom--sm { margin-bottom: 1.5rem; }
.spacer-top--sm   { margin-top: 1rem; }
.spacer-top--md   { margin-top: 1.5rem; }
.spacer-top--lg   { margin-top: 4rem; }

/* Centered text block */
.text-center { text-align: center; }

/* Inline-flex row with gap utility */
.flex-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.flex-row--gap-sm { gap: 0.4rem; }
.flex-row--gap-md { gap: 0.6rem; }
.flex-row--gap-lg { gap: 0.8rem; }

/* Full-width flex button row */
.btn-row-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
}
.btn-full-width {
    width: 100%;
    justify-content: center;
}

/* Muted description text block */
.desc-muted {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* Content width constraints */
.content-max--wide {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.content-max--narrow {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Content with top margin */
.content-max--wide-margined {
    max-width: 1000px;
    margin: 2rem auto 0;
}
.content-max--narrow-margined {
    max-width: 900px;
    margin: 3rem auto 0;
}

/* Section title small variant */
.section-title--sm {
    font-size: clamp(1.2rem, 3vw, 2rem);
}

/* Inline button (back link style) */
.btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
}

/* Video element styling */
.video-element {
    display: block;
    border-radius: 12px;
    max-height: 520px;
    width: 100%;
}
.video-element--contain {
    max-height: 360px;
}

/* Absolute-fill image */
.img-cover-absolute {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Flex wrap row */
.flex-wrap-row {
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* Carousel video container override for dark bg */
.video-container--dark {
    background: #000;
}

/* Bottom navigation */
.nav-bottom {
    margin-top: 4rem;
    text-align: center;
}

/* Icon size variant */
.proj-section-icon--sm {
    font-size: 1.2rem;
}

/* Inline-flex variant for btn-gold */
.btn-gold--inline {
    display: inline-flex;
}

/* ─────────────────────────────────────────────
   ABOUT ME ADDITIONS
   Native language tag, favorite badge star,
   certificates list
   ───────────────────────────────────────────── */

/* "Native" pill next to language name */
.lang-native-tag {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    margin-left: 0.4rem;
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    color: var(--navy-dark);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Star icon inside favorite-language badges */
.badge-favorite i {
    font-size: 0.7rem;
    margin-right: 0.2rem;
    color: var(--gold);
}

/* Certificates list */
.certificates-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.6rem;
}

.certificate-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.9rem 1.1rem;
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    transition: background var(--transition), border-color var(--transition);
}

.certificate-item:hover {
    background: rgba(212, 175, 55, 0.09);
    border-color: rgba(212, 175, 55, 0.4);
}

.certificate-item > i {
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.certificate-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.certificate-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.92rem;
}

.certificate-meta {
    color: var(--text-secondary);
    font-size: 0.78rem;
    letter-spacing: 0.3px;
}