/* ==========================================================================
   RPG Fantasy Design System & Custom Tokens
   "The Chronicle of Amry Yahya"
   ========================================================================== */
:root {
    /* Main Backgrounds - Deep Forge Stone & Obsidian Dungeon */
    --bg-main: #0a0a0f;            /* Obsidian Abyss */
    --bg-navbar: rgba(10, 10, 15, 0.92);
    --bg-card: #14141c;            /* Dark Forged Panel */
    --bg-card-hover: #1b1b26;      /* Card Hover State / Ember Warmth */
    --bg-subcard: #201f2c;         /* Tag / Inset Panel */
    --bg-parchment: #2a2418;       /* Parchment / Aged Wood */

    /* Medieval Fantasy Color Palette */
    --gold-primary: #d4af37;       /* Royal Gold */
    --gold-bright: #f0d060;        /* Sunlit Gold */
    --gold-dark: #8a6d1f;          /* Dim Gold */
    --steel-blue: #7aa2c7;         /* Enchanted Steel */
    --emerald: #4ecaa0;            /* Health / Nature Emerald */
    --mana-blue: #5c9bff;          /* Arcane Mana Blue */
    --crimson: #c0392b;            /* Battle Crimson / Minion Drops */
    --royal-purple: #8e6bd8;       /* Epic / Legendary Purple */
    --vine-green: #6a8f4e;         /* Wilderness Green */

    /* Potion / Rarity Accents */
    --rarity-common: #a8a39a;
    --rarity-epic: #a35ce6;        /* Violet for Epic loot */
    --rarity-legendary: #d4af37;

    /* Gradients */
    --grad-gold: linear-gradient(135deg, #d4af37 0%, #f0d060 50%, #b8860b 100%);
    --grad-ember: linear-gradient(135deg, #c0392b 0%, #e67e22 100%);
    --grad-arcane: linear-gradient(135deg, #5c9bff 0%, #8e6bd8 100%);
    --grad-card-border: linear-gradient(135deg, rgba(212, 175, 55, 0.45) 0%, rgba(94, 92, 100, 0.15) 50%, rgba(212, 175, 55, 0.3) 100%);

    /* Borders & Dividers */
    --border-color: rgba(212, 175, 55, 0.2);
    --border-hover: rgba(212, 175, 55, 0.55);
    --border-active: #d4af37;

    /* Text Colors */
    --text-primary: #eae4d3;       /* Parchment Light */
    --text-secondary: #d4af37;     /* Gold Secondary */
    --text-muted: #8f8b84;         /* Aged Stone Text */

    /* Font Stacks */
    --font-heading: 'Cinzel', 'Times New Roman', serif;
    --font-body: 'Cormorant Garamond', Georgia, serif;
    --font-display: 'MedievalSharp', 'Cinzel', cursive;
    --font-mono: 'Spectral', Georgia, serif;

    /* Transitions & Glow Shadows */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-gold-glow: 0 0 18px rgba(212, 175, 55, 0.45), 0 0 36px rgba(212, 175, 55, 0.15);
    --shadow-ember: 0 0 20px rgba(192, 57, 43, 0.5);
    --radius-sm: 0px;
    --radius-md: 2px;
    --radius-lg: 4px;
    --navbar-height: 76px;
}

/* ==========================================================================
   Base Resets & Global Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.06rem;
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 85% 60%, rgba(142, 107, 216, 0.05) 0%, transparent 45%);
    background-size: 100% 100%;
}

/* Vignette: adds parchment/dark dungeon edge */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 9998;
    pointer-events: none;
}

/* Custom Scrollbar - Forged Gold */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
    border-left: 1px solid var(--border-color);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border: 1px solid var(--border-hover);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-primary);
}

/* Background Candlelight Mouse Glow */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(192, 57, 43, 0.04) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: width 0.3s ease, height 0.3s ease;
}

/* Container & Typography Helpers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

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

a:hover {
    color: var(--gold-primary);
}

li {
    list-style: none;
}

/* ==========================================================================
   Decorative RPG Panel Corners (Ornate Frame Corners)
   ========================================================================== */
.ornate-frame {
    position: relative;
}
.ornate-frame::before,
.ornate-frame::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    z-index: 2;
}
.ornate-frame::before {
    top: 5px;
    left: 5px;
    border-top: 2px solid var(--gold-primary);
    border-left: 2px solid var(--gold-primary);
}
.ornate-frame::after {
    bottom: 5px;
    right: 5px;
    border-bottom: 2px solid var(--gold-primary);
    border-right: 2px solid var(--gold-primary);
}

/* ==========================================================================
   Common Section Headers
   ========================================================================== */
.section-header {
    margin-bottom: 48px;
    text-align: center;
}

