/* ==========================================================================
   ARITTH - Responsive Styles
   Mobile-First Approach
   ========================================================================== */

/* ==========================================================================
   EXTRA LARGE DEVICES (1400px and up)
   ========================================================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* ==========================================================================
   LARGE DEVICES (992px to 1199px)
   ========================================================================== */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .floating-card {
        padding: 20px 25px;
    }
    
    .floating-card i {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   MEDIUM DEVICES (768px to 991px)
   ========================================================================== */
@media (max-width: 991px) {
    /* Navbar */
    .navbar-nav .nav-link {
        padding: 10px 15px;
        margin: 5px 0;
    }
    
    .btn-primary-custom.ms-lg-3 {
        margin-top: 15px;
        margin-left: 0 !important;
        width: 100%;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
    
    .hero-stats {
        justify-content: space-around;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-image-container {
        height: 400px;
        margin-top: 50px;
    }
    
    .floating-card {
        padding: 15px 20px;
    }
    
    .floating-card:nth-child(1) {
        top: 20px;
        left: 20px;
    }
    
    .floating-card:nth-child(2) {
        top: 150px;
        right: 20px;
    }
    
    .floating-card:nth-child(3) {
        bottom: 50px;
        left: 50px;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Timeline */
    .process-timeline::before {
        left: 40px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row !important;
    }
    
    .timeline-number {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }
    
    .timeline-content {
        margin-left: 40px;
        margin-right: 0;
    }
    
    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }
    
    /* Certifications */
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact Form */
    .contact-form-container {
        padding: 30px;
    }
}

/* ==========================================================================
   SMALL DEVICES (576px to 767px)
   ========================================================================== */
@media (max-width: 767px) {
    /* Typography */
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 25px;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .hero-image-container {
        height: 300px;
        margin-top: 40px;
    }
    
    .floating-card {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    .floating-card i {
        font-size: 1.2rem;
    }
    
    .floating-card:nth-child(1) {
        top: 10px;
        left: 10px;
    }
    
    .floating-card:nth-child(2) {
        top: 120px;
        right: 10px;
    }
    
    .floating-card:nth-child(3) {
        bottom: 30px;
        left: 30px;
    }
    
    /* Value Cards */
    .value-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .value-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    /* Service Cards */
    .service-category-card {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .category-header h3 {
        font-size: 1.2rem;
    }
    
    .service-list li {
        font-size: 0.9rem;
    }
    
    .additional-services {
        padding: 30px 20px;
    }
    
    .additional-service-item {
        padding: 15px;
    }
    
    .additional-service-item i {
        font-size: 1.5rem;
    }
    
    /* Sector Cards */
    .sector-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .sector-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .sector-card h3 {
        font-size: 1.2rem;
    }
    
    /* Timeline */
    .process-timeline::before {
        left: 35px;
    }
    
    .timeline-number {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
    
    .timeline-content {
        margin-left: 30px;
        padding: 20px;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
    
    .timeline-item {
        margin-bottom: 40px;
    }
    
    /* Why Us */
    .why-item {
        flex-direction: column;
        text-align: center;
    }
    
    .why-item i {
        font-size: 2.5rem;
    }
    
    /* Contact */
    .contact-info-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .contact-form-container {
        padding: 25px 20px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 0;
    }
    
    .footer-brand,
    .footer-links,
    .footer-contact {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center !important;
    }
    
    .footer-bottom .col-md-6 {
        margin-bottom: 15px;
    }
}

/* ==========================================================================
   EXTRA SMALL DEVICES (Less than 576px)
   ========================================================================== */
@media (max-width: 575px) {
    /* Base */
    body {
        font-size: 14px;
    }
    
    section {
        padding: 40px 0;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-tag {
        font-size: 0.75rem;
        padding: 6px 15px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-image-container {
        height: 250px;
    }
    
    .floating-card {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .floating-card i {
        font-size: 1rem;
    }
    
    /* Section Headers */
    .section-tag {
        font-size: 0.75rem;
        padding: 6px 15px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    /* Cards */
    .value-card {
        padding: 25px 15px;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .value-card h3 {
        font-size: 1.1rem;
    }
    
    /* Services */
    .service-category-card {
        padding: 20px 15px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .category-header h3 {
        font-size: 1.1rem;
    }
    
    .service-list li {
        font-size: 0.85rem;
        padding: 10px 0;
    }
    
    .additional-services {
        padding: 20px 15px;
    }
    
    .additional-services h4 {
        font-size: 1.2rem;
    }
    
    .additional-service-item {
        padding: 12px;
    }
    
    .additional-service-item span {
        font-size: 0.85rem;
    }
    
    /* Sectors */
    .sector-card {
        padding: 25px 15px;
    }
    
    .sector-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .sector-card h3 {
        font-size: 1.1rem;
    }
    
    .sector-card p {
        font-size: 0.9rem;
    }
    
    .sector-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
        top: 15px;
        right: 15px;
    }
    
    /* Timeline */
    .process-timeline::before {
        left: 30px;
    }
    
    .timeline-number {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .timeline-content {
        margin-left: 25px;
        padding: 15px;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }
    
    /* Why Us */
    .why-item h4 {
        font-size: 1.1rem;
    }
    
    .why-item p {
        font-size: 0.9rem;
    }
    
    .cert-item {
        padding: 20px 15px;
    }
    
    .cert-item i {
        font-size: 2.5rem;
    }
    
    .cert-item span {
        font-size: 0.95rem;
    }
    
    /* Contact */
    .contact-info-card {
        padding: 25px 15px;
    }
    
    .contact-info-card i {
        font-size: 2.5rem;
    }
    
    .contact-info-card h4 {
        font-size: 1.1rem;
    }
    
    .contact-form-container {
        padding: 20px 15px;
    }
    
    .contact-form .form-control,
    .contact-form .form-select {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-logo {
        height: 40px;
    }
    
    .footer-brand h4 {
        font-size: 1.5rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .footer-bottom p,
    .footer-link-small {
        font-size: 0.85rem;
    }
    
    /* Floating Elements */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 20px;
        left: 20px;
    }
}

/* ==========================================================================
   LANDSCAPE MOBILE (Height < 500px)
   ========================================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 40px;
    }
    
    .hero-image-container {
        display: none;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 30px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .navbar,
    .whatsapp-float,
    .scroll-top,
    .hero-buttons,
    .scroll-indicator {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }
}