/* 
   Responsive Design for runvital-club
   Mobile-first approach with breakpoint optimization
   Focus on maintaining glassmorphism effects across devices
*/

/* Tablet Styles */
@media (max-width: 1024px) {
    :root {
        --section-padding: 4rem 0;
        --grid-gap: 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-visual {
        order: -1;
    }

    .visual-container {
        transform: none;
        max-width: 400px;
        margin: 0 auto;
    }

    .floating-elements {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
    }

    .portfolio-item.featured {
        grid-row: 1 / 2;
        grid-column: 1 / 3;
        height: 300px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / 3;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .btn-cookie {
        width: 100%;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
        --container-max: 100%;
    }

    html {
        font-size: 14px;
    }

    /* Navigation */
    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--glass-border);
    }

    .nav-links.active {
        top: 100%;
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Sections */
    .section-container {
        padding: 0 1rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero-content {
        min-height: auto;
        gap: 2rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .portfolio-item {
        height: 250px;
    }

    .portfolio-item.featured {
        grid-column: 1;
        grid-row: auto;
        height: 300px;
    }

    .portfolio-overlay {
        padding: 1.5rem;
        transform: translateY(0);
        opacity: 1;
        background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.9));
    }

    /* About */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Contact */
    .contact-form-container {
        padding: 1.5rem;
    }

    .contact-details {
        gap: 1rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        grid-column: 1;
    }

    /* Cookie Banner */
    .cookie-content {
        padding: 1rem;
    }

    .cookie-options {
        gap: 0.75rem;
    }

    .cookie-option {
        flex-direction: row;
        align-items: center;
    }

    .cookie-desc {
        margin-left: 0;
        margin-top: 0.25rem;
    }

    /* Shapes */
    .hero-shapes .shape {
        display: none;
    }

    /* Glass effects adjustments for mobile */
    .glass-card {
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
    }

    .contact-form-container {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    :root {
        --section-padding: 2.5rem 0;
    }

    .section-container {
        padding: 0 0.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .service-card,
    .contact-form-container {
        padding: 1.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .cookie-content {
        padding: 0.75rem;
    }

    .cookie-header h3 {
        font-size: 1rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    /* Adjust floating cards for very small screens */
    .float-card {
        padding: 0.75rem;
        font-size: 0.75rem;
    }

    /* Simplified hover effects for touch devices */
    .service-card:hover,
    .portfolio-item:hover {
        transform: none;
    }

    .visual-container:hover {
        transform: none;
    }
}

/* Landscape Phone */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }

    .hero-visual {
        order: 1;
    }

    .hero-title {
        font-size: 2rem;
    }

    .nav-links.active {
        flex-direction: row;
        padding: 1rem 2rem;
        justify-content: center;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .glass-card {
        border-width: 0.5px;
    }

    .service-icon,
    .float-card {
        border-width: 0.5px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a202c;
        --bg-light: #2d3748;
        --text-primary: #f7fafc;
        --text-secondary: #e2e8f0;
        --text-light: #cbd5e0;
        --glass-bg: rgba(45, 55, 72, 0.3);
        --glass-border: rgba(255, 255, 255, 0.1);
    }

    .header {
        background: rgba(26, 32, 44, 0.9);
    }

    .hero {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    }

    .form-input,
    .form-textarea {
        background: rgba(45, 55, 72, 0.5);
        color: var(--text-primary);
    }

    .form-input:focus,
    .form-textarea:focus {
        background: rgba(45, 55, 72, 0.8);
    }
}

/* Print Styles */
@media print {
    .header,
    .cookie-banner,
    .hero-shapes,
    .floating-elements {
        display: none;
    }

    .hero-visual,
    .about-visual {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .glass-card {
        background: white;
        border: 1px solid #e2e8f0;
    }

    .section-title {
        background: none;
        -webkit-text-fill-color: initial;
        color: black;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .float-card {
        animation: none;
    }

    .shape {
        animation: none;
    }

    .visual-container {
        transform: none;
    }

    .visual-container:hover {
        transform: none;
    }

    * {
        transition: none !important;
    }
}
