/**
 * Responsive Stylesheet - PC Soft Solution
 * Mobile-First Responsive Design
 */

/* ===========================
   LARGE DEVICES (Desktops, 1200px and up)
   =========================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ===========================
   MEDIUM DEVICES (Tablets, 768px to 1199px)
   =========================== */
@media (max-width: 1199px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .hero-image-column {
        min-height: 350px;
    }
    
    .hero-image-wrapper {
        max-height: 400px;
        max-width: 500px;
    }
    
    .hero-content {
        gap: 50px;
    }
}

/* ===========================
   SMALL DEVICES (Large phones, 576px to 767px)
   =========================== */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Navigation */
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition-fast);
        box-shadow: var(--shadow-md);
        padding: 20px 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
    }
    
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    /* Testimonials Grid */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 30px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Back to Top */
    .back-to-top {
        right: 30px;
        bottom: 100px;
    }
}

/* ===========================
   EXTRA SMALL DEVICES (Small phones, below 576px)
   =========================== */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Header */
    .top-bar {
        display: none;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 50px;
        min-height: auto;
        overflow-x: hidden;
    }
    
    .hero > .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-text {
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }
    
    /* Separate Image Column - Mobile */
    .hero-image-column {
        order: -1;  /* Image on top on mobile */
        width: 100%;
        margin-bottom: 20px;
        min-height: auto;
    }
    
    .hero-image-wrapper {
        max-height: 280px;
        width: 100%;
        max-width: 100%;
        border-radius: 15px;
    }
    
    .hero-main-image {
        max-width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
        word-break: break-word;
        overflow-wrap: break-word;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-text .tagline {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
        width: 100%;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        background: var(--white);
        padding: 12px;
        border-radius: 8px;
        box-shadow: var(--shadow-sm);
        min-width: 0;
    }
    
    .stat-number {
        font-size: 1.6rem;
        margin: 0;
        white-space: normal;
        flex-shrink: 0;
    }
    
    .stat-label {
        margin: 0;
        font-size: 0.85rem;
    }
    
    /* Buttons */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    /* Services */
    .service-card {
        padding: 30px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    /* Products */
    .product-card {
        margin-bottom: 20px;
    }
    
    .product-image {
        height: 180px;
        font-size: 3rem;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    /* About Section */
    .about {
        padding: 60px 0;
        overflow-x: hidden !important;
    }
    
    .about > .container {
        max-width: 100% !important;
        padding: 0 15px;
    }
    
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
        width: 100%;
    }
    
    .about-image {
        order: -1;
        width: 100%;
        text-align: center;
    }
    
    .about-image img {
        max-width: 100% !important;
        height: auto;
        border-radius: 15px;
        display: inline-block;
        margin: 0 auto;
    }
    
    .about-text {
        width: 100% !important;
        text-align: center !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 15px;
        text-align: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: center !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .about-features {
        margin: 20px auto;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center;
        width: 100%;
    }
    
    .about-feature {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px;
        margin: 0 auto 20px auto;
        width: 100%;
        max-width: 400px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .about-feature-icon {
        margin: 0 auto !important;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .about-feature-text {
        text-align: center !important;
        width: 100%;
    }
    
    .about-feature-text h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
        text-align: center !important;
    }
    
    .about-feature-text p {
        font-size: 0.9rem;
        text-align: center !important;
        word-wrap: break-word;
    }
    
    .btn-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: inline-block;
    }
    
    /* Why Choose Us */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .feature-box {
        padding: 25px;
    }
    
    /* CTA Section */
    .cta {
        padding: 50px 0;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-card::before {
        font-size: 4rem;
        top: 10px;
        left: 15px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-col h3 {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    /* Page Header */
    .page-header {
        padding: 100px 0 50px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
}

/* ===========================
   DESKTOP ENHANCEMENTS
   =========================== */
@media (min-width: 768px) {
    .hover-lift {
        transition: var(--transition-medium);
    }
    
    .hover-lift:hover {
        transform: translateY(-5px);
    }
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
    body {
        background: white;
    }
    
    .header,
    .footer,
    .whatsapp-float,
    .back-to-top,
    .btn,
    .hero-image {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ===========================
   HIGH DPI DISPLAYS
   =========================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .feature-icon,
    .about-feature-icon {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ===========================
   REDUCED MOTION
   =========================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===========================
   DARK MODE SUPPORT (Optional)
   =========================== */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode support */
    /*
    :root {
        --white: #1a1a1a;
        --off-white: #2d2d2d;
        --text-dark: #f0f0f0;
        --text-light: #cccccc;
        --border-color: #404040;
        --light-blue: #1a3a5c;
    }
    */
}
