* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

*:not(.loader-text .letter):not(.skill-progress):not(.btn):not(a) {
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

:root {
    --primary-color: #d4846a;
    --secondary-color: #f4e4bc;
    --accent-color: #e6a756;
    --text-dark: #2d1810;
    --text-light: #6b4423;
    --warm-white: #fdf9f5;
    --terracotta: #c4704f;
    --golden: #f7ce68;
    --bg-primary: #fdf9f5;
    --bg-secondary: #ffffff;
    --card-bg: #ffffff;
    --shadow-color: rgba(45, 24, 16, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] {
    --primary-color: #ffb88c;
    --secondary-color: #4a3c30;
    --accent-color: #ffd699;
    --text-dark: #ffffff;
    --text-light: #f5f0eb;
    --warm-white: #1a1614;
    --terracotta: #ffaa80;
    --golden: #ffe5a3;
    --bg-primary: #1a1614;
    --bg-secondary: #252220;
    --card-bg: #2d2926;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(45, 41, 38, 0.8);
    --glass-border: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .navbar {
    background: rgba(26, 22, 20, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .timeline-content,
[data-theme="dark"] .project-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .skills-column,
[data-theme="dark"] .certification-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 5px 15px var(--shadow-color);
}

[data-theme="dark"] .nav-link { color: #fff; }
[data-theme="dark"] .contact-item { background: var(--bg-secondary); }
[data-theme="dark"] .contact-item:hover { background: var(--secondary-color); }

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--card-bg);
    border-color: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder { color: #888; }
[data-theme="dark"] .footer { background: #0d0b0a; }

[data-theme="dark"] .timeline-content h3,
[data-theme="dark"] .project-content h3,
[data-theme="dark"] .experience-item strong,
[data-theme="dark"] .contact-info h3 { color: var(--primary-color); }

[data-theme="dark"] .timeline-content h4,
[data-theme="dark"] .section-title { color: #fff; }

[data-theme="dark"] .timeline-content p,
[data-theme="dark"] .project-content p,
[data-theme="dark"] .experience-item li,
[data-theme="dark"] .contact-info p { color: #f0ebe6; }

[data-theme="dark"] .gpa { color: var(--accent-color); }
[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-subtitle { color: #5c1a1a; }
[data-theme="dark"] .hero-description { color: #7a3333; }
[data-theme="dark"] .highlight { 
    background: linear-gradient(90deg, #5c1a1a 0%, #8b2f2f 25%, #a33c3c 50%, #8b2f2f 75%, #5c1a1a 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .filter-btn {
    background: var(--card-bg);
    color: var(--text-light);
    border-color: var(--secondary-color);
}

[data-theme="dark"] .filter-btn.active,
[data-theme="dark"] .filter-btn:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
}

[data-theme="dark"] .btn-outline {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

[data-theme="dark"] .btn-outline:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
}

[data-theme="dark"] .btn-secondary {
    background: var(--card-bg);
    color: var(--text-dark);
    border-color: var(--secondary-color);
}

[data-theme="dark"] .coursework li { background: var(--secondary-color); }
[data-theme="dark"] .project-tech span { background: var(--secondary-color); color: var(--accent-color); }
[data-theme="dark"] .skill-tag { background: linear-gradient(135deg, #7a6b5d, #5a4d42); }
[data-theme="dark"] .certification-tech span { background: var(--secondary-color); color: var(--accent-color); }
[data-theme="dark"] .certification-content p { color: #f0ebe6; }
[data-theme="dark"] .theme-toggle { color: var(--golden); }

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--golden), var(--accent-color));
    width: 0%;
    z-index: 10000;
    box-shadow: 0 0 10px var(--golden);
}

.loader-wrapper {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #1a1614 0%, #2d1810 50%, #1a1614 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-wrapper.hidden { opacity: 0; visibility: hidden; }

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-rings {
    position: relative;
    width: 120px;
    height: 120px;
}

.ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
}

.ring:nth-child(1) { border-top-color: var(--primary-color); animation: ring-spin 1.5s linear infinite; }
.ring:nth-child(2) { width: 80%; height: 80%; top: 10%; left: 10%; border-right-color: var(--golden); animation: ring-spin 1.2s linear infinite reverse; }
.ring:nth-child(3) { width: 60%; height: 60%; top: 20%; left: 20%; border-bottom-color: var(--accent-color); animation: ring-spin 0.9s linear infinite; }

@keyframes ring-spin { to { transform: rotate(360deg); } }

.loader-text { display: flex; gap: 0.3rem; }

.loader-text .letter {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--golden);
    animation: letter-bounce 1.5s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(247, 206, 104, 0.5);
    font-style: italic;
}

.loader-text .letter:nth-child(1) { animation-delay: 0s; }
.loader-text .letter:nth-child(2) { animation-delay: 0.1s; }
.loader-text .letter:nth-child(3) { animation-delay: 0.2s; }
.loader-text .letter:nth-child(4) { animation-delay: 0.3s; }
.loader-text .letter:nth-child(5) { animation-delay: 0.4s; }
.loader-text .letter:nth-child(6) { animation-delay: 0.5s; }
.loader-text .letter:nth-child(7) { animation-delay: 0.6s; }

@keyframes letter-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-15px); opacity: 1; }
}

.morphing-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    filter: blur(60px);
    opacity: 0.6;
    animation: morph 15s ease-in-out infinite;
}

.blob-1 { width: 500px; height: 500px; background: radial-gradient(circle, var(--golden) 0%, transparent 70%); top: -10%; right: -10%; }
.blob-2 { width: 400px; height: 400px; background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%); bottom: -5%; left: -5%; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%); top: 40%; left: 30%; animation-delay: -10s; }

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%; transform: translate(30px, -30px) rotate(90deg) scale(1.1); }
    50% { border-radius: 50% 50% 40% 60% / 40% 60% 50% 50%; transform: translate(0, 20px) rotate(180deg) scale(0.95); }
    75% { border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%; transform: translate(-20px, -10px) rotate(270deg) scale(1.05); }
}

.particles-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(253, 249, 245, 0.85);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(45, 24, 16, 0.1);
    border-bottom: 2px solid var(--secondary-color);
    transition: background 0.4s ease;
}

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

.nav-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    font-style: italic;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo a:hover { color: var(--terracotta); }
.nav-menu { display: flex; gap: 2rem; }

.nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--primary-color); transform: translateY(-2px); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-dark);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover { background: var(--secondary-color); transform: rotate(20deg); }

