/* ================================================
   DATAGEEKS CLOUD - RESPONSIVE CSS
   Mobile-First Responsive Design
   ================================================ */

/* ================================================
   BREAKPOINTS
   ================================================ */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-content {
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0;
    }
    
    .hero-features .row {
        margin-top: 2rem;
    }
    
    .hero-features .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    /* Navigation */
    .navbar-nav {
        text-align: center;
        padding: 20px 0;
    }
    
    .navbar-nav .nav-item {
        margin: 5px 0;
    }
    
    .navbar-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }
    
    .navbar-buttons .btn {
        width: 100%;
    }
    
    /* Dropdown Menus */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        margin: 10px 0;
        border-radius: var(--border-radius-md);
    }
    
    .dropdown-item {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 15px 20px;
    }
    
    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        color: white !important;
    }
    
    /* Pricing Cards */
    .pricing-card {
        margin-bottom: 30px;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-top: 0;
    }
    
    .plan-switcher .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .plan-switcher .btn {
        border-radius: 0;
        width: 100%;
    }
    
    .plan-switcher .btn:first-child {
        border-radius: 25px 25px 0 0;
    }
    
    .plan-switcher .btn:last-child {
        border-radius: 0 0 25px 25px;
    }
    
    /* Contact Section */
    .contact-form-wrapper,
    .contact-info {
        padding: 2rem 1.5rem;
        margin-bottom: 30px;
    }
    
    /* Load Balancing Diagram */
    .load-balancing-diagram {
        padding: 1rem;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    /* Feature Cards */
    .feature-card,
    .addon-card,
    .cms-card {
        margin-bottom: 30px;
        padding: 1.5rem;
    }
    
    /* Operating Systems Section */
    .operating-systems-section::before {
        display: none; /* Hide rotating background on mobile */
    }
    
    .os-card {
        margin-bottom: 30px;
        padding: 1.5rem;
    }
    
    .os-versions {
        justify-content: center;
        gap: 5px;
    }
    
    .version-badge {
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    
    .hero-3d-graphics {
        width: 60%;
        top: 20%;
        right: 2%;
    }
    
    /* Payment Methods */
    .payment-logos {
        gap: 10px;
    }
    
    .payment-img {
        max-height: 40px;
    }
    
    /* Feature Highlights */
    .feature-highlight {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    /* About Section */
    .company-stats .row .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer .row > div {
        margin-bottom: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Section Padding */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        margin-top: 15px;
    }
}

/* ================================================
   Small devices (portrait tablets and large phones, 600px and up)
   ================================================ */

@media only screen and (min-width: 600px) and (max-width: 768px) {
    
    /* Typography */
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    /* Hero Section */
    .hero-buttons .btn {
        margin-right: 15px;
        margin-bottom: 15px;
    }
    
    .hero-features .col-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Navigation */
    .navbar-buttons {
        flex-direction: row;
    }
    
    /* Pricing */
    .plan-switcher .btn-group {
        flex-direction: row;
    }
    
    /* Feature Cards Grid */
    .row .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 30px;
    }
    
    /* Contact Section */
    .contact-form-wrapper,
    .contact-info {
        padding: 2.5rem 2rem;
    }
    
    /* About Stats */
    .company-stats .row .col-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* ================================================
   Medium devices (landscape tablets, 768px and up)
   ================================================ */

@media only screen and (min-width: 768px) and (max-width: 992px) {
    
    /* Hero Section */
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-content {
        padding-top: 100px;
    }
    
    /* Feature Highlights */
    .feature-highlight {
        flex-direction: row;
        text-align: left;
    }
    
    /* Pricing Cards */
    .pricing-card.featured {
        transform: scale(1.02);
    }
    
    /* Contact Section */
    .contact-form-wrapper {
        margin-bottom: 30px;
    }
    
    /* Navigation */
    .navbar-nav .nav-item {
        margin: 0 3px;
    }
}

/* ================================================
   Large devices (laptops/desktops, 992px and up)
   ================================================ */

@media only screen and (min-width: 992px) {
    
    /* Full desktop styles are in main CSS */
    
    /* Hero Section */
    .hero-title {
        font-size: 3.5rem;
    }
    
    /* Pricing Cards */
    .pricing-card.featured {
        transform: scale(1.05);
    }
    
    /* Feature Highlights */
    .feature-highlight {
        flex-direction: row;
        text-align: left;
    }
}

/* ================================================
   Extra large devices (large laptops and desktops, 1200px and up)
   ================================================ */

@media only screen and (min-width: 1200px) {
    
    /* Hero Section */
    .hero-title {
        font-size: 4rem;
    }
    
    /* Container */
    .container {
        max-width: 1200px;
    }
    
    /* Section Padding */
    section {
        padding: 100px 0;
    }
    
    /* Feature Cards Enhanced Hover */
    .feature-card:hover {
        transform: translateY(-15px);
    }
    
    .pricing-card:hover {
        transform: translateY(-15px);
    }
    
    .pricing-card.featured:hover {
        transform: scale(1.05) translateY(-10px);
    }
}

/* ================================================
   LANDSCAPE ORIENTATION
   ================================================ */

@media screen and (orientation: landscape) and (max-height: 500px) {
    
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-content {
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-features {
        margin-top: 2rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ================================================
   HIGH RESOLUTION DISPLAYS
   ================================================ */

@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min--moz-device-pixel-ratio: 2),
       only screen and (-o-min-device-pixel-ratio: 2/1),
       only screen and (min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
    
    /* Optimize for retina displays */
    .hero-video {
        image-rendering: -webkit-optimize-contrast;
    }
    
    .logo,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ================================================
   TOUCH DEVICES
   ================================================ */

@media (pointer: coarse) {
    
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 30px;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 12px 16px !important;
    }
    
    .back-to-top {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .pricing-card:hover,
    .addon-card:hover,
    .cms-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .nav-link:hover {
        transform: none;
    }
}

/* ================================================
   REDUCED MOTION
   ================================================ */

@media (prefers-reduced-motion: reduce) {
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-arrow,
    .loader-circle {
        animation: none;
    }
    
    .typed-text {
        animation: none;
    }
    
    .load-balancing-diagram svg * {
        animation: none;
    }
}

/* ================================================
   DARK MODE SUPPORT
   ================================================ */

@media (prefers-color-scheme: dark) {
    
    :root {
        --bg-white: #1a1a1a;
        --bg-light: #2d2d2d;
        --text-dark: #ffffff;
        --text-light: #b0b0b0;
        --text-muted: #888888;
    }
    
    body {
        background-color: var(--bg-white);
        color: var(--text-dark);
    }
    
    .pricing-card,
    .feature-card,
    .cms-card,
    .testimonial-card,
    .contact-form-wrapper,
    .contact-info,
    .modal-content {
        background: #2d2d2d;
        color: var(--text-dark);
    }
    
    .form-control {
        background: #3a3a3a;
        border-color: #555;
        color: var(--text-dark);
    }
    
    .form-control:focus {
        background: #3a3a3a;
        border-color: var(--accent-color);
    }
    
    .accordion-button {
        background: #2d2d2d;
        color: var(--text-dark);
    }
    
    .accordion-body {
        background: #2d2d2d;
        color: var(--text-light);
    }
}

/* ================================================
   PRINT STYLES
   ================================================ */

@media print {
    
    .header,
    .hero-section,
    .back-to-top,
    .cookie-banner,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .section-title {
        font-size: 18pt;
        color: black;
    }
    
    .pricing-card,
    .feature-card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .btn {
        border: 1px solid black;
        color: black;
        background: white;
    }
}

/* ================================================
   ACCESSIBILITY IMPROVEMENTS
   ================================================ */

/* Focus states */
.btn:focus,
.nav-link:focus,
.form-control:focus,
.accordion-button:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    
    :root {
        --primary-color: #000080;
        --accent-color: #008000;
        --text-dark: #000000;
        --text-light: #333333;
    }
    
    .btn {
        border-width: 3px;
    }
    
    .pricing-card,
    .feature-card {
        border: 2px solid #000;
    }
}

/* ================================================
   BROWSER-SPECIFIC FIXES
   ================================================ */

/* Safari */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        
        .hero-video-container {
            -webkit-transform: translateZ(0);
        }
        
        .hero-overlay {
            -webkit-transform: translateZ(0);
        }
        
        .backdrop-filter {
            -webkit-backdrop-filter: blur(10px);
        }
    }
}

/* Firefox */
@-moz-document url-prefix() {
    
    .hero-video {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .accordion-button::after {
        background-image: none;
    }
}

/* Internet Explorer 11 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    
    .hero-section {
        background: var(--primary-color);
    }
    
    .feature-card,
    .pricing-card {
        border: 1px solid #ddd;
    }
    
    .btn {
        border: 2px solid var(--primary-color);
    }
}

/* ================================================
   PERFORMANCE OPTIMIZATIONS
   ================================================ */

/* Reduce animations on slower devices */
@media (max-width: 768px) {
    
    .aos-animate {
        animation-duration: 0.3s !important;
    }
    
    .swiper-slide {
        transition-duration: 200ms !important;
    }
}

/* GPU acceleration for smooth animations */
.hero-content,
.pricing-card,
.feature-card,
.btn {
    will-change: transform;
}

/* Optimize images for different screen densities */
@media (-webkit-min-device-pixel-ratio: 1.5),
       (min-resolution: 144dpi) {
    
    /* Use higher resolution images for retina displays */
    .hero-image img,
    .about-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}