/* Inter Font Face Declarations */
@font-face {
    font-family: 'Inter';
    src: url('assets/font/Inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/font/Inter/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Reset and basic setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
html {
    width: 100%;
    /* height: 100%;  Removed to allow scrolling */
    overflow-x: hidden;
    /* Prevent horizontal scroll only */
    font-family: 'Inter', sans-serif;
    /* Modern font choice */
}

/* Slideshow Container */
#slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    background-color: #000;
    /* Fallback color */
}

/* Individual Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the screen */
    object-position: center;
}

/* Optional Overlay for Text visibility if needed */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Darken bg slightly for text pop */
    pointer-events: none;
    z-index: 0;
}

/* Content styling (from index.html h1) */
h1 {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: none;
    /* Hide old H1 */
}

/* Logo */
.logo {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.logo img {
    height: 40px;
    /* Adjust based on actual logo aspect ratio */
    width: auto;
}

/* Contact Menu */
.contact-menu {
    position: absolute;
    top: 35px;
    right: 50px;
    z-index: 10;
}

.contact-menu a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.contact-menu a:hover {
    opacity: 0.8;
}

/* Caption Container */
.caption-container {
    position: absolute;
    bottom: 80px;
    left: 60px;
    max-width: 650px;
    z-index: 10;
    color: white;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.caption-container h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.caption-container p {
    font-size: 1.2rem;
    line-height: 1.5;
    opacity: 0.9;
    max-width: 500px;
}

/* About Us Section */
#about-us {
    background-color: white;
    padding: 100px 20px;
    text-align: center;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-tag {
    background-color: #3b5998;
    /* Example blue color */
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

#about-us h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: #222;
    position: static;
    /* Override h1/h2 fixed positioning if any global styles interfere */
    transform: none;
    text-shadow: none;
}

#about-us p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0 10%;
}

/* Services Section */
#services {
    background-color: #ffffff;
    /* Light gray background */
    text-align: center;
}

.services-container {
    background-color: #f8f9fa;
    padding: 80px 40px;
}

.service-header {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-tag {
    background-color: #3b5998;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

#services h2 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 15px;
    font-weight: 700;
}

#services p {
    color: #666;
    font-size: 1rem;
    max-width: 600px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1300px;
    /* Increased to allow 4 cards alongside */
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    /* Flex sizing for 4 items per row */
    flex: 0 1 calc(25% - 30px);
    /* 25% minus gap approximation to fit 4 */
    min-width: 250px;
    /* Fallback for smaller screens */
    margin-bottom: 20px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 180px;
    /* Slightly reduced height to balance 4-row */
    overflow: hidden;
}

/* Why Us Section */
#why-us {
    background-color: white;
    padding: 100px 40px;
    text-align: center;
}

.section-header {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blue-tag {
    background-color: #3b5998;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

#why-us h2 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 15px;
    font-weight: 700;
}

#why-us p {
    color: #888;
    font-size: 1rem;
}

.why-us-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 40px 20px;
    flex: 1 1 200px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.why-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.icon-box {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
}

.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.why-card h3 {
    font-size: 1rem;
    color: #444;
    font-weight: 600;
}

/* Get A Quote Section */
#quote {
    background-color: #111;
    /* Dark background */
    color: white;
    padding: 100px 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 40px;
}

.quote-content {
    max-width: 600px;
}

.gray-tag {
    background-color: #333;
    color: #ccc;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: inline-block;
}

#quote h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
}

#quote p {
    font-size: 1.1rem;
    color: #aaa;
    line-height: 1.6;
}

.btn-quote {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid #555;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-quote:hover {
    background-color: white;
    color: #111;
    border-color: white;
}

/* Our Clients Section */
#clients {
    background-color: white;
    padding: 80px 40px;
    text-align: center;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.client-logo {
    flex: 0 1 150px;
    /* Base width */
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.client-logo:hover {
    opacity: 0.8;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    padding: 10px;
    border-radius: 20px;
}

.service-card:hover .card-image img {
    transform: scale(1.05);
}

.service-card h3 {
    padding: 20px;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin: 0;
}

/* Contact Form Section */
#contact {
    display: none;
}

.contact-form-container {
    max-width: 900px;
    width: 100%;
    position: relative;
}

.contact-toggle-btn {
    display: block;
    margin: 0 auto 40px;
    padding: 5px 20px;
    background-color: #3b5998;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-align: center;
    text-decoration: none;
}

.contact-toggle-btn:hover {
    background-color: #2d4780;
}

.contact-form-wrapper {
    background-color: #f5f5f5;
    padding: 0;
}

.contact-heading {
    font-size: 3rem;
    color: #222;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.contact-subtext {
    font-size: 1rem;
    color: #888;
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
}

.contact-form {
    background-color: transparent;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    align-items: start;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group-full {
    width: 100%;
    margin-bottom: 20px;
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1a4d7a;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
    text-align: left;
    text-align-last: left;
    direction: ltr;
}

.form-select option {
    text-align: left;
    direction: ltr;
    padding-left: 16px;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    width: 100%;
}

.form-submit {
    text-align: left;
    margin-top: 20px;
}

.submit-btn {
    padding: 12px 32px;
    background-color: #1a4d7a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.submit-btn:hover {
    background-color: #153d5f;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Responsive Design for Contact Form */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-heading {
        font-size: 2rem;
    }
    
    #contact {
        padding: 60px 20px;
    }
}

/* Footer Section */
#footer {
    background-color: #000;
    color: white;
    padding: 60px 60px 20px;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    align-items: start;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    align-items: flex-start;
}

.footer-logo-img {
    height: 25px;
    width: auto;
    margin-bottom: 12px;
    margin-top: 0;
}

.footer-contact,
.footer-location {
    align-items: flex-start;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 400;
    line-height: 1.5;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    margin-top: 0;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-info p {
    font-size: 14px;
    color: white;
    margin: 0;
    line-height: 1.6;
}

.footer-divider {
    height: 1px;
    background-color: #333;
    margin: 30px 0 20px;
}

.footer-copyright {
    text-align: left;
}

.footer-copyright p {
    font-size: 0.9rem;
    color: #999;
    margin: 0;
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    #footer {
        padding: 40px 20px 20px;
    }
    
    .footer-logo-img {
        height: 35px;
    }
}