.section-header.align-left {
    text-align: left;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--gold-primary);
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-transform: uppercase;
    text-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}

.section-header h2::before,
.section-header h2::after {
    content: '✦';
    display: inline-block;
    color: var(--gold-bright);
    font-size: 0.85rem;
    opacity: 0.8;
}

.section-header .section-divider {
    position: relative;
    height: 2px;
    max-width: 420px;
    margin: 16px auto 18px;
    background: linear-gradient(90deg, transparent, var(--gold-primary) 25%, var(--gold-primary) 75%, transparent);
}

.section-header .section-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    transform: translate(-50%, -50%) rotate(45deg);
    background: var(--gold-primary);
    box-shadow: 0 0 8px var(--gold-primary);
}

.section-header.align-left .section-divider {
    margin: 16px 0 18px;
    background: linear-gradient(90deg, var(--gold-primary) 0%, transparent 100%);
}

.section-header.align-left .section-divider::after {
    left: 18px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.08rem;
    font-style: italic;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.65;
}

.section-header.align-left p {
    margin: 0;
}

/* ==========================================================================
   XP / Stat Bars (Game Elements)
   ========================================================================== */
.xp-bar {
    display: block;
    position: relative;
    width: 100%;
    height: 8px;
    background-color: var(--bg-subcard);
    border: 1px solid var(--border-color);
    margin: 10px 0 12px;
    overflow: hidden;
}

.xp-bar .xp-fill {
    display: block;
    height: 100%;
    transition: width 0.8s ease;
    position: relative;
}

.xp-bar .xp-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, transparent 60%, rgba(255, 255, 255, 0.35) 100%);
}

.xp-gold {
    background: var(--grad-gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.xp-green {
    background: linear-gradient(90deg, #2e8b57 0%, var(--emerald) 100%);
    box-shadow: 0 0 8px rgba(78, 202, 160, 0.5);
}

.xp-purple {
    background: linear-gradient(90deg, #6a3093 0%, var(--royal-purple) 100%);
    box-shadow: 0 0 8px rgba(142, 107, 216, 0.5);
}

/* Skill Level Label */
.skill-level {
    margin-bottom: 14px;
}

.skill-level span {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-family: var(--font-heading);
    margin-bottom: 4px;
}

/* ==========================================================================
   Key Stats Section
   ========================================================================== */
.metrics-section {
    padding: 80px 0;
    background-color: rgba(20, 20, 28, 0.5);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.metric-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--grad-gold);
    opacity: 0.7;
    transition: var(--transition-fast);
}

.metric-card::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 18px;
    height: 18px;
    border-top: 2px solid var(--gold-primary);
    border-right: 2px solid var(--gold-primary);
    opacity: 0.7;
}

.metric-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), var(--shadow-gold-glow);
}

.metric-card:hover::before {
    opacity: 1;
    height: 4px;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.metric-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold-bright);
    border: 1px solid rgba(212, 175, 55, 0.35);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-status-pulse {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--emerald);
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(78, 202, 160, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(78, 202, 160, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(78, 202, 160, 0); }
}

.metric-value {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.metric-label {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.metric-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
    font-style: italic;
}

/* ==========================================================================
   The Skill Tree Section
   ========================================================================== */
.skills-section {
    padding: 90px 0;
}

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

.skills-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 28px 24px;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    position: relative;
}

.skills-card.highlight-card {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.12);
    background-color: #18141a;
}

.skills-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), var(--shadow-gold-glow);
}

.skills-card-icon {
    width: 46px;
    height: 46px;
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    margin-bottom: 18px;
    position: relative;
}

.skills-card-icon svg {
    width: 24px;
    height: 24px;
}

.skills-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-family: var(--font-heading);
    letter-spacing: 0.3px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.skill-tag {
    background-color: var(--bg-subcard);
    color: var(--steel-blue);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-body);
    transition: var(--transition-fast);
    position: relative;
}

.skill-tag::before {
    content: '◆';
    font-size: 0.55rem;
    color: var(--gold-dark);
    margin-right: 5px;
    vertical-align: middle;
}

.skill-tag:hover {
    border-color: var(--gold-primary);
    color: var(--gold-bright);
    background-color: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   Quest Log Timeline Section
   ========================================================================== */
.experience-section {
    padding: 90px 0;
    background-color: rgba(20, 20, 28, 0.4);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--gold-primary) 0%, var(--crimson) 100%);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 44px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 6px;
    width: 18px;
    height: 18px;
    background-color: var(--bg-main);
    border: 3px solid var(--gold-primary);
    box-shadow: 0 0 12px var(--gold-primary);
    z-index: 2;
    transform: rotate(45deg);
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold-bright);
    border: 1px solid rgba(212, 175, 55, 0.35);
    font-size: 0.84rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.timeline-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 26px 28px;
    transition: var(--transition-normal);
    position: relative;
}

