/* General Reset */
body {
    font-family: 'Inter', 'Roboto', Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: linear-gradient(135deg, #d0e4f5 0%, #c0d8f0 25%, #e8f0f8 50%, #d5e5f3 75%, #c8ddf0 100%);
    background-attachment: fixed;
    position: relative;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Beautiful animated background for the entire page - Soap Suds Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(255,255,255,0.4) 3px, transparent 4px),
        radial-gradient(circle at 85% 75%, rgba(255,255,255,0.3) 2px, transparent 3px),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.5) 4px, transparent 5px),
        radial-gradient(circle at 70% 20%, rgba(255,255,255,0.35) 2.5px, transparent 3.5px),
        radial-gradient(circle at 25% 60%, rgba(255,255,255,0.25) 1.5px, transparent 2.5px),
        radial-gradient(circle at 90% 40%, rgba(255,255,255,0.4) 3.5px, transparent 4.5px);
    background-size: 200px 200px, 150px 150px, 250px 250px, 180px 180px, 120px 120px, 220px 220px;
    animation: float-bubbles 25s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-image: 
        radial-gradient(circle at 60% 30%, rgba(255,255,255,0.2) 2px, transparent 3px),
        radial-gradient(circle at 30% 70%, rgba(255,255,255,0.15) 1px, transparent 2px),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.3) 2.5px, transparent 3.5px),
        radial-gradient(circle at 10% 90%, rgba(255,255,255,0.25) 1.5px, transparent 2.5px);
    background-size: 300px 300px, 180px 180px, 240px 240px, 160px 160px;
    animation: drift-suds 35s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float-bubbles {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1); 
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-15px) translateX(8px) scale(1.1); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-10px) translateX(-5px) scale(0.9); 
        opacity: 0.7;
    }
    75% { 
        transform: translateY(-20px) translateX(12px) scale(1.05); 
        opacity: 0.9;
    }
}

@keyframes drift-suds {
    0% { 
        transform: translateX(-20px) translateY(0px) rotate(0deg); 
        opacity: 0.4;
    }
    25% { 
        transform: translateX(15px) translateY(-10px) rotate(90deg); 
        opacity: 0.6;
    }
    50% { 
        transform: translateX(-5px) translateY(-5px) rotate(180deg); 
        opacity: 0.5;
    }
    75% { 
        transform: translateX(25px) translateY(-15px) rotate(270deg); 
        opacity: 0.7;
    }
    100% { 
        transform: translateX(-20px) translateY(0px) rotate(360deg); 
        opacity: 0.4;
    }
}

@keyframes rotate-page {
    0% { 
        transform: rotate(0deg) scale(1); 
        opacity: 0.15;
    }
    50% { 
        transform: rotate(180deg) scale(1.01); 
        opacity: 0.25;
    }
    100% { 
        transform: rotate(360deg) scale(1); 
        opacity: 0.15;
    }
}
html {
    overflow-x: hidden;
}
* {
    box-sizing: border-box;
}
h1, h2, h3, h4 {
    font-family: 'Montserrat', 'Inter', Arial, Helvetica, sans-serif;
    font-weight: 900;
    letter-spacing: 1.5px;
}
h1 {
    font-size: 3rem;
    color: #003366;
    text-align: center;
    margin: 40px auto 16px auto;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.1;
    display: block;
    text-transform: uppercase;

}
h2 {
    font-size: 2rem;
    color: #00509e;
    text-align: center;
    margin: 36px auto 18px auto;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1.2;
    display: block;
    text-transform: uppercase;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    margin: 16px auto 0 auto;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00509e 60%, #e0f7ff 100%);
    border-radius: 2px;
}
p {
    font-size: 1.1rem;
    color: #003366;
    line-height: 1.6;
    text-align: center;
    margin: 10px 0;
    font-family: 'Arial', sans-serif;
    text-shadow: none;
}
/* white texxt */
h2a {
    font-size: 2rem;
    color: #fff;
    text-align: center;
    margin: 36px auto 18px auto;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1.2;
    display: block;
    text-transform: uppercase;
    position: relative;
}
h2a::after {
    content: "";
    display: block;
    margin: 16px auto 0 auto;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #579fe7 60%, #e0f7ff 100%);
    border-radius: 2px;
}
p1 {
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.6;
    text-align: center;
    margin: 10px 0;
    font-family: 'Arial', sans-serif;
    text-shadow: none;
}
/* Navigation Bar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #05376a, #00509e); /* Dark blue gradient */
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    max-height: 65px; /* Control the logo size */
    width: auto; /* Maintain aspect ratio */
}
.nav-logo {
    max-height: 65px; /* Shrink the logo to fit inside the navbar */
    width: auto; /* Maintain aspect ratio */
    margin-right: 10px; /* Add spacing between the logo and the links */
}
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links li {
    margin: 0 15px;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
}
.nav-links a:hover {
    background: white;
    color: #00509e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}
/* Responsive Design Navigation*/
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        position: absolute;
        top: 60px;
        left: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links a {
        color: #00509e;
        padding: 10px 20px;
        transition: background 0.3s ease; /* Smooth hover transition */
    }

    .nav-links a:hover {
        background: #e0f7ff; /* Light blue background on hover */
        color: #003366; /* Darker blue text on hover */
    }

    .menu-toggle {
        display: block;
    }
}
/*Index Page Styling*/

