/* -----------------------------
   Table of Contents
   -----------------------------
   1. Reset & Base Styles
   2. Layout & Structure
   3. Navigation & Header
   4. Scroll Container
   5. Section Styles
   6. Cloud Animations
   7. Ground Elements
   8. Typography
   9. Buttons & Interactive Elements
   10. Animations & Keyframes
   11. Utility Classes
----------------------------- */

/* 1. Reset & Base Styles */
body {
    font-family: 'Dosis', Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    scroll-behavior: smooth;
}

/* 2. Layout & Structure */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200vh;
    background: linear-gradient(to bottom, #b3e0ff 0%, #4dc3ff 60%, #87CEEB 100%);
    z-index: -2;
    transition: transform 0.1s ease-out;
}

#rocket-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100vh;
    z-index: 1001;
}

#rocket {
    width: 200px;
    animation: launch 3s ease-in-out;
}

/* 3. Navigation & Header */
.header {
    width: 100%;
    height: 120px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    /* This will center the logo */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 0 20px;
    box-sizing: border-box;
}

.header.hidden {
    opacity: 0;
    visibility: hidden;
    /* Add this */
    pointer-events: none;
}

.header .logo {
    width: 110px;
    height: auto;
    opacity: 0;
    animation: fadeIn 1s forwards;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.header .logo:hover {
    transform: scale(1.1);
    /* Simplified transform */
}

.hamburger {
    width: 30px;
    height: 40px;
    position: absolute;
    right: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1002;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    transition: all 0.25s ease-in-out;
    right: 0;
}

.hamburger span:nth-child(1) {
    top: 0px;
    width: 100%;
}

.hamburger span:nth-child(2) {
    top: 8px;
    width: 100%;
}

.hamburger span:nth-child(3) {
    top: 16px;
    width: 100%;
}


.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
    width: 100%;
}

.hamburger.active span:nth-child(2) {
    width: 0;
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
    width: 100%;
}

#nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #b3e0ff;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1000;
}

#nav-links a {
    color: black;
    font-size: 2rem;
    text-decoration: none;
    margin: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

#nav-links a:hover {
    color: #0077be;
    transform: scale(1.1);
}

#nav-links.show {
    display: flex;
    opacity: 1;
}

.cookie-consent {
    position: fixed;
    bottom: -200px; /* Start off-screen */
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: bottom 0.3s ease-in-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-family: 'Dosis', Arial, sans-serif;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
}

.accept-cookies {
    background-color: #0077be;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    font-family: 'Dosis', Arial, sans-serif;
}

.accept-cookies:hover {
    background-color: #005c8f;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    
    .cookie-consent {
        padding: 15px;
    }
}

/* 4. Scroll Container */
.scroll-container {
    height: 100dvh;
    /* Keep dynamic viewport height */
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: fixed;
    /* Add this */
    width: 100%;
    /* Add this */
    top: 0;
    /* Add this */
    left: 0;
    /* Add this */
}

.home-page .scroll-container {
    scroll-snap-type: y mandatory;
    scroll-padding: 0;
}

.scroll-container::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.home-page .section {
    scroll-snap-align: start;
}

