/* ===== MOBILE & TABLET RESPONSIVE STYLES ===== */

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tablet - Large (1024px and below) */
@media screen and (max-width: 1024px) {
    header {
        height: 100px;
        padding: 0 32px;
        justify-content: space-between;
        box-shadow: 0 4px 20px rgba(1, 42, 28, 0.12);
    }

    #header-logo {
        position: relative;
        padding-left: 0;
        transform: none;
    }

    header img {
        height: 70px;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    }

    #container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 30px;
    }

    #header-title {
        margin-left: auto;
    }

    #header-title button {
        padding: 12px 28px;
        font-size: 15px;
        border-radius: 10px;
        height: auto;
        width: auto;
        box-shadow: 0 2px 12px rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

    #header-title button:active {
        transform: scale(0.98);
    }

    #services-container {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 48px 32px;
    }

    .services-hero {
        margin-bottom: 24px;
    }

    .services-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 16px;
    }

    .service-card {
        width: 100%;
        max-width: 600px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
        backdrop-filter: blur(10px);
    }

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    }

    .project-gallery {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }

    .project-card {
        width: calc(50% - 20px);
        min-width: 300px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .project-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

    #footer {
        width: 100%;
    }

    #contact-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    #left-footer-container {
        float: none;
        width: 100%;
        max-width: 600px;
        padding: 0 20px;
        margin: 0 auto 50px;
        text-align: center;
    }

    #right-footer-container {
        float: none;
        width: 100%;
        padding: 20px;
        text-align: center;
    }

    #footer-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-size: 14px;
    }

    #footer-info p {
        margin: 8px 0;
        line-height: 1.8;
    }

    #footer-info iframe {
        width: 100%;
        max-width: 600px;
        height: 350px;
        border-radius: 12px;
    }

    #contact-form-element {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    #contact-form-element input,
    #contact-form-element textarea {
        width: 100%;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    }

    #contact-form-element input:focus,
    #contact-form-element textarea:focus {
        box-shadow: 0 4px 20px rgba(1, 42, 28, 0.12);
        transform: translateY(-2px);
    }

    #contact-form-element label {
        width: 100%;
        text-align: left;
    }

    .form-group {
        width: 100%;
        margin-top: 16px;
        text-align: left;
    }

    .checkbox-label {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }

    .checkbox-label input[type="checkbox"] {
        flex-shrink: 0;
        margin-top: 3px;
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .checkbox-label span {
        flex: 1;
        word-wrap: break-word;
        color: #ffffff;
        font-size: 13px;
        line-height: 1.5;
    }

    #submit-button {
        display: block;
        margin: 20px auto 0;
        width: 100%;
        box-shadow: 0 4px 16px rgba(1, 42, 28, 0.2);
    }

    #submit-button:hover {
        box-shadow: 0 6px 24px rgba(1, 42, 28, 0.3);
    }

    #submit-button:active {
        transform: scale(0.98);
    }
}

