/* Responsive CSS for Metal Revive */

/* Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    :root {
        --navbar-brand-size: 1rem;
        --h1-size: 1.6rem;
        --h2-size: 1.4rem;
        --h3-size: 1.2rem;
        --h4-size: 1.1rem;
        --h5-size: 1rem;
        --p-size: 0.9rem;
    }
    
    /* Remove animations on mobile */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Header */
    #header {
        padding: 8px 0;
    }
    
    .navbar-brand {
        font-size: var(--navbar-brand-size);
    }
    
    /* Hero Section */
    #hero {
        padding: 60px 0 40px;
        text-align: center;
    }
    
    #hero .container {
        padding: 0 18px;
    }
    
    #hero h1 {
        font-size: var(--h1-size);
        margin-bottom: 15px;
    }
    
    #hero .btn {
        padding: 10px 20px;
        font-size: 0.93rem;
    }
    
    /* Cards */
    .card-body {
        padding: 15px;
    overflow-x: hidden;
}
    
    .card-title {
        font-size: 1.20rem;
    }
    
    /* Process Numbers */
    .process-number {
        width: 45px;
        height: 45px;
        font-size: 0.84rem;
    }
    
    /* Team Images */
    #team img {
        width: 80px;
        height: 80px;
    }
    
    /* Timeline */
    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: 0.84rem;
    }
    
    /* Contact Form */
    .contact-form .form-control {
        padding: 10px 12px;
        font-size: 0.96rem;
    }
    
    .contact-form .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    /* Gallery */
    #gallery .col-lg-3 {
        margin-bottom: 15px;
    }
    
    /* Footer */
    #footer {
        text-align: center;
        padding: 30px 0;
    }
    
    #footer .row > div {
        margin-bottom: 20px;
    }
    
    /* Spacing Adjustments */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.64rem !important;
    }
    
    .mb-3 {
        margin-bottom: 1rem !important;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    :root {
        --h1-size: 1.8rem;
        --h2-size: 1.5rem;
        --navbar-brand-size: 1.1rem;
    }
    
    /* Remove animations on mobile */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    #hero {
        padding: 80px 0 50px;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
    
    .timeline-year {
        width: 70px;
        height: 70px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    :root {
        --h1-size: 2rem;
        --h2-size: 1.6rem;
        --navbar-brand-size: 1.15rem;
    }
    
    #hero {
        padding: 90px 0 60px;
    }
    
    .hero-decoration {
        width: 150px;
        height: 150px;
        right: -75px;
    }
    
    /* Team Section Adjustments */
    #team .col-lg-2 {
        margin-bottom: 30px;
    }
    
    /* Services Grid */
    #services .col-lg-4 {
        margin-bottom: 30px;
    }
    
    /* Timeline Adjustments */
    #timeline .col-lg-2 {
        margin-bottom: 25px;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    #hero {
        padding: 100px 0 70px;
    }
    
    .hero-decoration {
        width: 180px;
        height: 180px;
        right: -90px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    #hero {
        padding: 120px 0 80px;
    }
    
    .hero-decoration {
        width: 200px;
        height: 200px;
        right: -100px;
    }
    
    /* Enhanced hover effects for large screens */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    }
}

/* Specific Component Responsive Adjustments */

/* Navbar Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        text-align: center;
        margin-top: 15px;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 15px;
        margin: 2px 0;
    }
}

/* Hero Content Responsive */
@media (max-width: 767.98px) {
    #hero .row {
        flex-direction: column-reverse;
    }
    
    #hero .col-lg-6:first-child {
        margin-top: 30px;
    }
}

/* Services Cards Responsive */
@media (max-width: 767.98px) {
    #services .card {
        margin-bottom: 20px;
    }
    
    .card-img-top {
        height: 150px;
    }
}

/* Team Section Responsive */
@media (max-width: 767.98px) {
    #team .col-lg-2 {
        margin-bottom: 25px;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
}

/* Timeline Responsive */
@media (max-width: 767.98px) {
    #timeline .col-lg-2 {
        margin-bottom: 30px;
    }
    
    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: 0.87rem;
    }
}

/* Process Section Responsive */
@media (max-width: 767.98px) {
    #process .col-lg-2 {
        margin-bottom: 25px;
    }
}

/* Gallery Responsive */
@media (max-width: 575.98px) {
    #gallery .col-lg-3 {
        margin-bottom: 10px;
    }
    
    #gallery img {
        border-radius: 8px;
    }
}

/* Contact Section Responsive */
@media (max-width: 767.98px) {
    #contacts .row {
        flex-direction: column;
    }
    
    #contacts .col-lg-6:last-child {
        margin-top: 30px;
    }
}

/* FAQ Section Responsive */
@media (max-width: 767.98px) {
    #faq .col-lg-6 {
        margin-bottom: 15px;
    }
}

/* Price Plan Responsive */
@media (max-width: 767.98px) {
    #priceplan .col-lg-4 {
        margin-bottom: 20px;
    }
}

/* Case Study Responsive */
@media (max-width: 767.98px) {
    #casestudy .col-lg-4 {
        margin-bottom: 25px;
    }
}

/* Additional Pages Responsive */
@media (max-width: 767.98px) {
    .breadcrumb {
        margin-bottom: 15px;
    }
    
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
}

/* Feature Icons Responsive */
@media (max-width: 575.98px) {
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.55rem;
    }
}

/* Innovation Cards Responsive */
@media (max-width: 767.98px) {
    .innovation-card,
    .learning-item,
    .quality-card,
    .global-vision-item {
        margin-bottom: 25px;
        text-align: center;
    }
}

/* Reviews Section Responsive */
@media (max-width: 767.98px) {
    #reviews .col-lg-4,
    #reviews .col-lg-6 {
        margin-bottom: 20px;
    }
}

/* Career Section Responsive */
@media (max-width: 767.98px) {
    #career .col-lg-6 {
        margin-bottom: 20px;
    }
}

/* Core Info Responsive */
@media (max-width: 767.98px) {
    #coreinfo .col-lg-4 {
        margin-bottom: 25px;
    }
    
    #coreinfo i {
        font-size: 2rem;
    }
}

/* Blog Section Responsive */
@media (max-width: 767.98px) {
    #blog .col-lg-4 {
        margin-bottom: 25px;
    }
} 