/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Modern & Elegant */
    --primary-color: #2D3E50;
    --secondary-color: #E74C3C;
    --accent-color: #3498DB;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --text-light: #ECF0F1;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-dark: #1A252F;
    --gradient-primary: linear-gradient(to top right, #FF8008 0%, #FFFFFF 100%); /* Orange (Top-Right) to White (Bottom-Left) */
    --primary-solid: #FF8008; /* Solid Orange */
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

/* External Link Indicator */
a[target="_blank"]::after {
    content: '';
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-left: 0.25em;
    vertical-align: text-bottom;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    opacity: 0.7;
}

:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.contact :focus-visible {
    outline-color: white;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-solid); /* Solid color */
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary); /* Keep gradient for Hero */
    opacity: 0.9;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    animation: fadeInUp 1s ease;
}

.hero-title {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
}

.hero-cta {
    display: inline-flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-align: center;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden; /* Ensure particles don't overflow */
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5; /* Subtle effect */
}

.about .container {
    position: relative;
    z-index: 2; /* Ensure content is above canvas */
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text h2 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.stat-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-solid); /* Solid color */
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   EXPERIENCE SECTION
   ======================================== */
.experience {
    background: var(--bg-primary);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-solid); /* Solid color */
}

.timeline-item {
    display: flex;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: calc(50% - 40px);
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Highlight for Current Job */
.current-job .timeline-content {
    border: 2px solid var(--primary-solid);
    background-color: rgba(255, 128, 8, 0.03); /* Very subtle orange tint */
    box-shadow: 0 4px 20px rgba(255, 128, 8, 0.15);
}

.current-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-solid);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #667eea;
    border-radius: 50%;
    z-index: 2;
}

.timeline-date {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-solid); /* Solid color */
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.timeline-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Grouped Timeline Styles */
.timeline-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.timeline-group-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 2;
}

.timeline-group-company {
    display: inline-block;
    background: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    color: var(--primary-solid);
    font-size: 1.5rem;
    border: 2px solid var(--primary-solid);
}

.timeline-subitem {
    display: flex;
    margin-bottom: var(--spacing-md);
    position: relative;
}

/* Alternate sides for subitems */
.timeline-subitem:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-subitem .timeline-content {
    width: calc(50% - 40px);
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
}

.timeline-subitem .timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.timeline-subitem .timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid var(--accent-color); /* Different color for subitems */
    border-radius: 50%;
    z-index: 2;
    top: 20px; /* Align with title */
}

/* Current Job Highlight in Group */
.timeline-subitem.current-job .timeline-content {
    border: 2px solid var(--primary-solid);
    background-color: rgba(255, 128, 8, 0.03);
    box-shadow: 0 4px 20px rgba(255, 128, 8, 0.15);
}


/* Responsive for Groups */
@media (max-width: 768px) {
    .timeline-subitem,
    .timeline-subitem:nth-child(odd) {
        flex-direction: row;
    }
    
    .timeline-subitem .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    
    .timeline-subitem .timeline-dot {
        left: 20px;
    }
}

/* ========================================
   SKILLS SECTION
   ======================================== */
.skills {
    background: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.skill-category {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.skill-category-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.skill-category-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-solid); /* Solid color */
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-fast);
}

/* OPTIMIZATION: Use CSS transform for hover effect to avoid JS layout thrashing */
.skill-tag:hover {
    background: var(--primary-solid); /* Solid color */
    color: white;
    transform: scale(1.1) rotate(2deg);
}

/* ========================================
   EDUCATION SECTION
   ======================================== */