/* Tablet - Small (768px and below) */
@media screen and (max-width: 768px) {
    /* Header */
    header {
        height: 90px;
        padding: 0 24px;
        box-shadow: 0 4px 24px rgba(1, 42, 28, 0.15);
    }

    #header-logo {
        position: relative;
        padding-left: 0;
        transform: none;
    }

    header img {
        height: 65px;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    }

    #header-title button {
        padding: 11px 22px;
        font-size: 14px;
        border-radius: 10px;
        box-shadow: 0 2px 12px rgba(255, 255, 255, 0.1);
    }

    #header-title button:active {
        transform: scale(0.96);
    }

    /* Typography */
    h1 {
        font-size: clamp(28px, 6vw, 40px);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    }

    h2 {
        font-size: clamp(20px, 4vw, 28px);
    }

    p {
        font-size: 16px;
    }

    /* Main Container */
    #container {
        padding: 36px 24px;
        gap: 24px;
    }

    #services-container {
        grid-template-columns: 1fr;
        padding: 36px 24px;
        gap: 24px;
    }

    .services-hero {
        text-align: center;
        margin-bottom: 16px;
    }

    .services-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: 14px;
        width: 100%;
    }

    /* Left Container */
    #about-text,
    #why-us-text {
        max-width: 100%;
    }

    #about-text p,
    #why-us-text p {
        padding: 28px;
        font-size: 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        line-height: 1.8;
    }

    #about-text p:hover,
    #why-us-text p:hover {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    #read-more,
    #contact-button {
        width: 100%;
        padding: 18px 24px;
        font-size: 15px;
        box-shadow: 0 4px 16px rgba(1, 42, 28, 0.2);
    }

    #read-more:hover,
    #contact-button:hover {
        box-shadow: 0 6px 24px rgba(1, 42, 28, 0.3);
    }

    #read-more:active,
    #contact-button:active {
        transform: scale(0.98);
    }

    /* Gallery */
    .gallery {
        border-radius: 18px;
        box-shadow: 0 6px 32px rgba(0, 0, 0, 0.1);
    }

    .gallery:hover {
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    }

    #gallery-image {
        aspect-ratio: 16/10;
    }

    .gallery-dots {
        padding: 18px;
        gap: 12px;
    }

    .dot {
        width: 9px;
        height: 9px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .dot:hover {
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    }

    .dot.active {
        width: 26px;
        box-shadow: 0 2px 8px rgba(1, 42, 28, 0.3);
    }

    .project-gallery {
        flex-direction: column;
        padding: 0 24px 36px;
        gap: 20px;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .project-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        border-radius: 16px;
        box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
    }

    .project-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    }

    .project-card img {
        height: 220px;
    }

    .project-info {
        padding: 22px;
    }

    .project-info h3 {
        font-size: 18px;
    }

    .project-info p {
        font-size: 14px;
    }

    .project-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .project-meta span {
        font-size: 12px;
    }

    #project-button {
        padding: 11px 22px;
        font-size: 13px;
        margin-top: 14px;
        box-shadow: 0 3px 12px rgba(1, 42, 28, 0.2);
    }

    #project-button:hover {
        box-shadow: 0 4px 16px rgba(1, 42, 28, 0.3);
    }

    #project-button:active {
        transform: scale(0.96);
    }

    /* Services */
    .service-card {
        max-width: 100%;
        padding: 24px;
        margin: 14px 0;
        box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
        border-radius: 16px;
    }

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    }

    .service-card:nth-child(odd),
    .service-card:nth-child(even) {
        margin-left: 0;
        margin-right: 0;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-card p {
        font-size: 14px;
    }

    .service-card ul li {
        font-size: 14px;
        padding: 6px 0;
    }

    .service-icon {
        font-size: 44px;
        margin-bottom: 14px;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    }

    /* CTA Section */
    .cta-section {
        padding: 48px 24px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    }

    .cta-section h2 {
        font-size: clamp(24px, 5vw, 32px);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    }

    .cta-section p {
        font-size: 15px;
    }

    /* Footer */
    footer {
        padding: 48px 0 32px;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
    }

    #contact-container {
        padding: 0 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #left-footer-container {
        float: none;
        width: 100%;
        max-width: 600px;
        padding: 0 20px;
        margin: 0 auto 40px;
    }

    #right-footer-container {
        float: none;
        width: 100%;
        padding: 0;
        text-align: center;
    }

    #footer-info p {
        font-size: 13px;
    }

    #footer-info iframe {
        width: 100%;
        height: 280px;
        margin-top: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 14px;
    }

    /* Contact Form */
    #contact-form-element {
        gap: 8px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    #contact-form-element label {
        font-size: 13px;
        margin-top: 10px;
        width: 100%;
        text-align: left;
    }

    #contact-form-element input,
    #contact-form-element textarea {
        padding: 13px 18px;
        font-size: 14px;
        width: 100%;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
        border-radius: 10px;
    }

    #contact-form-element input:focus,
    #contact-form-element textarea:focus {
        box-shadow: 0 4px 20px rgba(1, 42, 28, 0.12);
        transform: translateY(-2px);
    }

    #contact-form-element textarea {
        min-height: 130px;
    }

    .form-group {
        width: 100%;
        margin-top: 16px;
        text-align: left;
    }

    .checkbox-label {
        font-size: 12px;
        width: 100%;
        display: flex;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
        justify-content: flex-start;
    }

    .checkbox-label input[type="checkbox"] {
        flex-shrink: 0;
        margin-top: 3px;
        width: 18px;
        height: 18px;
        min-width: 18px;
    }

    .checkbox-label span {
        flex: 1;
        word-wrap: break-word;
        color: #ffffff;
        line-height: 1.5;
    }

    #submit-button {
        margin: 24px 0 0;
        padding: 15px 36px;
        font-size: 14px;
        display: block;
        width: 100%;
        box-shadow: 0 4px 20px rgba(1, 42, 28, 0.25);
        border-radius: 10px;
    }

    #submit-button:hover {
        box-shadow: 0 6px 28px rgba(1, 42, 28, 0.35);
    }

    #submit-button:active {
        transform: scale(0.98);
    }

    /* Dividers */
    .section-divider {
        width: 64px;
        height: 3px;
        margin-bottom: 28px;
        box-shadow: 0 2px 8px rgba(1, 42, 28, 0.2);
    }

    .section-divider2,
    .footer-section-divider {
        width: 50px;
        height: 3px;
        margin-bottom: 32px;
    }
}

