@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root,
html[data-theme="light"] {
    --primary: #592C9E;
    --secondary: #2C919E;
    --accent: #E8B923;
    --dark: #1a1a2e;
    --text: #1a1a2e;
    --text-light: #555555;
    --border: #e0e7ff;
    --transition: all 0.3s ease;
    --bg: #f0f2f5;
    --bg-secondary: #f7f8fc;
    --shadow-sm: 0 2px 8px rgba(89,44,158,0.07);
    --shadow-md: 0 6px 24px rgba(89,44,158,0.12);
    --shadow-lg: 0 16px 48px rgba(89,44,158,0.16);
    --gradient: linear-gradient(135deg, #592C9E 0%, #2C919E 100%);
}

html[data-theme="dark"] {
    --primary: #7a4fc9;
    --secondary: #2C919E;
    --accent: #E8B923;
    --dark: #060e1f;
    --text: #f1f5f9;
    --text-light: #cbd5e1;
    --bg: #0f172a;
    --bg-secondary: #1e293b;
    --border: #334155;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 6px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
    --gradient: linear-gradient(135deg, #7a4fc9 0%, #2C919E 100%);
}

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

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
    letter-spacing: 0.2px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
}


/* Navbar */
nav {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: none;
    transition: background-color 0.3s ease;
    overflow: visible;
}

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

.nav-logo {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    padding-right: 1rem;
    border-right: 1px solid var(--border);
}

.nav-logo:hover {
    color: var(--text);
    transform: translateY(-2px);
}

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

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

.nav-menu {
    display: flex;
    gap: 0;
    list-style: none;
}

.nav-menu > li {
    border-right: 1px solid var(--border);
}

.nav-menu > li:last-child {
    border-right: none;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--text);
    transform: translateY(-2px);
}

.dropdown {
    position: relative;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-light);
    padding: 0.5rem;
}

.nav-toggle:hover {
    color: var(--text);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    margin-top: 0;
    padding-top: 0.5rem;
    animation: slideDown 0.3s ease;
}

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

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    border: none;
    border-radius: 0;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.2s ease;
}

.dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
    font-weight: bold;
    color: var(--text);
}

.dropdown-menu a:hover {
    background: var(--bg-secondary);
    padding-left: 1.2rem;
}

/* Main */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header compacto */
.header {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    align-items: start;
    animation: slideUp 0.5s ease;
}

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

.header-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.header-avatar img:hover {
    transform: scale(1.05);
}

.header-content h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.header-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.header-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    font-weight: 600;
}

.meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

/* Secciones compactas */
.section {
    margin-bottom: 1.5rem;
    animation: slideUp 0.5s ease;
}

.section:nth-child(2) {
    animation-delay: 0.1s;
}

.section:nth-child(3) {
    animation-delay: 0.2s;
}

.section:nth-child(4) {
    animation-delay: 0.3s;
}

.section:nth-child(5) {
    animation-delay: 0.4s;
}

.section-header {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.section-header:hover {
    background: var(--bg-secondary);
}

.section-header i {
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.section-content {
    background: var(--bg-secondary);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Tabs para académico */
.section-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
    gap: 0;
}

.tab-btn {
    padding: 1rem;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.tab-btn:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.tab-btn.active {
    color: var(--primary) !important;
    border-bottom-color: var(--primary) !important;
}

.tab-content {
    display: none;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.tab-content.active {
    display: block;
}

/* Acordeón de materias */
.accordion {
    list-style: none;
}

.accordion-item {
    border-bottom: 1px solid var(--bg-secondary);
    transition: all 0.3s ease;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 0.75rem 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    user-select: none;
}

.accordion-header:hover {
    color: var(--secondary) !important;
    padding-left: 0.5rem;
}

.accordion-header.active {
    color: var(--primary) !important;
    font-weight: 600;
}

.accordion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: var(--accent) !important;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.accordion-header.active .accordion-icon {
    color: var(--secondary) !important;
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    padding: 0;
}

.accordion-content.active {
    max-height: 15px;
    opacity: 1;
    padding: 0;
}

.accordion-text {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Lista compacta */
.list-compact {
    list-style: none;
}

.list-compact li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--bg-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: slideInLeft 0.5s ease backwards;
}

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

.list-compact li:nth-child(1) { animation-delay: 0.05s; }
.list-compact li:nth-child(2) { animation-delay: 0.1s; }
.list-compact li:nth-child(3) { animation-delay: 0.15s; }
.list-compact li:nth-child(4) { animation-delay: 0.2s; }
.list-compact li:nth-child(5) { animation-delay: 0.25s; }
.list-compact li:nth-child(6) { animation-delay: 0.3s; }
.list-compact li:nth-child(7) { animation-delay: 0.35s; }
.list-compact li:nth-child(8) { animation-delay: 0.4s; }
.list-compact li:nth-child(9) { animation-delay: 0.45s; }
.list-compact li:nth-child(10) { animation-delay: 0.5s; }
.list-compact li:nth-child(11) { animation-delay: 0.55s; }
.list-compact li:nth-child(12) { animation-delay: 0.6s; }
.list-compact li:nth-child(13) { animation-delay: 0.65s; }
.list-compact li:nth-child(14) { animation-delay: 0.7s; }
.list-compact li:nth-child(15) { animation-delay: 0.75s; }

.list-compact li:hover {
    color: var(--text);
    transform: translateX(8px);
    padding-left: 1.2rem;
}

.list-compact li:hover::before {
    color: var(--primary);
    transform: scale(1.3);
}

.list-compact li:last-child {
    border-bottom: none;
}

.list-compact li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--text-light);
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Grid de datos */
.data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
}

.section:nth-child(5) .data-grid {
    grid-template-columns: repeat(2, 1fr);
}

.data-block {
    padding: 1.5rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.data-block:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.data-block:last-child {
    border-right: none;
}

.data-item {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

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

.data-item:hover {
    transform: translateX(5px);
}

.data-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    font-weight: 600;
}

.data-value {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

/* Badge */
.badge {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(89, 44, 158, 0.4);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.badge:hover {
    background: rgba(89, 44, 158, 0.08);
    border-color: var(--secondary);
    color: var(--primary);
}

/* CTA compacta */
.cta {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease 0.5s both;
}

.cta:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cta h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.cta p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cta-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--secondary);
    transform: translateX(3px);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text);
    margin-top: 3rem;
    box-shadow: var(--shadow-sm);
}

footer p {
    margin-bottom: 0.5rem;
}

footer p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu a {
        padding: 0.5rem 2rem;
        font-size: 0.95rem;
    }

    .nav-menu > li:last-child {
        border-bottom: none;
    }

    .dropdown-menu {
        position: static;
        display: none;
        border: none;
        background: var(--bg-primary);
        padding-left: 1rem;
    }

    .dropdown.active .dropdown-menu {
        display: flex;
        flex-direction: column;
    }

    .header {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
    }

    .header-avatar img {
        width: 100px;
        height: 100px;
    }

    .header-content h1 {
        font-size: 1.5rem;
    }

    .header-meta {
        grid-template-columns: repeat(2, 1fr);
    }

    .data-grid {
        grid-template-columns: 1fr;
    }

    .data-block {
        border-right: none;
    }

    .cta {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    main {
        padding: 1rem;
    }
}

/* ===== PORTFOLIO STYLES ===== */

/* GRADIENT LEFT BORDER */
.expertise-card::before,
.experience-item::before,
.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 4px 0 0 4px;
}

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

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary);
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.3px;
    position: relative;
}