.nav-toggle { display: none; flex-direction: column; cursor: pointer; }

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 25%, var(--accent-color) 50%, var(--primary-color) 75%, var(--secondary-color) 100%);
    background-size: 400% 400%;
    animation: heroGradient 15s ease infinite;
    color: var(--text-dark);
    position: relative;
    z-index: 5;
    overflow: hidden;
}

@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(45,24,16,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
    z-index: 0;
}

.hero-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-text { animation: slideInLeft 1s ease-out; }
.hero-image { display: flex; justify-content: center; align-items: center; animation: slideInRight 1s ease-out; }

.image-container {
    position: relative;
    width: 400px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: rotate(-5deg);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-container:hover { transform: rotate(0deg); }

.profile-img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(212, 132, 106, 0.2), rgba(230, 167, 86, 0.2));
    border-radius: 20px;
}

.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.float-element {
    position: absolute;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

.float-element:nth-child(1) { top: 10%; left: -20%; }
.float-element:nth-child(2) { top: 20%; right: -20%; }
.float-element:nth-child(3) { bottom: 30%; left: -15%; }
.float-element:nth-child(4) { bottom: 10%; right: -15%; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(-30px) rotate(-5deg); }
    75% { transform: translateY(-15px) rotate(3deg); }
}

.hero-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: #5c1a1a;
    letter-spacing: 0.01em;
    animation: bounceIn 1.2s ease-out 0.3s both;
}

