:root {
    --primary: #6E57E0;
    --primary-light: #8A78E5;
    --primary-dark: #5040B3;
    --secondary: #2EC4B6;
    --text: #F5F5F5;
    --text-dark: #1A1A1A;
    --bg: #121212;
    --bg-light: #1E1E1E;
    --bg-lighter: #2A2A2A;
    --accent: #FF9F1C;
    --danger: #E71D36;

    --transition-speed: 0.3s;
    --transition-function: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-function);
}

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

img {
    max-width: 100%;
}

/* Custom cursor — desktop only */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary);
    pointer-events: none;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.2s ease;
    opacity: 0.7;
    display: none;
}

@media (min-width: 769px) {
    .cursor {
        display: block;
    }
}

.cursor.grow {
    transform: translate(-50%, -50%) scale(2);
    background-color: var(--accent);
}

/* Navigation dots */
.nav-dots {
    position: fixed;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
    z-index: 100;
}

.nav-dots ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.nav-dots li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-function);
    position: relative;
}

.nav-dots li:hover {
    background-color: var(--primary-light);
    transform: scale(1.2);
}

.nav-dots li.active {
    background-color: var(--primary);
    transform: scale(1.3);
}

.nav-dots li .tooltip {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background-color: var(--bg-lighter);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.nav-dots li:hover .tooltip {
    opacity: 1;
}

/* Main container */
.horizontal-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* Section base */
.section {
    width: 100%;
    height: 100vh;
    height: 100dvh; /* dynamic viewport height for mobile browsers */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
}

.section.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 1;
}

.section .content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* Section title */
.section-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 2rem;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 5px;
    background-color: var(--primary);
    border-radius: 10px;
}

/* ==================== Hero Section ==================== */
#hero {
    background-color: var(--bg);
    position: relative;
    overflow: hidden;
}

#hero .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding-right: 40%;
}

.hero-text {
    max-width: 800px;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 8px rgba(110, 87, 224, 0.3));
}

.hero-text h2 {
    font-size: clamp(1.3rem, 3.5vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero-text p {
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    margin-bottom: 2rem;
    color: var(--text);
    max-width: 600px;
    opacity: 0.8;
}

.cta-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all var(--transition-speed) var(--transition-function);
    border: 2px solid var(--primary);
    cursor: pointer;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    text-align: center;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 5px 15px rgba(110, 87, 224, 0.4);
}

.cta-button.outline {
    background-color: transparent;
    color: var(--primary);
}

.cta-button.outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Network visualization */
.network-visualization {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    color: var(--text);
    opacity: 0.7;
    font-size: 16px;
}

.scroll-indicator i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Profile Picture */
.profile-picture-container {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    animation: fadeIn 1s ease forwards;
    opacity: 0;
    z-index: 5;
    pointer-events: none;
}

.profile-picture {
    width: 500px;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: profileFadeIn 1s ease forwards;
    filter: drop-shadow(2px 2px 0 rgba(110, 87, 224, 0.4)) drop-shadow(-10px -10px 0 rgba(110, 87, 224, 0.4));
    pointer-events: auto;
}

.profile-picture-filter {
    filter: grayscale(100%) brightness(0.8);
}

.profile-picture:hover {
    transform: scale(1.03);
    filter: drop-shadow(3px 5px 20px rgba(110, 87, 224, 0.5)) drop-shadow(-10px -10px 0 rgba(110, 87, 224, 0.4));
}

.profile-picture:hover .profile-picture-filter {
    filter: grayscale(0%) brightness(1);
}

@keyframes profileFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== About Section ==================== */
.about-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: clamp(0.8rem, 1vw, 1rem);
    color: var(--text);
    opacity: 0.8;
}

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