/* 5. Section Styles */
.section {
    height: auto;
    min-height: 100dvh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.section-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* 6. Cloud Animations */
.cloud {
    position: absolute;
    background: white;
    border-radius: 100px;
    opacity: 0.8;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.cloud.large {
    width: 200px;
    height: 60px;
}

.cloud.large::before {
    width: 90px;
    height: 90px;
    top: -35px;
    left: 25px;
}

.cloud.large::after {
    width: 120px;
    height: 120px;
    top: -50px;
    right: 25px;
}

.cloud.medium {
    width: 150px;
    height: 45px;
}

.cloud.medium::before {
    width: 70px;
    height: 70px;
    top: -25px;
    left: 15px;
}

.cloud.medium::after {
    width: 90px;
    height: 90px;
    top: -35px;
    right: 15px;
}

.cloud.small {
    width: 100px;
    height: 30px;
}

.cloud.small::before {
    width: 50px;
    height: 50px;
    top: -20px;
    left: 10px;
}

.cloud.small::after {
    width: 60px;
    height: 60px;
    top: -25px;
    right: 10px;
}

/* 7. Ground Elements */
.ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    background-color: #44c767;
    z-index: -1;
    clip-path: polygon(0% 100%,
            0% 60%,
            2% 60%,
            4% 65%,
            6% 60%,
            8% 65%,
            10% 60%,
            12% 65%,
            14% 60%,
            16% 65%,
            18% 60%,
            20% 65%,
            22% 60%,
            24% 65%,
            26% 60%,
            28% 65%,
            30% 60%,
            32% 65%,
            34% 60%,
            36% 65%,
            38% 60%,
            40% 65%,
            42% 60%,
            44% 65%,
            46% 60%,
            48% 65%,
            50% 60%,
            52% 65%,
            54% 60%,
            56% 65%,
            58% 60%,
            60% 65%,
            62% 60%,
            64% 65%,
            66% 60%,
            68% 65%,
            70% 60%,
            72% 65%,
            74% 60%,
            76% 65%,
            78% 60%,
            80% 65%,
            82% 60%,
            84% 65%,
            86% 60%,
            88% 65%,
            90% 60%,
            92% 65%,
            94% 60%,
            96% 65%,
            98% 60%,
            100% 65%,
            100% 100%);
}

.ground::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: #32CD32;
    clip-path: path('M0,20 C30,10 60,30 90,20 C120,10 150,30 180,20 C210,10 240,30 270,20 C300,10 330,30 360,20 C390,10 420,30 450,20 C480,10 510,30 540,20 C570,10 600,30 630,20 C660,10 690,30 720,20 C750,10 780,30 810,20 C840,10 870,30 900,20 L900,30 L0,30 Z');
}

