/* =====================================================
   BENJAMIN GEORGE ALEXANDER - PORTFOLIO STYLES
   Premium Visual Resume Website
   ===================================================== */

/* ======================= */
/* CSS CUSTOM PROPERTIES   */
/* ======================= */
:root {
    /* Primary Color Palette - Professional Corporate */
    --primary-900: #0c1929;
    --primary-800: #132238;
    --primary-700: #1a3a5c;
    --primary-600: #1e4976;
    --primary-500: #2563eb;
    --primary-400: #3b82f6;
    --primary-300: #60a5fa;
    --primary-200: #93c5fd;
    --primary-100: #dbeafe;
    --primary-50: #eff6ff;

    /* Accent Colors */
    --accent-gold: #d4a574;
    --accent-gold-light: #e8c9a8;
    --accent-emerald: #10b981;
    --accent-purple: #8b5cf6;

    /* Neutral Colors */
    --neutral-900: #111827;
    --neutral-800: #1f2937;
    --neutral-700: #374151;
    --neutral-600: #4b5563;
    --neutral-500: #6b7280;
    --neutral-400: #9ca3af;
    --neutral-300: #d1d5db;
    --neutral-200: #e5e7eb;
    --neutral-100: #f3f4f6;
    --neutral-50: #f9fafb;
    --white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
    --gradient-dark: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
    --gradient-hero: linear-gradient(160deg, var(--primary-900) 0%, var(--primary-800) 50%, var(--primary-700) 100%);
    --gradient-card: linear-gradient(145deg, var(--white) 0%, var(--neutral-50) 100%);
    --gradient-gold: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.8rem + 2.25vw, 3.5rem);
    --text-5xl: clamp(3rem, 2.2rem + 4vw, 5rem);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.3);
    --shadow-gold: 0 0 30px rgba(212, 165, 116, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-slower: 500ms ease;

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

/* ======================= */
/* RESET & BASE STYLES     */
/* ======================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--neutral-700);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ======================= */
/* UTILITY CLASSES         */
/* ======================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ======================= */
/* BUTTONS                 */
/* ======================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md), 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 8px 20px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-base);
}

/* ======================= */
/* NAVIGATION              */
/* ======================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(12, 25, 41, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.nav-logo:hover .logo-text::after {
    transform: scaleX(1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-resume {
    background: var(--gradient-gold);
    color: var(--primary-900) !important;
    margin-left: var(--space-sm);
}

.nav-resume:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-base);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Navigation Styles */
@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--gradient-dark);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: var(--space-3xl);
        gap: var(--space-md);
        transition: right var(--transition-slow);
        box-shadow: var(--shadow-2xl);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: var(--text-lg);
        padding: var(--space-md);
        width: 100%;
    }

    .nav-resume {
        margin-left: 0;
        margin-top: var(--space-md);
        justify-content: center;
    }
}

/* ======================= */
/* HERO SECTION            */
/* ======================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding: var(--space-4xl) 0;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(12, 25, 41, 0.3) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: var(--z-base);
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4xl);
    }
}

.hero-content {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent-emerald);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-xl);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-emerald);
    border-radius: var(--radius-full);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.hero-title .greeting {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-sm);
}

.hero-title .name {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--white) 0%, var(--accent-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--primary-200);
    margin-bottom: var(--space-md);
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-base);
    margin-bottom: var(--space-2xl);
}

.hero-location i {
    color: var(--accent-gold);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

/* Hero Image Section */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-decoration {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 2px solid rgba(212, 165, 116, 0.3);
    border-radius: var(--radius-2xl);
    transform: rotate(6deg);
    animation: float-rotate 6s ease-in-out infinite;
}

@media (min-width: 768px) {
    .image-decoration {
        width: 400px;
        height: 400px;
    }
}

@keyframes float-rotate {
    0%, 100% {
        transform: rotate(6deg) translateY(0);
    }
    50% {
        transform: rotate(8deg) translateY(-10px);
    }
}

