/* ========================================
   PERRINE BORLÉE - Portfolio Website
   Responsive Stylesheet
   ======================================== */

/* ========================================
   Large Desktop (1400px+)
   ======================================== */

@media (min-width: 1400px) {
    :root {
        --container-max: 1320px;
    }

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

    .about-images {
        height: 600px;
    }
}

/* ========================================
   Desktop (1200px - 1399px)
   ======================================== */

@media (max-width: 1399px) {
    .about-images {
        height: 480px;
    }
}

/* ========================================
   Laptop (992px - 1199px)
   ======================================== */

@media (max-width: 1199px) {
    :root {
        --spacing-3xl: 5rem;
    }

    .about-content {
        gap: var(--spacing-xl);
    }

    .about-images {
        height: 420px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .contact-social {
        text-align: center;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-link-large:hover {
        transform: translateY(-4px);
    }
}

/* ========================================
   Tablet (768px - 991px)
   ======================================== */

@media (max-width: 991px) {
    :root {
        --navbar-height: 70px;
        --spacing-3xl: 4rem;
        --spacing-2xl: 3rem;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: calc(var(--navbar-height) + var(--spacing-lg)) var(--spacing-lg) var(--spacing-lg);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
        z-index: 5;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-link {
        font-size: 1.125rem;
        padding: var(--spacing-sm) 0;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .about-images {
        height: 400px;
        order: -1;
    }

    .about-image-main {
        width: 60%;
    }

    .about-image-secondary {
        width: 50%;
    }

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

    /* Portfolio Grid */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    /* Carousel */
    .carousel-slide img {
        height: 400px;
    }

    /* Contact */
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Mobile Large (576px - 767px)
   ======================================== */

@media (max-width: 767px) {
    :root {
        --spacing-3xl: 3.5rem;
        --spacing-2xl: 2.5rem;
        --spacing-xl: 2rem;
    }

    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Hero */
    .hero-title {
        font-size: 3rem;
    }

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

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

    .hero-social {
        gap: var(--spacing-sm);
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    /* About */
    .about-images {
        height: 350px;
    }

    .about-image-accent {
        width: 100px;
        height: 100px;
    }

    .about-intro {
        font-size: 1.1rem;
    }

    .about-stats {
        gap: var(--spacing-sm);
    }

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

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

    /* Carousel */
    .carousel-container {
        gap: var(--spacing-sm);
    }

    .carousel-slide img {
        height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        max-width: 400px;
        margin: 0 auto;
    }

    .filter-buttons {
        gap: var(--spacing-xs);
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        border-radius: var(--radius-md);
    }

    .modal-info {
        padding: var(--spacing-sm);
    }

    .modal-info h3 {
        font-size: 1rem;
    }
}

/* ========================================
   Mobile Small (< 576px)
   ======================================== */

@media (max-width: 575px) {
    :root {
        --spacing-3xl: 3rem;
        --spacing-2xl: 2rem;
        --spacing-xl: 1.5rem;
        --spacing-lg: 1.5rem;
        --spacing-md: 1rem;
    }

    /* Container */
    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        letter-spacing: 2px;
    }

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

    .hero-cta {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* About */
    .about-images {
        height: 300px;
    }

    .about-image-main {
        width: 65%;
        height: 65%;
    }

    .about-image-secondary {
        width: 55%;
        height: 45%;
    }

    .about-image-accent {
        width: 80px;
        height: 80px;
    }

    .about-skills {
        gap: 6px;
    }

    .skill-tag {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

    .stat {
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid var(--color-light-gray);
    }

    .stat:last-child {
        border-bottom: none;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: var(--spacing-xl);
    }

    .section-tag {
        font-size: 0.75rem;
    }

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

    /* Carousel */
    .carousel-slide img {
        height: 250px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

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

    /* Portfolio */
    .portfolio-info {
        padding: var(--spacing-sm);
    }

    .portfolio-title {
        font-size: 1rem;
    }

    .portfolio-play {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    /* Contact */
    .contact-card {
        padding: var(--spacing-sm);
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .contact-details h3 {
        font-size: 0.75rem;
    }

    .contact-details p {
        font-size: 0.9rem;
    }

    .social-link-large {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-md) 0;
    }

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

/* ========================================
   Very Small Screens (< 375px)
   ======================================== */

@media (max-width: 374px) {
    .hero-title {
        font-size: 2rem;
    }

    .about-images {
        height: 260px;
    }

    .about-image-accent {
        display: none;
    }

    h2 {
        font-size: 1.75rem;
    }

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

/* ========================================
   Landscape Mode for Mobile
   ======================================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-3xl) 0;
    }

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

    .hero-social {
        margin-bottom: var(--spacing-md);
    }

    .scroll-indicator {
        display: none;
    }
}

/* ========================================
   High DPI / Retina Displays
   ======================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp borders and shadows on retina displays */
    .navbar::before {
        border-bottom-width: 0.5px;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .navbar,
    .hero-social,
    .hero-cta,
    .scroll-indicator,
    .video-modal,
    .filter-buttons {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-lg);
    }

    .hero-background {
        display: none;
    }

    .hero-content {
        color: var(--color-black);
    }

    .hero-title,
    .hero-subtitle,
    .hero-description {
        color: var(--color-black) !important;
    }

    .section {
        padding: var(--spacing-lg) 0;
        page-break-inside: avoid;
    }

    .portfolio-item {
        break-inside: avoid;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: var(--color-gray);
    }
}

/* ========================================
   Dark Mode Support (Future)
   ======================================== */

@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode support
    :root {
        --color-white: #1a1a1a;
        --color-off-white: #242424;
        --color-light-gray: #333333;
        --color-gray: #888888;
        --color-dark-gray: #cccccc;
        --color-black: #ffffff;
    }

    .navbar::before {
        background: rgba(26, 26, 26, 0.9);
    }
    */
}
