/* ===== Responsive Styles ===== */

/* Large screens / TV (1440px+) */
@media (min-width: 1440px) {
    :root {
        --container-max: 1400px;
    }

    .hero-name {
        font-size: 5rem;
    }

    .carousel-label {
        min-width: 180px;
    }
}

/* Desktop (1024px - 1440px) */
@media (max-width: 1440px) {
    .carousel-label {
        margin-left: var(--container-padding);
    }
}

/* Tablet landscape (1024px) */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

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

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

    .carousel-label {
        margin-left: var(--container-padding);
        min-width: 120px;
    }

    .hero {
        padding-top: 150px;
    }

    .nav-tagline {
        font-size: 0.7rem;
    }
}

/* Tablet portrait (768px) */
@media (max-width: 768px) {
    .hero {
        padding-top: 130px;
    }

    .articles-carousel {
        top: 80px;
        padding: var(--space-sm) var(--space-md);
    }

    .carousel-label {
        display: none;
    }

    .carousel-item {
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-md);
    }

    .carousel-items {
        gap: var(--space-lg);
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .highlights-features {
        gap: var(--space-sm);
    }

    .highlight-feature {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-md);
    }

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

    .nav-tagline {
        display: none;
    }

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

    .logo-symbol {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        margin-top: var(--space-sm);
        background: var(--bg-tertiary);
    }

    .nav-dropdown-trigger::after {
        display: none;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: var(--space-xl);
        width: 100%;
    }

    .stat {
        text-align: center;
        flex: 0 1 auto;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

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

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .about-skills-row {
        grid-template-columns: 1fr;
    }

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

    .timeline-marker {
        left: 0;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-date {
        margin-left: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-link {
        width: 100%;
        justify-content: center;
    }

    .hero-description {
        font-size: 1rem;
    }

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

/* Mobile (480px) */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }

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

    .articles-carousel {
        top: 70px;
    }

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

    .logo-symbol {
        font-size: 0.9rem;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
        flex-wrap: wrap;
    }

    .hero-greeting {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9375rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

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

    .section-title {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 0.9375rem;
    }

    .project-features {
        grid-template-columns: 1fr;
    }

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

    .carousel-item {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }

    .carousel-items {
        gap: var(--space-md);
    }

    .video-title {
        font-size: 0.875rem;
        padding: var(--space-md);
    }

    .highlights-features {
        flex-direction: column;
        align-items: center;
    }

    .hero-scroll {
        bottom: var(--space-xl);
    }

    .timeline-item {
        padding-left: var(--space-xl);
    }

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

/* Very small screens (360px) */
@media (max-width: 360px) {
    .hero-name {
        font-size: 1.75rem;
    }

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

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

    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }

    .carousel-item {
        font-size: 0.7rem;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--space-xl);
    }

    .hero-scroll {
        display: none;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: space-evenly;
        width: 100%;
    }
}
