/* Import Google Fonts + Monospace */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Montserrat:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ==================== CSS VARIABLES (Dark Mode Terminal) ==================== */
:root {
    --primary-bg: #0d1117;
    --secondary-bg: #161b22;
    --card-bg: rgba(22, 27, 34, 0.9);
    --royal-blue: #4169E1;
    --royal-blue-glow: rgba(65, 105, 225, 0.4);
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #9ca3af;
    --border-color: #30363d;
    --shadow-glow: 0 0 15px rgba(65, 105, 225, 0.3);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.5);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.6);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* legacy aliases */
    --primary-color: #0d1117;
    --secondary-color: #4169E1;
    --dark-text: #e6edf3;
    --muted-text: #8b949e;
    --white-text: #e6edf3;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== SCANLINE / CRT OVERLAY ==================== */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.03) 2px,
        rgba(0,0,0,0.03) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.8rem; }

p { margin-bottom: 1rem; color: var(--text-primary); }

a {
    color: var(--royal-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: #7b9ff5; }

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== SKIP TO CONTENT ==================== */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 10px;
    background: var(--royal-blue);
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 700;
    z-index: 10000;
    transition: top 0.2s;
}
.skip-to-content:focus {
    top: 10px;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background-color: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* Terminal title bar */
.terminal-title-bar {
    background: linear-gradient(90deg, #1c1c2e 0%, #1a1f35 100%);
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    transition: var(--transition);
}
.terminal-dot.red   { background: #ff5f57; box-shadow: 0 0 4px #ff5f57; }
.terminal-dot.yellow{ background: #febc2e; box-shadow: 0 0 4px #febc2e; }
.terminal-dot.green { background: #28c840; box-shadow: 0 0 4px #28c840; }

.terminal-title-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 8px;
}

.nav-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    position: relative;
}

.logo {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    position: absolute;
    left: 20px;
    font-family: 'Fira Code', monospace;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: var(--transition);
    font-family: 'Fira Code', monospace;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--royal-blue);
    box-shadow: 0 0 6px var(--royal-blue);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--royal-blue);
    text-shadow: 0 0 8px var(--royal-blue-glow);
}

/* ==================== HERO SECTION ==================== */
#header {
    margin-top: 0;
}

/* Navbar height offset handled via padding on hero */
.hero-section {
    background-image: url('IMG_1180.JPG');
    background-size: cover;
    background-position: center;
    padding: 160px 20px 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Dark overlay for readability */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.85);
    z-index: 0;
}

.hero-content {
    max-width: 1500px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 1;
}

/* Headshot in hero */
.hero-headshot {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;  /* Zoom in on head/face area */
    border: 3px solid var(--royal-blue);
    box-shadow: 0 0 0 4px var(--royal-blue-glow), 0 0 30px var(--royal-blue-glow), var(--shadow-glow);
    margin-bottom: 25px;
    transition: var(--transition);
}

.hero-headshot:hover {
    box-shadow: 0 0 0 5px var(--royal-blue), 0 0 40px rgba(65, 105, 225, 0.6);
    transform: scale(1.05);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.85;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
}

/* Cursor blink on hero greeting */
.hero-greeting {
    font-size: 3.5rem;
    color: var(--royal-blue);
    margin-bottom: 10px;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
    text-shadow: var(--shadow-glow);
}

.hero-greeting::after {
    content: '_';
    animation: cursorBlink 1s step-end infinite;
    color: var(--royal-blue);
}

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

/* ==================== BUTTONS ==================== */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
}

.btn-primary {
    background: var(--royal-blue);
    color: #fff;
    border-color: var(--royal-blue);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    background: #5580f0;
    color: #fff;
}

.hero-buttons .btn {
    background: var(--royal-blue);
    color: #fff;
    border-color: var(--royal-blue);
    box-shadow: var(--shadow-md);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    background: #5580f0;
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--royal-blue);
    border-color: var(--royal-blue);
}

.btn-secondary:hover {
    background: var(--royal-blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

/* ==================== SECTIONS ==================== */
section {
    padding: 80px 20px;
}

/* Continuous background wrapper for all non-hero sections */
.sections-bg-wrapper {
    background-image: url('IMG_1500.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.sections-bg-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.88);
    pointer-events: none;
    z-index: 0;
}

.sections-bg-wrapper > section,
.sections-bg-wrapper > footer {
    position: relative;
    z-index: 1;
}

/* Individual section backgrounds (transparent, over the wrapper) */
.about-section,
.experience-section,
.leadership-section,
.skills-section,
.education-section,
.passions-section,
.recommendations-section,
.contact-section {
    background: transparent;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: left;
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
    padding-left: 20px;
    font-family: 'Fira Code', monospace;
}

/* Terminal prefix on section titles */
.section-title::before {
    content: '>';
    display: inline-block;
    color: var(--royal-blue);
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    position: absolute;
    left: 0;
    text-shadow: 0 0 8px var(--royal-blue-glow);
}

/* ==================== ABOUT SECTION ==================== */
.about-content {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: start;
}

.about-headshot {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;  /* Zoom in on head/face area */
    border: 3px solid var(--royal-blue);
    box-shadow: 0 0 0 4px var(--royal-blue-glow), 0 0 25px var(--royal-blue-glow);
    transition: var(--transition);
    flex-shrink: 0;
}

.about-headshot:hover {
    box-shadow: 0 0 0 5px var(--royal-blue), 0 0 35px rgba(65, 105, 225, 0.6);
    transform: scale(1.04);
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 25px;
}

/* ==================== ABOUT SECTION CONTACT BUTTONS ==================== */
.about-contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    grid-column: 1 / -1;
}

.about-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--card-bg);
    border: 1px solid var(--royal-blue);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    min-width: auto;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}