/* Mobile - Large (480px and below) */
@media screen and (max-width: 480px) {
    /* Header */
    header {
        height: 72px;
        padding: 0 18px;
        justify-content: space-between;
        box-shadow: 0 3px 20px rgba(1, 42, 28, 0.18);
    }

    #header-logo {
        position: relative;
        padding: 0;
        transform: none;
    }

    header img {
        height: 52px;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
    }

    #header-title {
        margin-left: auto;
    }

    #header-title button {
        padding: 11px 18px;
        font-size: 13px;
        height: auto;
        width: auto;
        border-radius: 9px;
        box-shadow: 0 2px 10px rgba(255, 255, 255, 0.12);
    }

    #header-title button:active {
        transform: scale(0.95);
    }

    /* Typography */
    h1 {
        font-size: 27px;
        letter-spacing: -0.5px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    }

    h2 {
        font-size: 21px;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    }

    p {
        font-size: 15px;
        line-height: 1.75;
    }

    /* Main Container */
    #container,
    #services-container {
        padding: 28px 18px;
        gap: 20px;
    }

    .services-hero {
        margin-bottom: 12px;
    }

    /* Text Sections */
    #about-text p,
    #why-us-text p {
        padding: 22px;
        font-size: 14px;
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
        line-height: 1.75;
    }

    #about-text p:active,
    #why-us-text p:active {
        transform: scale(0.99);
    }

    #interested-text h1 {
        font-size: 23px;
    }

    /* Buttons */
    #read-more,
    #contact-button,
    #project-button {
        padding: 16px 22px;
        font-size: 14px;
        border-radius: 10px;
        box-shadow: 0 3px 16px rgba(1, 42, 28, 0.22);
    }

    #read-more:hover,
    #contact-button:hover,
    #project-button:hover {
        box-shadow: 0 5px 20px rgba(1, 42, 28, 0.32);
    }

    #read-more:active,
    #contact-button:active,
    #project-button:active {
        transform: scale(0.97);
    }

    /* Gallery */
    .gallery {
        border-radius: 14px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    }

    .gallery:active {
        transform: scale(0.99);
    }

    #gallery-image {
        aspect-ratio: 4/3;
    }

    .gallery-dots {
        padding: 14px;
        gap: 10px;
    }

    .dot {
        width: 8px;
        height: 8px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    }

    .dot.active {
        width: 22px;
        box-shadow: 0 2px 6px rgba(1, 42, 28, 0.3);
    }

    /* Projects */
    #previous-projects-text h1 {
        font-size: 27px;
    }

    .project-gallery {
        padding: 0 18px 32px;
        gap: 18px;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .project-card {
        border-radius: 14px;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
        box-shadow: 0 5px 24px rgba(0, 0, 0, 0.1);
    }

    .project-card:active {
        transform: scale(0.99);
    }

    .project-card img {
        height: 190px;
    }

    .project-info {
        padding: 18px;
    }

    .project-info h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .project-info p {
        font-size: 13px;
        margin-bottom: 10px;
        line-height: 1.6;
    }

    .project-meta {
        flex-direction: column;
        gap: 10px;
        padding-top: 14px;
        margin-top: 14px;
    }

    .project-meta span {
        font-size: 11px;
        padding: 4px 0;
    }

    #project-button {
        font-size: 12px;
        padding: 11px 18px;
        box-shadow: 0 3px 12px rgba(1, 42, 28, 0.2);
        border-radius: 9px;
    }

    #project-button:active {
        transform: scale(0.96);
    }

    /* Services */
    .services-hero h1 {
        font-size: 27px;
    }

    .services-list {
        padding: 0;
        gap: 16px;
        width: 100%;
    }

    .service-card {
        padding: 20px;
        margin: 0;
        border-radius: 14px;
        width: 100%;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }

    .service-card:active {
        transform: scale(0.99);
    }

    .service-icon {
        font-size: 38px;
        margin-bottom: 12px;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
    }

    .service-card h3 {
        font-size: 17px;
        margin-bottom: 8px;
    }

    .service-card p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .service-card ul {
        margin-top: 8px;
    }

    .service-card ul li {
        font-size: 13px;
        padding: 5px 0;
        padding-left: 20px;
    }

    /* CTA Section */
    .cta-section {
        padding: 44px 18px;
        margin-top: 44px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border-radius: 16px;
    }

    .cta-section h2 {
        font-size: 23px;
    }

    .cta-section p {
        font-size: 14px;
        margin: 18px 0;
        line-height: 1.7;
    }

    /* Footer */
    footer {
        padding: 40px 0 28px;
        margin-top: 40px;
        box-shadow: 0 -3px 20px rgba(0, 0, 0, 0.06);
    }

    footer h2 {
        font-size: 23px;
    }

    #contact-container {
        padding: 0 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #left-footer-container {
        float: none;
        width: 100%;
        max-width: 500px;
        margin: 0 auto 40px;
    }

    #right-footer-container {
        float: none;
        width: 100%;
        padding: 0;
        text-align: center;
    }

    #footer-info p {
        font-size: 12px;
        line-height: 2;
    }

    #footer-info iframe {
        height: 260px;
        border-radius: 12px;
        margin-top: 18px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    /* Contact Form */
    #contact-form-element {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #contact-form-element label {
        font-size: 12px;
        margin-top: 10px;
        width: 100%;
        text-align: left;
        font-weight: 500;
    }

    #contact-form-element input,
    #contact-form-element textarea {
        padding: 11px 16px;
        font-size: 13px;
        border-radius: 10px;
        width: 100%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    }

    #contact-form-element input:focus,
    #contact-form-element textarea:focus {
        box-shadow: 0 3px 16px rgba(1, 42, 28, 0.12);
        transform: translateY(-1px);
    }

    #contact-form-element textarea {
        min-height: 110px;
    }

    .form-group {
        width: 100%;
        margin-top: 12px;
        text-align: left;
    }

    .checkbox-label {
        font-size: 11px;
        gap: 10px;
        width: 100%;
        display: flex;
        align-items: flex-start;
        text-align: left;
        justify-content: flex-start;
    }

    .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        min-width: 18px;
        flex-shrink: 0;
        margin-top: 3px;
    }

    .checkbox-label span {
        flex: 1;
        word-wrap: break-word;
        color: #ffffff;
        line-height: 1.5;
    }

    #submit-button {
        padding: 14px 28px;
        font-size: 13px;
        margin: 20px auto 0;
        border-radius: 10px;
        display: block;
        width: 100%;
        box-shadow: 0 4px 18px rgba(1, 42, 28, 0.25);
    }

    #submit-button:hover {
        box-shadow: 0 5px 24px rgba(1, 42, 28, 0.35);
    }

    #submit-button:active {
        transform: scale(0.97);
    }

    /* Dividers */
    .section-divider {
        width: 54px;
        height: 3px;
        margin-bottom: 22px;
        box-shadow: 0 2px 6px rgba(1, 42, 28, 0.2);
    }

    .section-divider2,
    .footer-section-divider {
        width: 44px;
        height: 2.5px;
        margin-bottom: 28px;
        box-shadow: 0 2px 6px rgba(1, 42, 28, 0.2);
    }
}

