/* Responsive Styles for ClyrLabs Website */

/* Large Desktops and Laptops (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-text h1 {
        font-size: 3.8rem;
    }
}

/* Medium Devices, Desktops (992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-text h1 {
        font-size: 3.2rem;
    }
    
    h2 {
        font-size: 2.3rem;
    }
}

/* Small Devices, Tablets (768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.6rem;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 3rem;
        max-width: 100%;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        margin-bottom: 2rem;
        order: -1;
    }
    
    .about-text {
        max-width: 100%;
    }
    
    .service-card, .feature-item {
        padding: 1.5rem;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
}

/* Extra Small Devices, Phones (576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero {
        padding-top: 7rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 3rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 80%;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        margin-bottom: 2rem;
        order: -1;
    }
    
    .service-card, .feature-item {
        padding: 1.5rem;
    }
    
    .services-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
    }
}

/* Extra Extra Small Devices, Phones (575px and down) */
@media (max-width: 575px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding-top: 6rem;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 2rem;
        max-width: 100%;
    }
    
    .hero-image img {
        max-width: 250px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .about-image {
        margin-bottom: 1.5rem;
        order: -1;
    }
    
    .about-image img {
        max-width: 280px;
    }
    
    .service-card, .feature-item {
        padding: 1.2rem;
    }
    
    .services-grid, .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta {
        padding: 3rem 0;
    }
    
    .cta h2 {
        font-size: 1.6rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-logo img {
        height: 50px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Adjust animations for mobile */
    .shape-1, .shape-2, .shape-3 {
        animation-duration: 25s;
    }
    
    @keyframes float-slow {
        0% {
            transform: translateY(0) rotate(0deg) scale(0.8);
        }
        50% {
            transform: translateY(-15px) rotate(180deg) scale(0.9);
        }
        100% {
            transform: translateY(0) rotate(360deg) scale(0.8);
        }
    }
}

/* Mobile Navigation Menu (all screen sizes) */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--white);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin-bottom: 2rem;
}

.mobile-nav-links a {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--accent-cyan);
}

/* Header Scroll Effect */
.header-scroll {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255,255,255,0.95);
    padding: 0.7rem 0;
}
