:root {
    /* Brand Colors - Premium Corporate Scheme */
    --bg-color: #0d1117;           /* Deep dark blue/gray */
    --surface-color: #161b22;      /* Slightly lighter surface */
    --surface-light: #21262d;      /* Lighter accents */
    --text-primary: #f0f6fc;       /* Off-white text */
    --text-secondary: #8b949e;     /* Subtitle gray */
    
    /* Accent Colors */
    --accent-blue: #3b82f6;        /* Bright action blue */
    --accent-blue-hover: #2563eb;
    --accent-teal: #10b981;        /* Success/Growth color */
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Structure */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1100px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    
    /* Glassmorphism & Borders */
    --surface-glass: rgba(22, 27, 34, 0.2);
    --border-light: rgba(255, 255, 255, 0.05);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);
    --bg-light: rgba(255, 255, 255, 0.03);
    --bg-medium: rgba(255, 255, 255, 0.05);
    --bg-strong: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0);
    --footer-bg: #0a0d12;
}

:root.light-mode {
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --surface-light: #f1f5f9;
    --surface-glass: rgba(255, 255, 255, 0.5);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    
    --border-light: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.15);
    --border-strong: rgba(0, 0, 0, 0.25);
    --bg-light: rgba(0, 0, 0, 0.02);
    --bg-medium: rgba(0, 0, 0, 0.05);
    --bg-strong: rgba(0, 0, 0, 0.08);
    --shadow-color: rgba(15, 23, 42, 0.06);
    --footer-bg: #e2e8f0;
    
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-teal: #059669;
}

.about-card, .metric-card, .timeline-content, .skills-card, .education-card, .project-card, .contact-badge {
    box-shadow: 0 8px 32px var(--shadow-color);
}

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

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Abstract Shapes */
.bg-shape {
    position: absolute;
    filter: blur(120px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.15;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-blue);
    top: -100px;
    left: -150px;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-teal);
    bottom: 20%;
    right: -200px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(13, 17, 23, 0.85);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

:root.light-mode .navbar.scrolled {
    background: rgba(248, 250, 252, 0.92);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

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

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

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
}

.theme-toggle-btn:hover {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    transform: rotate(15deg);
}

/* Hamburger menu: hidden on desktop, shown only on mobile */
.menu-toggle {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text-primary);
}

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

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

.btn-outline:hover {
    border-color: var(--text-primary);
    background: var(--bg-medium);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

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

.image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 10px;
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    box-shadow: 0 32px 64px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.image-frame img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius-lg) - 10px);
    display: block;
    filter: brightness(1.05);
}

.image-frame:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-blue);
    box-shadow: 0 40px 80px rgba(59, 130, 246, 0.2);
}

.image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), transparent);
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    background: linear-gradient(to right, #ffffff, #8b949e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

:root.light-mode .hero-title {
    background: linear-gradient(to right, #0f172a, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 16px;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    text-align: justify;
    line-height: 1.6;
}

.hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

/* About Section */
.about-section {
    padding: 60px 0 100px;
}

.about-content {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-title {
    font-size: 2.2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.about-text .lead-text {
    font-size: 1.25rem;
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.5;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.05rem;
    text-align: justify;
    line-height: 1.6;
}

.about-text strong {
    color: var(--text-primary);
}

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

.about-card {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.about-card:nth-child(3) {
    grid-column: span 2;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.05);
}

.about-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.about-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Metrics Section */
.metrics-section {
    margin-bottom: 120px;
}

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

.metric-card {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-medium);
    background: var(--surface-light);
}

.metric-card.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-teal), var(--accent-blue));
}

