/* IKAROS Website - Responsive CSS */

/* Tablet Styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    /* Navigation */
    .nav-container {
        padding: 0 2rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-contact {
        display: none;
    }

    /* Hero Section */
    .title-main {
        font-size: 3.5rem;
    }

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

    /* About Section */
    .about-content {
        gap: 3rem;
    }

    .about-text {
        padding-right: 1rem;
    }

    /* Contact Section */
    .contact-content {
        gap: 3rem;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    /* News Grid */
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Mobile Styles (max-width: 768px) */
@media screen and (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.25rem; }

    /* Header */
    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        gap: 2rem;
        transition: left var(--transition-medium);
        box-shadow: 0 4px 6px var(--shadow-light);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-contact {
        display: none;
    }

    /* Hero Section */
    .hero {
        height: 100vh;
        min-height: 500px;
    }

    .title-main {
        font-size: 3rem;
    }

    .title-sub {
        font-size: 1.25rem;
    }

    .hero-slogan {
        font-size: 1.25rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Stats Section */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

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

    /* Section Headers */
    .section-header {
        margin-bottom: 3rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .service-icon i {
        font-size: 1.75rem;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-text {
        padding-right: 0;
        order: 2;
    }

    .about-image {
        order: 1;
    }

    .about-story,
    .about-team {
        text-align: left;
    }

    /* Fleet Section */
    .fleet-description {
        padding: 0 1rem;
    }

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

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

    .carousel-btn.prev {
        left: 0.5rem;
    }

    .carousel-btn.next {
        right: 0.5rem;
    }

    /* News Section */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-image {
        height: 180px;
    }

    .news-content {
        padding: 1.25rem;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        gap: 1.5rem;
    }

    .contact-item {
        flex-direction: row;
        text-align: left;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .contact-icon i {
        font-size: 1.125rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-map {
        height: 300px;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    /* Back to Top Button */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

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

    .title-sub {
        font-size: 1.125rem;
    }

    .hero-slogan {
        font-size: 1.125rem;
    }

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

    /* Stats Section */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    /* Services Section */
    .service-card {
        padding: 1.25rem;
    }

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

    .service-icon i {
        font-size: 1.5rem;
    }

    /* Contact Section */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        margin: 0 auto;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9375rem;
    }

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

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.125rem;
    }

    /* News Section */
    .news-image {
        height: 160px;
    }

    .news-content {
        padding: 1rem;
    }

    .news-title {
        font-size: 1.25rem;
    }

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

/* Landscape Mobile Styles */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 400px;
    }

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

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

    .hero-slogan {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

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

    .hero-buttons {
        gap: 0.75rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.875rem;
        min-width: 120px;
    }

    .hero-scroll {
        display: none;
    }
}

/* High DPI Displays */
@media screen and (-webkit-min-device-pixel-ratio: 2), 
       screen and (min-resolution: 192dpi) {
    .hero-img,
    .founder-img,
    .news-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .header,
    .hero-scroll,
    .back-to-top,
    .nav-toggle,
    .language-switcher,
    .carousel-btn,
    .carousel-dots {
        display: none !important;
    }

    .hero {
        height: auto;
        min-height: auto;
        page-break-after: always;
    }

    .hero-content {
        position: static;
        color: black !important;
    }

    .section-title {
        page-break-after: avoid;
    }

    .service-card,
    .news-card,
    .contact-item {
        page-break-inside: avoid;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    a[href^="#"]:after {
        content: "";
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .loading-spinner {
        animation: none;
    }

    .scroll-indicator span {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #F9FAFB;
        --text-light: #D1D5DB;
        --bg-white: #1F2937;
        --bg-light: #111827;
        --border-light: #374151;
        --shadow-light: rgba(0, 0, 0, 0.3);
        --shadow-medium: rgba(0, 0, 0, 0.4);
    }

    .header {
        background-color: rgba(31, 41, 55, 0.95);
    }

    .header.scrolled {
        background-color: rgba(31, 41, 55, 0.98);
    }

    .nav-menu {
        background-color: var(--bg-white);
    }

    #loading-screen {
        background-color: var(--bg-white);
    }
}

/* Focus Styles for Accessibility */
.nav-link:focus,
.btn:focus,
.form-group input:focus,
.form-group textarea:focus,
.carousel-btn:focus,
.back-to-top:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--text-white);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-light);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Error States */
.error {
    border-color: #EF4444 !important;
    background-color: #FEF2F2;
}

.error-message {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success States */
.success {
    border-color: #10B981 !important;
    background-color: #F0FDF4;
}

.success-message {
    color: #10B981;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

