/* ==========================================================================
   PORTFOLIO A-Z REDESIGN
   Ultra-Premium Black & Gold
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
    /* Premium Black */
    --black: #0A0A0A;
    --black-light: #0F0F0F;
    --black-surface: #141414;
    --black-elevated: #1A1A1A;
    
    /* Premium Yellow */
    --gold: #FFD60A;
    --gold-dim: #E6C009;
    --gold-light: #FFE55C;
    --gold-glow: rgba(255, 214, 10, 0.12);
    
    /* Text */
    --white: #FFFFFF;
    --white-soft: rgba(255, 255, 255, 0.95);
    --white-muted: rgba(255, 255, 255, 0.75);
    --white-dim: rgba(255, 255, 255, 0.55);
    
    /* Borders & Effects */
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 214, 10, 0.5);
    --glass: rgba(255, 255, 255, 0.03);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Layout */
    --nav-height: 64px;
    --container: 1080px;
    --section-gap: 80px;
    --radius: 12px;
    --radius-sm: 8px;
    
    /* Animation */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   NOISE OVERLAY
   -------------------------------------------------------------------------- */
.noise {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 10000;
}

/* --------------------------------------------------------------------------
   CUSTOM CURSOR
   -------------------------------------------------------------------------- */
.cursor-ring,
.cursor-dot {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    z-index: 99999;
    mix-blend-mode: difference;
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gold);
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-ring.hover {
    width: 50px;
    height: 50px;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: translate(-50%, -50%);
}

@media (hover: none) {
    .cursor-ring, .cursor-dot { display: none; }
}

/* --------------------------------------------------------------------------
   NAVIGATION
   -------------------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--white-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s;
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gold);
    color: var(--black);
    font-size: 13px;
    font-weight: 700;
    border-radius: 100px;
    transition: 0.2s var(--ease);
}

.nav-cta:hover {
    background: var(--white);
    transform: translateY(-1px);
}

.nav-cta i {
    font-size: 14px;
    transition: transform 0.2s;
}

.nav-cta:hover i {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 40px) 0 60px;
    overflow: hidden;
}

#grid-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

/* Profile */
.hero-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.profile-wrapper {
    position: relative;
    width: 240px;
    height: 240px;
}

.profile-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: 0 0 40px var(--gold-glow);
    z-index: 2;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-ring {
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(242, 201, 76, 0.2);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.profile-ring.ring-2 {
    inset: -24px;
    border-color: rgba(242, 201, 76, 0.1);
    animation-duration: 30s;
    animation-direction: reverse;
}

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

.profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-top: 20px;
    background: var(--black-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    color: var(--white-muted);
}

.pulse {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.tag-line {
    width: 32px;
    height: 1px;
    background: var(--gold);
}

.hero-name {
    display: flex;
    flex-direction: column;
}

.name-first,
.name-last {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.name-first {
    color: var(--white);
}

.name-last {
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-desc {
    font-size: 16px;
    color: var(--white-muted);
    max-width: 480px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 11px;
    color: var(--white-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    transition: 0.2s var(--ease);
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(242, 201, 76, 0.2);
}

.btn-secondary {
    background: var(--black-surface);
    border: 1px solid var(--border);
    color: var(--white);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--white-dim);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

.scroll-mouse {
    width: 20px;
    height: 32px;
    border: 2px solid var(--white-dim);
    border-radius: 10px;
    position: relative;
}

.scroll-wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 6px;
    background: var(--gold);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
    0%, 100% { opacity: 1; top: 6px; }
    50% { opacity: 0; top: 16px; }
}

/* --------------------------------------------------------------------------
   SECTIONS
   -------------------------------------------------------------------------- */
.section {
    padding: var(--section-gap) 0;
    position: relative;
}

.section-alt {
    background: var(--black-light);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.section-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gold);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

/* --------------------------------------------------------------------------
   REVEAL ANIMATION
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* --------------------------------------------------------------------------
   BENTO GRID - ABOUT
   -------------------------------------------------------------------------- */
.bento-grid {
    display: grid;
    gap: 12px;
}

.about-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto auto;
}

.bento-card {
    background: var(--black-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}

.bento-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Card: Bio */
.card-bio {
    grid-row: span 2;
    justify-content: center;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.card-text {
    font-size: 14px;
    color: var(--white-muted);
    line-height: 1.6;
}

/* Card: Icon */
.card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-glow);
    border: 1px solid rgba(242, 201, 76, 0.2);
    border-radius: var(--radius-sm);
}

.card-icon i {
    font-size: 18px;
    color: var(--gold);
}

.card-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white-dim);
    font-weight: 600;
}

.card-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

/* Card: Stat */
.card-stat {
    font-size: 32px;
    font-weight: 800;
    color: var(--gold);
    font-family: var(--font-mono);
    line-height: 1;
}

/* Card: Skills Marquee */
.card-skills {
    grid-column: span 3;
    padding: 16px 20px;
}

.marquee {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: marquee 25s linear infinite;
}

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

.skill-tag {
    padding: 6px 12px;
    background: var(--black-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--white-muted);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   EXPERIENCE GRID
   -------------------------------------------------------------------------- */
.exp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.exp-card {
    background: var(--black-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: 0.3s;
}

.exp-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.exp-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    background: var(--black-elevated);
    border: 1px solid var(--border);
    color: var(--white-dim);
}

.exp-badge.current {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.exp-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.exp-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-glow);
    border: 1px solid rgba(242, 201, 76, 0.2);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.exp-icon i {
    font-size: 20px;
    color: var(--gold);
}

.exp-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.exp-role {
    font-size: 16px;
    font-weight: 700;
}

.exp-company {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--gold);
}

.exp-desc {
    font-size: 13px;
    color: var(--white-muted);
    line-height: 1.5;
}

.exp-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.exp-stack span {
    padding: 4px 10px;
    font-size: 10px;
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--white-muted);
}