.ground::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image:
        radial-gradient(circle at 10% 0, transparent 20%, #32CD32 21%),
        radial-gradient(circle at 30% 0, transparent 20%, #32CD32 21%),
        radial-gradient(circle at 50% 0, transparent 20%, #32CD32 21%),
        radial-gradient(circle at 70% 0, transparent 20%, #32CD32 21%),
        radial-gradient(circle at 90% 0, transparent 20%, #32CD32 21%);
    background-size: 20% 100%;
    background-repeat: repeat-x;
}

/* 8. Typography */
.intro-text {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 10vh;
    width: 90%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.intro-text h1 {
    font-size: clamp(1.8rem, 4vw, 4rem);
    margin-bottom: clamp(1rem, 2vw, 2rem);
    text-shadow: 2px 2px 5px rgba(66, 66, 66, 0.3);
    line-height: 1.2;
}

.intro-text p {
    font-size: clamp(1.125rem, 1.5vw, 2rem);
    margin-bottom: 0;
    padding-left: clamp(20px, 8vw, 160px);
    padding-right: clamp(20px, 8vw, 160px);
    text-shadow: 1px 1px 3px rgba(66, 66, 66, 0.3);
    line-height: 1.5;
}

/* 9. Buttons & Interactive Elements */
.service-btn {
    display: inline-block;
    background-color: #0077be;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.service-btn:hover {
    background-color: #005c8f;
    transform: scale(1.05);
}

.scroll-arrow {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1003;
    transition: transform 0.3s ease;
}

.scroll-arrow::after {
    content: '';
    width: 20px;
    height: 20px;
    border-right: 3px solid #0077be;
    border-bottom: 3px solid #0077be;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.scroll-arrow.up::after {
    transform: rotate(-135deg);
}

.scroll-arrow:hover {
    transform: scale(1.1);
}

/* 10. Animations & Keyframes */
@keyframes launch {
    0% {
        transform: translateY(100vh);
    }

    50% {
        transform: translateY(-20vh) rotate(10deg);
    }

    100% {
        transform: translateY(-100vh) rotate(-10deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes floatRight {
    from {
        left: -300px;
    }

    to {
        left: 100%;
    }
}

@keyframes floatLeft {
    from {
        left: 100%;
    }

    to {
        left: -300px;
    }
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes moveUp {
    0% {
        transform: translateY(100px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes waveGrass {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* 11. Utility Classes */
.hidden {
    display: none;
}

#content-container {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#content-container.show {
    display: block;
    opacity: 1;
}

#content.blur {
    filter: blur(5px);
    transition: filter 0.5s;
}

/* 12. Images & Media */
.intro-image {
    text-align: center;
}

.intro-image img {
    max-width: 100%;
    height: auto;
    width: 30%;
    display: block;
    margin: 0 auto;
}

#intro1 .intro-image img {
    animation: shake 1s infinite, moveUp 2s;
}

/* 13. Footer Styles */
.footer {
    background-color: #44c767;
    color: #333;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    scroll-snap-align: end;
}

.footer a {
    color: #0062ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #00a0e9;
}

/* 14. Section-Specific Styles */
#intro4 {
    padding-bottom: 15vh;
}

#intro4 .intro-text,
#intro4 .intro-image,
#intro4 .service-btn {
    position: relative;
    z-index: 1;
}

/* 15. Cloud Positioning */
.section-clouds .cloud:nth-child(1) {
    top: 20%;
    animation: floatRight 60s linear infinite;
}

.section-clouds .cloud:nth-child(2) {
    top: 45%;
    animation: floatLeft 45s linear infinite;
}

.section-clouds .cloud:nth-child(3) {
    top: 70%;
    animation: floatRight 50s linear infinite;
}

.section-clouds .cloud:nth-child(4) {
    top: 30%;
    animation: floatLeft 55s linear infinite;
}

.section-clouds .cloud:nth-child(5) {
    top: 60%;
    animation: floatRight 40s linear infinite;
}

/* 16. Scroll Arrow Animation */
.scroll-arrow.bounce {
    animation: bounce 1s ease infinite;
}

/* 17. CONTACT PAGE */

.contact-container {
    width: 90%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    /* Add this */
    margin-bottom: 15vh;
}


#contact-form.section {
    min-height: 100dvh;
    height: auto;
    padding-bottom: 20px;
    /* Add some padding at bottom */
    position: relative;
    overflow-y: auto;
}

#contact-form .intro-text {
    padding-top: 80px;
    /* Reduced padding from logo */
    margin-bottom: 5px;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    height: 48px;
    /* Fixed height for all inputs */
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 120px;
    height: auto;
    resize: vertical;
    padding-top: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0077be;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 119, 190, 0.3);
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    padding: 0 4px;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 16px;
}

.form-group textarea+label {
    top: 24px;
    transform: none;
}

/* Label animation for inputs */
.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label {
    top: 0;
    transform: translateY(-50%) scale(0.9);
    background: white;
    color: #0077be;
}

/* Label animation for textarea */
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -8px;
    transform: scale(0.9);
    background: white;
    color: #0077be;
}

.form-group select {
    cursor: pointer;
    color: #666;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group select:required:invalid {
    color: #666;
}

.form-group select option {
    color: #333;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    height: 48px;
    background-color: #0077be;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-btn:hover {
    background-color: #005c8f;
    transform: scale(1.02);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Services Page Styles */
.services-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    /* Reduced from 2rem */
    padding: 1.5rem;
    /* Reduced from 2rem */
    margin-bottom: 15vh;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 1.5rem;
    /* Reduced from 2rem */
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: transform 0.3s ease;
    max-width: 800px;
    width: 90%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    /* Reduced from 2rem */
    text-align: center;
    width: 100%;
}

.service-image {
    width: 150px;
    /* Reduced from 200px */
    height: 150px;
    /* Reduced from 200px */
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.1));
    margin-bottom: 0.5rem;
    /* Added small margin */
}

.service-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
    /* Added to control spacing between elements */
}

.service-description h2 {
    color: #0077be;
    margin-bottom: 0.5rem;
    /* Reduced from 1rem */
    font-size: 1.6rem;
    /* Slightly reduced from 1.8rem */
    text-align: center;
}

.service-description p {
    line-height: 1.4;
    /* Reduced from 1.6 */
    margin-bottom: 0.5rem;
    /* Reduced from 1rem */
    text-align: center;
    max-width: 600px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
    /* Reduced from 1.5rem */
    text-align: left;
    width: 100%;
    max-width: 400px;
}

.features-list li {
    margin: 0.25rem 0;
    /* Reduced from 0.5rem */
    padding-left: 1.5rem;
    position: relative;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #44c767;
}

.cta-button {
    background-color: #0077be;
    color: white;
    padding: 0.6rem 1.2rem;
    /* Slightly reduced padding */
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    display: inline-block;
}

.cta-button:hover {
    background-color: #005c8f;
    transform: scale(1.05);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 15vh 20px;
    text-align: center;
}

.about-content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 3rem;
    color: #333;
}