.timeline-content:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card), var(--shadow-gold-glow);
    transform: translateX(4px);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.job-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.job-header .company {
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-heading);
}

.job-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-style: italic;
}

.job-duties {
    margin-bottom: 18px;
}

.job-duties li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.job-duties li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.7rem;
    color: var(--gold-bright);
}

.job-duties strong {
    color: var(--text-primary);
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-tags .tag {
    background-color: var(--bg-subcard);
    border: 1px solid var(--border-color);
    color: var(--steel-blue);
    padding: 4px 10px;
    font-size: 0.82rem;
    font-family: var(--font-body);
}

/* ==========================================================================
   Armory of Achievements Section
   ========================================================================== */
.projects-section {
    padding: 90px 0;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 9px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.filter-btn:hover {
    color: var(--gold-bright);
    border-color: var(--border-hover);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.filter-btn.active {
    background: var(--grad-gold);
    color: #1a1408;
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold-glow);
    font-weight: 700;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--grad-gold);
    opacity: 0.5;
    transition: var(--transition-fast);
}

.project-card.hidden {
    display: none;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), var(--shadow-gold-glow);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-heading);
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold-bright);
    border: 1px solid rgba(212, 175, 55, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-date {
    font-size: 0.84rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-style: italic;
}

.project-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.project-association {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 14px;
    font-family: var(--font-heading);
    font-style: italic;
}

.project-desc {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 22px;
}

.project-tech span {
    background-color: var(--bg-subcard);
    border: 1px solid var(--border-color);
    color: var(--steel-blue);
    padding: 4px 10px;
    font-size: 0.8rem;
    font-family: var(--font-body);
}

.project-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.proj-badge {
    font-size: 0.84rem;
    color: var(--gold-bright);
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold-bright);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 6px 14px;
    background-color: rgba(212, 175, 55, 0.08);
    transition: var(--transition-fast);
}

.project-link-btn:hover {
    background-color: var(--gold-primary);
    color: #1a1408;
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.project-link-btn svg {
    width: 14px;
    height: 14px;
}

.badge-devops-dot {
    width: 7px;
    height: 7px;
    background-color: var(--gold-bright);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-bright);
}

/* Badges & Pills */
.badge-devops {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    background-color: rgba(212, 175, 55, 0.08);
    color: var(--gold-bright);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.15);
    margin-bottom: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* RPG Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '❖';
    font-size: 0.7rem;
    opacity: 0.8;
}

.btn-primary {
    background: linear-gradient(135deg, #1a1408 0%, #2a2314 100%);
    color: var(--gold-bright);
    border: 1px solid var(--gold-primary);
    box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.1);
}

.btn-primary:hover {
    background: var(--grad-gold);
    color: #1a1408;
    box-shadow: var(--shadow-gold-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #e67e22;
    border: 1px solid #c0392b;
    box-shadow: inset 0 0 15px rgba(192, 57, 43, 0.1);
}

.btn-secondary:hover {
    background: var(--grad-ember);
    color: #fffaf0;
    box-shadow: var(--shadow-ember);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: var(--bg-navbar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    height: 64px;
    background: rgba(10, 10, 15, 0.97);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-bottom-color: var(--gold-primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo */
.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
}

.logo-accent {
    color: var(--gold-bright);
    font-family: var(--font-display);
    font-size: 0.95rem;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links a::before {
    content: '✦';
    font-size: 0.55rem;
    margin-right: 6px;
    opacity: 0;
    color: var(--gold-primary);
    transition: var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-gold);
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-bright);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    opacity: 1;
}

.nav-links a.active::after {
    width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-normal);
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--gold-bright);
}
.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--gold-bright);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding: 140px 0 90px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 3.3rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3), 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--gold-primary);
    margin-bottom: 20px;
    line-height: 1.5;
    font-style: italic;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--gold-bright);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: rgba(212, 175, 55, 0.12);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-glow);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Adventurer's Scroll Terminal Mockup */
.terminal-container {
    background-color: #12101a;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2), inset 0 0 15px rgba(212, 175, 55, 0.05);
    overflow: hidden;
    font-family: var(--font-mono);
    position: relative;
}

.terminal-container::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 18px;
    height: 18px;
    border-top: 2px solid var(--gold-primary);
    border-left: 2px solid var(--gold-primary);
    z-index: 1;
}