.image-frame {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl), 0 0 60px rgba(37, 99, 235, 0.3);
}

@media (min-width: 768px) {
    .image-frame {
        width: 360px;
        height: 360px;
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.image-frame:hover .hero-image {
    transform: scale(1.05);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: float 4s ease-in-out infinite;
}

.floating-card .card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: var(--text-lg);
}

.floating-card .card-content {
    display: flex;
    flex-direction: column;
}

.floating-card .card-number {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-800);
    line-height: 1.2;
}

.floating-card .card-label {
    font-size: var(--text-xs);
    color: var(--neutral-500);
}

.card-experience {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card-education {
    bottom: 15%;
    right: -5%;
    animation-delay: 2s;
}

@media (max-width: 1024px) {
    .floating-card {
        display: none;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(10px);
    }
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

/* ======================= */
/* SECTION COMMON STYLES   */
/* ======================= */
section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary-900);
    margin-bottom: var(--space-md);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    margin: 0 auto;
    border-radius: var(--radius-full);
}

/* ======================= */
/* ABOUT SECTION           */
/* ======================= */
.about {
    background: var(--neutral-50);
}

.about-content {
    display: grid;
    gap: var(--space-3xl);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-text .lead-text {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--primary-800);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: var(--space-md);
    color: var(--neutral-600);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.highlight-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid var(--neutral-100);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: var(--text-xl);
    margin: 0 auto var(--space-md);
}

.highlight-card h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--primary-800);
    margin-bottom: var(--space-sm);
}

.highlight-card p {
    font-size: var(--text-sm);
    color: var(--neutral-500);
}

/* ======================= */
/* EXPERIENCE SECTION      */
/* ======================= */
.experience {
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: var(--space-lg);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-500), var(--accent-gold));
}

@media (min-width: 768px) {
    .timeline {
        padding-left: var(--space-3xl);
    }
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-3xl);
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-lg) - 8px);
    top: 0;
}

@media (min-width: 768px) {
    .timeline-marker {
        left: calc(-1 * var(--space-3xl) - 8px);
    }
}

.marker-dot {
    width: 18px;
    height: 18px;
    background: var(--gradient-primary);
    border: 4px solid var(--white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}

.timeline-content {
    padding-left: var(--space-md);
}

.timeline-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.timeline-date {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--primary-600);
}

.timeline-date i {
    color: var(--accent-gold);
}

.timeline-duration {
    padding: var(--space-xs) var(--space-md);
    background: var(--primary-50);
    color: var(--primary-600);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.timeline-card {
    display: flex;
    gap: var(--space-lg);
    background: var(--gradient-card);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-100);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.timeline-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.company-logo {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: var(--text-xl);
}

.timeline-details {
    flex: 1;
}

.job-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-800);
    margin-bottom: var(--space-xs);
}

.company-name {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--primary-600);
    margin-bottom: var(--space-xs);
}

.job-location {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--neutral-500);
    margin-bottom: var(--space-lg);
}

.job-location i {
    color: var(--accent-gold);
}

.job-responsibilities {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.job-responsibilities li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--neutral-600);
    line-height: 1.6;
}

.job-responsibilities li i {
    color: var(--accent-emerald);
    margin-top: 4px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .timeline-card {
        flex-direction: column;
    }

    .company-logo {
        width: 48px;
        height: 48px;
    }
}

/* Timeline End Marker */
.timeline-end {
    position: relative;
}

.end-marker {
    position: absolute;
    left: calc(-1 * var(--space-lg) - 14px);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    color: var(--primary-900);
    font-size: var(--text-sm);
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .end-marker {
        left: calc(-1 * var(--space-3xl) - 14px);
    }
}

/* ======================= */
/* EDUCATION SECTION       */
/* ======================= */
.education {
    background: var(--gradient-dark);
    color: var(--white);
}

