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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background: #ffffff;
    --background-secondary: #f8fafc;
    --background-accent: #f1f5f9;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Spacing System (Tailwind-inspired) */
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    --space-24: 6rem;      /* 96px */
    --space-32: 8rem;      /* 128px */
    
    /* Container System */
    --container-padding: var(--space-12);
    --container-max-width: 1600px;
    --column-gap: var(--space-16);
    --section-spacing: var(--space-8);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    scroll-behavior: smooth;
}

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

/* Header */
header {
    background: #004a7f;
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'); */
    opacity: 0.3;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/internet.png') no-repeat 66% center;
    background-size: auto 100%;
    opacity: 0.75;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.header-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.header-text .subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 8px;
}

.header-text .location {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 32px;
}

.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Desktop only - shift social links left */
@media (min-width: 901px) {
    .social-links {
        transform: translateX(-20%);
    }
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-link:active {
    transform: translateY(-1px) scale(1.02);
}

.social-link svg {
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
    display: block;
    margin: 0 auto;
    background: transparent;
    background-clip: content-box;
}

/* Enhanced Navigation - Hidden on Desktop */
nav {
    background: rgba(255, 255, 255, 0.98);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: none;
}

/* Show nav only on mobile */
@media (max-width: 900px) {
    nav {
        display: block;
    }
}

.nav-content {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    text-align: center;
    border: 2px solid transparent;
    background: var(--background);
    box-shadow: var(--shadow-sm);
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--background-accent);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-link:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Desktop Two-Column Layout - Show only on desktop */
.main-content {
    padding: var(--section-spacing) 0;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    display: block;
}

.main-content .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--column-gap);
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Hide desktop layout on mobile */
@media (max-width: 900px) {
    .main-content {
        display: none;
    }
}

.content-column {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: var(--space-8) var(--space-6);
}

.content-column h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: left;
    margin-top: var(--space-12);
    margin-bottom: var(--space-8);
    color: var(--text-primary);
}


/* Desktop Contact Section - Show only on desktop */
.contact-section {
    padding: 80px 0;
    background: var(--background-secondary);
    display: block;
}

/* Mobile Contact Footer - Hidden on desktop */
footer {
    display: none;
}

/* Responsive contact sections */
@media (max-width: 900px) {
    .contact-section {
        display: none;
    }
    
    footer {
        display: block;
    }
    
    footer section {
        scroll-margin-top: 80px;
    }
}

/* Mobile-only sections - Hidden on desktop */
section {
    display: none;
}

/* Show sections only on mobile */
@media (max-width: 900px) {
    section {
        display: block;
        padding: var(--space-4) 0;
        margin-top: 0;
        scroll-margin-top: 80px; /* Account for sticky nav */
        background: var(--background); /* Consistent white background */
    }
    
    section:first-of-type {
        padding-top: var(--space-12);
    }
    
    /* Ensure section titles are visible */
    .section-title {
        padding-top: 0;
        margin-top: 0;
        margin-bottom: var(--space-4);
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-8);
    color: var(--text-primary);
}


/* Resume Highlights */
.highlights-grid {
    display: block;
}

.highlight-card {
    background: transparent;
    border-radius: 0;
    padding: var(--space-6) 0;
    box-shadow: none;
    transition: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.highlight-card:last-child {
    border-bottom: none;
}

.highlight-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}


