/* Vaibhav Mangroliya - Portfolio Styles */

:root {
    /* Color Palette - Matching vaibhavkkm.com turquoise */
    --bg-main: #000000;
    --bg-surface: #0a0a0a;
    --bg-surface-2: #111111;
    
    --primary: #00b4d8;        /* Turquoise/Cyan - matching vaibhavkkm.com */
    --primary-dim: rgba(0, 180, 216, 0.1);
    --primary-glow: rgba(0, 180, 216, 0.3);
    --secondary: #0096c7;      /* Darker shade for gradient */
    --accent: #48cae4;         /* Lighter cyan accent */
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --card-border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(18, 18, 26, 0.8);
    --blur: 12px;
    
    /* Spacing */
    --container-width: 1200px;
    --section-spacing: 100px;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
}

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

ul {
    list-style: none;
}

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

/* Background Effects - Enhanced with subtle depth */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: -2;
    pointer-events: none;
}

/* Subtle gradient overlay for depth */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 180, 216, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 150, 199, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(0, 180, 216, 0.04) 0%, transparent 50%);
    z-index: -3;
    pointer-events: none;
}

.background-glows {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.background-glows::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 50%);
    filter: blur(120px);
    animation: floatGlow 20s ease-in-out infinite;
}

.background-glows::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 150, 199, 0.08) 0%, transparent 50%);
    filter: blur(100px);
    animation: floatGlow 25s ease-in-out infinite reverse;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    margin: 12px auto 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    gap: 10px;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

/* CV Dropdown */
/* CV Dropdown */
.cv-dropdown {
    position: relative;
    display: inline-block;
    z-index: 50;
    /* Create a safe hover area so mouse doesn't "fall through" */
    /* Create a safe hover area so mouse doesn't "fall through" */
    /* padding-bottom and margin-bottom removed to fix overlap with content below */
}

.cv-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 51;
}

.cv-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.cv-dropdown:hover .cv-arrow {
    transform: rotate(180deg);
}

.cv-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 260px;
    background: #0a0a0f; /* Keep solid dark background */
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 180, 216, 0.15);
    pointer-events: auto;
}

/* Invisible bridge larger to prevent ANY hover gap */
.cv-dropdown:hover .cv-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -30px; /* Increased to match container padding */
    left: 0;
    right: 0;
    height: 30px; /* Increased height */
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .cv-dropdown-menu {
        min-width: 220px;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: #0a0a0f; /* Ensure solid background on mobile */
        border: 1px solid var(--primary);
        box-shadow: 0 10px 40px rgba(0,0,0,0.95); /* Stronger shadow */
    }
}

.cv-dropdown:hover .cv-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cv-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.cv-option:hover {
    background: rgba(0, 180, 216, 0.15);
    color: var(--primary);
}

.cv-option i {
    font-size: 1.2rem;
    width: 26px;
    text-align: center;
    color: var(--primary);
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 16px 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
}

.accent-dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    flex-direction: row;
    gap: 36px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.btn-primary-outline {
    padding: 10px 24px;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 25px;
    font-weight: 600;
}

.btn-primary-outline:hover {
    background: var(--primary);
    color: #fff;
}

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

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: 0.3s;
    border-radius: 2px;
}

/* ============ HERO SECTION ============ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image-container {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.hero-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-main);
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    opacity: 0.2;
    z-index: -1;
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.05); }
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    position: relative; /* Ensure it's positioned for z-index */
    z-index: 60; /* Higher than hero-stats to prevent dropdown overlap */
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-indicator.hide-scroll {
    opacity: 0;
    visibility: hidden;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    50% { top: 18px; opacity: 0; }
    100% { top: 6px; opacity: 0; }
}

/* ============ SECTIONS ============ */
.section {
    padding: var(--section-spacing) 0;
}

/* About Section - Enhanced */
.about-card {
    margin-bottom: 32px;
}

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

.about-card p:last-child {
    margin-bottom: 0;
}

