/* ==========================================
   BADRE ALLOUL PORTFOLIO — REFINED EDITION
   Professional Geospatial Data Scientist Portfolio
   ========================================== */

:root {
    /* Sophisticated dark palette */
    --bg-deep: #070709;
    --bg-main: #0c0c0f;
    --bg-card: #131318;
    --bg-elevated: #18181d;
    --surface: #1e1e24;
    --surface-hover: #26262e;
    
    --border: #2a2a32;
    --border-light: #3a3a45;
    --border-accent: #404050;
    
    --text: #f0f0f5;
    --text-secondary: #c8c8d4;
    --text-muted: #9090a0;
    --text-dim: #606070;
    
    /* Primary accent — sophisticated teal */
    --accent: #00d4aa;
    --accent-light: #00f0c0;
    --accent-glow: rgba(0, 212, 170, 0.15);
    --accent-dim: rgba(0, 212, 170, 0.08);
    --accent-border: rgba(0, 212, 170, 0.25);
    
    /* Secondary colors */
    --gold: #f5b800;
    --gold-dim: rgba(245, 184, 0, 0.15);
    
    /* Typography */
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1100px;
    
    /* Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.45);
    --shadow-glow: 0 0 40px var(--accent-glow);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-main);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}

strong {
    color: var(--text);
    font-weight: 600;
}

em {
    font-style: normal;
    color: var(--accent);
}

/* ==========================================
   CURSOR GLOW
   ========================================== */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    transform: translate(-50%, -50%);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(12, 12, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.nav-brand {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.nav-brand .accent {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

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

.nav-link.active {
    color: var(--accent);
}

.nav-cta {
    background: var(--accent);
    color: var(--bg-main) !important;
    margin-left: 12px;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--accent-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 170, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 170, 0.012) 1px, transparent 1px);
    background-size: 80px 80px;
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 28px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 64px;
    align-items: center;
}

/* Photo Section */
.hero-photo-section {
    display: flex;
    justify-content: center;
    position: relative;
}

.photo-frame {
    position: absolute;
    width: 220px;
    height: 220px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.frame-ring {
    position: absolute;
    inset: 0;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    animation: rotate 50s linear infinite;
}

.frame-pulse {
    position: absolute;
    inset: -12px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0.25;
    animation: pulse-ring 4s ease-in-out infinite;
}

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

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.25; }
    50% { transform: scale(1.06); opacity: 0.08; }
}

.hero-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    position: relative;
    z-index: 2;
}

/* Hero Content */
.hero-content {
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

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

.hero-name {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.2px;
}

.hero-statement {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--bg-main);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ==========================================
   SECTION STYLING
   ========================================== */
.section-header {
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

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

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    padding: var(--section-padding) 0;
    background: var(--bg-main);
}

.about-content {
    max-width: 800px;
}

.about-main {
    margin-bottom: 48px;
}

.about-lead {
    font-size: 1.35rem;
    line-height: 1.55;
    margin-bottom: 20px;
    font-weight: 400;
    color: var(--text);
}

.about-text {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.languages-section {
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.languages-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.language-items {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-name {
    font-weight: 600;
    color: var(--text);
}

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

/* ==========================================
   EXPERIENCE SECTION
   ========================================== */
.experience-section {
    padding: var(--section-padding) 0;
    background: var(--bg-elevated);
}

.exp-timeline {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.exp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s;
}

.exp-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.exp-card.current {
    border-left: 3px solid var(--accent);
}

.exp-header {
    display: flex;
    gap: 28px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.exp-logo-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 8px;
    overflow: hidden;
}

.exp-logo-wrapper.dual-logo {
    width: auto;
    gap: 8px;
    background: transparent;
    padding: 0;
}

.exp-logo-wrapper.dual-logo .company-logo-link {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: transform 0.2s, opacity 0.2s;
}

.company-logo-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.company-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.exp-meta {
    flex: 1;
}

.exp-date-range {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.exp-dates {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.exp-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    background: var(--accent);
    color: var(--bg-main);
    border-radius: var(--radius-xs);
}

.exp-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.exp-company {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.company-name {
    font-weight: 600;
    color: var(--accent);
    transition: color 0.2s;
}

.company-name:hover {
    color: var(--accent-light);
}

.company-divider {
    color: var(--text-dim);
}

.company-type {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.exp-location {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.exp-location i {
    margin-right: 6px;
    color: var(--accent);
}

.exp-content {}

.exp-summary {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 2px solid var(--accent-border);
}

.exp-bullets {
    list-style: none;
    margin-bottom: 20px;
}

.exp-bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.exp-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.exp-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.exp-tech span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 5px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-muted);
}

.exp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

.exp-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ==========================================
   TECH STACK SECTION
   ========================================== */
.stack-section {
    padding: var(--section-padding) 0;
    background: var(--bg-main);
}

.stack-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stack-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s;
}

.stack-category:hover {
    border-color: var(--border-light);
}

.stack-cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.stack-cat-header i {
    color: var(--accent);
    font-size: 1.1rem;
    width: 24px;
}

.stack-cat-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.stack-cat-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.5;
}

.stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stack-item {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all 0.2s;
}

.stack-item:hover {
    border-color: var(--accent-border);
    color: var(--text);
}

.stack-item.with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-hover);
}

.stack-item.with-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.stack-item.with-icon span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

/* ==========================================
   EDUCATION SECTION
   ========================================== */
.education-section {
    padding: var(--section-padding) 0;
    background: var(--bg-elevated);
}

.edu-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.edu-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 32px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.edu-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.edu-logo-link {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: transform 0.2s;
}

.edu-logo-link:hover {
    transform: scale(1.05);
}

.edu-logo-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 12px;
    overflow: hidden;
}

.edu-logo-wrapper i {
    font-size: 2.5rem;
    color: var(--accent);
}

.edu-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.edu-content {
    display: flex;
    flex-direction: column;
}

.edu-year-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    padding: 4px 12px;
    background: var(--accent-dim);
    border-radius: 20px;
    margin-bottom: 12px;
    width: fit-content;
}