.metric-icon {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.metric-card.highlight .metric-icon {
    color: var(--accent-teal);
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.metric-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.metric-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Experience Section (Timeline) */
.experience-section {
    padding: 80px 0;
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: var(--bg-medium);
}

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

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

.timeline-dot {
    position: absolute;
    left: 17px;
    top: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.timeline-content {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--border-medium);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.timeline-header h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.company {
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-medium);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.achievements-list {
    list-style: none;
}

.achievements-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    text-align: justify;
    line-height: 1.5;
}

.achievements-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.achievements-list li strong {
    color: var(--text-primary);
}

/* Skills & Education Grid */
.skills-section {
    padding: 80px 0 120px;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
}

.skills-card, .education-card {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 40px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title i {
    color: var(--accent-blue);
}

h4 {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.mt-4 { margin-top: 32px; }
.mt-3 { margin-top: 16px; }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background: var(--bg-light);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.tag:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
}

.edu-list {
    list-style: none;
}

.edu-list li {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.edu-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.edu-year {
    color: var(--accent-teal);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.edu-course {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.edu-school {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer & Contact */
.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-light);
    padding: 100px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
}

.footer-info {
    max-width: 500px;
}

.footer-info h2 {
    margin-bottom: 16px;
}

.footer-info p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-light);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-badge:hover {
    background: var(--accent-blue);
}

.footer-actions {
    display: flex;
    flex-direction: column;
}

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

/* --- Projects Section --- */
.projects-section {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.project-card {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.project-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--surface-light);
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.project-card:hover .project-img {
    filter: brightness(1.1);
}

:root.light-mode .project-img {
    filter: none;
}

.bg-p1 {
    background-image: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(59, 130, 246, 0.5)), url('caso1_rentabilidad.png');
    background-size: cover;
    background-position: center;
}

.bg-p2 {
    background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.4) 0%, transparent 40%), url('caso-webfleet.png');
    background-size: cover;
    background-position: top center;
}

.bg-p3 {
    background-image: url('proyecto-isabel.png');
    background-size: cover;
    background-position: center;
}

.bg-p4 {
    background-image: linear-gradient(135deg, rgba(180, 83, 9, 0.4), rgba(245, 158, 11, 0.5)), url('caso3_ivt.png');
    background-size: cover;
    background-position: center;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 32px;
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 100px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Progress Bars --- */
.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}

.skill-bar {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-info span:last-child {
    color: var(--accent-blue);
    font-weight: 700;
}

.progress-line {
    height: 6px;
    width: 100%;
    background: var(--bg-medium);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-line span {
    height: 100%;
    position: absolute;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue));
    left: 0;
    top: 0;
    width: 0;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

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

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

/* Responsive Design */
@media (max-width: 1100px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-image {
        order: -1;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
}

@media (max-width: 992px) {
    .metrics-grid, .skills-grid, .projects-grid, .footer-content, .about-content {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-dot {
        left: -4px;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    .timeline-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .footer-actions {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 8px;
        border-radius: var(--radius-sm);
        transition: var(--transition);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--surface-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 40px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        font-size: 1.25rem;
        display: block;
        padding: 10px;
    }
    /* Mobile project grid adjustments */
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    .project-img {
        height: 180px;
    }
    /* Mobile card tweaks */
    .project-card {
        width: 100%;
        margin: 0 auto;
    }
    .project-info {
        padding: 16px;
    }
    .project-tag {
        font-size: 0.7rem;
    }
    .project-info h3 {
        font-size: 1.2rem;
    }
    .project-info p {
        font-size: 0.85rem;
    }
    /* Ensure cards and images use full width on mobile */
    .project-card {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
    }
    .project-img {
        width: 100%;
        height: auto;
        min-height: 150px;
        object-fit: cover;
    }

    .hero {
        padding: 140px 0 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    /* Extra mobile refinements */
    .projects-section {
        padding: 40px 0;
    }
    .project-card {
        margin-bottom: 16px;
    }
    .project-img {
        height: auto;
        min-height: 150px;
    }
    .project-info h3 {
        font-size: 1.1rem;
    }
    .project-info p {
        font-size: 0.8rem;
    }
}

/* Extra mobile tweaks for very small screens (≤480px) */
@media (max-width: 480px) {
    .projects-grid {
        gap: 12px;
    }
    .project-img {
        height: 130px;
    }
    .project-info h3 {
        font-size: 1rem;
    }
    .project-info p {
        font-size: 0.75rem;
    }
    .project-tag {
        font-size: 0.6rem;
    }
    .hero-title {
        font-size: 1.6rem;
    }
    .hero {
        padding: 80px 0 40px;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: -60px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: var(--transition);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.visible {
    right: 30px;
}

.scroll-top-btn:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-3px);
}