.highlight {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: 4rem;
    display: block;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #5c1a1a 0%, #8b2f2f 25%, #a33c3c 50%, #8b2f2f 75%, #5c1a1a 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.25rem;
    animation: gradientShift 4s ease infinite;
    filter: drop-shadow(0 2px 10px rgba(255, 229, 163, 0.5));
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--golden), var(--terracotta));
    background-size: 200% 100%;
    border-radius: 2px;
    animation: expandWidth 1.5s ease-out 1s both, gradientShift 3s ease infinite;
}

.hero-subtitle {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #5c1a1a;
    letter-spacing: -0.01em;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-description {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: #7a3333;
    line-height: 1.75;
    max-width: 480px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; animation: fadeInUp 1s ease-out 1.2s both; }
.hero-social { display: flex; gap: 1rem; animation: fadeInUp 1s ease-out 1.5s both; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    min-width: fit-content;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before { width: 300px; height: 300px; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--golden));
    color: #2d1810;
    box-shadow: 0 4px 15px rgba(230, 167, 86, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--golden), var(--accent-color));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(230, 167, 86, 0.5);
}

.btn i { flex-shrink: 0; font-size: 1rem; }

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--warm-white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(212, 132, 106, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.25);
}

.hero-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.hero-social a::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--text-dark);
    color: var(--warm-white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hero-social a::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text-dark);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hero-social a:hover::before,
.hero-social a:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.hero-social a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

section { padding: 5rem 0; position: relative; overflow: hidden; transition: background 0.4s ease; }

.section-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--golden));
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--golden));
    background-size: 200% 100%;
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.5s both, gradientShift 3s ease infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230, 167, 86, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(230, 167, 86, 0); }
}

.education { position: relative; z-index: 10; background: var(--warm-white); padding: 5rem 0; }

.education-timeline { max-width: 800px; margin: 0 auto; position: relative; }

.timeline-item { position: relative; padding-left: 2.5rem; margin-bottom: 2rem; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 17px;
    height: 17px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--warm-white);
    box-shadow: 0 0 0 3px var(--primary-color);
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item:hover::before {
    transform: scale(1.4);
    background: var(--golden);
    box-shadow: 0 0 0 3px var(--golden), 0 0 30px rgba(247, 206, 104, 0.6);
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-left: 1rem;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(212, 132, 106, 0.2);
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    border-left: 4px solid var(--primary-color);
}

.timeline-content h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.timeline-content h4 { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 0.5rem; }

.timeline-date {
    background: linear-gradient(135deg, var(--secondary-color), var(--warm-white));
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.timeline-location { color: var(--text-light); font-style: italic; margin-left: 1rem; }
.gpa { color: var(--accent-color); font-weight: 600; margin: 1rem 0; }

.coursework { margin-top: 1.5rem; }
.coursework h5 { color: var(--text-light); margin-bottom: 0.5rem; }
.coursework ul { list-style: none; padding: 0; }

.coursework li {
    background: var(--secondary-color);
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.skills { background: linear-gradient(135deg, var(--secondary-color) 0%, var(--warm-white) 100%); }

.skills-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.skills-column {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skills-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 132, 106, 0.2);
}

.skills-category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Bricolage Grotesque', sans-serif;
}

.skills-category-title i { color: var(--primary-color); font-size: 1.2rem; }

.skill-bar-item { margin-bottom: 1.25rem; position: relative; cursor: pointer; }

.skill-bar-item::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--text-dark);
    color: var(--warm-white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.skill-bar-item:hover::before { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-5px); }

.skill-info { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.skill-name { font-size: 0.9rem; font-weight: 500; color: var(--text-dark); }
.skill-name i { margin-right: 0.5rem; font-size: 1.1rem; }
.skill-percent { font-size: 0.85rem; font-weight: 600; color: var(--primary-color); }

.skill-bar {
    height: 8px;
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--golden));
    background-size: 200% 100%;
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: shimmer 2s infinite;
}