.exp-date {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--white-dim);
}

/* --------------------------------------------------------------------------
   PROJECTS GRID
   -------------------------------------------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.project-card {
    background: var(--black-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    transition: 0.3s;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.project-card.featured {
    grid-column: span 2;
}

.project-link {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--white-dim);
    font-size: 14px;
    transition: 0.2s;
}

.project-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.project-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-glow);
    border: 1px solid rgba(242, 201, 76, 0.2);
    border-radius: 6px;
}

.project-icon i {
    font-size: 16px;
    color: var(--gold);
}

.project-name {
    font-size: 15px;
    font-weight: 700;
}

.project-desc {
    font-size: 12px;
    color: var(--white-muted);
    line-height: 1.5;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.project-tags span {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--gold-dim);
}

.projects-cta {
    margin-top: 32px;
    text-align: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gold);
    color: var(--black);
    font-size: 13px;
    font-weight: 700;
    border-radius: 100px;
    transition: 0.2s var(--ease);
}

.cta-btn:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(242, 201, 76, 0.2);
}

.cta-btn i {
    transition: transform 0.2s;
}

.cta-btn:hover i {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   DOCUMENTS GRID
   -------------------------------------------------------------------------- */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.doc-card {
    background: var(--black-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    transition: 0.3s;
}

.doc-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.doc-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.doc-icon i {
    font-size: 20px;
    color: var(--white-muted);
}

.doc-icon.gold {
    background: var(--gold-glow);
    border-color: rgba(242, 201, 76, 0.2);
}

.doc-icon.gold i {
    color: var(--gold);
}

.doc-name {
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
}

.doc-meta {
    font-size: 12px;
    color: var(--white-dim);
}

.doc-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--white-muted);
    transition: 0.2s;
}

.doc-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.doc-btn.primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
    font-weight: 700;
}

.doc-btn.primary:hover {
    background: var(--white);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
    padding: 48px 0 24px;
    background: var(--black);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--gold);
}

.footer-tagline {
    font-size: 13px;
    color: var(--white-dim);
}

.footer-links {
    display: flex;
    gap: 12px;
}

.footer-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--white-muted);
    font-size: 18px;
    transition: 0.2s;
}

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

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--white-dim);
}

/* --------------------------------------------------------------------------
   MODAL
   -------------------------------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    background: var(--black-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s;
}

.modal.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 14px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--white-muted);
    font-size: 16px;
    transition: 0.2s;
}

.modal-close:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.modal-body {
    flex: 1;
    background: var(--black);
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    text-align: right;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-profile { order: 1; }
    .hero-content { order: 2; align-items: center; }
    .hero-desc { max-width: 100%; }
    .hero-stats { justify-content: center; }
    .hero-actions { justify-content: center; }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-bio {
        grid-column: span 2;
        grid-row: auto;
    }
    
    .card-skills {
        grid-column: span 2;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 60px;
    }
    
    .nav-links { display: none; }
    
    .profile-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .about-grid,
    .exp-grid,
    .projects-grid,
    .docs-grid {
        grid-template-columns: 1fr;
    }
    
    .card-bio,
    .card-skills,
    .project-card.featured {
        grid-column: span 1;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-brand {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .stat {
        flex: 1;
        min-width: 80px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .doc-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .doc-btn {
        justify-content: center;
    }
}
