/* ============================================================
   IRTIJA — DESIGN SYSTEM
   Version 2.2 · Final Polish & Refinement
   Palette: Deep Teal (#004643) · Cyprus Light (#1A7A74) · Gold (#D4A853)
   Fonts: Playfair Display (Headings) · Inter (Body)
   ============================================================ */

/* ============================================================
   1.  RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-secondary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ============================================================
   2.  CSS VARIABLES — DESIGN TOKENS (Light + Dark)
   ============================================================ */

:root {
    /* ----- Primary Colors ----- */
    --primary: #004643;
    --primary-light: #1A7A74;
    --primary-dark: #002B29;
    --primary-rgb: 0, 70, 67;

    /* ----- Secondary Colors (Gold) ----- */
    --gold: #D4A853;
    --gold-light: #E8D5A8;
    --gold-dark: #B8923A;
    --gold-rgb: 212, 168, 83;

    /* ----- Neutrals (Light) ----- */
    --bg-body: #F0EDE5;
    --bg-surface: #F5F2EA;
    --bg-card: #FCFAF5;
    --bg-white: #FFFFFF;

    --border-light: #D5CFC4;
    --border-subtle: rgba(213, 207, 196, 0.30);

    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #7A7A7A;
    --text-light: rgba(255, 255, 255, 0.88);
    --text-light-muted: rgba(255, 255, 255, 0.55);

    /* ----- Feedback Colors ----- */
    --success: #2B8C6E;
    --warning: #D4A853;
    --error: #C44A4A;
    --info: #4A8AA8;

    /* ----- Shadows — refined elevation hierarchy ----- */
    --shadow-xs: 0 1px 3px rgba(0, 70, 67, 0.02), 0 1px 2px rgba(0, 70, 67, 0.02);
    --shadow-sm: 0 2px 8px rgba(0, 70, 67, 0.05);
    --shadow-md: 0 6px 28px rgba(0, 70, 67, 0.06);
    --shadow-lg: 0 16px 52px rgba(0, 70, 67, 0.08);
    --shadow-xl: 0 24px 64px rgba(0, 70, 67, 0.08);
    --shadow-glow: 0 8px 32px rgba(212, 168, 83, 0.10);
    --shadow-soft: 0 4px 20px rgba(0, 70, 67, 0.04);
    --shadow-card: var(--shadow-sm);
    --shadow-card-hover: var(--shadow-md);

    /* ----- Gradients ----- */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
    --gradient-gold: linear-gradient(135deg, var(--gold), var(--gold-dark));
    --gradient-subtle: linear-gradient(135deg, rgba(212, 168, 83, 0.08), rgba(26, 122, 116, 0.04));
    --gradient-footer: linear-gradient(135deg, var(--primary) 60%, var(--primary-dark) 100%);

    /* ----- Borders & Radius ----- */
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* ----- Transitions (slowed down slightly for polish) ----- */
    --transition-fast: 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-nav: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ----- Spacing Scale (unchanged) ----- */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 2.5rem;
    --space-8: 3rem;
    --space-9: 4rem;
    --space-10: 5rem;
    --space-11: 6rem;

    /* ----- Container ----- */
    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* ----- Z-Index Scale ----- */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;

    /* ----- Page Hero ----- */
    --page-hero-padding-top: 100px;
}

/* ----- Dark Mode Variables (applied via data attribute) ----- */
[data-theme="dark"] {
    --bg-body: #121212;
    --bg-surface: #1a1a1a;
    --bg-card: #242424;
    --bg-white: #1e1e1e;

    --border-light: #3a3a3a;
    --border-subtle: rgba(255, 255, 255, 0.06);

    --text-primary: #e8e8e8;
    --text-secondary: #b0b0b0;
    --text-muted: #7a7a7a;
    --text-light: rgba(255, 255, 255, 0.92);
    --text-light-muted: rgba(255, 255, 255, 0.45);

    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 6px 28px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 52px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 8px 32px rgba(212, 168, 83, 0.06);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-card: var(--shadow-sm);
    --shadow-card-hover: var(--shadow-md);

    --gradient-subtle: linear-gradient(135deg, rgba(212, 168, 83, 0.04), rgba(26, 122, 116, 0.02));
}

/* ============================================================
   3.  TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

h6 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

p {
    margin-bottom: var(--space-4);
}

.text-large {
    font-size: 1.125rem;
    line-height: 1.7;
}

.text-small {
    font-size: 0.875rem;
    line-height: 1.6;
}

.text-muted {
    color: var(--text-muted);
}

.text-gold {
    color: var(--gold);
}

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

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

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

ul,
ol {
    padding-left: var(--space-5);
    margin-bottom: var(--space-4);
}

blockquote {
    border-left: 3px solid var(--gold);
    padding-left: var(--space-5);
    margin: var(--space-5) 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* ============================================================
   4.  UTILITY CLASSES
   ============================================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* Section padding — slightly increased for better breathing */
.section-padding {
    padding: var(--space-10) 0;
}

.section-padding-sm {
    padding: var(--space-7) 0;
}

.section-padding-lg {
    padding: var(--space-11) 0;
}