/* Mobile - Small (360px and below) */
@media screen and (max-width: 361px) {
    * {
        box-sizing: border-box;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    h1 {
        font-size: 25px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    }

    h2 {
        font-size: 19px;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    }

    p {
        font-size: 14px;
        line-height: 1.7;
    }

    header {
        width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
        box-shadow: 0 3px 16px rgba(1, 42, 28, 0.15);
    }

    #container,
    #services-container {
        padding: 26px 12px;
        max-width: 100%;
        box-sizing: border-box;
    }

    header img {
        height: 50px;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
    }

    #about-text p,
    #why-us-text p {
        padding: 18px;
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
        border-radius: 12px;
    }

    .project-gallery {
        max-width: 360px;
    }

    .project-card {
        width: 100%;
        box-sizing: border-box;
        border-radius: 12px;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    }

    .project-card img {
        height: 170px;
    }

    .service-card {
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
        border-radius: 12px;
    }

    footer {
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    #contact-container {
        padding: 0 12px;
        width: 100%;
        box-sizing: border-box;
    }

    #left-footer-container {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #right-footer-container {
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
    }

    #footer-info {
        width: 100%;
        box-sizing: border-box;
    }

    #footer-info iframe {
        width: 100%;
        height: 230px;
        box-sizing: border-box;
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
        border-radius: 10px;
    }

    #contact-form-element {
        width: 100%;
        box-sizing: border-box;
    }

    #contact-form-element input,
    #contact-form-element textarea {
        padding: 10px 14px;
        font-size: 12px;
        width: 100%;
        box-sizing: border-box;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        border-radius: 9px;
    }

    #contact-form-element input:focus,
    #contact-form-element textarea:focus {
        box-shadow: 0 3px 14px rgba(1, 42, 28, 0.12);
    }

    .form-group {
        width: 100%;
        margin-top: 14px;
    }

    .checkbox-label {
        font-size: 11px;
        gap: 10px;
        width: 100%;
        display: flex;
        align-items: flex-start;
    }

    .checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        margin-top: 3px;
    }

    .checkbox-label span,
    .checkbox-label a {
        flex: 1;
        word-wrap: break-word;
    }

    #submit-button {
        width: 100%;
        box-sizing: border-box;
        box-shadow: 0 4px 16px rgba(1, 42, 28, 0.25);
        border-radius: 9px;
    }

    #submit-button:active {
        transform: scale(0.97);
    }

    .gallery,
    .project-gallery,
    .services-list {
        width: 100%;
        box-sizing: border-box;
    }

    .gallery {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        border-radius: 12px;
    }
}

