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

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

:root {
    --primary-color: #0ea5e9;
    --secondary-color: #0284c7;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --background: #ffffff;
    --background-alt: #f0f9ff;
    --border-color: #bae6fd;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    font-variant-numeric: oldstyle-nums;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header & Navigation */
header {
    background-color: var(--background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

nav {
    padding: 1rem 0;
}

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

nav h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* Hero Section */
#hero {
    background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color), #3b82f6, #1d4ed8, #1e40af);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

#hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: white;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Terminal Animation */
.terminal-container {
    margin-bottom: 2rem;
    font-family: 'Courier New', 'Monaco', monospace;
}

.terminal-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.prompt {
    color: #00ff00;
    font-weight: bold;
}

.command {
    color: white;
    min-height: 1.4em;
}

.cursor {
    color: #00ff00;
    animation: blink 1s infinite;
    font-weight: bold;
}

.terminal-response {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    margin-bottom: 1rem;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

/* Sections */
section {
    padding: 4rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section should be visible immediately */
#hero {
    opacity: 1;
    transform: translateY(0);
}

section:nth-child(even) {
    background-color: var(--background-alt);
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: center;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 100px;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.15);
    border: 4px solid white;
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.2);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0;
}

.about-text .ai-experience {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(2, 132, 199, 0.05));
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-top: 1.5rem;
    position: relative;
}