.education .section-label {
    color: var(--accent-gold);
}

.education .section-title {
    color: var(--white);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.education-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    overflow: hidden;
}

.education-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 165, 116, 0.3);
    transform: translateY(-5px);
}

.education-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    border-radius: var(--radius-full);
}

.education-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-gold);
    border-radius: var(--radius-lg);
    color: var(--primary-900);
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
}

.education-content {
    position: relative;
    z-index: 1;
}

.education-year {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary-300);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.degree-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.institution-name {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--accent-gold);
    margin-bottom: var(--space-sm);
}

.institution-location {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
}

.institution-location i {
    color: var(--accent-gold);
}

/* Certifications */
.certifications {
    text-align: center;
}

.certifications-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.certifications-title i {
    color: var(--accent-gold);
}

.certification-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.certification-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--white);
    transition: all var(--transition-base);
}

.certification-badge:hover {
    background: rgba(212, 165, 116, 0.15);
    border-color: rgba(212, 165, 116, 0.3);
}

.certification-badge i {
    color: var(--accent-gold);
}

/* ======================= */
/* SKILLS SECTION          */
/* ======================= */
.skills {
    background: var(--neutral-50);
}

.skills-container {
    display: grid;
    gap: var(--space-3xl);
}

@media (min-width: 1024px) {
    .skills-container {
        grid-template-columns: 1fr 1fr;
    }
}

.skills-category {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-100);
}

.category-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--primary-800);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--neutral-100);
}

.category-title i {
    color: var(--primary-500);
}

/* Skill Bars */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.skill-name {
    font-weight: 500;
    color: var(--neutral-700);
    font-size: var(--text-sm);
}

.skill-level {
    font-weight: 600;
    color: var(--primary-600);
    font-size: var(--text-sm);
}

.skill-bar {
    height: 8px;
    background: var(--neutral-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1.5s ease-out;
}

/* Languages Grid */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.language-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-100);
    transition: all var(--transition-base);
}

.language-card:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
}

.language-name {
    font-weight: 600;
    color: var(--primary-800);
}

.language-level {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.level-dots {
    display: flex;
    gap: var(--space-xs);
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--neutral-200);
    border-radius: var(--radius-full);
    transition: background var(--transition-base);
}

.dot.filled {
    background: var(--gradient-primary);
}

.level-text {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--neutral-500);
}

/* ======================= */
/* CONTACT SECTION         */
/* ======================= */
.contact {
    background: var(--white);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
}

.contact-intro {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    margin-bottom: var(--space-2xl);
}

.contact-cards {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

@media (min-width: 640px) {
    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: var(--neutral-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-100);
    transition: all var(--transition-base);
}

.contact-card:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
    transform: translateY(-3px);
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    color: var(--white);
    font-size: var(--text-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-label {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.contact-value {
    font-weight: 600;
    color: var(--primary-800);
    font-size: var(--text-sm);
    word-break: break-all;
}

.resume-cta {
    display: flex;
    justify-content: center;
}

/* ======================= */
/* FOOTER                  */
/* ======================= */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-brand {
        text-align: left;
    }
}

.footer-logo {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--white);
    display: block;
    margin-bottom: var(--space-xs);
}

.footer-brand p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md) var(--space-lg);
}

.footer-links a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}

/* ======================= */
/* BACK TO TOP BUTTON      */
/* ======================= */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-sticky);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* ======================= */
/* ANIMATIONS              */
/* ======================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ======================= */
/* ACCESSIBILITY           */
/* ======================= */
@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;
    }
}

/* Focus States */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-500: #0066cc;
        --accent-gold: #cc8800;
    }
}

/* ======================= */
/* PRINT STYLES            */
/* ======================= */
@media print {
    .navbar,
    .back-to-top,
    .scroll-indicator,
    .floating-card {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: var(--space-xl) 0;
    }

    section {
        padding: var(--space-xl) 0;
        break-inside: avoid;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}
