/* =============== RESPONSIVE DESIGN =============== */

/* =============== Extra Large Screens (≥1400px) =============== */
@media (min-width: 1400px) {
    .header-container,
    .header-top-container {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* =============== Large Screens (1200px - 1399px) =============== */
@media (max-width: 1399.98px) {
    .carousel-content h1 {
        font-size: 4.5rem;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 10px 15px;
    }
    
    .header-container,
    .header-top-container {
        padding: 0 30px;
    }
}

/* =============== Medium Large Screens (992px - 1199px) =============== */
@media (max-width: 1199.98px) {
    /* Loading Page */
    .loading-text {
        font-size: 3.5rem;
        height: 100px;
    }
    
    .logo-animation {
        width: 150px;
        height: 150px;
    }
    
    .logo-animation i {
        font-size: 70px;
    }
    
    /* Header */
    .header-main {
        padding: 12px 0;
    }
    
    .logo img {
        height: 85px;
    }
    
    /* Carousel */
    .carousel-content h1 {
        font-size: 3.8rem;
    }
    
    .carousel-content h6 {
        font-size: 1.1rem;
    }
    
    /* Services */
    .services-content-icon i {
        font-size: 5rem;
    }
    
    .services-content-icon h4 {
        font-size: 1.2rem;
    }
    
    /* Team Section */
    .team-item {
        width: 240px;
        padding-top: 110px;
        padding-bottom: 60px;
    }
    
    .team-img {
        width: 140px;
        height: 140px;
    }
    
    .team-name h4 {
        font-size: 24px;
    }
    
    .team-name p {
        font-size: 16px;
    }
    
    .team-carousel {
        gap: 45px;
    }
    
    .team-name {
        margin-top: 110px;
    }
    
    /* Contact Section */
    .contact-info h1 {
        font-size: 2.5rem;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 2.5rem;
    }
    
    .cta-text {
        font-size: 1.2rem;
    }
    
    /* Footer */
    .footer-section h3 {
        font-size: 1.4rem;
    }
}

/* =============== Tablets (768px - 991px) =============== */
@media (max-width: 991.98px) {
    /* Loading Page */
    .loading-text {
        font-size: 3rem;
        height: 80px;
        text-align: center;
        justify-content: center;
    }
    
    body.rtl .loading-text {
        text-align: center;
        justify-content: center;
    }
    
    .loading-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    body.rtl .loading-content {
        padding-right: 20px;
        padding-left: 20px;
    }
    
    .logo-animation {
        width: 120px;
        height: 120px;
        margin-bottom: 30px;
    }
    
    .logo-animation i {
        font-size: 60px;
    }
    
    .loading-bar-container,
    .loading-bottom {
        width: 350px;
    }
    
    /* Header */
    .header-top {
        display: none;
    }
    
    .header-main {
        padding: 10px 0;
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .logo img {
        height: 75px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(13, 33, 55, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        padding: 20px;
        font-size: 1.4rem;
        justify-content: center;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-item {
        padding: 15px 20px;
        font-size: 1.2rem;
        justify-content: center;
    }
    
    .dropdown-item:hover {
        padding-left: 20px;
    }
    
    body.rtl .dropdown-item:hover {
        padding-right: 20px;
    }
    
    .contact-section,
    .search-btn,
    .lets-talk-btn-header {
        display: none !important;
    }
    
    .mobile-phone-section {
        display: flex !important;
        align-items: center;
        gap: 15px;
        padding: 20px;
        margin-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: center;
    }
    
    /* Carousel */
    .carousel-container {
        margin-top: 80px;
        height: calc(100vh - 80px);
        min-height: 500px;
    }
    
    .carousel-content h1 {
        font-size: 3rem;
    }
    
    .carousel-content h6 {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .carousel-content-btn1,
    .carousel-content-btn2 {
        padding: 16px 35px;
        font-size: 1.2rem;
        margin: 8px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 55px;
        height: 55px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
    
    body.rtl .carousel-control-prev {
        left: auto;
        right: 15px;
    }
    
    body.rtl .carousel-control-next {
        right: auto;
        left: 15px;
    }
    
    /* Services */
    .services-content-icon i {
        font-size: 4rem;
    }
    
    .services-content-icon a.btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 25px;
    }
    
    /* Projects */
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    /* Contact */
    .contact-info {
        margin-bottom: 50px;
        text-align: center;
    }
    
    .contact-form-wrapper {
        padding: 30px;
    }
    
    /* Team Section */
    .team {
        padding: 80px 15px 100px;
    }
    
    .team-item {
        width: 220px;
        padding-top: 100px;
        padding-bottom: 55px;
    }
    
    .team-img {
        width: 130px;
        height: 130px;
    }
    
    .team-name h4 {
        font-size: 22px;
    }
    
    .team-name p {
        font-size: 15px;
    }
    
    .team-carousel {
        gap: 40px;
    }
    
    .team-name {
        margin-top: 100px;
    }
    
    /* About Image Slider */
    .about-image-slider {
        max-width: 350px;
        height: 280px;
        margin: 0 auto 30px;
    }
    
    .about-card {
        padding: 30px;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-btn {
        padding: 16px 40px;
        font-size: 1rem;
    }
    
    /* Footer */
    .main-footer {
        padding: 80px 0 30px;
    }
    
    .footer-section {
        margin-bottom: 40px;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
}

/* =============== Small Tablets (576px - 767px) =============== */
@media (max-width: 767.98px) {
    /* Loading Page */
    .loading-text {
        font-size: 2.5rem;
        height: 60px;
    }
    
    .loading-bar-container,
    .loading-bottom {
        width: 300px;
    }
    
    .loading-percentage {
        font-size: 1.8rem;
    }
    
    .lets-talk-btn {
        padding: 10px 25px;
        font-size: 1.1rem;
    }
    
    /* Header */
    .header-container {
        padding: 0 15px;
    }
    
    .logo img {
        height: 65px;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
    
    .menu-line {
        width: 20px;
        height: 2.5px;
    }
    
    .main-nav {
        padding-top: 80px;
    }
    
    .nav-link {
        padding: 18px;
        font-size: 1.3rem;
    }
    
    /* Carousel */
    .carousel-container {
        height: calc(100vh - 70px);
        min-height: 450px;
    }
    
    .carousel-content h1 {
        font-size: 2.5rem;
    }
    
    .carousel-content h6 {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
        margin-bottom: 20px;
    }
    
    .carousel-content-btn1,
    .carousel-content-btn2 {
        padding: 14px 30px;
        font-size: 1.1rem;
        margin: 6px;
        width: 90%;
        max-width: 250px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 24px;
        height: 24px;
    }
    
    .carousel-indicators {
        bottom: 30px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        margin: 0 6px;
    }
    
    /* Services */
    .services-content-icon i {
        font-size: 3.5rem;
    }
    
    .services-content-icon h4 {
        font-size: 1.1rem;
    }
    
    .services-content-icon p {
        font-size: 0.9rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-card img {
        width: 60px;
        height: 60px;
    }
    
    .testimonial-card h4 {
        font-size: 16px;
    }
    
    .testimonial-text {
        font-size: 14px;
    }
    
    .testimonial-rating {
        font-size: 1rem;
    }
    
    /* Projects */
    .project-links {
        flex-direction: row;
        gap: 10px;
    }
    
    .view-project {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    /* Contact */
    .contact-form-wrapper {
        padding: 25px 20px;
    }
    
    .contact-form .form-control,
    .contact-form .form-select {
        padding: 14px 12px;
        font-size: 15px;
    }
    
    .contact-item {
        padding: 15px;
        gap: 15px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.3rem;
    }
    
    /* Team Section */
    .team {
        padding: 60px 10px 80px;
    }
    
    .team h1 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .team-item {
        width: 180px;
        padding-top: 85px;
        padding-bottom: 50px;
    }
    
    .team-img {
        width: 110px;
        height: 110px;
    }
    
    .team-name h4 {
        font-size: 20px;
    }
    
    .team-name p {
        font-size: 14px;
    }
    
    .team-carousel {
        gap: 30px;
    }
    
    .team-name {
        margin-top: 95px;
    }
    
    .team-item::before {
        border-left: 70px solid transparent;
        border-right: 70px solid transparent;
        border-top: 45px solid #0097b2;
    }
    
    /* About Section */
    .about-image-slider {
        max-width: 300px;
        height: 240px;
    }
    
    .about-card {
        padding: 25px;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    .about-text {
        font-size: 0.95rem;
    }
    
    .key-points {
        padding: 15px;
    }
    
    .point {
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    /* Why Choose Us */
    .feature-box {
        padding: 25px 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    .feature-text {
        font-size: 0.9rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .cta-btn {
        padding: 14px 35px;
        font-size: 0.95rem;
    }
    
    /* Footer */
    .main-footer {
        padding: 60px 0 20px;
    }
    
    .footer-section {
        margin-bottom: 35px;
        text-align: center;
    }
    
    .footer-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    body.rtl .footer-title::after {
        right: 50%;
        left: auto;
        transform: translateX(50%);
    }
    
    .footer-links a {
        justify-content: center;
        padding: 10px 0;
    }
    
    .footer-links a:hover {
        padding-left: 0;
        transform: none;
    }
    
    body.rtl .footer-links a:hover {
        padding-right: 0;
    }
    
    .footer-contact a {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-contact a i {
        margin: 0;
    }
    
    .social-icons-top a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .copyright {
        padding-top: 30px;
        font-size: 0.85rem;
    }
}

/* =============== Mobile Phones (≤575px) =============== */
@media (max-width: 575.98px) {
    /* Loading Page */
    .loading-text {
        font-size: 2.2rem;
        height: 50px;
    }
    
    .logo-animation {
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }
    
    .logo-animation i {
        font-size: 50px;
    }
    
    .loading-bar-container,
    .loading-bottom {
        width: 280px;
    }
    
    .loading-bar-label {
        font-size: 1rem;
    }
    
    .loading-percentage {
        font-size: 1.6rem;
    }
    
    .lets-talk-btn {
        padding: 8px 20px;
        font-size: 1rem;
        gap: 8px;
    }
    
    /* Header */
    .header-container {
        padding: 0 10px;
    }
    
    .logo img {
        height: 55px;
    }
    
    .mobile-menu-toggle {
        width: 35px;
        height: 35px;
        font-size: 1.4rem;
    }
    
    .menu-line {
        width: 18px;
        height: 2px;
    }
    
    .main-nav {
        padding-top: 70px;
    }
    
    .nav-link {
        padding: 16px;
        font-size: 1.2rem;
    }
    
    .dropdown-item {
        padding: 12px 20px;
        font-size: 1.1rem;
    }
    
    .mobile-phone-section {
        padding: 15px;
        gap: 10px;
    }
    
    /* Carousel */
    .carousel-container {
        margin-top: 60px;
        height: calc(100vh - 60px);
        min-height: 400px;
    }
    
    .carousel-content {
        padding: 0 10px;
    }
    
    .carousel-content h1 {
        font-size: 2rem;
    }
    
    .carousel-content h6 {
        font-size: 0.8rem;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }
    
    .carousel-content-btn1,
    .carousel-content-btn2 {
        padding: 12px 25px;
        font-size: 1rem;
        margin: 5px 0;
        width: 100%;
        max-width: 220px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
        display: none;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 5px;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* Services */
    .services-content-icon i {
        font-size: 3rem;
    }
    
    .services-content-icon h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .services-content-icon p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .services-content-icon a.btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .testimonial-author img {
        width: 50px;
        height: 50px;
    }
    
    .author-info h5 {
        font-size: 1rem;
    }
    
    .author-info span {
        font-size: 0.8rem;
    }
    
    /* Projects */
    .projects-filter {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
        flex: 0 0 calc(50% - 8px);
        text-align: center;
    }
    
    .project-card {
        margin-bottom: 25px;
    }
    
    .project-info {
        padding: 15px;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 0.85rem;
    }
    
    .project-category {
        font-size: 0.75rem;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    /* Contact */
    .contact {
        padding: 60px 0;
    }
    
    .contact-form-wrapper {
        padding: 20px 15px;
    }
    
    .contact-form .form-control,
    .contact-form .form-select {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .contact-form button[type="submit"] {
        padding: 15px;
        font-size: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 15px 10px;
    }
    
    .contact-icon {
        margin-bottom: 10px;
    }
    
    .contact-content h4 {
        font-size: 1.1rem;
    }
    
    .contact-content p,
    .contact-content a {
        font-size: 0.9rem;
    }
    
    /* Team Section */
    .team {
        padding: 50px 5px 60px;
    }
    
    .team h1 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .team-carousel {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }
    
    .team-item {
        width: 250px;
        padding-top: 100px;
        padding-bottom: 55px;
    }
    
    .team-img {
        width: 120px;
        height: 120px;
    }
    
    .team-name {
        margin-top: 100px;
    }
    
    /* About Section */
    .about-image-slider {
        max-width: 280px;
        height: 220px;
    }
    
    .about-card {
        padding: 20px 15px;
        border-radius: 20px;
    }
    
    .about-chip {
        font-size: 0.9rem;
        padding: 5px 15px;
    }
    
    .about-title {
        font-size: 1.6rem;
    }
    
    .about-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .key-points {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    /* Why Choose Us */
    .why-choose-section {
        padding: 60px 0;
    }
    
    .feature-box {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .cta-text {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    .cta-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .main-footer {
        padding: 50px 0 15px;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
    
    .footer-title {
        font-size: 1.3rem;
    }
    
    .social-icons-top {
        justify-content: center;
    }
    
    .social-icons-top a {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .copyright {
        padding-top: 25px;
        font-size: 0.8rem;
    }
    
    /* Back to Top Button */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.1rem;
    }
    
    body.rtl .back-to-top {
        right: auto;
        left: 20px;
    }
}

/* =============== Very Small Phones (≤375px) =============== */
@media (max-width: 375px) {
    /* Loading Page */
    .loading-text {
        font-size: 1.8rem;
        height: 40px;
    }
    
    .logo-animation {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .logo-animation i {
        font-size: 40px;
    }
    
    .loading-bar-container,
    .loading-bottom {
        width: 250px;
    }
    
    .loading-percentage {
        font-size: 1.4rem;
    }
    
    /* Header */
    .logo img {
        height: 45px;
    }
    
    /* Carousel */
    .carousel-content h1 {
        font-size: 1.8rem;
    }
    
    .carousel-content h6 {
        font-size: 0.7rem;
    }
    
    /* Services */
    .services-content-icon i {
        font-size: 2.5rem;
    }
    
    /* Team Section */
    .team-item {
        width: 220px;
    }
    
    .team-img {
        width: 100px;
        height: 100px;
    }
    
    .team-name h4 {
        font-size: 18px;
    }
    
    .team-name p {
        font-size: 13px;
    }
    
    /* Contact */
    .contact-info h1 {
        font-size: 1.8rem;
    }
    
    .contact-info p {
        font-size: 1rem;
    }
    
    /* CTA Section */
    .cta-title {
        font-size: 1.6rem;
    }
}

/* =============== Landscape Mode =============== */
@media (max-height: 600px) and (orientation: landscape) {
    /* Loading Page */
    .loading-text {
        font-size: 2.5rem;
        height: 40px;
        margin-bottom: 20px;
    }
    
    .logo-animation {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .logo-animation i {
        font-size: 40px;
    }
    
    .loading-bar-container {
        margin-bottom: 10px;
    }
    
    .loading-bottom {
        margin-top: 5px;
    }
    
    /* Carousel */
    .carousel-container {
        height: calc(100vh - 70px);
    }
    
    .carousel-content h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .carousel-content h6 {
        margin-bottom: 15px;
    }
    
    /* Header */
    .header-main {
        padding: 8px 0;
    }
    
    .logo img {
        height: 50px;
    }
}

/* =============== Print Styles =============== */
@media print {
    .loading-screen,
    .main-header,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators,
    .back-to-top {
        display: none !important;
    }
    
    .main-content {
        display: block !important;
        opacity: 1 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .carousel-container {
        margin-top: 0;
        height: auto;
    }
    
    .carousel-item img {
        filter: brightness(1);
    }
}