/* Root Variables */
:root {
    /* UW Inspired Colors */
    --uw-purple: #4B2E83;
    --uw-gold: #E8B800;
    --uw-metallic-gold: #B7A57A;
    --uw-light-purple: #6B5B95;
    --uw-dark-purple: #32175F;

    /* Extended Palette */
    --text-primary: #1A1A2E;
    --text-secondary: #4A4A68;
    --text-light: #8B8B9F;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F7FF;
    --bg-accent: #FFF9E6;
    --border-light: rgba(75, 46, 131, 0.1);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-2xl: 8rem;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 1.1rem;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--uw-purple), var(--uw-light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--uw-purple);
}

.nav-link.cta-button {
    background: linear-gradient(135deg, var(--uw-purple), var(--uw-light-purple));
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-link.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(75, 46, 131, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--uw-purple);
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-2xl) 0;
    padding-top: calc(var(--space-2xl) + 80px);
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-accent) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--uw-purple), var(--uw-light-purple));
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--uw-gold), var(--uw-metallic-gold));
    bottom: -150px;
    left: -100px;
    animation-delay: 5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--uw-light-purple), var(--uw-purple));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--uw-gold), var(--uw-metallic-gold));
    color: var(--uw-dark-purple);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    animation: fadeInUp 1s ease;
}

.hero-name {
    display: block;
    background: linear-gradient(135deg, var(--uw-purple), var(--uw-light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-surname {
    display: block;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 1.2s ease;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

.btn {
    padding: 1.1rem 2.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--uw-purple), var(--uw-light-purple));
    color: white;
    box-shadow: 0 10px 30px rgba(75, 46, 131, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(75, 46, 131, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--uw-purple);
    border: 2px solid var(--uw-purple);
}

.btn-secondary:hover {
    background: var(--uw-purple);
    color: white;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--uw-purple);
    border: 2px solid var(--uw-purple);
}

.btn-outline:hover {
    background: var(--uw-purple);
    color: white;
}

.hero-image {
    position: relative;
    animation: fadeInUp 1.6s ease;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    object-position: top center;
}

.image-decoration {
    position: absolute;
    top: -15px;
    right: -15px;
    bottom: -15px;
    left: -15px;
    background: linear-gradient(135deg, var(--uw-purple), var(--uw-gold));
    border-radius: 25px;
    z-index: -1;
    opacity: 0.5;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.03) rotate(2deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--uw-purple);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--uw-purple);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Sections */
section {
    padding: var(--space-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-tag {
    display: inline-block;
    color: var(--uw-purple);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    color: var(--text-primary);
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.about-card {
    background: white;
    padding: var(--space-lg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(75, 46, 131, 0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--uw-purple), var(--uw-light-purple));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: white;
}

.card-icon svg {
    width: 36px;
    height: 36px;
}

.about-card h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1.1rem;
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding-left: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--uw-purple), var(--uw-gold));
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-xl);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -45px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--uw-purple);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(75, 46, 131, 0.2);
}

.timeline-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--uw-gold), var(--uw-metallic-gold));
    color: var(--uw-dark-purple);
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.timeline-content {
    background: white;
    padding: var(--space-lg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    font-size: 1.75rem;
    color: var(--uw-purple);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.timeline-content ul {
    list-style: none;
    margin-bottom: var(--space-md);
}

.timeline-content li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.timeline-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--uw-gold);
    font-weight: bold;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag {
    background: var(--bg-secondary);
    color: var(--uw-purple);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Projects Grid */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(75, 46, 131, 0.15);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--uw-purple), var(--uw-light-purple));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:nth-child(2) .project-image {
    background: linear-gradient(135deg, var(--uw-gold), var(--uw-metallic-gold));
}

.project-card:nth-child(3) .project-image {
    background: linear-gradient(135deg, var(--uw-light-purple), var(--uw-dark-purple));
}

.project-overlay {
    text-align: center;
}

.project-category {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
}

.project-content {
    padding: var(--space-lg);
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
    font-size: 1.05rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    background: var(--bg-accent);
    color: var(--uw-dark-purple);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.skill-category {
    background: white;
    padding: var(--space-lg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.skill-category h3 {
    font-size: 1.5rem;
    color: var(--uw-purple);
    margin-bottom: var(--space-md);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-item {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-accent));
    color: var(--uw-dark-purple);
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.skill-item:hover {
    border-color: var(--uw-purple);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(75, 46, 131, 0.2);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--uw-dark-purple), var(--uw-purple));
    color: white;
    text-align: center;
    padding: var(--space-2xl) 0;
}

.contact-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    margin-bottom: var(--space-md);
}