/* Content Row Styling */
.content-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 30px 0;
    padding: 0 10px;
}
.content-box {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    aspect-ratio: 1;
    background: linear-gradient(120deg, #fafdff 60%, #e0f7ff 100%);
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 80, 158, 0.08);
    margin: 10px;
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s;
    border: 1px solid #e0f7ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-box h2 {
    font-size: 1.3rem;
    color: #00509e;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.content-box:hover {
    
    box-shadow: 0 8px 16px rgba(0,80,158,0.10), 0 0 8px 1px #a3cffb;
    background: linear-gradient(120deg, #ffffff 80%, #e0f7ff 100%);
    border: 1.5px solid #00509e;
}

.content-box:hover h2 {
    color: #ff4d4d;
    transition: color 0.2s;
}

@media (max-width: 768px) {
    .content-row {
        flex-direction: column; /* Stack boxes vertically on smaller screens */
        align-items: center; /* Center the boxes */
    }

    .content-box {
        min-width: 200px;
        max-width: calc(100vw - 60px);
        width: 70vw;
        height: 450px; /* Fixed height to prevent overflow */
        aspect-ratio: unset; /* Remove aspect ratio constraint */
        min-height: unset; /* Remove conflicting min-height */
        max-height: unset; /* Remove conflicting max-height */
        overflow: hidden; /* Hide any overflow just in case */
        padding: 20px 15px; /* Adjust padding for better text fit */
    }
}
/* Image gallery styling */
.image-gallery-container {
    background: #f7f7f7;
    padding: 40px 20px;
    margin: 40px 0;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,80,158,0.06);
}
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.image-gallery img {
    width: 320px;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    margin: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: calc(100vw - 40px);
}

.image-gallery img:hover {
    transform: scale(1.30) rotate(-0.5deg); /* Less scale/rotation */
    box-shadow: 0 6px 16px rgba(0,80,158,0.12);
}

/*services page*/
.service{
    background: linear-gradient(135deg, rgba(0,40,80,0.85), rgba(0,80,158,0.75)), 
                radial-gradient(circle at 20% 80%, rgba(0,191,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(112,185,209,0.15) 0%, transparent 50%);
    color: #fff;
    padding: 40px 20px 80px 20px;
    text-align: center;
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0,191,255,0.12) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(112,185,209,0.08) 1px, transparent 1px),
        linear-gradient(45deg, transparent 48%, rgba(0,191,255,0.06) 49%, rgba(0,191,255,0.06) 51%, transparent 52%);
    background-size: 60px 60px, 40px 40px, 80px 80px;
    animation: float-tech 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.service::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 90%;
    height: 80%;
    background: 
        conic-gradient(from 0deg at 20% 30%, transparent 70deg, rgba(0,191,255,0.08) 72deg, rgba(0,191,255,0.08) 78deg, transparent 80deg),
        conic-gradient(from 180deg at 80% 70%, transparent 70deg, rgba(112,185,209,0.06) 72deg, rgba(112,185,209,0.06) 78deg, transparent 80deg);
    animation: rotate-tech 30s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.service > * {
    position: relative;
    z-index: 2;
}