.about-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.vernd-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 15vh 20px;
    text-align: center;
}

.vernd-content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 3rem;
    color: #333;
}

.vernd-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin-top: 5rem;
    margin-bottom: 2rem;
}

.vernd-text h1 {
    text-align: center;
}

.vernd-text h2 {
    color: #0077be;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-align: center; /* Ensure headers are also centered */
}

.vernd-text p2 {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: center; /* Center-align text */
}

.vernd-text p {
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: center; /* Center-align text */
}

.vernd-text ul {
    list-style-type: none;
    padding-left: 0; /* Remove indentation to center-align */
    margin-bottom: 20px;
    text-align: center; /* Center-align the list */
}

.vernd-text ul li {
    margin-bottom: 8px;
    line-height: 1.4;
    text-align: center; /* Ensure list items are centered */
}

@supports (-webkit-touch-callout: none) {
    .scroll-container {
        height: -webkit-fill-available;
    }

    #contact-form.section {
        min-height: -webkit-fill-available;
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
}

@media screen and (max-width: 1179px) {

    .hamburger {
        width: 30px;
        height: 25px;
        /* Reduced height */
        position: absolute;
        right: 10px;
        /* Reduced right spacing */
        top: 50%;
        transform: translateY(-50%);
        /* Center vertically */
    }

    .intro-image img {
        max-width: 150%;
        height: auto;
        width: 35%;
        display: block;
        margin: 0 auto;
    }

    .intro-text {
        padding-top: calc(20px + env(safe-area-inset-top));
        /* Account for status bar */
        padding-bottom: env(safe-area-inset-bottom);
        /* Account for bottom bar */
    }

    .header .logo {
        width: 70px;
        /* Even smaller for phones */
    }

    .header {
        height: 80px;
        /* You might want to reduce header height too */
    }

    .header a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .service-btn {
        padding: 5px 10px;
    }

    .section-clouds .cloud:nth-child(1) {
        top: 15%;
        left: -150px;
        /* Start position */
        animation: mobileCloudRight 30s linear infinite;
        /* Faster animation */
    }

    .section-clouds .cloud:nth-child(2) {
        top: 35%;
        left: 100%;
        /* Start from right */
        animation: mobileCloudLeft 25s linear infinite;
    }

    .section-clouds .cloud:nth-child(3) {
        top: 55%;
        left: -150px;
        animation: mobileCloudRight 35s linear infinite;
    }

    .section-clouds .cloud:nth-child(4) {
        top: 75%;
        left: 100%;
        animation: mobileCloudLeft 28s linear infinite;
    }

    .section-clouds .cloud:nth-child(5) {
        top: 90%;
        left: -150px;
        animation: mobileCloudRight 32s linear infinite;
    }

    /* New mobile-specific animations */
    @keyframes mobileCloudRight {
        0% {
            opacity: 0;
            transform: translateX(-50px);
        }

        10% {
            opacity: 1;
            transform: translateX(0);
        }

        90% {
            opacity: 1;
        }

        100% {
            opacity: 0;
            transform: translateX(calc(100vw + 150px));
        }
    }

    @keyframes mobileCloudLeft {
        0% {
            opacity: 0;
            transform: translateX(50px);
        }

        10% {
            opacity: 1;
            transform: translateX(0);
        }

        90% {
            opacity: 1;
        }

        100% {
            opacity: 0;
            transform: translateX(calc(-100vw - 150px));
        }
    }

    /* Adjust cloud sizes for better mobile visibility */
    .cloud.large {
        width: 100px;
        height: 30px;
    }

    .cloud.large::before {
        width: 45px;
        height: 45px;
        top: -18px;
        left: 12px;
    }

    .cloud.large::after {
        width: 60px;
        height: 60px;
        top: -25px;
        right: 12px;
    }

    .cloud.medium {
        width: 75px;
        height: 22px;
    }

    .cloud.medium::before {
        width: 35px;
        height: 35px;
        top: -13px;
        left: 8px;
    }

    .cloud.medium::after {
        width: 45px;
        height: 45px;
        top: -18px;
        right: 8px;
    }

    .cloud.small {
        width: 50px;
        height: 15px;
    }

    .cloud.small::before {
        width: 22px;
        height: 22px;
        top: -8px;
        left: 5px;
    }

    .cloud.small::after {
        width: 28px;
        height: 28px;
        top: -10px;
        right: 5px;
    }

    /* 17. CONTACT PAGE MOBILE */

    .contact-container {
        width: 85%;
        padding: 1.5rem;
        margin: 1rem auto;
        padding: 1.5rem;
        margin-bottom: 15vh;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea,
    .submit-btn {
        font-size: 14px;
        height: 44px;
        /* Slightly smaller height on mobile */
    }

    .form-group textarea {
        min-height: 100px;
        height: auto;
    }

    .form-group label {
        font-size: 14px;
    }

    #contact-form {
        padding-top: 40px;
        /* Reduced mobile padding */
        padding-bottom: 40px;
    }

    #contact-form .intro-text {
        padding-top: 60px;
        /* Reduced mobile padding */
        margin-top: 0;
    }

    /* Maintain text spacing */
    #contact-form .intro-text h1 {
        margin-bottom: 1rem;
    }

    #contact-form .intro-text p {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Services Page Mobile Optimization */
    .services-grid {
        padding: 1rem;
        gap: 1rem;
        margin-top: 20px;
        /* Reduced space after header text */
        width: 90%;
        /* Make grid narrower */
        max-width: 500px;
        /* Limit maximum width on mobile */
    }

    .service-card {
        padding: 1rem;
        width: 100%;
        max-width: none;
    }

    .service-content {
        gap: 0.75rem;
    }

    .service-image {
        width: 100px;
        height: 100px;
        margin-bottom: 0.25rem;
    }

    .service-description {
        gap: 0.25rem;
    }

    .service-description h2 {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
    }

    .service-description p {
        font-size: 0.95rem;
        line-height: 1.3;
        padding: 0 0.5rem;
    }

    .features-list {
        margin: 0.5rem 0;
        padding: 0 1rem;
    }

    .features-list li {
        font-size: 0.9rem;
        margin: 0.2rem 0;
        padding-left: 1.25rem;
    }

    .features-list li::before {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
        margin-top: 0.25rem;
    }

    /* Safe area insets for notched devices */
    .services-grid {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-bottom: calc(env(safe-area-inset-bottom) + 15vh);
    }

}