/* Section headers — refined spacing */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: var(--space-2);
    border: 1px solid rgba(212, 168, 83, 0.15);
    padding: 0.15rem 0.8rem;
    border-radius: var(--radius-full);
    background: rgba(212, 168, 83, 0.04);
    transition: background var(--transition-fast);
}

.section-tag:hover {
    background: rgba(212, 168, 83, 0.08);
}

.section-title {
    margin-bottom: var(--space-3);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: 0;
}

.section-header {
    margin-bottom: var(--space-7);
    text-align: center;
}

.section-header .section-title {
    margin-bottom: var(--space-2);
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* Gold accent underline — slightly refined */
.section-title-underline {
    position: relative;
    display: inline-block;
}

.section-title-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 64px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
}

.section-header .section-title-underline::after {
    left: 50%;
    transform: translateX(-50%);
}

.flex {
    display: flex;
}
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.flex-col {
    display: flex;
    flex-direction: column;
}
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   5.  BUTTONS — refined hover, focus, and spacing
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.75rem 1.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1.5;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.btn i {
    font-size: 0.875rem;
    transition: transform var(--transition-fast);
}

.btn:hover i {
    transform: translateX(2px);
}

.btn:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 70, 67, 0.12);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 70, 67, 0.18);
    color: #fff;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--gradient-gold);
    color: #fff;
    box-shadow: 0 4px 16px rgba(212, 168, 83, 0.16);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212, 168, 83, 0.22);
    color: #fff;
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.btn-ghost:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 70, 67, 0.12);
}

.btn-cta-primary {
    background: var(--gradient-gold);
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    box-shadow: 0 8px 32px rgba(212, 168, 83, 0.20);
}

.btn-cta-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 48px rgba(212, 168, 83, 0.28);
    color: #fff;
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.20);
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.20);
    transform: translateY(-3px);
    color: #fff;
}

.btn-sm {
    padding: 0.4rem 1.2rem;
    font-size: 0.75rem;
    min-height: 36px;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    min-height: 56px;
}

/* ============================================================
   6.  CARDS — refined depth, spacing, and hover
   ============================================================ */

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    padding: var(--space-5);
    transition: all var(--transition);
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
    border-color: rgba(212, 168, 83, 0.12);
}

.card-header {
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.card-body {
    color: var(--text-secondary);
}

.card-footer {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-subtle);
}

.card-glass {
    background: rgba(252, 250, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(213, 207, 196, 0.20);
}

[data-theme="dark"] .card-glass {
    background: rgba(36, 36, 36, 0.85);
}

.card-feature {
    padding: var(--space-6);
    text-align: center;
}

.card-feature .card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-light);
    margin: 0 auto var(--space-3);
}

.card-feature .card-title {
    margin-bottom: var(--space-2);
}

/* ============================================================
   7.  NAVBAR (Top Navigation) — no changes needed, already polished
   ============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(240, 237, 229, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 70, 67, 0.04);
    transition: transform var(--transition-nav), background var(--transition-slow), box-shadow var(--transition-slow);
    height: 72px;
    display: flex;
    align-items: center;
    will-change: transform;
}

[data-theme="dark"] .site-header {
    background: rgba(18, 18, 18, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-header.scrolled {
    background: rgba(240, 237, 229, 0.96);
    box-shadow: 0 2px 24px rgba(0, 70, 67, 0.04);
}

[data-theme="dark"] .site-header.scrolled {
    background: rgba(18, 18, 18, 0.96);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.site-header.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(212, 168, 83, 0.12);
    transition: border-color var(--transition-fast);
}

.brand-link:hover .brand-logo {
    border-color: var(--gold);
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-name .gold {
    color: var(--gold);
}

.nav-desktop {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link.active {
    color: var(--text-primary);
    font-weight: 600;
}

.nav-link.active::after {
    width: 60%;
}

.nav-cta {
    background: var(--gradient-primary);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 70, 67, 0.15);
    color: #fff !important;
}

.theme-toggle {
    background: rgba(0, 70, 67, 0.04);
    border: 1px solid rgba(0, 70, 67, 0.06);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
    flex-shrink: 0;
    margin-left: var(--space-1);
}

.theme-toggle:hover {
    background: rgba(212, 168, 83, 0.06);
    border-color: rgba(212, 168, 83, 0.12);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(212, 168, 83, 0.08);
    border-color: rgba(212, 168, 83, 0.12);
}

.theme-toggle i {
    transition: transform var(--transition-slow);
}

.theme-toggle:hover i {
    transform: rotate(30deg);
}

.hamburger-toggle {
    display: none;
    background: rgba(0, 70, 67, 0.04);
    border: 1px solid rgba(0, 70, 67, 0.06);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
    flex-shrink: 0;
}

.hamburger-toggle:hover {
    background: rgba(212, 168, 83, 0.06);
    border-color: rgba(212, 168, 83, 0.12);
}

.hamburger-toggle.open {
    background: rgba(212, 168, 83, 0.08);
    border-color: rgba(212, 168, 83, 0.18);
}

.hamburger-toggle i {
    transition: transform var(--transition-slow);
}

.hamburger-toggle.open i {
    transform: rotate(90deg);
}

.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: -8px 0 40px rgba(0, 70, 67, 0.06);
    padding: 80px var(--space-5) var(--space-5);
    overflow-y: auto;
    transition: right var(--transition-slow);
    z-index: var(--z-overlay);
    border-left: 1px solid var(--border-subtle);
}

[data-theme="dark"] .nav-mobile {
    background: var(--bg-card);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
}

.nav-mobile.open {
    right: 0;
}

.nav-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.nav-mobile-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-mobile-link:hover {
    background: var(--gradient-subtle);
    color: var(--text-primary);
}

.nav-mobile-link.active {
    color: var(--text-primary);
    font-weight: 600;
    background: var(--gradient-subtle);
}

.nav-mobile-cta {
    background: var(--gradient-primary);
    color: #fff !important;
    text-align: center;
    font-weight: 600;
    margin-top: var(--space-3);
}

.nav-mobile-cta:hover {
    background: var(--primary-light);
    color: #fff !important;
}

.nav-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.20);
    z-index: calc(var(--z-overlay) - 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

[data-theme="dark"] .nav-mobile-overlay {
    background: rgba(0, 0, 0, 0.50);
}

.nav-mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   8.  PAGE HERO — refined spacing and visual separation
   ============================================================ */

