/* ============================================
   SHAWN BELLAZAN PORTFOLIO - PRODUCTION CSS
   Version: 3.0 (Elevated Enterprise Edition)
   Architecture: Mobile-First Responsive Design
   ============================================ */

/* ==================== GOOGLE FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&family=JetBrains+Mono:wght@400;600&display=swap');

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Color Palette */
    --gold: #c9933a;
    --gold-light: #e0b568;
    --gold-bright: #f0ca80;
    --gold-dark: #a07830;
    --gold-muted: #8a6828;
    --dark: #080808;
    --darker: #000000;
    --surface: #0f0f0f;
    --surface-2: #161616;
    --gray: #1c1c1c;
    --light-gray: #2a2a2a;
    --border: rgba(201, 147, 58, 0.18);
    --border-subtle: rgba(255,255,255,0.06);
    --text-primary: #f0ede8;
    --text-secondary: #b8b0a4;
    --text-tertiary: #6e6760;
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #c9933a 0%, #e0b568 100%);
    --gradient-gold-full: linear-gradient(135deg, var(--gold) 0%, #6b4e20 100%);
    --gradient-dark: linear-gradient(160deg, var(--surface) 0%, var(--gray) 100%);
    --gradient-hero: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(201,147,58,0.08) 0%, transparent 70%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-2xl: 8rem;
    
    /* Typography */
    --font-display: 'Syne', -apple-system, sans-serif;
    --font-base: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 800;
    
    /* Transitions */
    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px rgba(201, 147, 58, 0.35);
    --shadow-glow-sm: 0 0 12px rgba(201, 147, 58, 0.25);
    
    /* Border Radius */
    --radius-xs: 3px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 50%;
}

/* ==================== COLOR SCHEME (DARK/LIGHT) ==================== */
/* Default is DARK (brand). Light can be enabled via:
   - JS: document.documentElement.dataset.theme = 'light'
   - CSS: prefers-color-scheme: light (if no explicit data-theme is set)
*/
:root[data-theme="light"] {
    /* Surfaces */
    --darker: #f7f7f8;
    --dark: #ffffff;
    --gray: #f0f1f3;
    --light-gray: #e2e4e8;

    /* Text */
    --text-primary: #0a0a0a;
    --text-secondary: #2a2a2a;
    --text-tertiary: #5a5a5a;

    /* Shadows (lighter) */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(212, 165, 116, 0.18);
    --shadow-glow: 0 0 18px rgba(212, 165, 116, 0.35);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        /* Surfaces */
        --darker: #f7f7f8;
        --dark: #ffffff;
        --gray: #f0f1f3;
        --light-gray: #e2e4e8;

        /* Text */
        --text-primary: #0a0a0a;
        --text-secondary: #2a2a2a;
        --text-tertiary: #5a5a5a;

        /* Shadows (lighter) */
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
        --shadow-lg: 0 10px 40px rgba(212, 165, 116, 0.18);
        --shadow-glow: 0 0 18px rgba(212, 165, 116, 0.35);
    }
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-base);
    background: var(--darker);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
}

/* ==================== ACCESSIBILITY UTILITIES ==================== */
/* Screen-reader-only utility (global). Some pages relied on this class existing. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--gold);
    color: var(--darker);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ==================== NAVIGATION ==================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    transition: padding var(--transition-base), background var(--transition-base);
}

:root[data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

nav.scrolled {
    padding: 0.5rem 0;
    background: rgba(0, 0, 0, 0.98);
    box-shadow: var(--shadow-md);
}

:root[data-theme="light"] nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

/* ==================== LIGHT MODE: HERO + CTA CONTRAST ==================== */
:root[data-theme="light"] .hero h1 {
    color: #1a1a1a; /* keep strong contrast on gold */
}

:root[data-theme="light"] .hero-subtitle {
    color: #1a1a1a;
}

:root[data-theme="light"] .hero-tagline {
    color: rgba(26, 26, 26, 0.85);
}