@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.skill-progress.animate { width: var(--progress); }

.certifications { background: linear-gradient(135deg, var(--warm-white) 0%, var(--secondary-color) 100%); }

.certifications-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }

.certification-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.certification-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 30px 60px rgba(212, 132, 106, 0.25);
}

.certification-image {
    height: 160px;
    background: linear-gradient(135deg, var(--secondary-color), var(--warm-white));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cert-img {
    max-width: 80%;
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.certification-card:hover .cert-img { transform: scale(1.15) rotate(3deg); }

.certification-content { padding: 1.5rem; }

.certification-content h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.certification-content p { color: var(--text-light); margin-bottom: 1rem; line-height: 1.6; font-size: 0.9rem; }

.certification-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

.certification-tech span {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.certification-links { display: flex; gap: 1rem; }

.certification-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.certification-link:hover { color: var(--terracotta); transform: translateX(5px); }

.learning-journey { background: var(--bg-primary); padding: 6rem 0; }
.learning-journey .section-subtitle { text-align: center; color: var(--text-light); font-size: 1.1rem; margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.learning-stats { display: flex; justify-content: center; gap: 3rem; margin-bottom: 4rem; flex-wrap: wrap; }
.stat-card { text-align: center; padding: 2rem; background: var(--glass-bg); backdrop-filter: blur(10px); border-radius: 20px; border: 1px solid var(--glass-border); min-width: 150px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(212, 132, 106, 0.2); }
.stat-number { font-family: 'Bricolage Grotesque', sans-serif; font-size: 3rem; font-weight: 700; color: var(--primary-color); line-height: 1; }
.stat-label { color: var(--text-light); font-size: 0.95rem; margin-top: 0.5rem; }

.learning-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.learning-category { background: var(--card-bg); border-radius: 16px; padding: 1.75rem; border: 1px solid var(--glass-border); transition: all 0.3s ease; position: relative; overflow: hidden; }
.learning-category::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary-color), var(--golden)); transform: scaleX(0); transition: transform 0.3s ease; }
.learning-category:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(212, 132, 106, 0.15); }
.learning-category:hover::before { transform: scaleX(1); }
.category-icon { width: 50px; height: 50px; background: linear-gradient(135deg, var(--primary-color), var(--terracotta)); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.category-icon i { font-size: 1.4rem; color: white; }
.learning-category h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.15rem; color: var(--text-dark); margin-bottom: 0.25rem; }
.course-count { display: inline-block; font-size: 0.8rem; color: var(--primary-color); font-weight: 600; margin-bottom: 0.75rem; }
.learning-category p { color: var(--text-light); font-size: 0.9rem; line-height: 1.5; }

[data-theme="dark"] .learning-journey { background: var(--bg-secondary); }
[data-theme="dark"] .stat-card,
[data-theme="dark"] .learning-category { background: var(--glass-bg); border-color: rgba(255, 255, 255, 0.1); }

.experience-timeline { max-width: 900px; margin: 0 auto; position: relative; }

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color), var(--golden));
    background-size: 100% 200%;
    border-radius: 2px;
    animation: timelineGlow 3s ease-in-out infinite;
}

@keyframes timelineGlow {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
}

.experience-achievements { list-style: none; margin-top: 1rem; }

.experience-achievements li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: var(--text-light);
}

.experience-achievements li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.experience-achievements strong { color: var(--text-dark); }
.experience-achievements a { color: var(--primary-color); text-decoration: none; }
.experience-achievements a:hover { text-decoration: underline; }