.page-hero {
    padding-top: var(--page-hero-padding-top);
    padding-bottom: var(--space-8);
    background:
        radial-gradient(ellipse at 20% 30%, rgba(212, 168, 83, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(26, 122, 116, 0.03) 0%, transparent 50%),
        var(--bg-body);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

[data-theme="dark"] .page-hero {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(212, 168, 83, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(26, 122, 116, 0.03) 0%, transparent 50%),
        var(--bg-body);
}

.page-hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.page-hero-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    line-height: 1.1;
}

.page-hero-title .gold {
    color: var(--gold);
}

.page-hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto var(--space-6);
    line-height: 1.7;
}

.page-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-5);
    flex-wrap: wrap;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

[data-theme="dark"] .hero-stat-number {
    color: var(--gold);
}

.hero-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-subtle);
}

/* ============================================================
   9.  HERO (homepage) — refined spacing and visual separation
   ============================================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0 var(--space-9);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(212, 168, 83, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(26, 122, 116, 0.04) 0%, transparent 50%),
        var(--bg-body);
}

[data-theme="dark"] .hero {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(212, 168, 83, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(26, 122, 116, 0.03) 0%, transparent 50%),
        var(--bg-body);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(212, 168, 83, 0.08);
    padding: 0.3rem 1rem 0.3rem 0.6rem;
    border-radius: var(--radius-full);
    width: fit-content;
    border: 1px solid rgba(212, 168, 83, 0.06);
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--text-primary);
}

.hero-title .gold {
    color: var(--gold);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(213, 207, 196, 0.20);
    box-shadow: 0 8px 48px rgba(0, 70, 67, 0.06);
    position: relative;
    z-index: 2;
}

.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(212, 168, 83, 0.08);
    animation: ring-float 8s ease-in-out infinite;
}

.hero-ring {
    inset: -12px;
    animation-delay: 0s;
}

.hero-ring-2 {
    inset: -24px;
    animation-delay: 2s;
    border-color: rgba(212, 168, 83, 0.04);
}

@keyframes ring-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.02); }
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    opacity: 0.4;
    animation: scroll-bounce 2.5s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    display: block;
}

.scroll-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   10. QUICK STATS — refined separation
   ============================================================ */

.stats {
    padding: var(--space-8) 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

[data-theme="dark"] .stats {
    background: var(--bg-surface);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

[data-theme="dark"] .stat-number {
    color: var(--gold);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-1);
}

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

/* ============================================================
   11. ABOUT SECTION — no major changes
   ============================================================ */

.about {
    padding: var(--space-10) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-8);
    align-items: start;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.about-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.about-mission {
    background: var(--gradient-subtle);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius);
    border-left: 3px solid var(--gold);
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.about-mission .gold-icon {
    color: var(--gold);
    font-size: 1.2rem;
    margin-top: 2px;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.about-details {
    display: flex;
    flex-direction: column;
}

.detail-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    padding: var(--space-5);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-fast);
}

.detail-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(0, 70, 67, 0.04);
}

[data-theme="dark"] .detail-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item i {
    width: 20px;
    color: var(--gold);
    font-size: 0.9rem;
    text-align: center;
    flex-shrink: 0;
}

.detail-item > div {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.detail-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ============================================================
   12. FEATURED SKILLS — refined card depth and spacing
   ============================================================ */

.featured-skills {
    padding: var(--space-10) 0;
    background: var(--bg-surface);
}

[data-theme="dark"] .featured-skills {
    background: var(--bg-surface);
}

.skills-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

.skill-preview-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: var(--space-5);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}

.skill-preview-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
    border-color: rgba(212, 168, 83, 0.08);
}

.skill-preview-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-bottom: var(--space-3);
}

.skill-preview-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-body);
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid rgba(213, 207, 196, 0.15);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: rgba(212, 168, 83, 0.06);
    border-color: rgba(212, 168, 83, 0.10);
    transform: translateY(-1px);
}