/* Keep the PMCR-O visual panel dark even in light mode (brand anchor) */
:root[data-theme="light"] .hero-right {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* Buttons should not inherit light gray text/borders in light mode */
:root[data-theme="light"] .btn {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

:root[data-theme="light"] .btn::before {
    /* In light mode, CTA hover should feel "premium", not like the button goes dark */
    background: var(--gold);
}

:root[data-theme="light"] .btn:hover,
:root[data-theme="light"] .btn:focus {
    color: #0a0a0a; /* readable on gold fill */
}

/* ==================== LIGHT MODE: CARD SURFACES ==================== */
:root[data-theme="light"] .skill-category,
:root[data-theme="light"] .philosophy-card,
:root[data-theme="light"] .contact-info {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .agent-card,
:root[data-theme="light"] .work-card,
:root[data-theme="light"] .achievement-card {
    box-shadow: var(--shadow-sm);
}

nav .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    /* With 3+ children (logo, menu, controls), space-between causes awkward gaps.
       We use margin-left:auto on `.nav-menu` to push nav items right deterministically. */
    justify-content: flex-start;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(212, 165, 116, 0.35);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.5px;
}

.theme-toggle:hover,
.theme-toggle:focus {
    background: rgba(212, 165, 116, 0.1);
    border-color: var(--gold);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.theme-toggle .theme-icon {
    width: 1.1rem;
    height: 1.1rem;
    display: inline-block;
    line-height: 1;
}

.logo {
    font-size: 1.5rem;
    font-weight: var(--font-weight-black);
    color: var(--gold);
    text-decoration: none;
    letter-spacing: -1px;
    transition: color var(--transition-base);
}

.logo:hover,
.logo:focus {
    color: var(--gold-light);
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    align-items: center;
    margin-left: auto;
}

.nav-menu a {
    color: var(--gold);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all var(--transition-base);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    position: relative;
}

/* Light mode nav text needs contrast on white nav background */
:root[data-theme="light"] .nav-menu a {
    color: #1a1a1a;
}

:root[data-theme="light"] .nav-menu a:hover,
:root[data-theme="light"] .nav-menu a:focus {
    color: #0a0a0a;
    background: rgba(212, 165, 116, 0.18);
}

:root[data-theme="light"] .logo {
    /* Keep brand mark gold in light mode, but use darker gold for contrast */
    color: var(--gold-dark);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .logo:hover,
:root[data-theme="light"] .logo:focus {
    color: var(--gold);
}

/* ==================== NAV: "MORE" DROPDOWN (DESKTOP DENSITY CONTROL) ==================== */
.nav-more {
    position: relative;
}

.nav-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gold);
    background: transparent;
    border: 1px solid rgba(212, 165, 116, 0.35);
    border-radius: var(--radius-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    font: inherit;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.nav-more-toggle:hover,
.nav-more-toggle:focus {
    background: rgba(212, 165, 116, 0.1);
    color: var(--text-primary);
}

.nav-more-toggle:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.nav-more-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    list-style: none;
    z-index: 2000;
    display: none;
}

.nav-more-menu a {
    display: block;
    padding: 0.7rem 1rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.nav-more-menu a:hover,
.nav-more-menu a:focus {
    background: rgba(212, 165, 116, 0.12);
    color: var(--text-primary);
    outline: none;
}

.nav-more.open .nav-more-menu {
    display: block;
}

:root[data-theme="light"] .nav-more-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .nav-more-menu a {
    color: #1a1a1a;
}

:root[data-theme="light"] .nav-more-toggle {
    color: #1a1a1a;
    border-color: rgba(0, 0, 0, 0.18);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--text-primary);
    background: rgba(212, 165, 116, 0.1);
    outline: none;
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
    width: 80%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: 2px solid var(--gold);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    background: rgba(212, 165, 116, 0.1);
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: var(--darker);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 40%, rgba(201,147,58,0.10) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(201,147,58,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201,147,58,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,147,58,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: var(--spacing-lg) var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 640px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: var(--font-weight-black);
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -2px;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero h1 .gold-word {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    color: var(--gold);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 0.1s;
}

.hero-tagline {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 0.2s;
}

.hero-cta {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 0.3s;
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-lg) 0;
    position: relative;
    z-index: 1;
}

.hero-visual {
    position: relative;
    width: 300px;
    height: 300px;
}

.pmcro-loop {
    width: 260px;
    height: 260px;
    position: relative;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loop-ring {
    position: absolute;
    border: 2px solid rgba(212, 165, 116, 0.4);
    border-radius: var(--radius-full);
    animation: pulse-ring 4s ease-in-out infinite;
}

.loop-ring-1 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.loop-ring-2 {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    animation-delay: 1.3s;
}

.loop-ring-3 {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    animation-delay: 2.6s;
}

@keyframes pulse-ring {
    0%, 100% {
        border-color: rgba(212, 165, 116, 0.3);
        transform: scale(1);
    }
    50% {
        border-color: rgba(212, 165, 116, 0.8);
        transform: scale(1.05);
    }
}

.loop-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.loop-text {
    font-size: 3rem;
    font-weight: var(--font-weight-black);
    color: var(--gold);
    text-shadow: var(--shadow-glow);
}

/* ==================== BUTTONS ==================== */
/* Gold word highlight for hero */
.gold-word {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    padding: 0.9rem 2rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 2px solid var(--gold);
    background: var(--gold);
    color: var(--darker);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border-color: rgba(201,147,58,0.5);
}

.btn-outline:hover,
.btn-outline:focus {
    background: rgba(201,147,58,0.08) !important;
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    transform: translateY(-2px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gray);
    transition: left var(--transition-slow);
    z-index: -1;
}

.btn:hover::before,
.btn:focus::before {
    left: 0;
}

.btn:hover,
.btn:focus {
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ==================== SECTIONS ==================== */
section {
    padding: var(--spacing-2xl) var(--spacing-md);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--spacing-lg);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

/* ==================== WORK SECTION ==================== */
.work {
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.work-card {
    background: linear-gradient(135deg, var(--gray) 0%, var(--light-gray) 100%);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.work-card:hover,
.work-card:focus-within {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
}

.work-card-header {
    background: rgba(212, 165, 116, 0.2);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(212, 165, 116, 0.3);
}

.work-card-title {
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
}

.work-card-subtitle {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.work-card-body {
    padding: var(--spacing-md);
}

.work-card-body p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.work-features {
    list-style: none;
    margin: 1.5rem 0;
}

.work-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.work-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: var(--font-weight-bold);
}

.tech-stack {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

.tech-stack-title {
    font-size: 0.9rem;
    color: var(--gold);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--spacing-sm);
}

.tech-tag {
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
}

.tech-tag:hover {
    background: rgba(212, 165, 116, 0.2);
    color: var(--gold);
}

.work-link {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: var(--gold);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-base);
}

.work-link:hover,
.work-link:focus {
    color: var(--text-primary);
    transform: translateX(5px);
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* ==================== SKILLS SECTION ==================== */
.skills {
    background: linear-gradient(180deg, var(--dark) 0%, var(--gray) 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.skill-category {
    background: rgba(26, 26, 26, 0.5);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 165, 116, 0.2);
    transition: all var(--transition-base);
}

.skill-category:hover,
.skill-category:focus-within {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.skill-category h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(212, 165, 116, 0.1);
    transition: color var(--transition-fast);
}

.skill-list li:hover {
    color: var(--gold);
    padding-left: 0.5rem;
}

/* ==================== PHILOSOPHY SECTION ==================== */
.philosophy {
    background: linear-gradient(180deg, var(--gray) 0%, var(--darker) 100%);
}

.philosophy-intro {
    max-width: 800px;
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.philosophy-card {
    background: rgba(26, 26, 26, 0.5);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 165, 116, 0.2);
    transition: all var(--transition-slow);
}

.philosophy-card:hover,
.philosophy-card:focus-within {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.philosopher-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.philosopher-name {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-bold);
}

.concept {
    font-size: 1rem;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.philosophy-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== ACHIEVEMENTS SECTION ==================== */
.achievements {
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.achievement-card {
    background: linear-gradient(135deg, var(--gray) 0%, var(--light-gray) 100%);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 165, 116, 0.2);
    text-align: center;
    transition: all var(--transition-base);
}

.achievement-card:hover,
.achievement-card:focus-within {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.achievement-card h3 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.achievement-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
    text-align: center;
}

.contact-intro {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(26, 26, 26, 0.5);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(212, 165, 116, 0.2);
}

.contact-item {
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.contact-label {
    color: var(--gold);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-base);
}

.contact-info a:hover,
.contact-info a:focus {
    border-bottom-color: var(--gold);
    color: var(--gold);
    outline: none;
}

.contact-cta {
    margin-top: var(--spacing-md);
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--darker);
    padding: var(--spacing-md);
    text-align: center;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

footer p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.footer-tagline {
    font-style: italic;
    color: var(--gold);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .hero-left {
        justify-content: center;
        padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-md);
    }

    .hero-content {
        text-align: center;
    }

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

    .hero-right {
        padding: 0 var(--spacing-lg) var(--spacing-xl);
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-2xl: 4rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .hero h1 {
        font-size: 3rem;
    }

    section {
        padding: var(--spacing-lg) 1.5rem;
    }

    .work-grid,
    .skills-grid,
    .philosophy-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .loop-text {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -2px;
    }

    h2 {
        font-size: 2rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    nav, footer, .hero-right, .btn {
        display: none;
    }

    .hero-left {
        background: white;
        color: black;
    }

    .hero h1 {
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ==================== FEATURED ARTICLES CAROUSEL ==================== */
.articles-carousel {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--gray) 0%, var(--dark) 100%);
}

.articles-carousel h2 {
    color: var(--gold);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.articles-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.articles-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.articles-link:hover {
    color: var(--gold-light);
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform var(--transition-base);
}

.article-preview {
    flex: 0 0 100%;
    display: none;
    padding: var(--spacing-xl);
    background: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    margin: 0 var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.article-preview.active {
    display: block;
}

.article-preview-content {
    max-width: 400px;
}

.article-category {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.article-preview h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.article-preview p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.article-read-more {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.article-read-more:hover {
    color: var(--gold-light);
}

.article-preview-image {
    position: absolute;
    right: var(--spacing-xl);
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    opacity: 0.1;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--light-gray);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.indicator.active {
    background: var(--gold);
    border-color: var(--gold);
}

.indicator:hover {
    border-color: var(--gold-light);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gray);
    border: 2px solid var(--light-gray);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: var(--spacing-md);
}

.carousel-next {
    right: var(--spacing-md);
}

.carousel-prev:hover,
.carousel-next:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.carousel-prev:active,
.carousel-next:active {
    background: var(--gold);
    color: var(--darker);
}

/* Mobile Carousel Styles */
@media (max-width: 768px) {
    .carousel-prev,
    .carousel-next {
        display: none; /* Hide navigation buttons on mobile */
    }

    .article-preview {
        margin: 0;
        padding: var(--spacing-lg);
    }

    .article-preview-image {
        display: none; /* Hide decorative images on mobile */
    }

    .article-preview-content {
        max-width: none;
    }

    .carousel-indicators {
        margin-top: var(--spacing-md);
    }
}