.testimonials {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a1210 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 132, 106, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(247, 206, 104, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials .section-title { color: var(--warm-white); }
.testimonials .section-title::after { background: linear-gradient(90deg, var(--golden), var(--accent-color)); }

.testimonials-slider { position: relative; max-width: 800px; margin: 0 auto; min-height: 300px; }

.testimonial-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.testimonial-card.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    animation: fadeSlideIn 0.3s ease forwards;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.testimonial-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-icon { font-size: 3rem; color: var(--golden); margin-bottom: 1.5rem; opacity: 0.6; }

.testimonial-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    line-height: 1.9;
    color: #fff;
    font-style: italic;
    margin-bottom: 2rem;
    font-weight: 500;
}

[data-theme="dark"] .testimonial-text { color: #1a1210; }

.testimonial-author { display: flex; justify-content: center; align-items: center; gap: 1rem; }

.author-info h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    color: var(--golden);
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info span { color: var(--primary-color); font-size: 0.9rem; }

.testimonial-nav { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2rem; position: relative; z-index: 10; }

.testimonial-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-btn:hover { background: var(--primary-color); color: var(--warm-white); transform: scale(1.1); }

.testimonial-dots { display: flex; gap: 0.5rem; }

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--golden);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(247, 206, 104, 0.5);
}

.projects { background: linear-gradient(135deg, var(--warm-white) 0%, var(--secondary-color) 100%); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover { box-shadow: 0 30px 60px rgba(212, 132, 106, 0.25); }

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warm-white);
    font-size: 4rem;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.project-image::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 0.5s;
}

.project-card:hover .project-image::before { left: 100%; }

.project-image::after {
    content: 'View Details →';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 132, 106, 0.95), rgba(196, 112, 79, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-image::after { opacity: 1; }

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-img { transform: scale(1.1); }

.project-content { padding: 2rem; }

.project-content h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.project-content p { color: var(--text-light); margin-bottom: 1.5rem; line-height: 1.6; }

.project-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }

.project-tech span {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-tech span:hover { background: var(--primary-color); color: white; transform: translateY(-2px); }

.project-links { display: flex; gap: 1rem; }

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover { color: var(--terracotta); transform: translateX(5px); }

.project-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn:hover { background: var(--secondary-color); transform: translateY(-2px); }

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--terracotta));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(212, 132, 106, 0.4);
}

.project-card.hidden { display: none; }

.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 1000px; margin: 0 auto; }

.contact-info h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-info p { color: var(--text-light); margin-bottom: 2rem; line-height: 1.6; }

.contact-details { display: grid; gap: 1rem; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.contact-item:hover { background: var(--secondary-color); transform: translateX(10px); }
.contact-item i { color: var(--primary-color); width: 20px; text-align: center; font-size: 1.2rem; }
.contact-item a { color: var(--text-light); text-decoration: none; transition: color 0.3s ease; }
.contact-item a:hover { color: var(--primary-color); }

.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(212, 132, 106, 0.2);
}

[data-theme="dark"] .contact-form { background: var(--card-bg); border-color: var(--glass-border); }

.form-group { margin-bottom: 1.5rem; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--primary-color);
    background: #fff;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #999; }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 4px rgba(212, 132, 106, 0.2);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.easter-egg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.easter-egg.active { opacity: 1; visibility: visible; }

.easter-egg-content { text-align: center; color: white; animation: easterBounce 0.5s ease; }

@keyframes easterBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.easter-emoji { font-size: 5rem; display: block; margin-bottom: 1rem; animation: spin 1s ease-in-out; }

@keyframes spin {
    0% { transform: rotate(0deg) scale(0); }
    100% { transform: rotate(360deg) scale(1); }
}

.easter-egg-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--golden);
    font-style: italic;
}

.easter-egg-content p { font-size: 1.2rem; margin-bottom: 2rem; }