.skill-tag i {
    color: var(--gold);
    font-size: 0.55rem;
}

.skills-cta {
    text-align: center;
    margin-top: var(--space-7);
}

/* ============================================================
   13. FEATURED EXPERIENCE — refined spacing and depth
   ============================================================ */

.featured-experience {
    padding: var(--space-10) 0;
}

.experience-preview {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: var(--space-6);
}

.experience-preview::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), rgba(212, 168, 83, 0.05));
    border-radius: var(--radius-full);
}

.exp-preview-item {
    position: relative;
    padding-left: var(--space-5);
}

.exp-preview-marker {
    position: absolute;
    left: calc(-1 * var(--space-6) + 4px);
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--gold);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.08);
    transition: all var(--transition);
}

[data-theme="dark"] .exp-preview-marker {
    border-color: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.06);
}

.exp-preview-item:hover .exp-preview-marker {
    transform: scale(1.25);
    background: var(--primary-light);
    box-shadow: 0 0 0 5px rgba(212, 168, 83, 0.12);
}

.exp-preview-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: var(--space-4) var(--space-5);
    border-left: 3px solid var(--gold);
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}

.exp-preview-content:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateX(4px);
}

.exp-preview-date {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-light);
    background: rgba(212, 168, 83, 0.08);
    padding: 0.1rem 0.6rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-2);
}

.exp-preview-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.exp-preview-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

.experience-cta {
    text-align: center;
    margin-top: var(--space-7);
}

/* ============================================================
   14. CALL TO ACTION — refined spacing
   ============================================================ */

.cta-section {
    padding: var(--space-10) 0;
    background: var(--gradient-footer);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(212, 168, 83, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

.cta-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--space-8);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: var(--space-7) var(--space-8);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cta-content h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: var(--space-3);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.70);
    font-size: 1.05rem;
    max-width: 500px;
    margin-bottom: var(--space-5);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.cta-decoration {
    font-size: 4rem;
    color: rgba(212, 168, 83, 0.15);
    padding: var(--space-4);
    border-radius: 50%;
    background: rgba(212, 168, 83, 0.04);
    border: 1px solid rgba(212, 168, 83, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

/* ============================================================
   15. FOOTER — no major changes
   ============================================================ */

.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.60);
    padding-top: var(--space-8);
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-8);
    padding-bottom: var(--space-7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-brand-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    margin-bottom: var(--space-3);
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(212, 168, 83, 0.12);
}

.footer-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.footer-brand-name .gold {
    color: var(--gold);
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.50);
    max-width: 280px;
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.30);
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.50);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold);
}

.social-icons {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.50);
    font-size: 1rem;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.social-icons a:hover {
    background: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
    border-color: var(--gold);
}

.footer-bottom {
    padding: var(--space-4) 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.30);
}

.footer-credit strong {
    color: rgba(255, 255, 255, 0.50);
}

/* ============================================================
   16. BLOG COMPONENTS — refined spacing and card depth
   ============================================================ */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-5);
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}

.blog-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
    border-color: rgba(212, 168, 83, 0.08);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--bg-surface);
}

.blog-card-body {
    padding: var(--space-4);
}

.blog-card-meta {
    display: flex;
    gap: var(--space-3);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.blog-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-3);
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.blog-card-tags .tag {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-body);
    padding: 0.1rem 0.6rem;
    border-radius: var(--radius-full);
}

/* Blog Detail — refined spacing */
.blog-detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: var(--space-5);
}

.detail-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-3);
}

.detail-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
}

.detail-tags span {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gold);
    background: rgba(212, 168, 83, 0.06);
    padding: 0.1rem 0.7rem;
    border-radius: var(--radius-full);
}

.detail-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.detail-body h2,
.detail-body h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.detail-body ul,
.detail-body ol {
    margin-bottom: var(--space-4);
}

.detail-body img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: var(--space-4) 0;
}

.detail-body code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    background: var(--bg-body);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.detail-body pre {
    background: var(--bg-body);
    padding: var(--space-4);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: var(--space-4) 0;
}

.detail-body pre code {
    background: transparent;
    padding: 0;
}

.detail-gallery-container {
    margin-top: var(--space-6);
}

.gallery-toggle-btn {
    background: rgba(212, 168, 83, 0.06);
    border: 1px solid rgba(212, 168, 83, 0.10);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: 'Inter', sans-serif;
    margin-bottom: var(--space-3);
}

.gallery-toggle-btn:hover {
    background: rgba(212, 168, 83, 0.12);
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-3);
}

.detail-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
}

.detail-gallery img:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-glow);
    z-index: 2;
}

.detail-video {
    margin: var(--space-6) 0;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

.detail-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.detail-cert-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--gradient-gold);
    color: #fff;
    padding: 0.6rem 1.6rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    margin-top: var(--space-4);
}

.detail-cert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.25);
    color: #fff;
}

.back-to-portfolio-wrapper {
    margin-bottom: var(--space-5);
}

.back-to-portfolio {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.back-to-portfolio:hover {
    color: var(--gold);
}

/* ============================================================
   17. CONTACT COMPONENTS — refined spacing and alignment
   ============================================================ */

.contact-page-header {
    margin-bottom: var(--space-7);
}

.contact-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 540px;
}