@keyframes float-tech {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1); 
        opacity: 0.7;
    }
    25% { 
        transform: translateY(-10px) translateX(5px) scale(1.02); 
        opacity: 0.9;
    }
    50% { 
        transform: translateY(-5px) translateX(-3px) scale(0.98); 
        opacity: 0.8;
    }
    75% { 
        transform: translateY(-15px) translateX(2px) scale(1.01); 
        opacity: 0.85;
    }
}

@keyframes rotate-tech {
    0% { 
        transform: rotate(0deg) scale(1); 
        opacity: 0.4;
    }
    50% { 
        transform: rotate(180deg) scale(1.05); 
        opacity: 0.6;
    }
    100% { 
        transform: rotate(360deg) scale(1); 
        opacity: 0.4;
    }
}

.services-list {
    max-width: 500px;
    margin: 0px auto;
    background: #e0f7ff;
    border-radius: 14px;
    padding: 32px 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.6);
    text-align: center;
}
.services-list h2 {
    color: #00509e;
    margin-bottom: 18px;
}
.services-list ul {
    list-style: none;
    padding: 0;
}
.services-list li {
    font-size: 1.1rem;
    font-family: 'Franklin Gothic Medium', Arial, sans-serif;
    color: #003366;
    margin: 10px 0;
    position: relative;
    padding-left: 28px;
}
.services-list li::before {
    content: "✔";
    color: #00509e;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}
.cta-box {
    max-width: 600px;
    margin: 40px auto;
    background: linear-gradient(to right, #e0f7ff, #ffffff);
    border-radius: 18px;
    padding: 36px 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
}
.cta-box h2 {
    color: #ff4d4d;
    margin-bottom: 12px;
}
.cta-button {
    display: inline-block;
    margin-top: 18px;
    padding: 14px 36px;
    background: #00509e;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.15rem;
    transition: background 0.3s, transform 0.3s;
}
.cta-button:hover {
    background: #003366;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px) scale(1.04);
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .image-gallery img {
        width: calc(100vw - 60px);
        max-width: 400px;
        height: 180px;
        margin: 5px;
    }
    .content-row {
        flex-direction: column;
        align-items: center;
    }
    .content-box {
        min-width: 220px;
        max-width: calc(100vw - 60px);
        width: 75vw;
        height: 400px; /* Fixed height for tablets */
        aspect-ratio: unset; /* Remove aspect ratio constraint */
        margin: 10px 20px;
        max-height: unset; /* Remove conflicting max-height */
        overflow: hidden; /* Prevent text overflow */
        padding: 20px 15px;
    }
}
.carousel-container {
    position: relative;
    max-width: 1000px;
    width: 95%;
    margin: 40px auto;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,80,158,0.12), 0 2px 8px rgba(0,0,0,0.08);
    padding: 25px 0;
    border: 1px solid rgba(0,80,158,0.08);
}

/* Consistent carousel styling for all gallery sections */
.landing-section .carousel-container {
    position: relative;
    max-width: 1000px;
    width: 95%;
    margin: 40px auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,80,158,0.12), 0 2px 8px rgba(0,0,0,0.08);
    padding: 25px 0;
    overflow: hidden;
    border: 1px solid rgba(0,80,158,0.08);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(.25,.8,.25,1);
    will-change: transform;
    width: 100%;
}

.carousel-track img {
    width: calc(100% - 30px);
    max-width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,80,158,0.15), 0 2px 8px rgba(0,0,0,0.1);
    margin: 0 15px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-track img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0,80,158,0.2), 0 4px 16px rgba(0,0,0,0.15);
}