.skill-category {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    color: var(--primary);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-item {
    position: relative;
}

/* Skill name comes FIRST, then the bar below */
.skill-name {
    display: flex;
    justify-content: space-between;
    font-size: clamp(0.85rem, 1vw, 1rem);
    margin-bottom: 0.4rem;
}

.skill-progress {
    height: 6px;
    background-color: var(--bg-lighter);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    width: 0;
    transition: width 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
}

.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tech-item {
    background-color: var(--bg-lighter);
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    color: var(--text);
    transition: all var(--transition-speed) var(--transition-function);
}

.tech-item:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* ==================== Projects / Publications ==================== */
#projects,
#publications {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.project-card {
    background-color: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(110, 87, 224, 0.4);
}

.project-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.project-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.project-title {
    font-size: clamp(1rem, 1.3vw, 1.4rem);
    color: var(--text);
    margin: 0;
}

.project-description {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.project-tags span {
    background-color: var(--bg-lighter);
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: clamp(0.7rem, 0.8vw, 0.8rem);
    font-weight: 500;
    color: var(--primary-light);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.project-tags span:hover {
    color: var(--accent);
    border-color: var(--accent);
}

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

.project-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text);
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link i {
    font-size: 1rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

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

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

.projects-more {
    margin-top: 1.5rem;
    text-align: center;
}

.more-link {
    color: var(--primary-light);
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

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

.more-link i {
    transition: transform var(--transition-speed) var(--transition-function);
}

.more-link:hover i {
    transform: translateX(5px);
}

/* Publication badge */
.pub-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.pub-badge.towards-ai {
    background-color: rgba(46, 196, 182, 0.15);
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.pub-badge.medium {
    background-color: rgba(110, 87, 224, 0.15);
    color: var(--primary-light);
    border: 1px solid var(--primary-light);
}

/* ==================== Carousel ==================== */
.carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.carousel-header .section-title {
    margin-bottom: 0;
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

.carousel-track .project-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
}

.carousel-track .project-card .project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.carousel-track .project-card .project-description {
    flex: 1;
}

.carousel-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-lighter);
    border: 1px solid rgba(110, 87, 224, 0.5);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    padding: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.carousel-arrow:hover:not(:disabled) {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(110, 87, 224, 0.4);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-counter {
    font-size: 0.75rem;
    color: var(--text);
    opacity: 0.5;
    font-family: 'Space Grotesk', sans-serif;
    min-width: 3rem;
    text-align: center;
    letter-spacing: 0.02em;
}

.carousel-footer {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary);
    transform: scale(1.5);
}

/* ==================== Experience Section ==================== */
.timeline {
    position: relative;
    padding-left: 2.5rem;
    overflow: hidden;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--primary-light);
    opacity: 0.4;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

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

.timeline-dot {
    position: absolute;
    left: -3rem;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 3px solid var(--bg);
}

.timeline-content {
    background-color: var(--bg-light);
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-content h3 {
    font-size: clamp(1.05rem, 1.3vw, 1.3rem);
    margin-bottom: 0.3rem;
    color: var(--text);
}

.timeline-content h4 {
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    margin-bottom: 0.5rem;
    color: var(--primary-light);
    font-weight: 500;
}

.timeline-date {
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    margin-bottom: 0.75rem;
    color: var(--text);
    opacity: 0.7;
}

.timeline-content p {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.6;
}

/* ==================== Contact Section ==================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info p {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: clamp(0.9rem, 1vw, 1.1rem);
}

.contact-item i {
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item a {
    word-break: break-all;
}

.contact-form {
    max-width: 500px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: clamp(0.85rem, 1vw, 1rem);
    color: var(--text);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    background-color: var(--bg-lighter);
    border: 1px solid var(--bg-lighter);
    border-radius: 6px;
    color: var(--text);
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color var(--transition-speed) var(--transition-function);
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
footer {
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
}

.footer-content {
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.7;
}

.last-updated {
    margin-top: 0.4rem;
    font-size: 0.75rem;
}

/* Form Success Message */
.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Particles */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

/* Animation for nodes */
@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-15px) translateX(15px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* ==================================================================
   RESPONSIVE — Tablet (≤1024px)
   ================================================================== */
@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        max-width: 100%;
    }

    .section .content {
        padding: 1.5rem 1rem;
    }

    /* Profile picture — constrained on tablet */
    .profile-picture {
        width: 350px;
    }

    #hero .content {
        padding-right: 35%;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }
}

/* ==================================================================
   RESPONSIVE — Small Tablet / Large Phone (≤768px)
   ================================================================== */
@media (max-width: 768px) {
    body {
        overflow: hidden;
    }

    .nav-dots {
        right: 0.6rem;
    }

    .nav-dots ul {
        gap: 0.9rem;
    }

    .nav-dots li {
        width: 8px;
        height: 8px;
    }

    .nav-dots li .tooltip {
        display: none;
    }

    .section {
        padding: 1rem;
        padding-right: 2rem;
    }

    .section .content {
        padding: 1rem 0.5rem;
        padding-right: 0.75rem;
    }

    /* Hero — stack vertically */
    #hero .content {
        padding-right: 0;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        align-items: center;
    }

    .hero-text {
        text-align: center;
    }

    .cta-container {
        justify-content: center;
    }

    /* Profile picture — small, non-overlapping on mobile */
    .profile-picture-container {
        position: relative;
        right: auto;
        bottom: auto;
        justify-content: center;
        margin-bottom: 1.5rem;
        order: -1;
    }

    .profile-picture {
        width: 150px;
        position: static;
        filter: drop-shadow(2px 2px 0 rgba(110, 87, 224, 0.4));
        border-radius: 50%;
    }

    .profile-picture:hover {
        transform: scale(1.05);
    }

    .profile-picture-filter {
        border-radius: 50%;
    }

    .scroll-indicator {
        bottom: 1rem;
        font-size: 14px;
    }

    /* About */
    .about-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    /* Skills */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-category {
        padding: 1.25rem;
    }

    /* Carousel */
    .carousel-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .carousel-track {
        gap: 1rem;
    }

    /* Timeline */
    .timeline {
        padding-left: 2rem;
    }

    .timeline-dot {
        left: -2.5rem;
        width: 12px;
        height: 12px;
    }

    .timeline-item {
        margin-bottom: 1.25rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    /* Contact */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        font-size: 0.9rem;
    }

    .contact-item a {
        font-size: 0.85rem;
    }
}

