/* === Variables & Themes === */
:root {
    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Theme - Light (Professional Slate Blue) */
    --bg-color: #f8fafc;
    --bg-alt: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;

    /* Professional Blue Palette */
    --accent-color: #1d4ed8; /* Deep Blue */
    --accent-hover: #1e3a8a;
    --accent-light: rgba(29, 78, 216, 0.1);
    
    /* Executive details */
    --gold-accent: #b45309;

    --nav-bg: rgba(248, 250, 252, 0.65);
    --mobile-nav-bg: rgba(248, 250, 252, 0.98);
    --card-bg: rgba(255, 255, 255, 0.7);
    --menu-bg: rgba(255, 255, 255, 0.95);
    --border-color: rgba(203, 213, 225, 0.6);
    --shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.15);
    
    --radius-lg: 16px;
    --radius-md: 12px;
}

[data-theme="dark"] {
    /* Theme - Dark (Deep Black/Charcoal) */
    --bg-color: #050505;
    --bg-alt: #121212;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-light: rgba(59, 130, 246, 0.15);
    
    --gold-accent: #fbbf24;

    --nav-bg: rgba(5, 5, 5, 0.65);
    --mobile-nav-bg: rgba(5, 5, 5, 0.98);
    --card-bg: rgba(18, 18, 18, 0.6);
    --menu-bg: rgba(18, 18, 18, 0.95);
    --border-color: rgba(40, 40, 40, 0.6);
    --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8);
}

/* === Reset & Base Styles === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, fill 0.3s ease, stroke 0.3s ease;
}

.theme-transition-none * {
    transition: none !important;
}

html, body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 5px;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.section-padding {
    padding: 100px 0;
}

.alt-bg {
    background-color: transparent;
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    margin: 0 auto;
    border-radius: 2px;
}

/* === Background Elements === */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(90px);
    border-radius: 50%;
    opacity: 0.6;
    animation: blob-float 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 60%);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--bg-alt) 0%, transparent 70%);
    bottom: -15%;
    right: -10%;
    animation-delay: -7s;
}

[data-theme="dark"] .blob-1 {
    opacity: 0.2;
}

[data-theme="dark"] .blob-2 {
    opacity: 0.1;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
}

@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.1); }
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    background-color: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-linkedin-btn {
    border: 1.5px solid var(--accent-color);
    padding: 6px 18px;
    border-radius: 20px;
    color: var(--accent-color) !important;
    font-weight: 600;
}

.nav-linkedin-btn:hover {
    background-color: var(--accent-color);
    color: #ffffff !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.lang-dropdown::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--accent-color);
}

.lang-btn svg {
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .lang-dropdown:hover .lang-btn svg {
        transform: rotate(180deg);
    }
}
.lang-dropdown.active .lang-btn svg {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--menu-bg);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

@media (hover: hover) {
    .lang-dropdown:hover .lang-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}
.lang-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-menu a:hover {
    background-color: var(--accent-light);
    color: var(--accent-color);
}

.lang-menu a.active {
    color: var(--accent-color);
    font-weight: 600;
}

.flag-icon {
    width: 22px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    display: inline-block;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 5px;
}

/* Theme Toggle */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 30px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    z-index: 1;
    transition: .4s;
}

.slider-icon.sun {
    left: 8px;
    color: var(--text-primary);
}

.slider-icon.moon {
    right: 8px;
    color: var(--text-secondary);
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
}

input:checked + .slider .slider-icon.sun {
    color: var(--text-secondary);
}

input:checked + .slider .slider-icon.moon {
    color: var(--text-primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: var(--text-primary);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 15px var(--accent-light);
}

[data-theme="dark"] .btn-primary {
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-light);
    color: #ffffff;
}

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

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: var(--accent-light);
}

/* === Hero Section === */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 40px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1.2;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--accent-light);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    border: 1px solid var(--accent-color);
}

.hero-text h1.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-color), #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-intro-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 25px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.hero-intro-card h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.mobile-hero-photo {
    display: none;
}

.hero-intro-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 480px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    z-index: 0;
    filter: blur(40px);
    animation: pulse-bg 6s infinite alternate;
    pointer-events: none;
}

@keyframes pulse-bg {
    0% {
        opacity: 0.2;
        transform: translateY(-50%) scale(0.9);
    }
    100% {
        opacity: 0.5;
        transform: translateY(-50%) scale(1.1);
    }
}

.dot-grid {
    position: absolute;
    width: 500px;
    height: 600px;
    top: 50%;
    right: -90px;
    transform: translateY(-50%);
    background-image: radial-gradient(var(--accent-color) 2px, transparent 2px);
    background-size: 20px 20px;
    z-index: -2;
    opacity: 0.3;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    pointer-events: none;
}