.contact-content p {
    font-size: 1.35rem;
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.contact .btn-primary {
    background: white;
    color: var(--uw-purple);
}

.contact .btn-primary:hover {
    background: var(--uw-gold);
    color: var(--uw-dark-purple);
}

.contact .btn-outline {
    border-color: white;
    color: white;
}

.contact .btn-outline:hover {
    background: white;
    color: var(--uw-purple);
}

/* Footer */
.footer {
    background: var(--uw-dark-purple);
    color: white;
    text-align: center;
    padding: var(--space-md) 0;
}

.footer p {
    opacity: 0.8;
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN - ALL SCREEN SIZES
   ============================================ */

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-content {
        max-width: 1320px;
        gap: var(--space-2xl);
    }

    .image-container {
        max-width: 480px;
    }
}

/* Large Screens / Laptops (1024px - 1199px) */
@media (max-width: 1199px) {
    html {
        font-size: 17px;
    }

    .nav-menu {
        gap: var(--space-md);
    }

    .hero-content {
        gap: var(--space-lg);
    }

    .image-container {
        max-width: 380px;
    }

    .about-content {
        gap: var(--space-md);
    }

    .projects-grid {
        gap: var(--space-md);
    }

    .skills-container {
        gap: var(--space-md);
    }
}

/* Tablets (768px - 1023px) */
@media (max-width: 1023px) {
    html {
        font-size: 16px;
    }

    :root {
        --space-2xl: 5rem;
        --space-xl: 3.5rem;
        --space-lg: 2rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: white;
        width: 280px;
        height: 100vh;
        text-align: left;
        transition: 0.3s ease;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.1);
        padding: 100px var(--space-md) var(--space-md);
        gap: var(--space-sm);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.2rem;
    }

    .nav-link.cta-button {
        text-align: center;
        margin-top: var(--space-sm);
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }

    .hero-image {
        order: -1;
    }

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

    .image-container {
        max-width: 350px;
    }

    .about-content {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .timeline {
        padding-left: 50px;
    }

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

    .timeline-item::before {
        left: -40px;
    }

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

    .skills-container {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Large Mobile (576px - 767px) */
@media (max-width: 767px) {
    html {
        font-size: 16px;
    }

    :root {
        --space-2xl: 4rem;
        --space-xl: 3rem;
        --space-lg: 1.75rem;
        --space-md: 1.25rem;
    }

    .container {
        padding: 0 var(--space-sm);
    }

    .nav-container {
        padding: 0 var(--space-sm);
    }

    .navbar {
        padding: 1rem 0;
    }

    .hero {
        padding-top: calc(var(--space-2xl) + 60px);
        min-height: auto;
        padding-bottom: var(--space-xl);
    }

    .hero-content {
        padding: 0 var(--space-sm);
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-tag {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .btn {
        padding: 0.9rem 1.75rem;
        font-size: 1rem;
    }

    .image-container {
        max-width: 300px;
    }

    .image-decoration {
        top: -10px;
        right: -10px;
        bottom: -10px;
        left: -10px;
    }

    .scroll-indicator {
        display: none;
    }

    .section-header {
        margin-bottom: var(--space-lg);
    }

    .about-card {
        padding: var(--space-md);
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon svg {
        width: 30px;
        height: 30px;
    }

    .about-card h3 {
        font-size: 1.5rem;
    }

    .timeline {
        padding-left: 35px;
    }

    .timeline::before {
        left: 8px;
    }

    .timeline-item::before {
        left: -30px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: var(--space-md);
    }

    .timeline-content h3 {
        font-size: 1.35rem;
    }

    .timeline-content h4 {
        font-size: 1rem;
    }

    .timeline-content li {
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .project-image {
        height: 180px;
    }

    .project-content {
        padding: var(--space-md);
    }

    .project-content h3 {
        font-size: 1.35rem;
    }

    .skill-category {
        padding: var(--space-md);
    }

    .skill-category h3 {
        font-size: 1.35rem;
    }

    .contact-content p {
        font-size: 1.15rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    .contact .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Small Mobile (up to 575px) */
@media (max-width: 575px) {
    html {
        font-size: 15px;
    }

    :root {
        --space-2xl: 3rem;
        --space-xl: 2.5rem;
        --space-lg: 1.5rem;
        --space-md: 1rem;
        --space-sm: 0.75rem;
    }

    .nav-logo {
        font-size: 1.5rem;
    }

    .nav-menu {
        width: 100%;
        padding: 80px var(--space-md) var(--space-md);
    }

    .hero-title {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .image-container {
        max-width: 260px;
    }

    .section-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }

    .section-tag {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .about-card h3 {
        font-size: 1.35rem;
    }

    .about-card p {
        font-size: 1rem;
    }

    .timeline-content h3 {
        font-size: 1.25rem;
    }

    .tag {
        font-size: 0.85rem;
        padding: 0.3rem 0.75rem;
    }

    .project-tags span {
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
    }

    .skill-item {
        font-size: 0.9rem;
        padding: 0.45rem 0.9rem;
    }

    .contact-content h2 {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }

    .contact-content p {
        font-size: 1.05rem;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    html {
        font-size: 14px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .image-container {
        max-width: 220px;
    }

    .btn {
        padding: 0.8rem 1.25rem;
        font-size: 0.95rem;
    }

    .timeline {
        padding-left: 25px;
    }

    .timeline::before {
        left: 5px;
    }

    .timeline-item::before {
        left: -23px;
        width: 10px;
        height: 10px;
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-xl) 0;
        padding-top: calc(var(--space-xl) + 70px);
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .hero-image {
        order: 0;
    }

    .hero-cta {
        justify-content: flex-start;
    }

    .image-container {
        max-width: 280px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }

    .about-card:hover {
        transform: none;
    }

    .project-card:hover {
        transform: none;
    }

    .skill-item:hover {
        transform: none;
    }

    .nav-link.cta-button:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .scroll-indicator,
    .hero-background {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    section {
        padding: 1.5rem 0;
        page-break-inside: avoid;
    }

    .contact {
        background: none;
        color: var(--text-primary);
    }
}