.close-easter {
    padding: 1rem 2rem;
    background: var(--golden);
    border: none;
    border-radius: 30px;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-easter:hover { transform: scale(1.1); box-shadow: 0 10px 30px rgba(247, 206, 104, 0.4); }

.footer { background: linear-gradient(135deg, #1f2937 0%, #111827 100%); padding: 4rem 0 2rem; color: white; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--golden);
    margin-bottom: 0.5rem;
}

.footer-brand p { color: #9ca3af; font-size: 0.95rem; }

.footer-links h4,
.footer-connect h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-links nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: #9ca3af; text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--golden); }

.footer-social { display: flex; gap: 1rem; }

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover { background: var(--golden); color: var(--text-dark); transform: translateY(-3px); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; text-align: center; }
.footer-bottom p { color: #6b7280; font-size: 0.9rem; }

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--terracotta));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(212, 132, 106, 0.4);
}

.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-5px) scale(1.1); box-shadow: 0 10px 30px rgba(212, 132, 106, 0.5); }

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3) translateY(-50px); }
    50% { opacity: 1; transform: scale(1.05) translateY(-10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100%; }
}

.timeline-item,
.project-card,
.certification-card,
.skills-column {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.animate,
.certification-card.animate,
.project-card.animate,
.skills-column.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }
.timeline-item:nth-child(4) { transition-delay: 0.4s; }
.timeline-item:nth-child(5) { transition-delay: 0.5s; }
.timeline-item:nth-child(6) { transition-delay: 0.6s; }
.project-card:nth-child(1) { transition-delay: 0.1s; }
.project-card:nth-child(2) { transition-delay: 0.15s; }
.project-card:nth-child(3) { transition-delay: 0.2s; }
.project-card:nth-child(4) { transition-delay: 0.25s; }
.project-card:nth-child(5) { transition-delay: 0.3s; }
.project-card:nth-child(6) { transition-delay: 0.35s; }
.skills-column:nth-child(1) { transition-delay: 0.1s; }
.skills-column:nth-child(2) { transition-delay: 0.2s; }
.skills-column:nth-child(3) { transition-delay: 0.3s; }

a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.filter-btn:focus-visible { outline: 2px solid var(--golden); outline-offset: 2px; }

.btn:focus-visible { outline: 3px solid var(--golden); outline-offset: 3px; }

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus { top: 0; }

img[loading="lazy"] { opacity: 0; transition: opacity 0.3s ease; }
img[loading="lazy"].loaded, img[loading="lazy"]:not([src=""]) { opacity: 1; }

@media (max-width: 992px) {
    .skills-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu {
    position: fixed;
        left: -100%;
        top: 70px;
    flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active { left: 0; }
    .nav-toggle { display: flex; }
    .project-filters { gap: 0.5rem; }
    .filter-btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
    .back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; }

    .hero-content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .hero-image { order: -1; }
    .image-container { width: 280px; height: 350px; margin: 0 auto; }
    .hero-title { font-size: 1.2rem; }
    .highlight { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.15rem; }
    .hero-buttons { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .btn { padding: 0.9rem 1.5rem; font-size: 0.95rem; }
    .contact-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-links nav { align-items: center; }
    .footer-social { justify-content: center; }
    .container, .nav-container, .hero-container { padding: 0 1rem; }
    .hero-social { justify-content: center; }
    .skills-container { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.1rem; }
    .highlight { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .hero-buttons { width: 100%; padding: 0 1rem; align-items: stretch; }
    .btn { width: 100%; justify-content: center; padding: 0.85rem 1.25rem; font-size: 0.9rem; }
}

@media print {
    * { background: white !important; color: black !important; box-shadow: none !important; }
    .navbar, .scroll-progress, .loader-wrapper, .back-to-top, .morphing-blobs, .particles-bg, .floating-elements, .easter-egg, .testimonials, .hero-social, .hero-buttons, .footer-social, .contact-form { display: none !important; }
    .hero { min-height: auto; padding: 2rem 0; }
    .hero-content { grid-template-columns: 1fr; }
    .hero-image { display: none; }
    section { padding: 1.5rem 0; page-break-inside: avoid; }
    .section-title { font-size: 1.5rem; margin-bottom: 1rem; }
    .timeline-content, .project-card, .certification-card, .skills-column { break-inside: avoid; border: 1px solid #ddd; }
    .highlight { -webkit-text-fill-color: black; background: none; }
    .footer { padding: 1rem 0; }
    .footer-grid { display: none; }
}
