/* Responsive Styles for NuuR - Cursor Hackathon Bahir Dar */

/* Base responsive adjustments */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .product-showcase, 
    .tech-showcase,
    .about-content {
        flex-direction: column;
    }
    
    .tech-details {
        margin-top: 2rem;
    }
    
    .about-image,
    .about-text {
        width: 100%;
    }
    
    /* Restore margins for larger screens */
    header .logo {
        margin-left: 100px;
    }
    
    header nav {
        margin-right: 100px;
    }
}

/* Tablet styles */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    header {
        padding: 1rem;
    }
    
    header .logo {
        margin-left: 20px;
    }
    
    header nav {
        margin-right: 20px;
    }
    
    nav ul {
        gap: 1.5rem;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    h3 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .hero-controls {
        margin-top: 2rem;
    }
    
    .hero-layout {
        flex-direction: column;
    }
    
    .area {
        margin-left: 0 !important;
    }
    
    .product-specs {
        flex-wrap: wrap;
    }
    
    .spec-card {
        width: calc(50% - 1rem);
        margin-bottom: 1rem;
    }
    
    .tech-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stats-container {
        flex-wrap: wrap;
    }
    
    .stat-item {
        width: calc(50% - 1rem);
        margin-bottom: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-logo {
        flex-wrap: wrap;
    }
    
    .partner {
        width: calc(33.33% - 1rem);
        margin-bottom: 1rem;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-form-container,
    .contact-info {
        width: 100%;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: space-between;
        width: 100%;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    header {
        padding: 1rem 0;
    }
    
    header .logo {
        margin-left: 15px;
    }
    
    header nav {
        margin-right: 15px;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section-title {
        margin-bottom: 0.25rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content {
        margin-top: -30px !important;
    }
    
    .product-card {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .product-showcase {
        gap: 1rem;
    }
    
    .spec-card {
        width: 100%;
    }
    
    .tech-highlights {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .partner {
        width: calc(50% - 1rem);
    }
    
    .info-card {
        margin-bottom: 1.5rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
    
    .link-group {
        width: calc(50% - 1rem);
        margin-bottom: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

/* Small mobile styles */
@media (max-width: 576px) {
    header {
        position: relative;
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    header .logo {
        font-size: 1.2rem;
        margin-left: 0;
    }
    
    header nav {
        margin-right: 0;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.95);
        padding: 1rem;
        display: none;
        z-index: var(--z-header);
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
        cursor: pointer;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .product-specs {
        flex-direction: column;
    }
    
    .product-cta {
        padding-top: 0;
    }
    
    .buton-rap {
        margin-top: 400px !important;
    }
    
    .contact-form button {
        width: 100%;
    }
    
    .partner {
        width: 100%;
    }
    
    .map-container {
        height: 250px;
    }
    
    .link-group {
        width: 100%;
    }
    
    /* Fix spacing for buttons and elements */
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    .product-card .product-image svg {
        width: 100%;
    }
    
    .partners-logo {
        justify-content: center;
    }
    
    .partner {
        padding: 10px;
        text-align: center;
    }
    
    .partner img {
        max-width: 80%;
    }
    
    /* Ensure hero content is visible */
    .hero .container {
        margin-top: 0 !important;
    }
}

/* Extra small mobile styles */
@media (max-width: 375px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .spec-icon {
        width: 40px;
        height: 40px;
    }
    
    .spec-text h4 {
        font-size: 1.1rem;
    }
    
    .spec-text p {
        font-size: 0.9rem;
    }
    
    .highlight-number {
        font-size: 2rem;
    }
    
    .highlight-card h4 {
        font-size: 1.1rem;
    }
    
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        bottom: 10px;
    }
    
    .tab-btn {
        font-size: 0.8rem;
        padding: 10px 5px;
    }
    
    /* Reduce button size */
    .buton-rap {
        transform: scale(0.8);
        margin-top: 300px !important;
    }
}

/* Fix for devices with notches and unusual aspect ratios */
@supports (padding: max(0px)) {
    header {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .container {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }
    
    .mobile-menu-toggle {
        margin-right: max(1rem, env(safe-area-inset-right));
    }
} 