.carousel-arrow {
    background: linear-gradient(135deg, #00509e 0%, #003366 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    margin: 0 10px;
    box-shadow: 0 4px 16px rgba(0,80,158,0.25), 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid rgba(255,255,255,0.2);
}
.carousel-arrow.left {
    left: 15px;
}

.carousel-arrow.right {
    right: 15px;
}
.carousel-arrow:hover {
    background: linear-gradient(135deg, #003366 0%, #001a33 100%);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    box-shadow: 0 6px 24px rgba(0,80,158,0.4), 0 4px 12px rgba(0,0,0,0.2);
}

@media (max-width: 700px) {
    .carousel-container {
        margin: 20px 15px;
        padding: 20px 5px;
        width: calc(100% - 30px);
    }
    .carousel-track img {
        width: calc(100% - 20px);
        max-width: calc(100vw - 60px);
        height: 280px;
        margin: 0 10px;
        border-radius: 16px;
    }
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
    .carousel-arrow.left {
        left: 10px;
    }
    .carousel-arrow.right {
        right: 10px;
    }
    
    /* Consistent carousel styling on mobile */
    .landing-section .carousel-container {
        margin: 20px 15px;
        width: calc(100% - 30px);
        background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
        border-radius: 24px;
        box-shadow: 0 8px 32px rgba(0,80,158,0.12), 0 2px 8px rgba(0,0,0,0.08);
        padding: 20px 5px;
    }
}

/* Extra small mobile devices - ensure symmetric spacing */
@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    .hero {
        padding: 20px 15px;
        margin-bottom: 40px;
    }
    
    .hero-logo {
        margin: 0 auto;
        max-width: 200px !important; /* Force override with !important */
        width: 200px !important; /* Also set width to ensure it shrinks */
        height: auto !important;
        display: block;
    }
    
    .landing-section {
        padding: 40px 15px;
        margin: 20px 0 !important; /* Override inline styles */
        max-width: none !important; /* Override inline styles */
        width: 100%;
    }
    
    .carousel-container,
    .landing-section .carousel-container {
        margin: 20px 0;
        width: 100%;
        padding: 20px 15px;
    }
    
    .content-row {
        padding: 0 10px;
    }
    
    .content-box {
        margin: 10px auto;
        max-width: calc(100vw - 50px);
        width: 85vw;
        height: 450px; /* Fixed height for smallest mobile */
        aspect-ratio: unset;
        min-height: unset;
        max-height: unset;
        overflow: hidden;
        padding: 20px 15px;
    }
    
    /* Ensure all text elements are properly centered */
    h1, h2, h2a, p, p1 {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 1.2rem !important;
        line-height: 1.2;
    }
}
.hero {
    background: linear-gradient(rgba(0,40,80,0.45),rgba(0,40,80,0.45));
    color: #fff;
    text-align: center;
    position: relative;
    margin-bottom: 40px;
    padding: 20px 15px; /* Added left/right padding for proper centering */
}
.hero-logo {
    max-width: 650px; /* Reduced from 950px for slightly smaller logo */
    margin: auto;
    display: block; /* Ensure it's a block element for centering */
    
    
    width: auto; /* Allow mobile rules to override */
    height: auto;
}
.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 18px;
    letter-spacing: 2px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0,0,0,0.18);
}
.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #e0f7ff;
    letter-spacing: 1px;
}
.hero-cta {
    font-size: 1.2rem;
    padding: 16px 40px;
    background: #ff4d4d;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: background 0.3s, transform 0.3s;
    display: inline-block;
}
.hero-cta:hover {
    background: #d32f2f;
    transform: translateY(-2px) scale(1.04);
}
@media (max-width: 780px) and (min-width: 481px) {
    .hero-content h1 {
        font-size:1.2rem !important; /* Force override for medium screens */
    }
    .hero {
        padding: 20px;
    }
    .hero-logo {
        max-width: 380px !important; /* Force override with !important */
        width: 380px !important; /* Also set width to ensure it shrinks */
        height: auto !important;
        display: block;
    }
    .logo img, .nav-logo {
        max-height: 45px; /* Smaller navigation icon */
    }
}