/* ==================================================================
   RESPONSIVE — Phone (≤480px)
   ================================================================== */
@media (max-width: 480px) {
    /* Hide nav dots on very small screens */
    .nav-dots {
        display: none;
    }

    .section {
        padding: 0.75rem;
        padding-right: 0.75rem;
    }

    .section .content {
        padding: 0.75rem 0.25rem;
    }

    .cta-container {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 0.7rem 1.5rem;
    }

    /* Profile pic even smaller */
    .profile-picture {
        width: 120px;
    }

    /* About stats in a row still */
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Skills smaller padding */
    .skill-category {
        padding: 1rem;
    }

    /* Timeline even tighter */
    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-dot {
        left: -2rem;
        width: 10px;
        height: 10px;
        border-width: 2px;
    }

    .timeline-content {
        padding: 0.9rem;
    }

    /* Project cards full width */
    .project-card {
        min-width: 100%;
    }

    /* Contact links wrap */
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .contact-item i {
        font-size: 1.1rem;
    }
}

/* ==================================================================
   RESPONSIVE — Very Small (≤360px)
   ================================================================== */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }

    .profile-picture {
        width: 100px;
    }

    .nav-dots {
        right: 0.3rem;
    }

    .nav-dots li {
        width: 6px;
        height: 6px;
    }

    .nav-dots ul {
        gap: 0.7rem;
    }
}

/* ==================================================================
   RESPONSIVE — Desktop Large (≥1400px)
   ================================================================== */
@media (min-width: 1400px) {
    .section .content {
        max-width: 1400px;
    }

    .profile-picture {
        width: 600px;
    }
}