.image-frame {
    position: relative;
    width: 340px;
    height: 420px;
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 6px;
    background-color: var(--bg-alt);
    box-shadow: var(--shadow);
    z-index: 1;
}



.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 6px);
    position: relative;
    z-index: 1;
    background-color: var(--bg-color);
}

/* === About Section === */
.about-content {
    display: flex;
    gap: 60px;
    align-items: stretch;
}

.about-text {
    flex: 1.2;
}

.about-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.about-description {
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.about-details {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    flex: 1;
}

.detail-card svg {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.detail-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.detail-card ul li {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
}
.detail-card ul li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

.mobile-only {
    display: none !important;
}

.detail-card ul {
    padding-left: 1.2em;
}

/* === Resume / Timeline Section === */
.timeline-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.resume-mobile-tabs {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.column-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.column-title svg {
    color: var(--accent-color);
}

.timeline {
    position: relative;
    padding-left: 35px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--border-color);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 45px;
    background-color: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 25px;
    left: -42px;
    width: 16px;
    height: 16px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.timeline-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 4px;
    flex-shrink: 0;
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 12px;
    background-color: var(--accent-light);
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.timeline-item h4 {
    font-size: 1.3rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.timeline-location {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.qualities-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.quality-tag {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: var(--shadow);
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.quality-tag:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

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

.skill-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 35px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-light);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.skill-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* === Contact Section === */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    text-align: left;
}

.contact-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

a.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--accent-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.contact-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    word-break: break-word;
}

/* === Footer === */
.main-footer {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links h4, .footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* === Scroll Animations === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* === Responsive Design (Mobile First Focus) === */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-intro-card {
        text-align: left;
    }
    .hero-actions {
        justify-content: center;
    }
    .about-content {
        flex-direction: column;
    }
    .timeline-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .navbar {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .hero-section {
        padding-top: 120px;
    }

    .hero-text h1.hero-title {
        font-size: 2.8rem;
    }

    .hero-image-wrapper {
        display: none;
    }
    
    .mobile-hero-header {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 15px;
    }

    .mobile-hero-photo {
        display: block;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--accent-color);
        box-shadow: var(--shadow);
    }

    .hero-intro-card h2 {
        margin-bottom: 0;
        font-size: 1.15rem;
    }

    /* Mobile Navbar */
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 15px);
        left: 0;
        width: 100%;
        height: auto;
        padding: 15px 0;
        background-color: var(--menu-bg);
        backdrop-filter: blur(60px);
        -webkit-backdrop-filter: blur(60px);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        box-shadow: var(--shadow);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 5px 0;
    }
    
    .theme-switch-wrapper {
        margin-right: 10px;
    }

    /* About Details and Skills Carousel */
    .mobile-only { display: flex !important; }
    .desktop-card { display: none !important; }

    .about-slider, .skills-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scroll-padding: 0 20px;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .detail-card, .skill-card {
        flex: 0 0 80%;
        scroll-snap-align: center;
        margin-bottom: 0;
    }

    .about-slider::-webkit-scrollbar, .skills-grid::-webkit-scrollbar {
        display: none;
    }
    .about-slider, .skills-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    /* Timeline adjustments */
    .timeline-container {
        display: block;
    }

    .resume-mobile-tabs {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .resume-tab-btn {
        padding: 10px 18px;
        border-radius: 20px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--text-secondary);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        font-family: var(--font-body);
        font-size: 0.95rem;
    }

    .resume-tab-btn.active {
        background: var(--accent-color);
        color: white;
        border-color: var(--accent-color);
    }
    
    .timeline-column {
        display: none;
    }
    
    .timeline-column.active {
        display: block;
        animation: fadeIn 0.4s ease;
    }

    .timeline {
        padding-left: 25px;
    }
    .timeline-item::before {
        top: 25px;
        left: -33px;
        width: 14px;
        height: 14px;
    }
    
    .qualities-flex {
        justify-content: center;
        gap: 8px;
    }
    
    .quality-tag {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    
    /* Contact */
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-text h1.hero-title {
        font-size: 2.3rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .image-frame {
        width: 240px;
        height: 300px;
    }
    .timeline-item h4 {
        font-size: 1.15rem;
    }
}

/* === Construction Overlay === */
.construction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.construction-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.construction-content {
    background-color: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.construction-content h2 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.construction-content p {
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.password-form input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.password-form input:focus {
    border-color: var(--accent-color);
}

.password-error {
    color: #ef4444 !important;
    margin-top: 15px;
    margin-bottom: 0 !important;
    font-size: 0.9rem;
}