.contact-grid {
    display: grid;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.contact-grid.primary {
    grid-template-columns: repeat(3, 1fr);
}

.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: var(--space-5);
    text-align: center;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.contact-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
    border-color: rgba(212, 168, 83, 0.08);
}

.contact-card-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: var(--space-3);
}

.contact-card-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-card-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: var(--space-1) 0 var(--space-3);
}

.btn-contact-action {
    padding: 0.3rem 1rem;
    font-size: 0.7rem;
    border-radius: var(--radius-full);
}

.social-section-header {
    margin-bottom: var(--space-4);
}

.social-section-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.social-section-header h3 i {
    color: var(--gold);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 0.6rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-family: 'Inter', sans-serif;
    min-height: 48px;
    cursor: pointer;
}

.social-btn i {
    font-size: 1rem;
    color: var(--primary-light);
    transition: color var(--transition-fast);
}

.social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 70, 67, 0.10);
}

.social-btn:hover i {
    color: #fff;
}

.social-btn .thm-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    transition: filter var(--transition-fast);
}

.social-btn:hover .thm-icon {
    filter: brightness(0) invert(1);
}

.phone-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: var(--space-5);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    margin-top: var(--space-6);
    transition: all var(--transition);
}

.phone-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.phone-card-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.phone-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
}

.phone-divider {
    width: 1px;
    height: 28px;
    background: var(--border-subtle);
}

.phone-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.9rem;
}

.phone-item i {
    color: var(--gold);
    font-size: 0.9rem;
}

.phone-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.phone-number {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.phone-number:hover {
    color: var(--gold);
}

.local-time-wrapper {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg-body);
    padding: 0.3rem 1rem 0.3rem 0.6rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 70, 67, 0.04);
    box-shadow: var(--shadow-soft);
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-slow);
    flex-wrap: wrap;
    justify-content: center;
}

.local-time-wrapper:hover {
    border-color: rgba(212, 168, 83, 0.12);
    box-shadow: var(--shadow-glow);
}

.astro-display {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.astro-display .sun {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle, #fdd835, #f9a825);
    box-shadow: 0 0 30px rgba(253, 216, 53, 0.30);
    transition: all var(--transition-slow);
}

.astro-display .moon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e8f0;
    box-shadow: inset -4px -4px 10px rgba(0, 0, 0, 0.08), 0 0 20px rgba(200, 220, 240, 0.15);
    position: relative;
    transition: transform var(--transition-slow);
}

.astro-display .moon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: #0a1a1a;
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
    transform: rotate(var(--rotation, 0deg));
    transition: transform var(--transition-slow);
    transform-origin: center;
}

.astro-display .moon.size-small {
    transform: scale(0.8);
}
.astro-display .moon.size-medium {
    transform: scale(1);
}
.astro-display .moon.size-large {
    transform: scale(1.15);
}

.local-time-wrapper .live-indicator {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

.local-time-wrapper .time-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.local-time-wrapper .time-label i {
    color: var(--gold);
}

.local-time-wrapper .time-digital {
    font-family: 'Inter', monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-card);
    padding: 0.05rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 70, 67, 0.04);
    min-width: 72px;
    text-align: center;
}

.local-time-wrapper .time-zone {
    font-size: 0.55rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 0.05rem 0.6rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 70, 67, 0.04);
    white-space: nowrap;
}

.phone-card-footer {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-subtle);
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.availability-badge i {
    color: var(--success);
    font-size: 0.5rem;
}

/* ============================================================
   18. PROJECTS COMPONENTS — refined spacing
   ============================================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-5);
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
    border-color: rgba(212, 168, 83, 0.08);
}

.project-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--bg-surface);
}

.project-card-body {
    padding: var(--space-4);
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.project-card-tags .tag {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-light);
    background: rgba(26, 122, 116, 0.06);
    padding: 0.1rem 0.6rem;
    border-radius: var(--radius-full);
}

.project-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.project-card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-3);
}

.project-card-links {
    display: flex;
    gap: var(--space-3);
}

.project-card-links a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition-fast);
}

.project-card-links a:hover {
    color: var(--gold);
}

/* ============================================================
   19. EDUCATIONAL / QUALIFICATIONS TABLE — refined spacing
   ============================================================ */

.qualifications-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.qual-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: var(--space-5);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.qual-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateX(4px);
    border-color: rgba(212, 168, 83, 0.08);
}

.qual-icon {
    font-size: 2rem;
    color: var(--primary-light);
    min-width: 48px;
    text-align: center;
    flex-shrink: 0;
}

.qual-content {
    flex: 1;
}

.qual-degree-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.qual-institution {
    font-weight: 600;
    color: var(--primary-light);
    font-size: 0.85rem;
}

.qual-major {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-1);
}

.qual-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-2) 0;
    font-size: 0.8rem;
}

.qual-gpa {
    background: rgba(212, 168, 83, 0.10);
    padding: 0.1rem 0.7rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    color: var(--primary-light);
}

