/*
 * Ezziweb - Responsive Styles
 * Mobile-First Responsive Design
 */

/* ========================================
   Tablet Landscape (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.3rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .section-title {
        font-size: 2.3rem;
    }

    .stat-number {
        font-size: 3rem;
    }
}

/* ========================================
   Tablet Portrait (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {

    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Spacing */
    :root {
        --section-padding: 60px 0;
    }

    /* Navigation */
    .navbar-nav {
        margin-top: 20px;
    }

    .navbar-nav>li>a {
        padding: 12px 15px;
    }

    .btn-nav-cta {
        margin: 10px 0;
        display: block;
        text-align: center;
    }

    /* Force Full Width on Mobile */
    * {
        box-sizing: border-box;
    }

    html {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hero Section */
    .hero-section {
        min-height: 100vh !important;
        padding: 0 !important;
        margin-top: -70px !important;
        position: relative;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden;
    }

    .hero-content {
        padding-top: 150px !important;
        position: relative;
        z-index: 10;
    }

    .hero-buttons {
        margin-top: 30px;
    }

    .btn-hero {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    /* Service Cards */
    .service-card {
        margin-bottom: 30px;
    }

    /* Stats */
    .stat-item {
        margin-bottom: 40px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Portfolio */
    .portfolio-item {
        margin-bottom: 30px;
    }

    /* CTA Section */
    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1.1rem;
    }

    /* Footer */
    .footer-main {
        padding: 60px 0 30px;
    }

    .footer-widget {
        margin-bottom: 40px;
    }

    .footer-bottom-links {
        justify-content: center;
        margin-top: 20px;
    }

    .copyright {
        text-align: center;
    }

    /* Video Container */
    .video-container {
        margin-top: 40px;
    }

    /* Hero Video - Full Width on Mobile */
    .hero-video-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .hero-video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        width: 100%;
        height: auto;
        transform: translate(-50%, -50%);
        object-fit: cover;
    }

    /* Feature Items */
    .feature-item:hover {
        transform: translateX(0);
    }
}

/* ========================================
   Mobile (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Spacing */
    :root {
        --section-padding: 50px 0;
    }

    /* Navigation */
    .logo-img {
        height: 35px;
    }

    .brand-text {
        font-size: 20px;
    }

    /* Hero Section */
    .hero-section {
        min-height: 100vh !important;
        padding: 0 !important;
        margin-top: -70px !important;
    }

    .hero-content {
        padding-top: 120px !important;
    }

    .btn-hero {
        padding: 15px 30px;
        font-size: 14px;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    /* Service Cards */
    .service-card {
        padding: 30px 20px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon i {
        font-size: 30px;
    }

    /* Stats */
    .stats-section {
        padding: 60px 0;
    }

    .stat-item i {
        font-size: 40px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 1rem;
    }

    /* Portfolio */
    .portfolio-image {
        height: 250px;
    }

    .portfolio-info h4 {
        font-size: 1.2rem;
    }

    /* Feature Items */
    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    /* CTA Section */
    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 1.7rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .btn-cta {
        padding: 15px 35px;
        font-size: 15px;
    }

    /* Footer */
    .footer-main {
        padding: 50px 0 20px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }

    /* Shapes */
    .shape-1 {
        width: 200px;
        height: 200px;
    }

    .shape-2 {
        width: 150px;
        height: 150px;
    }

    .shape-3 {
        width: 100px;
        height: 100px;
    }
}

/* ========================================
   Small Mobile (max-width: 360px)
   ======================================== */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn-hero {
        padding: 12px 25px;
        font-size: 13px;
    }

    .service-card {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

/* ========================================
   Landscape Orientation
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {

    .navbar,
    .back-to-top,
    .scroll-indicator,
    #preloader {
        display: none !important;
    }

    .hero-section,
    .stats-section,
    .cta-section {
        background: none !important;
        color: #000 !important;
    }

    a {
        text-decoration: underline;
    }
}

/* ========================================
   High DPI / Retina Displays
   ======================================== */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    /* Optimize images and icons for retina displays */
    .logo-img,
    .portfolio-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}