/* Landscape Mobile Optimization */
@media screen and (max-height: 600px) and (orientation: landscape) {
    header {
        height: 70px;
    }

    header img {
        height: 50px;
    }

    #container,
    #services-container {
        padding: 40px 20px;
    }

    footer {
        padding: 40px 0 30px;
        width: 100%;
    }

    #footer-info iframe {
        height: 220px;
    }
}

/* Fix for small screens under 420px */
@media screen and (max-width: 420px) {
    body {
        overflow-x: hidden;
    }

    header {
        width: 100%;
        padding: 0 14px;
        box-shadow: 0 3px 18px rgba(1, 42, 28, 0.15);
    }

    #container,
    #services-container {
        padding: 24px 14px;
        width: 100%;
        overflow-x: hidden;
    }

    footer {
        width: 100%;
        overflow-x: hidden;
    }

    #contact-container {
        padding: 0 14px;
        width: 100%;
        max-width: 100%;
    }

    #left-footer-container {
        padding: 0 12px;
        max-width: 100%;
        box-sizing: border-box;
    }

    #contact-form-element {
        width: 100%;
        max-width: 100%;
    }

    #contact-form-element input,
    #contact-form-element textarea {
        width: 100%;
        box-sizing: border-box;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
        border-radius: 9px;
    }

    #contact-form-element input:focus,
    #contact-form-element textarea:focus {
        box-shadow: 0 3px 14px rgba(1, 42, 28, 0.12);
    }

    .form-group {
        width: 100%;
        margin-top: 14px;
    }

    .checkbox-label {
        font-size: 11px;
        gap: 10px;
        width: 100%;
        display: flex;
        align-items: flex-start;
    }

    .checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        margin-top: 3px;
    }

    .checkbox-label span,
    .checkbox-label a {
        flex: 1;
        word-wrap: break-word;
    }

    #submit-button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .project-gallery,
    .services-list {
        padding: 0 12px 24px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .service-card,
    .project-card {
        margin: 10px 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        border-radius: 12px;
    }

    .gallery {
        width: 100%;
        max-width: 100%;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    #footer-info {
        width: 100%;
        max-width: 100%;
    }

    #footer-info iframe {
        width: 100%;
        max-width: 100%;
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.12);
    }
}

/* Fix for very small screens */
@media screen and (max-width: 320px) {
    #container,
    #services-container {
        padding: 22px 10px;
    }

    .project-gallery,
    .services-list {
        padding: 0 10px 26px;
    }

    #contact-container {
        padding: 0 12px;
    }

    .service-card,
    .project-card {
        margin: 10px 0;
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
    }

    header {
        box-shadow: 0 3px 16px rgba(1, 42, 28, 0.15);
    }

    footer {
        box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.06);
    }
}