.highlight-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.highlight-title {
    font-size: 1.1rem;
    font-weight: 450;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.highlight-company {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: var(--space-1);
    font-size: 0.95rem;
}

.highlight-period {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: var(--space-3);
}

.highlight-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Experience Toggle Buttons - Hidden on desktop, shown on mobile */
.experience-toggle {
    display: none;
    justify-content: center;
    margin-top: var(--space-8);
    gap: var(--space-3);
}

/* Show toggle buttons only on mobile */
@media (max-width: 900px) {
    .experience-toggle {
        display: flex;
    }
}

.experience-toggle .btn {
    align-items: center;
    gap: var(--space-2);
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
}

/* Ensure show-less buttons start hidden */
.show-less-btn {
    display: none !important;
}

.show-more-btn {
    display: inline-flex !important;
}

/* When toggled, override the defaults */
.show-less-btn.active {
    display: inline-flex !important;
}

.show-more-btn.hidden {
    display: none !important;
}

.experience-toggle .btn:hover {
    transform: translateY(-2px);
}

.experience-toggle .btn svg {
    transition: transform 0.3s ease;
    pointer-events: none;
}

.experience-toggle .show-more-btn svg {
    transform: rotate(180deg);
}

.experience-toggle .show-less-btn svg {
    transform: rotate(0deg);
}

/* Additional experience items - shown on desktop, hidden on mobile by default */
.additional-experience {
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

/* Hide additional experience on mobile by default */
@media (max-width: 900px) {
    .additional-experience {
        display: none;
        opacity: 0;
        transform: translateY(-10px);
    }
    
    .additional-experience.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
}

/* LinkedIn Connect Button */
.linkedin-connect {
    display: flex;
    justify-content: center;
    padding: var(--space-6) 0 var(--space-16) 0;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.linkedin-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.linkedin-btn .external-icon {
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.linkedin-btn:hover .external-icon {
    transform: translateX(2px) translateY(-2px);
    opacity: 1;
}

/* Desktop contact section styling */
@media (min-width: 901px) {
    .contact-section .section-title {
        font-size: 2.5rem;
        font-weight: 600;
        text-align: center;
        margin-bottom: var(--space-8);
        color: var(--text-primary);
    }
}

/* Remove old contact card styles */
.contact-card {
    display: none;
}

.contact-title,
.contact-description,
.contact-email {
    display: none;
}

/* Pets Section */
.pets-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pet-card {
    background: var(--background);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    width: 100%;
    text-align: center;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.pet-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pet-image {
    width: 100%;
    height: 300px;
    margin: 0;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    border: none;
}

.pet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pet-card:hover .pet-image img {
    transform: scale(1.05);
}

.pet-content {
    padding: 24px;
}

.pet-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Enhanced Projects */
.projects-grid {
    display: grid;
    gap: 40px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--background);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    min-height: 400px;
}

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


.project-image {
    position: relative;
    overflow: hidden;
    background: var(--background-accent);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Special handling for Fastly logo - only on small devices */
@media (max-width: 900px) {
    .project-image img[src*="Fastly_logo_2.svg"] {
        object-fit: contain;
        object-position: center;
        padding: 20px;
    }
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.project-link {
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-link:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.05);
}

.project-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 450;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.3;
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-tag {
    background: var(--background-accent);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    min-height: 44px;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--background);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Contact */
.contact-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Mobile contact section title styling */
@media (max-width: 900px) {
    .contact-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
}

.contact-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-email:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Enhanced Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    :root {
        --container-padding: var(--space-6);
        --column-gap: var(--space-12);
        --section-spacing: var(--space-2);
    }
    
    header {
        padding: var(--space-16) 0;
    }
    
    .header-text h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .content-column {
        padding: var(--space-6) var(--space-4);
    }
}

/* Tablets and below */
@media (max-width: 900px) {
    .container {
        padding: 0 var(--container-padding);
    }
    
    header {
        padding: 50px 0;
    }
    
    header::after {
        background: url('../assets/internet.png?quality=medium') no-repeat right center;
        background-size: 40% auto;
        width: 100%;
        height: 100%;
        opacity: 0.25;
    }
    
    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .header-text h1 {
        font-size: 2.75rem;
        line-height: 1.1;
        margin-bottom: 12px;
    }

    .header-text .subtitle {
        font-size: 1.35rem;
        margin-bottom: 12px;
    }
    
    .header-text .location {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
        order: -1;
        margin: 0 auto;
        display: block;
    }

    
    .content-column h2 {
        font-size: 2.25rem;
        text-align: center;
        margin-bottom: var(--space-6);
    }
    
    
    .nav-content {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    
    .nav-link {
        padding: 12px 20px;
        font-size: 1rem;
        min-width: 44px;
        text-align: center;
    }

    .section-title {
        font-size: 2.25rem;
        margin-bottom: var(--space-12);
    }

    .highlights-grid {
        display: block;
    }
    
    .highlight-card {
        padding: var(--space-5) 0;
    }

    .project-card {
        flex-direction: column;
    }
    
    .project-content {
        padding: 32px;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 0.95rem;
    }

    section {
        padding: 35px 0;
    }

    .contact-card {
        margin: 0 20px;
        padding: 40px 32px;
    }
    
    .contact-title {
        font-size: 1.75rem;
    }
    
    .contact-description {
        font-size: 1rem;
    }
}

/* Large mobile devices */
@media (max-width: 600px) {
    :root {
        --container-padding: var(--space-4);
        --section-spacing: var(--space-12);
    }
    
    header {
        padding: 40px 0;
    }
    
    .header-content {
        gap: 28px;
    }
    
    .header-text h1 {
        font-size: 2.25rem;
        margin-bottom: 8px;
    }
    
    .header-text .subtitle {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .social-links {
        gap: 12px;
        justify-content: center;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
    
    .profile-photo {
        width: 130px;
        height: 130px;
        margin: 0 auto;
        display: block;
    }
    
    .nav-content {
        gap: 16px;
    }
    
    .nav-link {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .highlight-card {
        padding: var(--space-4) 0;
    }
    
    .highlight-title {
        font-size: 1.15rem;
    }
    
    .project-content {
        padding: 28px;
    }
    
    .project-title {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }
    
    .project-tech {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .tech-tag {
        padding: 4px 10px;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .contact-card {
        margin: 0 18px;
        padding: 32px 24px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    :root {
        --container-padding: var(--space-4);
        --section-spacing: var(--space-10);
    }
    
    header {
        padding: 35px 0;
    }
    
    .header-content {
        gap: 24px;
    }

    .header-text h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .header-text .subtitle {
        font-size: 1.1rem;
    }
    
    .header-text .location {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .profile-photo {
        width: 110px;
        height: 110px;
        margin: 0 auto;
        display: block;
    }
    
    nav {
        padding: 12px 0;
        display: block;
    }
    
    .nav-content {
        gap: 12px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 35px;
        line-height: 1.5;
    }
    
    .highlights-grid {
        gap: 20px;
    }
    
    .highlight-card {
        padding: var(--space-4) 0;
    }
    
    .highlight-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .highlight-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .highlight-company {
        font-size: 0.9rem;
    }
    
    .highlight-period {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .highlight-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .project-content {
        padding: 24px;
    }
    
    .project-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .project-description {
        font-size: 0.9rem;
        margin-bottom: 18px;
        line-height: 1.5;
    }
    
    .project-tech {
        gap: 6px;
        margin-bottom: 18px;
    }
    
    .tech-tag {
        padding: 3px 8px;
        font-size: 0.8rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        justify-content: center;
        width: 100%;
    }
    
    section {
        padding: 40px 0;
    }
    
    .contact-card {
        margin: 0 16px;
        padding: 28px 20px;
    }
    
    .contact-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .contact-description {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    .contact-email {
        padding: 14px 20px;
        font-size: 0.9rem;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    :root {
        --container-padding: var(--space-3);
        --section-spacing: var(--space-8);
    }
    
    .header-text h1 {
        font-size: 1.8rem;
    }
    
    .header-text .subtitle {
        font-size: 1rem;
    }
    
    .profile-photo {
        width: 100px;
        height: 100px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .highlight-card {
        padding: var(--space-3) 0;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .contact-card {
        margin: 0 14px;
        padding: 24px 16px;
    }
}

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

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