.qual-year-range {
    color: var(--text-muted);
}

.qual-subject-passing {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: var(--space-1) 0;
}

.qual-label {
    font-weight: 700;
    color: var(--text-primary);
}

.qual-sep {
    margin: 0 var(--space-1);
    color: var(--text-muted);
}

.qual-board {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.qual-note {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 500;
    margin-top: var(--space-1);
}

.btn-toggle-details {
    background: transparent;
    border: 1px solid rgba(26, 122, 116, 0.12);
    border-radius: var(--radius-full);
    padding: 0.25rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: var(--space-3);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: 'Inter', sans-serif;
}

.btn-toggle-details:hover {
    background: var(--primary-light);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26, 122, 116, 0.12);
    border-color: var(--primary-light);
}

.btn-toggle-details i {
    transition: transform var(--transition);
    font-size: 0.6rem;
}

.btn-toggle-details.open i {
    transform: rotate(180deg);
}

.details-content {
    display: none;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(0, 70, 67, 0.04);
    margin-top: var(--space-3);
    animation: fadeUp 0.4s ease;
}

[data-theme="dark"] .details-content {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.details-content.open {
    display: block;
}

.details-inner {
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    padding: var(--space-4);
    border: 1px solid var(--border-subtle);
}

[data-theme="dark"] .details-inner {
    background: var(--bg-surface);
}

.details-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.details-note i {
    color: var(--gold);
}

.semester-group {
    margin-bottom: var(--space-4);
}

.semester-group:last-of-type {
    margin-bottom: 0;
}

.semester-group h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
}

.semester-group h4 i {
    color: var(--primary-light);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 70, 67, 0.04);
    background: var(--bg-white);
}

[data-theme="dark"] .table-responsive {
    background: var(--bg-surface);
    border-color: rgba(255, 255, 255, 0.04);
}

.academic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    min-width: 420px;
}

.academic-table thead th {
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 0.8rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .academic-table thead th {
    background: var(--primary-dark);
}

.academic-table tbody td {
    padding: 0.4rem 0.8rem;
    border-bottom: 1px solid rgba(0, 70, 67, 0.04);
    color: var(--text-secondary);
}

[data-theme="dark"] .academic-table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.academic-table tbody tr:last-child td {
    border-bottom: none;
}

.academic-table tbody tr:nth-child(even) {
    background: var(--bg-body);
}

[data-theme="dark"] .academic-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.academic-table tbody tr:hover {
    background: rgba(212, 168, 83, 0.03);
}

[data-theme="dark"] .academic-table tbody tr:hover {
    background: rgba(212, 168, 83, 0.04);
}

.details-footer {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: var(--space-3);
    text-align: right;
    border-top: 1px dashed rgba(0, 70, 67, 0.06);
    padding-top: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-2);
}

[data-theme="dark"] .details-footer {
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.details-footer i {
    color: var(--gold);
}

/* ============================================================
   20. TIMELINE — refined spacing
   ============================================================ */

.timeline-container {
    position: relative;
    padding-left: var(--space-6);
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), rgba(212, 168, 83, 0.05));
    border-radius: var(--radius-full);
}

.timeline-entry {
    position: relative;
    margin-bottom: var(--space-5);
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-6) + 4px);
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--gold);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.08);
    transition: all var(--transition);
}

[data-theme="dark"] .timeline-marker {
    border-color: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.06);
}

.timeline-entry:hover .timeline-marker {
    transform: scale(1.25);
    background: var(--primary-light);
    box-shadow: 0 0 0 5px rgba(212, 168, 83, 0.12);
}

.timeline-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: var(--space-4) var(--space-5);
    border-left: 3px solid var(--gold);
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    margin-left: var(--space-2);
}

.timeline-content:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateX(4px);
}

.timeline-date {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-light);
    background: rgba(212, 168, 83, 0.08);
    padding: 0.1rem 0.7rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-2);
}

.timeline-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.timeline-content h4 i {
    color: var(--primary-light);
}

.meta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin: var(--space-2) 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.meta-inline span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.meta-inline i {
    width: 1rem;
    color: var(--gold);
}

.key-points-single {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.parent-club {
    font-size: 0.75rem;
    color: var(--primary-light);
    background: rgba(212, 168, 83, 0.04);
    display: inline-block;
    padding: 0.1rem 0.7rem;
    border-radius: var(--radius-full);
}

.parent-club i {
    margin-right: var(--space-1);
    color: var(--gold);
}

.cert-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.cert-buttons .btn-outline {
    padding: 0.25rem 1rem;
    font-size: 0.7rem;
    border-radius: var(--radius-full);
}

.cert-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: var(--space-5);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}

.cert-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    border-color: rgba(212, 168, 83, 0.08);
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.cert-header h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.cert-header h4 i {
    color: var(--primary-light);
}

.ongoing-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(212, 168, 83, 0.08);
    color: var(--primary-light);
    padding: 0.1rem 0.6rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(212, 168, 83, 0.08);
}

.cert-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-3);
}

.cert-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.cert-section-title i {
    color: var(--primary-light);
}

/* ============================================================
   21. SKILLS PAGE — Premium Improvements
   ============================================================ */