.about-btn:hover {
    background: var(--royal-blue);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.about-btn i {
    font-size: 1.3rem;
    color: var(--royal-blue);
    transition: var(--transition);
}

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

.about-btn span {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
}

/* ==================== EXPERIENCE SECTION ==================== */
.experience-container {
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

/* Compact two-column layout: metadata left (30%) | bullets right (70%) */
.experience-item {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 30% 70%;
    position: relative;
    padding: 28px 30px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--royal-blue);
    transition: var(--transition);
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    border-color: var(--royal-blue);
}

.experience-meta {
    padding-right: 28px;
    border-right: 2px solid rgba(65, 105, 225, 0.3);
    text-align: left;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.experience-meta h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
    margin-top: 0;
    font-weight: 700;
}

.company {
    color: var(--royal-blue);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.date {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 0;
    font-weight: 500;
    font-family: 'Fira Code', monospace;
}

.experience-details {
    padding-left: 28px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}

.experience-details ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.experience-details li {
    padding: 6px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.experience-details li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--royal-blue);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Fira Code', monospace;
}

/* ==================== LEADERSHIP & ACTIVITIES SECTION ==================== */
.leadership-content {
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    padding: 40px 0;
}

.leadership-item {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 30% 70%;
    padding: 28px 30px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--royal-blue);
    transition: var(--transition);
}

.leadership-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    border-color: var(--royal-blue);
}

/* ==================== SKILLS SECTION ==================== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1500px;
    margin: 0 auto;
}

.skill-category-wide {
    grid-column: span 2;
}

.skill-category {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--royal-blue);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    border-color: var(--royal-blue);
}

.skill-category h4 {
    color: var(--royal-blue);
    margin-bottom: 18px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Fira Code', monospace;
}

.skill-category:hover h4 {
    text-shadow: 0 0 8px var(--royal-blue-glow);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-list span {
    background: rgba(65, 105, 225, 0.1);
    color: #e6edf3;  /* White/light text for readability */
    padding: 5px 12px;
    border-radius: 18px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
    border: 1px solid rgba(65, 105, 225, 0.3);
    font-family: 'Fira Code', monospace;
    cursor: default;
}

.skill-list span:hover {
    background: var(--royal-blue);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: var(--shadow-glow);
    border-color: var(--royal-blue);
}

/* ==================== EDUCATION SECTION ==================== */
.education-content {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.education-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--royal-blue);
    text-align: left;
}

.education-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    border-color: var(--royal-blue);
}

.education-item h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.school {
    color: var(--royal-blue);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
    font-family: 'Fira Code', monospace;
}

.year {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.detail {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.certifications {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    grid-column: 1 / -1;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--royal-blue);
}

.certifications:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.certifications h4 {
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Fira Code', monospace;
}

.cert-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.cert-list li {
    padding: 15px;
    background: rgba(65, 105, 225, 0.08);
    border-radius: 8px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 35px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--royal-blue);
}

.cert-list li:hover {
    background: var(--royal-blue);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 0 12px var(--royal-blue-glow);
    border-color: var(--royal-blue);
}

.cert-list li::before {
    content: '★';
    position: absolute;
    left: 10px;
    color: var(--royal-blue);
    font-weight: bold;
    font-size: 1rem;
}

.cert-list li:hover::before {
    color: #fff;
}

/* ==================== PASSIONS & COMMUNITY SECTION ==================== */
.passions-content {
    max-width: 1500px;
    margin: 0 auto;
}

.passions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.passion-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--royal-blue);
}

.passion-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    border-color: var(--royal-blue);
}

.passion-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.passion-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.personal-interests {
    background: var(--card-bg);
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--royal-blue);
}

.personal-interests h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
    font-family: 'Fira Code', monospace;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.interest-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px 16px;
    background: rgba(65, 105, 225, 0.05);
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--royal-blue);
}

.interest-item:hover {
    background: rgba(65, 105, 225, 0.15);
    transform: translateX(8px);
    box-shadow: 0 0 12px var(--royal-blue-glow);
    border-color: var(--royal-blue);
}