.terminal-header {
    background-color: var(--bg-subcard);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.btn-dot {
    width: 11px;
    height: 11px;
    transform: rotate(45deg);
}
.btn-dot.close { background-color: var(--crimson); box-shadow: 0 0 6px var(--crimson); }
.btn-dot.minimize { background-color: var(--gold-bright); box-shadow: 0 0 6px var(--gold-bright); }
.btn-dot.expand { background-color: var(--emerald); box-shadow: 0 0 6px var(--emerald); }

.terminal-title {
    font-size: 0.85rem;
    color: var(--gold-bright);
    font-weight: 500;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.terminal-body {
    padding: 20px;
    min-height: 290px;
    max-height: 340px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #e0dccd;
}

.term-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6px;
    word-break: break-all;
}

.term-prompt {
    color: var(--gold-bright);
    margin-right: 8px;
    font-weight: 700;
    user-select: none;
    white-space: nowrap;
}

.term-caret {
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: var(--gold-bright);
    margin-left: 2px;
    animation: blink 0.8s infinite;
    box-shadow: 0 0 8px var(--gold-bright);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.term-output {
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 4px;
    border-left: 2px solid var(--border-hover);
}

.term-output .highlight-val {
    color: var(--gold-bright);
    font-weight: 600;
}

.term-output .success-val {
    color: var(--emerald);
    font-weight: 600;
    text-shadow: 0 0 6px rgba(78, 202, 160, 0.4);
}

/* ==========================================================================
   Academy of Learning & Trophies Section
   ========================================================================== */
.education-certs-section {
    padding: 90px 0;
    background-color: rgba(20, 20, 28, 0.4);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.edu-certs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.edu-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 28px;
    display: flex;
    gap: 20px;
    transition: var(--transition-normal);
    position: relative;
}

.edu-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card), var(--shadow-gold-glow);
}

.edu-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    flex-shrink: 0;
    position: relative;
}

.edu-icon svg {
    width: 26px;
    height: 26px;
}

.edu-details h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.edu-details h4 {
    font-size: 1rem;
    color: var(--gold-primary);
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-style: italic;
}

.edu-meta {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-style: italic;
}

.edu-grade {
    font-size: 0.95rem;
    color: var(--emerald);
    font-weight: 600;
    margin-bottom: 14px;
    font-family: var(--font-heading);
}

.edu-coursework h5 {
    font-size: 0.9rem;
    color: var(--gold-primary);
    margin-bottom: 6px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edu-coursework ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.edu-coursework li {
    background-color: var(--bg-subcard);
    border: 1px solid var(--border-color);
    color: var(--steel-blue);
    padding: 4px 10px;
    font-size: 0.8rem;
    font-family: var(--font-body);
}

.certs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cert-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition-normal);
    position: relative;
}

.cert-item.highlight-cert {
    border-color: var(--gold-primary);
    background-color: #1a1610;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.cert-item:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow-gold-glow);
}

.cert-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    flex-shrink: 0;
}

.cert-icon svg {
    width: 22px;
    height: 22px;
}

.cert-details {
    flex: 1;
}

.cert-details h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    font-family: var(--font-heading);
}

.cert-issuer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-style: italic;
}

.cert-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--gold-bright);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-badge-link:hover {
    color: var(--crimson);
}

.small-icon {
    width: 12px;
    height: 12px;
}

/* ==========================================================================
   Summon Contact Section
   ========================================================================== */
.contact-section {
    padding: 90px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
}

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

.info-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-fast);
}

.info-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-glow);
}

.info-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-bright);
    flex-shrink: 0;
}

.info-icon svg {
    width: 22px;
    height: 22px;
}

.info-card h4 {
    font-size: 0.88rem;
    color: var(--gold-primary);
    margin-bottom: 2px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-body);
}

/* Contact Form */
.contact-form-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 32px;
    box-shadow: var(--shadow-card);
    position: relative;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gold-primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    background-color: #100e16;
    border: 1px solid var(--border-color);
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(143, 139, 132, 0.6);
    font-style: italic;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

#form-status {
    margin-top: 16px;
    padding: 12px;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    display: none;
}

#form-status.success {
    background-color: rgba(78, 202, 160, 0.1);
    color: var(--emerald);
    border: 1px solid rgba(78, 202, 160, 0.4);
    display: block;
}

#form-status.error {
    background-color: rgba(192, 57, 43, 0.12);
    color: var(--crimson);
    border: 1px solid rgba(192, 57, 43, 0.4);
    display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #0a0a0f;
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.84rem;
    font-family: var(--font-heading);
    color: var(--text-muted);
}

.dot-separator {
    color: var(--gold-bright);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .edu-certs-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--navbar-height);
        right: -100%;
        width: 280px;
        height: calc(100vh - var(--navbar-height));
        background-color: var(--bg-main);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        transition: var(--transition-normal);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    }

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

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

    .hero-title {
        font-size: 2.4rem;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }
}