/* ==========================================================================
   Rasindu Nimsara - Resume Website Style Sheet
   ========================================================================== */

/* --- Custom Variables & Theme Configurations --- */
:root[data-theme="dark"] {
    --bg-primary: #080c16;
    --bg-secondary: #0e1628;
    --bg-card: rgba(15, 23, 42, 0.65);
    --bg-card-hover: rgba(22, 38, 70, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(13, 242, 201, 0.4);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-primary: #0df2c9;       /* Vibrant Mint/Teal */
    --accent-primary-rgb: 13, 242, 201;
    --accent-secondary: #6366f1;     /* Indigo */
    --accent-secondary-rgb: 99, 102, 241;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
    
    --glass-blur: blur(12px);
    --grid-opacity: 0.04;
    --glow-opacity: 0.15;
}

:root[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(79, 70, 229, 0.4);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-primary: #4f46e5;       /* Premium Royal Blue/Indigo */
    --accent-primary-rgb: 79, 70, 229;
    --accent-secondary: #0d9488;     /* Modern Teal */
    --accent-secondary-rgb: 13, 148, 136;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
    
    --glass-blur: blur(16px);
    --grid-opacity: 0.07;
    --glow-opacity: 0.06;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* --- Premium Selection & Scrollbar Styling --- */
::selection {
    background: rgba(var(--accent-primary-rgb), 0.2);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-primary-rgb), 0.25);
    border-radius: 4px;
    border: 2px solid var(--bg-primary);
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--accent-primary-rgb), 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

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

/* --- Universal Components & Utility Classes --- */
.section-padding {
    padding: 100px 24px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    margin: 16px auto 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-badge {
    background: rgba(var(--accent-primary-rgb), 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    align-self: center;
    margin-bottom: 24px;
}

.company-badge {
    background: rgba(var(--accent-secondary-rgb), 0.1);
    color: var(--accent-secondary);
    border: 1px solid rgba(var(--accent-secondary-rgb), 0.2);
    font-size: 0.75rem;
    padding: 3px 10px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--accent-primary); }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* --- Glassmorphism Card System --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease,
                background-color 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
    background: var(--bg-card-hover);
}

.highlight-border {
    position: relative;
}

.highlight-border::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 16px;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.highlight-border:hover::before {
    opacity: 1;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--accent-primary-rgb), 0.4);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background: rgba(var(--accent-primary-rgb), 0.08);
    transform: translateY(-1px);
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-icon:hover {
    color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.08);
    border-color: var(--accent-primary);
}

/* --- Decorative Ambient Effects --- */
.bg-grid-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: 
        linear-gradient(rgba(255, 255, 255, var(--grid-opacity)) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, var(--grid-opacity)) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.bg-glow-effect {
    position: fixed;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-primary-rgb), var(--glow-opacity)) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    animation: glow-float 20s infinite alternate ease-in-out;
}

@keyframes glow-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, 80px) scale(1.2); }
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 24px;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    padding: 12px 24px;
    background: rgba(var(--bg-primary == #080c16 ? '8, 12, 22' : '248, 250, 252'), 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.03em;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
}

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

.nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: rotate(15deg);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.6rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 24px 80px;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.6rem, 7.5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3.5vw, 1.8rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-family: 'Outfit', sans-serif;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    width: 100%;
}

/* Hero Contacts Grid */
.hero-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    width: 100%;
    justify-content: center;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 0; /* Prevents flex children from overflowing the card boundary */
}

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

.contact-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(var(--accent-primary-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.contact-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0; /* Enables truncation of nested nowrap elements */
}

.contact-card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.contact-card-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    pointer-events: none;
}

.scroll-arrow {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 32px;
    align-items: start;
}