.about-heading {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.inline-link {
    color: var(--primary);
    border-bottom: 1px solid var(--primary);
    transition: opacity 0.3s ease;
}

.inline-link:hover {
    opacity: 0.8;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.expertise-card {
    text-align: center;
    padding: 28px 24px;
}

.expertise-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary-dim), rgba(0, 150, 199, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.expertise-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.expertise-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Motivation Card */
.motivation-card {
    border-left: 3px solid var(--primary);
}

/* What I'm Looking For */
.looking-for {
    text-align: center;
    padding: 32px;
}

.looking-for h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.looking-for h3 i {
    color: var(--primary);
}

.opportunities-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.opportunity-tag {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-dim), rgba(0, 150, 199, 0.15));
    border: 1px solid rgba(0, 180, 216, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.opportunity-tag:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-2px);
}

.highlight-text {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skill-category h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
}

.skill-category h3 i {
    color: var(--primary);
    font-size: 1.3rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.tags span:hover {
    background: var(--primary-dim);
    color: var(--primary);
    border-color: rgba(59, 130, 246, 0.3);
}

.tech-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem !important;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-main);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background: var(--bg-surface);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-header h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.job-type {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

.company {
    color: var(--secondary);
    font-weight: 500;
    font-size: 1rem;
}

.date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 12px;
    border-radius: 6px;
}

.job-details {
    padding-left: 20px;
}

.job-details li {
    list-style-type: disc;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.job-details li::marker {
    color: var(--primary);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.edu-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.edu-icon {
    min-width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-dim), rgba(139, 92, 246, 0.1));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
}

.edu-info h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.degree {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.specialization, .grade {
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.edu-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Certifications Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}


.cert-card {
    flex: 0 0 auto; /* Allow card to size based on content */
    width: auto;
    min-width: 450px; /* Minimum width for readability */
    max-width: 600px; /* Maximum width to prevent excessive stretching */
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.cert-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    flex-shrink: 0;
}

.cert-info {
    flex: 1;
}

.cert-info h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.cert-issuer {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cert-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.cert-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
}

.cert-skills h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-skills .skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cert-skills .skills-tags span {
    font-size: 0.85rem;
    padding: 8px 16px;
    background: var(--primary-dim);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cert-skills .skills-tags span:hover {
    background: var(--primary);
    color: #000;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.project-card h3 {
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 1.3rem;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.project-tags span {
    font-size: 0.8rem;
    padding: 5px 12px;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    border-radius: 50px;
}

.project-details {
    padding-left: 20px;
    margin-bottom: 20px;
}

.project-details li {
    list-style-type: disc;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.project-details li::marker {
    color: var(--secondary);
}

/* Project Links */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 25px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-2px);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.testimonial-card {
    position: relative;
    padding: 32px;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

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

.lor-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.lor-link:hover {
    background: var(--primary);
    color: #000;
}

/* References Section */
.references-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.reference-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
}

.ref-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-dim);
    border: 1px solid var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.ref-content h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.ref-source {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.ref-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.references-footnote {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.references-footnote i {
    margin-right: 8px;
    color: var(--primary);
}

/* Contact/Footer */
.footer-section {
    background: linear-gradient(to top, rgba(15, 15, 22, 0.9), transparent);
    padding-bottom: 50px;
}

.contact-subtitle {
    margin-bottom: 40px;
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--bg-surface);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.contact-btn i {
    font-size: 1.2rem;
    color: var(--primary);
}

.contact-info-text {
    margin-bottom: 40px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* Animations */
.hidden {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

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

    .hero-stats {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        width: 320px;
        height: 320px;
    }
    
    .skills-grid,
    .education-grid,
    .projects-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 70px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .hero-image-wrapper {
        width: 260px;
        height: 260px;
    }
    
    /* Mobile Nav */
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        padding-left: 28px;
    }
    
    .timeline-marker {
        left: -9px;
        width: 18px;
        height: 18px;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .references-grid {
        grid-template-columns: 1fr;
    }
}