.about-text .ai-experience::before {
    content: "🤖";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background: var(--background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.skill-category li:before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Professional Experience Section */
.experience-timeline {
    max-width: 900px;
    margin: 3rem auto 0;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    opacity: 0.3;
}

.experience-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--background);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-header h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.company-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.company {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.duration {
    background: var(--background-alt);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

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

.achievements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievements li {
    padding: 0.4rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.achievements li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Education Section */
.education-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.education-item {
    background: var(--background);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.education-item h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.education-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Projects Section - Carousel */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 2rem;
    padding: 0 60px;
}

.carousel {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    touch-action: pan-y; /* Allow vertical scrolling but handle horizontal touches */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.project-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.project-card {
    background: var(--background);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 480px;
    position: relative;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Project background images */
.project-card.usa-today-bg {
    background-image: url('./screenshots/data-collection-at-usa-today.png');
}

.project-card.karate-math-bg {
    background-image: url('./screenshots/karate-math-dojo.png');
}

.project-card.polly-lingual-bg {
    background-image: url('./screenshots/polly-lingual.png');
}

.project-card.que-onda-bg {
    background-image: url('./screenshots/que-onda-spanish.png');
}

/* Translucent overlay for content */
.project-content {
    background: rgba(26, 26, 26, 0.72);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: rem;
    height: auto;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.62);
    transition: background 0.3s ease, border 0.3s ease;
    text-align: left;
    align-self: flex-start;
    margin-top: auto;
    max-width: 70%;
}

.project-card h3 {
    font-size: 1.4rem;
    color: white;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.project-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 4px 0;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-start;
    margin: 0.5rem 0 0 0;
}

.tech-tag {
    background: rgba(128, 128, 128, 0.302);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 400;
    box-shadow: none;
    border: 1px solid rgba(128, 128, 128, 0.3);
}

.project-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-self: flex-start;
    margin-top: 0.62rem;
    border: none;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.project-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.carousel-button:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border-color);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 44px; /* Minimum touch target size for accessibility */
    min-height: 44px;
    position: relative;
}

.carousel-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: inherit;
    transition: inherit;
}

.carousel-dot:hover::before {
    background: var(--text-light);
    transform: translate(-50%, -50%) scale(1.1);
}

.carousel-dot.active {
    background: transparent;
}

.carousel-dot.active::before {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.3);
}

/* Contact Section */
.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

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

.contact-form-container {
    background: var(--background);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

.form-group label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--background);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

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

.form-group select {
    cursor: pointer;
}

.contact-submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.contact-submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.submit-icon {
    transition: transform 0.3s ease;
}

.contact-submit-btn:hover .submit-icon {
    transform: translateX(2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info > p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.05rem;
}

.contact-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.highlight-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.highlight-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.highlight-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Connect Section */
.connect-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.connect-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.connect-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.connect-card .icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.connect-info h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.connect-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        margin-top: 4rem;
    }

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

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

    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

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

    .nav-links a.active {
        background: var(--background-alt);
        color: var(--primary-color);
    }

    .nav-links a.active::after {
        display: none;
    }

    #hero h2 {
        font-size: 2rem;
    }

    .terminal-line {
        font-size: 1.2rem;
    }

    .terminal-response {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
        font-weight: 800;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .skills-grid,
    .connect-links {
        grid-template-columns: 1fr;
    }

    .experience-timeline::before {
        left: 15px;
    }

    .experience-item {
        padding-left: 50px;
    }

    .experience-item::before {
        left: 6px;
        width: 16px;
        height: 16px;
    }

    .company-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-image {
        position: static;
        order: -1;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .carousel-container {
        padding: 0 50px;
    }

    .carousel-button {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }

    .project-card {
        padding: 2rem 1.5rem;
        min-height: 480px;
    }

    .project-content {
        padding: 1.2rem;
        max-width: 90%;
    }

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

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

@media (max-width: 480px) {
    #hero {
        padding: 4rem 0;
    }

    #hero h2 {
        font-size: 1.5rem;
    }

    .terminal-line {
        font-size: 1rem;
    }

    .terminal-response {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    section {
        padding: 2rem 0;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    .contact-content {
        gap: 2rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .contact-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .highlight-item {
        padding: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
    }

    .carousel-container {
        padding: 0 40px;
    }

    .carousel-button {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }

    .project-card {
        padding: 1.5rem 1rem;
        min-height: 480px;
    }

    .project-content {
        padding: 1rem;
        max-width: 85%;
    }

    .project-card h3 {
        font-size: 1.1rem;
    }

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

/* Very small screens - hide carousel buttons for touch-only navigation */
@media (max-width: 440px) {
    .carousel-container {
        padding: 0 10px;
    }

    .carousel-button {
        display: none; /* Hide buttons on very small screens */
    }

    .project-card {
        min-height: 400px;
    }

    .project-content {
        padding: 0.8rem;
        max-width: 90%;
        gap: 0.3rem;
    }

    .project-card h3 {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 0.3rem;
    }

    .project-description {
        font-size: 0.75rem;
        line-height: 1.3;
        margin: 0.2rem 0;
    }

    .project-technologies {
        gap: 0.3rem;
        margin: 0.4rem 0 0 0;
    }

    .tech-tag {
        padding: 0.2rem 0.4rem;
        font-size: 0.6rem;
        border-radius: 8px;
    }

    .project-button {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        margin-top: 0.4rem;
        border-radius: 16px;
    }

    .carousel-dots {
        margin-top: 1.5rem;
        gap: 0.6rem;
    }

    .carousel-dot {
        min-width: 40px;
        min-height: 40px;
    }

    .carousel-dot::before {
        width: 12px;
        height: 12px;
    }
}

/* Ultra-small screens (320px and below) */
@media (max-width: 320px) {
    .carousel-container {
        padding: 0 15px;
        margin: 2rem auto 1.5rem;
    }

    .project-card {
        min-height: 260px;
        padding: 1rem 0.8rem;
    }

    .project-content {
        padding: 0.6rem;
        max-width: 95%;
        max-height: 140px;
        border-width: 1px;
    }

    .project-card h3 {
        font-size: 0.9rem;
        line-height: 1.1;
    }

    .project-description {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .tech-tag {
        padding: 0.15rem 0.3rem;
        font-size: 0.55rem;
    }

    .project-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    .carousel-dots {
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .carousel-dot {
        min-width: 36px;
        min-height: 36px;
    }

    .carousel-dot::before {
        width: 10px;
        height: 10px;
    }

    .tech-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Keyframes for animated gradient */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}