.about-text-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    border-left: 3px solid var(--accent-primary);
    padding-left: 16px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-card {
    text-align: center;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

/* --- Work Experience (Timeline) --- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--border-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
    padding-left: 72px;
}

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

.timeline-dot {
    position: absolute;
    left: 20px;
    top: 36px;
    width: 24px;
    height: 24px;
    background: var(--bg-primary);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-date {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.experience-company-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 20px;
    gap: 16px;
}

.experience-role {
    font-size: 1.4rem;
    font-weight: 700;
}

.role-arrow {
    color: var(--accent-secondary);
    font-size: 1.1rem;
    margin: 0 4px;
}

.experience-company {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.experience-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.experience-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Resplendent Ceylon Custom Layout */
.special-project-card {
    background: rgba(var(--accent-primary-rgb), 0.03);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.12);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.project-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.project-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.project-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hotels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hotel-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.hotel-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.hotel-img-placeholder {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Customized backgrounds for hotels */
.hotel-img-placeholder.yala {
    background: linear-gradient(135deg, #b25e14, #d97706); /* Safari/Amber */
}

.hotel-img-placeholder.weligama {
    background: linear-gradient(135deg, #0284c7, #0369a1); /* Ocean/Sky Blue */
}

.hotel-img-placeholder.hatton {
    background: linear-gradient(135deg, #15803d, #166534); /* Lush tea green */
}

.hotel-info {
    padding: 12px;
}

.hotel-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    display: block;
    color: var(--text-primary);
}

.hotel-loc {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
    display: block;
}

.experience-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.experience-bullets li {
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.experience-bullets li::before {
    content: '\F2E6'; /* Remix icon check icon */
    font-family: 'remixicon';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

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

.skills-category-card {
    display: flex;
    flex-direction: column;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.category-header i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.category-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.skill-name {
    color: var(--text-primary);
}

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

.skill-bar-wrapper {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    width: 0; /* Animated via JS or static inline */
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.education-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.edu-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(var(--accent-primary-rgb), 0.08);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 20px;
}

.edu-date {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 6px;
}

.edu-degree {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.edu-institution {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 12px;
}

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

/* --- Referees & Languages Section --- */
.referees-languages-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.referees-block, .languages-block {
    display: flex;
    flex-direction: column;
}

.referee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.referee-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.referee-info-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ref-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(var(--accent-primary-rgb), 0.08);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.referee-name {
    font-size: 1.1rem;
    font-weight: 700;
}

.referee-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
}

.referee-company {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.referee-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.referee-actions .btn-outline {
    flex-grow: 1;
    justify-content: flex-start;
}

/* Languages */
.languages-card {
    display: flex;
    flex-direction: column;
    gap: 28px;
    height: 100%; /* Stretches to align perfectly with adjacent referee cards */
    justify-content: center; /* Centers items vertically inside the stretched container */
    padding: 32px;
}

.language-progress-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lang-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.lang-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

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

.lang-dots {
    display: flex;
    gap: 8px;
}

.lang-dots .dot {
    width: 20px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    transition: background-color 0.4s ease;
}

.lang-dots .dot.active {
    background: var(--accent-primary);
}

/* --- Final Call To Action --- */
.cta-section {
    text-align: center;
}

.cta-card {
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.cta-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* --- Footer --- */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    background: var(--bg-secondary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    gap: 16px;
}

.footer-bottom-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-bottom-links a:hover {
    color: var(--accent-primary);
}

/* --- Animations & Intersection Observer Revealing --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Backdrop Overlay --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    z-index: 98;
    transition: opacity 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- Responsive Layout Rules --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.8rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .referees-languages-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 16px;
    }
    
    .main-header {
        padding: 16px;
    }
    
    .mobile-nav-toggle {
        display: block;
        position: relative;
        z-index: 100;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border-left: 1px solid var(--border-color);
        padding: 120px 32px 40px;
        z-index: 99;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 24px;
    }
    
    .nav-link {
        font-size: 1.15rem;
    }
    
    .nav-download-btn {
        display: none; /* Hide top download button on mobile to save space */
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.35rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-dot {
        left: 4px;
        top: 28px;
    }
    
    .timeline-item {
        padding-left: 36px;
    }
    
    .experience-company-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .experience-location {
        margin-top: 0;
    }
    
    .hotels-grid {
        grid-template-columns: 1fr;
    }
    
    .hotel-img-placeholder {
        height: 60px;
        font-size: 1.4rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .referee-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        padding: 40px 24px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