/* Medium-sized screens */
@media (max-width: 900px) and (min-width: 781px) {
    .hero-logo {
        max-width: 300px; /* Reduced from 400px for better proportions */
        margin: 0 auto;
        display: block;
    }
    .logo img, .nav-logo {
        max-height: 55px; /* Navigation icon size for medium screens */
    }
}

/* Contact Form Styling */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 30px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    padding: 40px;
    max-width: 1000px;
}
.contact-info {
    flex: 1;
    min-width: 250px;
    background: linear-gradient(135deg, #00509e 0%, #003366 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,80,158,0.15);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.contact-method {
    margin: 20px 0;
    display: flex;
    align-items: center;
}

.contact-method i {
    margin-right: 12px;
    font-size: 1.2rem;
    color: #e0f7ff;
}

.contact-method a, .contact-method span {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-method a:hover {
    text-decoration: underline;
    color: #e0f7ff;
}

.contact-form {
    flex: 2;
    min-width: 300px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #003366;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: #00509e;
    box-shadow: 0 0 0 3px rgba(0,80,158,0.1);
    outline: none;
}

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-checkbox label {
    margin-bottom: 0;
}

.submit-btn {
    background: #00509e;
    width: 100%;
    font-size: 1.1rem;
    margin-top: 10px;
    padding: 14px 20px;
}

.submit-btn:hover {
    background: #003366;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-container {
        padding: 15px;
        margin: 20px 15px;
        width: calc(100% - 30px);
        max-width: calc(100vw - 30px);
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        width: 100%;
        max-width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Fix checkbox alignment on mobile */
    .form-checkbox input {
        width: auto !important;
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    .form-checkbox {
        display: flex;
        align-items: flex-start;
        text-align: left;
    }
    
    .form-checkbox label {
        flex: 1;
        margin-bottom: 0;
        line-height: 1.4;
    }
}

/* Form validation and success styles */
.error {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.1) !important;
}

.error-message {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.form-success {
    text-align: center;
    padding: 30px;
    background: #e8f5e9;
    border-radius: 12px;
    margin: 20px 0;
}

.form-success h3 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.form-success ul {
    text-align: left;
    max-width: 400px;
    margin: 15px auto;
    padding-left: 20px;
}

.form-success li {
    margin-bottom: 5px;
}

/* Thank You Page Styling */
.thank-you-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.thank-you-container {
    background: #fff;
    padding: 50px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.thank-you-container i {
    font-size: 5rem;
    color: #00509e;
    margin-bottom: 20px;
}

.thank-you-container h1 {
    color: #00509e;
    margin-bottom: 20px;
}

.thank-you-container p {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.thank-you-container .cta-button {
    margin-top: 30px;
    display: inline-block;
}

/* Footer Styling */
.site-footer {
    background: #003366;
    color: white;
    padding: 20px 10px;
    margin-top: 40px;
    text-align: center;
}

.simple-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.social-icons {
    margin: 15px 0;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 12px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #3b9cf1;
}

.copyright {
    margin-top: 15px;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Additional Mobile Overflow Prevention */
@media (max-width: 768px) {
    * {
        max-width: 100vw !important;
        box-sizing: border-box;
    }
    
    .landing-section {
        padding: 0 15px;
        margin: 20px 0;
    }
    
    .contact-container {
        margin: 20px 15px;
        padding: 15px;
        max-width: calc(100vw - 30px);
        width: calc(100% - 30px);
    }
    
    .image-gallery-container {
        margin: 20px 15px;
        padding: 20px 15px;
    }
    
    .services-list {
        margin: 20px 15px;
        max-width: calc(100vw - 30px);
    }
    
    .cta-box {
        margin: 20px 15px;
        max-width: calc(100vw - 30px);
    }
    
    /* Fix text centering issues */
    h1, h2, h2a, p, p1 {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Prevent form elements from extending beyond containers */
    input, select, textarea, button {
        max-width: 100%;
        box-sizing: border-box;
    }
}