.section-title span {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

/* Portfolio Section */
.portfolio {
    padding: 4rem 2rem;
}

.expertise-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.expertise-card {
    background: var(--bg-secondary);
    padding: 2rem 2rem 2rem 2.5rem;
    border-radius: 12px;
    border-left: none;
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    animation: slideUp 0.5s ease both;
}

.expertise-card:nth-child(1) { animation-delay: 0s; }
.expertise-card:nth-child(2) { animation-delay: 0.15s; }
.expertise-card:nth-child(3) { animation-delay: 0.3s; }

.expertise-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.expertise-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.expertise-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.filter-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.9rem 1.8rem;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.filter-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.filter-btn:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

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

.project-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: visible;
    box-shadow: var(--shadow-sm);
    border: none;
    transition: var(--transition);
    animation: fadeIn 0.6s ease both;
    color: var(--text);
    position: relative;
}

.project-card:nth-child(1) { animation-delay: 0s; }
.project-card:nth-child(2) { animation-delay: 0.12s; }
.project-card:nth-child(3) { animation-delay: 0.24s; }
.project-card:nth-child(4) { animation-delay: 0.36s; }
.project-card:nth-child(5) { animation-delay: 0.48s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.72s; }
.project-card:nth-child(8) { animation-delay: 0.84s; }
.project-card:nth-child(9) { animation-delay: 0.96s; }
.project-card:nth-child(10) { animation-delay: 1.08s; }

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 4px 0 0 4px;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 280px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 2rem 2rem 2rem 2.5rem;
}

.project-category {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.project-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.project-link {
    position: relative;
    display: inline-block;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.project-link:hover {
    color: var(--primary);
}

.project-link:hover::after {
    width: 100%;
}

/* Hidden cards */
.project-card.hidden {
    display: none;
}

/* Looking for Work Section */
.looking-for-work {
    padding: 2rem;
    background: var(--bg-secondary);
    max-width: 1200px;
    margin: 0 auto;
}

.work-cta-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    padding: 2rem 2rem 2rem 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease both;
}

.work-cta-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 4px 0 0 4px;
}

.work-cta-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.work-cta-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.work-cta-card h2 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.work-cta-card p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: -100px;
    right: 2rem;
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
    bottom: 2rem;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .portfolio {
        padding: 3rem 1rem;
    }

    .expertise-areas {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .expertise-card {
        padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    }

    .expertise-card h3 {
        font-size: 1.2rem;
    }

    .filter-buttons {
        gap: 0.6rem;
        margin-bottom: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image {
        height: 200px;
    }

    .project-content {
        padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    }

    .project-title {
        font-size: 1.25rem;
    }

    .filter-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .looking-for-work {
        padding: 3rem 1rem;
    }

    .work-cta-card {
        padding: 1.5rem 1.5rem 1.5rem 2rem;
    }

    .work-cta-card h2 {
        font-size: 1.4rem;
    }

    .work-cta-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.85rem;
    }

    .project-link {
        font-size: 0.8rem;
    }

    .project-content {
        padding: 1rem 1rem 1rem 1.5rem;
    }

    .looking-for-work {
        padding: 2rem 0.75rem;
    }

    .work-cta-card {
        padding: 1.25rem 1rem 1.25rem 1.75rem;
    }

    .work-cta-card h2 {
        font-size: 1.2rem;
    }

    .work-cta-card p {
        font-size: 0.9rem;
    }
}