.edu-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.edu-school-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.edu-school-name {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.edu-school-name:hover {
    color: var(--accent-light);
}

.edu-school-type {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.edu-location {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.edu-location i {
    margin-right: 6px;
    color: var(--accent);
}

.edu-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.edu-highlight {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    padding: 5px 12px;
    background: var(--gold-dim);
    border-radius: 20px;
    color: var(--gold);
}

.edu-highlight i {
    font-size: 0.75rem;
}

.edu-program-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    margin-top: auto;
}

.edu-program-link:hover {
    text-decoration: underline;
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */
.projects-section {
    padding: var(--section-padding) 0;
    background: var(--bg-main);
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

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

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 180px 1fr;
}

.project-card.highlight {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(245, 184, 0, 0.03), transparent);
}

.project-label {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.project-label.gold {
    background: var(--gold-dim);
    color: var(--gold);
}

.project-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--surface);
    font-size: 3.5rem;
    color: var(--accent);
}

.project-card.featured .project-visual {
    min-width: 180px;
    padding: 32px;
}

.project-visual img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.project-info {
    padding: 28px;
    position: relative;
}

.project-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-info > p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 18px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 10px;
    background: var(--surface);
    border-radius: 20px;
    color: var(--text-dim);
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

.project-btn:hover {
    text-decoration: underline;
}

/* ==========================================
   ARTICLES SECTION
   ========================================== */
.articles-section {
    padding: var(--section-padding) 0;
    background: var(--bg-elevated);
}

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

.article-card {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.article-card:hover {
    border-color: #0077b5;
    transform: translateY(-4px);
}

.article-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 119, 181, 0.12);
    border-radius: var(--radius-md);
    color: #0077b5;
    font-size: 1.6rem;
}

.article-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-content > p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.article-tags span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #0077b5;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.article-link:hover {
    text-decoration: underline;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    padding: var(--section-padding) 0;
    background: var(--bg-main);
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-header {
    margin-bottom: 48px;
}

.contact-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.contact-header p {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 36px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: left;
    transition: all 0.3s;
}

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

.contact-card.primary {
    grid-column: span 2;
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-main);
}

.contact-card.primary:hover {
    background: var(--accent-light);
}

.contact-card i {
    font-size: 1.3rem;
    width: 36px;
    flex-shrink: 0;
}

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

.contact-label {
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-location i {
    color: var(--accent);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 28px 0;
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
}

.footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-sep {
    color: var(--border);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    
    .hero-photo-section {
        order: -1;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-badge {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .stack-categories {
        grid-template-columns: 1fr;
    }
    
    .edu-card {
        grid-template-columns: 80px 1fr;
        gap: 24px;
    }
    
    .edu-logo-wrapper {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg-main);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 20px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-name {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .exp-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .exp-logo-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .exp-logo-wrapper.dual-logo .company-logo-link {
        width: 50px;
        height: 50px;
    }
    
    .projects-grid,
    .articles-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured {
        grid-column: span 1;
        display: block;
    }
    
    .project-card.featured .project-visual {
        min-width: 100%;
    }
    
    .contact-card.primary {
        grid-column: span 1;
    }
    
    .edu-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .edu-logo-link {
        justify-content: center;
    }
    
    .edu-year-badge,
    .edu-highlights,
    .edu-program-link {
        margin-left: auto;
        margin-right: auto;
    }
    
    .edu-school-info {
        align-items: center;
    }
    
    .article-card {
        grid-template-columns: 1fr;
    }
    
    .article-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }
    
    .language-items {
        flex-direction: column;
        gap: 12px;
    }
    
    .exp-bullets li {
        padding-left: 16px;
        font-size: 0.9rem;
    }
    
    .edu-highlights {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .navbar,
    .cursor-glow,
    .hero-canvas {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    section {
        padding: 40px 0;
        break-inside: avoid;
    }
}