.interest-emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
}

.interest-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.interest-text strong {
    color: var(--royal-blue);
    font-weight: 600;
}

/* ==================== RECOMMENDATIONS SECTION ==================== */
.recommendations-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1500px;
    margin: 0 auto;
}

.recommendation-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--royal-blue);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recommendation-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    border-color: var(--royal-blue);
}

.recommendation-header {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.recommender-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(65, 105, 225, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--royal-blue);
    border: 2px solid var(--royal-blue);
}

.recommender-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.recommender-name {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.recommender-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.recommendation-link {
    font-size: 0.75rem;
    color: var(--royal-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    transition: var(--transition);
}

.recommendation-link:hover {
    color: #7b9ff5;
    text-shadow: 0 0 6px var(--royal-blue-glow);
}

.recommendation-link i {
    font-size: 0.85rem;
}

.recommendation-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    font-style: italic;
    border-left: 3px solid var(--royal-blue);
    padding-left: 15px;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    color: var(--text-primary);
    padding: 60px 20px 30px;
}

.contact-intro {
    font-size: 1.05rem;
    margin-bottom: 40px;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    color: var(--text-secondary);
    text-align: center;
}

.contact-links {
    display: flex;
    gap: 16px;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--card-bg);
    border: 1px solid var(--royal-blue);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    min-width: auto;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}

.contact-link i {
    font-size: 1.3rem;
    color: var(--royal-blue);
    transition: var(--transition);
}

.contact-link span {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Fira Code', monospace;
}

.contact-link:hover {
    background: var(--royal-blue);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.contact-link:hover i {
    color: #fff;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--secondary-bg);
    color: var(--text-secondary);
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
    transition: var(--transition);
}

footer p:hover {
    color: var(--royal-blue);
    text-shadow: 0 0 8px var(--royal-blue-glow);
}

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

/* Scroll-reveal: JS adds .scroll-reveal (hidden) then .is-visible (animates in via keyframe).
   Using animation (not transition) avoids overriding the component's own var(--transition). */
.scroll-reveal {
    opacity: 0;
}

.scroll-reveal.is-visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ==================== ACCESSIBILITY: FOCUS INDICATORS ==================== */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--royal-blue);
    outline-offset: 2px;
}

/* ==================== ACCESSIBILITY: REDUCED MOTION ==================== */
@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;
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .skills-container {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .experience-item,
    .leadership-item {
        grid-template-columns: 35% 65%;
    }
}

@media (max-width: 768px) {
    .nav-container {
        justify-content: center;
        height: auto;
        flex-wrap: wrap;
    }

    .logo {
        position: relative;
        font-size: 0.85rem;
        order: -1;
        width: 100%;
        padding: 8px 0;
    }

    .nav-menu {
        position: relative;
        flex-direction: row;
        background: transparent;
        width: 100%;
        text-align: center;
        gap: 12px;
        padding: 8px 0;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-link {
        padding: 5px 8px;
        display: inline-block;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .nav-link::after {
        bottom: -3px;
    }

    .hero-content h1,
    .hero-greeting {
        font-size: 2.2rem;
    }

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

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

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

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

    /* About section - stack on mobile */
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-headshot {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    /* Experience — stack meta above bullets on mobile */
    .experience-item {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }

    .experience-meta {
        padding-right: 0;
        padding-bottom: 18px;
        border-right: none;
        border-bottom: 2px solid rgba(65, 105, 225, 0.3);
        margin-bottom: 18px;
    }

    .experience-details {
        padding-left: 0;
    }

    /* Leadership — stack meta above bullets on mobile */
    .leadership-item {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }

    section {
        padding: 60px 20px;
    }

    .contact-section {
        padding: 50px 20px 25px;
    }

    .education-content {
        grid-template-columns: 1fr;
    }

    .certifications {
        grid-column: 1;
    }

    .cert-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

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

    .skill-category-wide {
        grid-column: span 1;
    }

    .contact-link {
        min-width: auto;
        padding: 10px 18px;
    }

    .contact-link i {
        font-size: 1.1rem;
    }

    .contact-link span {
        font-size: 0.85rem;
    }

    .about-contact-buttons {
        gap: 12px;
        margin-top: 30px;
        padding-top: 25px;
    }

    .about-btn {
        padding: 10px 18px;
    }

    .about-btn i {
        font-size: 1.1rem;
    }

    .about-btn span {
        font-size: 0.85rem;
    }

    .passions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .passion-card {
        padding: 30px 25px;
    }

    .personal-interests {
        padding: 25px 20px;
    }

    .interests-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .recommendations-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .about-contact-buttons,
    .contact-links {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .about-btn,
    .contact-link {
        width: 100%;
        max-width: 240px;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .skill-category-wide {
        grid-column: span 1;
    }

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

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