.skills-main {
    padding: var(--space-7) 0 var(--space-9);
}

.skill-category-group {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}

.skill-category-group:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(212, 168, 83, 0.08);
}

.skill-category-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.category-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

[data-theme="dark"] .category-icon {
    background: rgba(212, 168, 83, 0.04);
}

.category-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.category-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.skill-name {
    font-weight: 500;
    color: var(--text-primary);
}

.skill-level {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.6rem;
    border-radius: var(--radius-full);
    background: var(--bg-body);
    color: var(--text-muted);
}

.skill-level.advanced {
    color: var(--primary-light);
    background: rgba(26, 122, 116, 0.08);
}

.skill-level.intermediate {
    color: var(--gold);
    background: rgba(212, 168, 83, 0.08);
}

.skill-level.beginner {
    color: var(--text-muted);
    background: rgba(122, 122, 122, 0.08);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-body);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .skill-bar {
    background: rgba(255, 255, 255, 0.06);
}

.skill-progress {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    will-change: width;
}

.skill-progress::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
}

[data-theme="dark"] .skill-tags-container {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.tool-stack {
    padding: var(--space-9) 0;
    background: var(--bg-surface);
}

[data-theme="dark"] .tool-stack {
    background: var(--bg-surface);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-2);
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    text-align: center;
}

.tool-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(212, 168, 83, 0.08);
}

.tool-icon {
    font-size: 2rem;
    color: var(--primary-light);
    transition: transform var(--transition);
}

.tool-item:hover .tool-icon {
    transform: scale(1.1);
}

.tool-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.soft-skills {
    padding: var(--space-9) 0;
}

.soft-skills-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: var(--space-7) var(--space-8);
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}

.soft-skills-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(212, 168, 83, 0.08);
}

.soft-skills-content .section-tag {
    margin-bottom: var(--space-3);
}

.soft-skills-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-bottom: var(--space-3);
}

.soft-skills-content > p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: var(--space-5);
}

.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.soft-skill {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    transition: all var(--transition);
}

[data-theme="dark"] .soft-skill {
    background: rgba(255, 255, 255, 0.02);
}

.soft-skill:hover {
    background: rgba(212, 168, 83, 0.04);
}

.soft-skill i {
    font-size: 1.2rem;
    color: var(--gold);
    margin-top: 2px;
    flex-shrink: 0;
}

.soft-skill h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.soft-skill p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.4;
}

/* ============================================================
   22. RESPONSIVE BREAKPOINTS — refined for all devices
   ============================================================ */

/* Large Desktops (1400px+) */
@media (min-width: 1400px) {
    .container {
        padding: 0 2rem;
    }
    .hero-inner {
        gap: var(--space-10);
    }
}

