/* State Island V - Responsive CSS */

/* === MOBILE FIRST APPROACH === */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    :root {
        --container-max: 1600px;
        --container-padding: 40px;
    }
    
    .hero-title {
        font-size: 6.5rem;
    }
    
    .section {
        padding: 120px 0;
    }
}

/* Desktop (1024px - 1439px) */
@media (max-width: 1439px) {
    :root {
        --container-max: 1200px;
        --container-padding: 30px;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (max-width: 1023px) {
    :root {
        --container-padding: 25px;
        --section-padding: 60px 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 2rem 2rem;
        gap: 1rem;
        transition: right var(--transition-smooth);
        border-left: 1px solid var(--border-glass);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .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(7px, -6px);
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Tablet Portrait (600px - 767px) */
@media (max-width: 767px) {
    :root {
        --container-padding: 20px;
        --section-padding: 50px 0;
    }
    
    .hero {
        height: 80vh;
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .btn {
        min-width: 200px;
        padding: 14px 20px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .glass-card {
        padding: 1.2rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    h3 { font-size: clamp(1.4rem, 5vw, 2rem); }
}

/* Mobile Large (480px - 599px) */
@media (max-width: 599px) {
    :root {
        --container-padding: 16px;
        --section-padding: 40px 0;
    }
    
    .nav-container {
        padding: 0.8rem 16px;
    }
    
    .nav-logo {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
        padding: 80px 1rem 2rem;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .status-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .glass-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
}

/* Mobile Small (320px - 479px) */
@media (max-width: 479px) {
    :root {
        --container-padding: 12px;
        --section-padding: 30px 0;
    }
    
    .hero {
        height: 60vh;
        min-height: 500px;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 15vw, 3rem);
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .btn {
        min-width: 180px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .glass-card {
        padding: 0.8rem;
        border-radius: 10px;
    }
    
    .section-title::after {
        width: 60px;
        height: 2px;
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        padding: 70px 0.8rem 1rem;
    }
    
    .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
}

/* === LANDSCAPE ORIENTATION === */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: auto;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .section {
        padding: 40px 0;
    }
}

/* === HIGH DPI DISPLAYS === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero::before {
        background-size: 50px 50px;
    }
}

/* === TOUCH DEVICES === */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .glass-card:hover {
        transform: none;
    }
    
    .nav-link:hover {
        color: var(--text-secondary);
    }
    
    .nav-link:hover::before {
        width: 0;
    }
    
    .nav-link:active,
    .nav-link.active {
        color: var(--text-primary);
    }
    
    .nav-link:active::before,
    .nav-link.active::before {
        width: 80%;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero::before {
        animation: none;
    }
    
    .hero-title {
        animation: none;
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    }
    
    .status-badge {
        animation: none;
    }
    
    .status-dot {
        animation: none;
    }
}

/* === PRINT STYLES === */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    .nav-toggle,
    .hero-buttons,
    .footer {
        display: none;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
    }
    
    .glass-card {
        border: 1px solid #ccc;
        background: white;
    }
    
    a {
        text-decoration: underline;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .section {
        page-break-inside: avoid;
    }
}