.education {
    background: var(--bg-primary);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.education-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(to right, var(--primary-solid), var(--primary-solid)); /* Solid border */
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: var(--transition-base);
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.education-degree {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.education-school {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.education-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.education-subsection {
    margin-bottom: var(--spacing-lg);
}

.subsection-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    text-align: center;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.subsection-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-solid);
    margin: var(--spacing-xs) auto 0;
    border-radius: 2px;
}

/* ========================================
   CERTIFICATIONS SECTION
   ======================================== */
.certifications {
    background: var(--bg-secondary);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.certification-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(to right, var(--primary-solid), var(--primary-solid));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: var(--transition-base);
}

.certification-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.certification-name {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.certification-issuer {
    font-size: 1rem;
    color: var(--primary-solid);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.certification-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    background: var(--bg-dark);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-solid); /* Solid color */
    opacity: 0.9;
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact .section-title {
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(8px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-details h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.email-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.email-link:hover {
    color: white;
    text-decoration: underline;
}

.copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover, .copy-btn:focus-visible {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.copy-btn svg {
    display: block;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

/* Typewriter Animation */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

@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;
    }
}

/* ========================================
   PARTICLE & TEXT STYLES
   ======================================== */
.keep-it-simple {
    position: absolute;
    bottom: 10%;
    right: 5%;
    text-align: right;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    opacity: 0.3; /* Watermark effect - low opacity */
}

.simple-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    
    /* Typewriter styles */
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--text-light);
    width: 0; /* Start with 0 width */
    animation: 
        typewriter 3s steps(30, end) forwards,
        blink 0.75s step-end infinite;
    animation-delay: 1s; /* Wait a bit before starting */
    animation-fill-mode: forwards; /* Keep final state */
}

.simple-line {
    width: 60px;
    height: 3px;
    background-color: var(--text-light);
    opacity: 0; /* Hide initially */
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 4s; /* Show after typing finishes */
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.text-gradient {
    color: var(--primary-solid); /* Solid color */
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* ========================================
   SKIP TO CONTENT
   ======================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-solid);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 2000;
    transition: top 0.3s;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
    outline: none;
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */
.language-switcher {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.language-switcher:hover {
    box-shadow: var(--shadow-xl);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.hero:focus {
    outline: none;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-solid); /* Solid color */
    opacity: 0;
    transition: opacity var(--transition-fast);
    z-index: -1;
}

.lang-btn:hover {
    transform: translateY(-2px);
    color: var(--text-primary);
}

.lang-btn.active {
    color: white;
}

.lang-btn.active::before {
    opacity: 1;
}

.lang-btn .flag {
    font-size: 1.2rem;
    line-height: 1;
}

.lang-btn .lang-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Responsive language switcher */
@media (max-width: 768px) {
    .language-switcher {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem;
    }
    
    .lang-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .lang-btn .lang-text {
        display: none;
    }
    
    .lang-btn .flag {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        top: 0.75rem;
        right: 0.75rem;
    }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-solid);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
    box-shadow: var(--shadow-lg);
    border: 2px solid white;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0s;
}

.back-to-top:hover {
    background: white;
    color: var(--primary-solid);
    border-color: var(--primary-solid);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 128, 8, 0.4);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
    }
}

/* ========================================
   ACCESSIBILITY UTILITIES
   ======================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-solid);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 9999;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-decoration: none;
    transition: top 0.3s ease;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.skip-link:focus {
    top: 0;
    outline: 2px solid white;
    outline-offset: -2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    /* Hide non-essential elements */
    .skip-link, .language-switcher, .back-to-top, #particle-canvas,
    .hero-cta, .hero::before, .contact::before,
    .keep-it-simple, .simple-text, .simple-line { display: none !important; }

    /* Reset layout and colors */
    body, .hero, .contact, .section { background: white !important; color: black !important; min-height: auto !important; padding: 0 !important; }
    h1, h2, h3, h4, p, span, a, .hero-title, .hero-subtitle, .hero-description, .contact-details h3, .contact-details p { color: black !important; text-shadow: none !important; }

    /* Card cleanups */
    .timeline-content, .stat-card, .skill-category, .education-card, .certification-card, .contact-item { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid !important; page-break-inside: avoid !important; background: white !important; }

    /* Links & Container */
    a { text-decoration: underline !important; color: black !important; }
    .container { width: 100% !important; max-width: none !important; padding: 0 !important; }
}

/* ========================================
   RIPPLE EFFECT (Moved from index.js)
   ======================================== */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========================================
   CONTACT SECTION HELPERS
   ======================================== */
.contact-cta-title {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
}