/* Desktop (1025px - 1399px) */
@media (max-width: 1399px) {
    .skills-preview-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .soft-skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet (769px - 1024px) — critical improvements */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-6);
    }

    .hero-description {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-badge {
        margin: 0 auto;
    }

    .hero-image-wrapper {
        max-width: 320px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .skills-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .contact-grid.primary {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }

    .cta-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--space-6);
    }

    .cta-content p {
        margin: 0 auto var(--space-4);
    }

    .cta-actions {
        justify-content: center;
    }

    .cta-decoration {
        margin: 0 auto;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .phone-card-row {
        flex-direction: column;
        align-items: stretch;
    }

    .phone-numbers {
        justify-content: center;
    }

    .phone-divider {
        display: none;
    }

    .soft-skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .soft-skills-card {
        padding: var(--space-6);
    }

    /* Blog & projects grid adjustments for tablet */
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

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

/* Mobile (up to 768px) — refined spacing */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --page-hero-padding-top: 88px;
        --space-8: 2.5rem;
        --space-9: 3rem;
        --space-10: 3.5rem;
    }

    .nav-desktop {
        display: none;
    }

    .hamburger-toggle {
        display: flex;
    }

    .theme-toggle {
        margin-right: var(--space-2);
    }

    .hero {
        padding: 100px 0 var(--space-6);
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 2.8rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-image-wrapper {
        max-width: 240px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .scroll-indicator {
        display: none;
    }

    .stats {
        padding: var(--space-6) 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }

    .stat-number {
        font-size: 2rem;
    }

    .about {
        padding: var(--space-7) 0;
    }

    .about-grid {
        gap: var(--space-5);
    }

    .featured-skills {
        padding: var(--space-7) 0;
    }

    .skills-preview-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3);
    }

    .skill-preview-card {
        padding: var(--space-4);
    }

    .featured-experience {
        padding: var(--space-7) 0;
    }

    .experience-preview {
        padding-left: var(--space-4);
    }

    .exp-preview-marker {
        left: calc(-1 * var(--space-4) + 4px);
    }

    .exp-preview-content {
        padding: var(--space-3) var(--space-4);
    }

    .cta-section {
        padding: var(--space-7) 0;
    }

    .cta-card {
        padding: var(--space-5);
        border-radius: var(--radius);
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .cta-decoration {
        width: 72px;
        height: 72px;
        font-size: 2.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-5);
        text-align: center;
    }

    .footer-brand-link {
        justify-content: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .footer-links {
        align-items: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }

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

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

    .local-time-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.3rem 0.8rem;
        gap: var(--space-1);
    }

    .local-time-wrapper .time-digital {
        font-size: 0.75rem;
        min-width: 60px;
        padding: 0.05rem 0.4rem;
    }

    .local-time-wrapper .time-label {
        font-size: 0.5rem;
    }

    .local-time-wrapper .time-zone {
        font-size: 0.45rem;
    }

    .local-time-wrapper .live-indicator {
        width: 6px;
        height: 6px;
    }

    .astro-display {
        width: 28px;
        height: 28px;
    }
    .astro-display .sun {
        width: 22px;
        height: 22px;
    }
    .astro-display .moon {
        width: 24px;
        height: 24px;
    }

    .phone-item {
        font-size: 0.8rem;
        justify-content: center;
    }

    .qual-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .qual-meta {
        justify-content: center;
    }

    .academic-table {
        font-size: 0.65rem;
        min-width: 320px;
    }

    .academic-table thead th,
    .academic-table tbody td {
        padding: 0.3rem 0.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .detail-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    /* Skills page mobile */
    .skill-category-group {
        padding: var(--space-4);
        margin-bottom: var(--space-4);
    }

    .skill-category-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-3);
    }

    .category-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .category-title {
        font-size: 1rem;
    }

    .category-description {
        font-size: 0.85rem;
    }

    .skill-info {
        font-size: 0.8rem;
    }

    .skill-level {
        font-size: 0.55rem;
    }

    .skill-bar {
        height: 5px;
    }

    .skill-tags-container {
        gap: var(--space-1);
    }

    .skill-tag {
        font-size: 0.6rem;
        padding: 0.15rem 0.5rem;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: var(--space-3);
    }

    .tool-item {
        padding: var(--space-3) var(--space-1);
    }

    .tool-icon {
        font-size: 1.6rem;
    }

    .tool-name {
        font-size: 0.6rem;
    }

    .soft-skills-card {
        padding: var(--space-4);
        border-radius: var(--radius);
    }

    .soft-skills-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .soft-skill {
        padding: var(--space-2) var(--space-3);
    }

    .soft-skill h4 {
        font-size: 0.8rem;
    }

    .soft-skill p {
        font-size: 0.75rem;
    }

    .page-hero {
        padding-top: var(--page-hero-padding-top);
        padding-bottom: var(--space-5);
    }

    .page-hero-title {
        font-size: 1.8rem;
    }

    .page-hero-subtitle {
        font-size: 1rem;
    }

    .page-hero-stats {
        gap: var(--space-3);
        flex-wrap: wrap;
    }

    .hero-stat-number {
        font-size: 1.4rem;
    }

    .hero-stat-divider {
        height: 24px;
    }
}

/* Small Phones (up to 400px) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-image-wrapper {
        max-width: 180px;
    }

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

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3);
    }

    .stat-number {
        font-size: 1.6rem;
    }

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

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

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

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

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

    .detail-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .page-hero-title {
        font-size: 1.5rem;
    }
}

/* ============================================================
   23. ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.10s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.20s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.30s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }

/* ============================================================
   24. ACCESSIBILITY — enhanced focus and reduced motion
   ============================================================ */

/* Focus indicators — visible and consistent */
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Skip link (hidden until focused) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    z-index: var(--z-toast);
    font-weight: 600;
}

.skip-link:focus {
    top: var(--space-3);
}

/* Reduced motion — disable animations and transitions */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fade-up,
    .stagger-children > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hero-ring {
        animation: none !important;
    }

    .scroll-indicator {
        animation: none !important;
    }

    .live-dot {
        animation: none !important;
    }

    .local-time-wrapper .live-indicator {
        animation: none !important;
    }

    .skill-progress::after {
        animation: none !important;
    }

    .card:hover,
    .blog-card:hover,
    .project-card:hover,
    .skill-preview-card:hover {
        transform: none !important;
        transition: none !important;
    }
}

::selection {
    background: var(--gold);
    color: var(--primary-dark);
}

[data-theme="dark"] ::selection {
    background: var(--gold);
    color: #fff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-within\:ring:focus-within {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* ============================================================
   25. PRINT STYLES
   ============================================================ */

@media print {
    .site-header,
    .nav-mobile,
    .hamburger-toggle,
    .theme-toggle,
    .scroll-indicator,
    .cta-section,
    .site-footer {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: var(--space-6) 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image-wrapper {
        max-width: 180px;
        margin: 0 auto;
    }

    .card,
    .qual-card,
    .timeline-content,
    .exp-preview-content {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        transform: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .section-title {
        color: #000;
    }

    .about-mission {
        background: #f5f5f5;
    }

    .page-hero {
        padding-top: 40px;
        padding-bottom: var(--space-4);
        background: #fff;
        border-bottom: 1px solid #ddd;
    }

    .page-hero-title {
        color: #000;
    }

    .skill-category-group {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .skill-bar {
        background: #eee;
    }

    .skill-progress {
        background: var(--primary);
    }

    .skill-progress::after {
        display: none;
    }

    .soft-skills-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}
