/* --- Base Variables & Reset --- */
:root {
    --nav-bg: #4189bd; --hero-bg: #1B7CCB; --primary-blue: #2D7CB7;
    --accent-orange: #8EC9F8; --light-bg: #EAF7FF; --text-dark: #1F2D3D;
    --text-light: #FFFFFF; --footer-bg: #0C3553;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

html { scroll-behavior: smooth; }

body { line-height: 1.6; color: var(--text-dark); padding-top: 30px; background: linear-gradient(rgba(244, 244, 247, 0.932), rgba(213, 228, 243, 0.72)), url('Column_pic2.jpg') center/cover fixed; text-align: center; }
body.bg-light { background: var(--light-bg); }
body.bg-contact {
    min-height: 100vh;
    background: linear-gradient(rgba(218, 218, 221, 0.486), rgba(136, 145, 155, 0.72)),
                url('Home_pic.jpg') center/cover fixed;
}

/* Background helpers */
.bg-alt { background-color: var(--light-bg); }
.bg-dark { background-color: var(--nav-bg); color: var(--text-light); }
.bg-dark .section-title { color: var(--text-light); }

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- Navigation --- */
header {
    background-color: #0a0c55; padding-left: 1px; padding-right: 15px;
    display: flex; justify-content: space-between; align-items: center;
    position: fixed; width: 100%; top: 0%; z-index: 1000;
    height: 70px; box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}
.brand-link { 
    display: flex; align-items: center; gap: 12px; color: var(--text-light); font-weight: 700;
}
.brand-logo { 
    height: 60px;
    order: 1;
    margin-right: 0px;
    margin-left: 1px;
}
.brand-label {
    background-color: #0a0d5500;
    padding-bottom: 0;
    margin-bottom: 0;
    text-align: left;
    color: hwb(187 52% 3% / 0.952);
    order: 2;
    margin-top: 0;
    font-weight: 800;
    font-size: 1.6rem;
    text-transform: uppercase;
}
.brand-part-one { color: #46cddf; }
.brand-part-two { color: #ffffff; padding-left: 6px; }
.brand-link:hover .brand-label { color: #695fa1; }
.brand-link:hover .brand-part-one { color: #15635f; }
.brand-link:hover .brand-part-two { color: #b0e51e; }
.brand-link { order: 1; }
.nav-container { order: 2; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links li a { color: var(--text-light); font-weight: 600; }
.nav-links li a:hover { color: var(--accent-orange); }

/* --- Dropdown --- */
.dropdown { position: relative; display: inline-block; }
.dropbtn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    display: none;
    cursor: pointer;
}
.dropdown-content {
    display: flex; position: static; background-color: transparent;
    min-width: 180px; box-shadow: 0px 8px 16px rgba(0,0,0,0.2); z-index: 1; border-radius: 4px;
}
.dropdown-content a { color: var(--text-light); padding: 8px 12px; display: block; font-size: 14px; }
.dropdown-content a:hover { background-color: #D8EEFF; color: #0E4F7C; }
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content { display: block; }

@media (min-width: 641px) {
    .dropbtn {
        display: none !important;
    }

    .dropdown-content {
        display: flex !important;
    }
}

/* --- Page Headers --- */
.page-header { text-align: center; color: white; }
.page-header h1 { font-size: 3rem; margin-bottom: 15px; }

.header-home {
    background: #000;
    height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 0 20px; margin-top: -70px; position: relative; overflow: hidden;
}
.header-home::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    z-index: 1;
}
.header-home h1,
.header-home .hero-subtitle,
.header-home .hero-actions {
    position: relative;
    z-index: 2;
}
.header-home h1 { font-size: 4rem; text-transform: uppercase; letter-spacing: 2px; }

.hero-landing-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-landing-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.hero-landing-slide.active { opacity: 1; }
.hero-landing-slide-one { background-image: url('Home_pic.jpg'); }
.hero-landing-slide-two { background-image: url('Home_pic2.jpg'); }
.hero-landing-slide-three { background-image: url('Home_pic3.jpg'); }
.hero-landing-slide-four { background-image: url('Home_pic4.jpg'); }

.header-about { background: linear-gradient(rgba(33, 75, 104, 0.411), rgba(144, 148, 151, 0.61)), url('Gallery_pic.jpg') center/cover; padding: 120px 10%; }
.header-values { background: linear-gradient(rgba(71, 70, 70, 0.219), rgba(0,0,0,0.5)), url('Gallery_pic2.jpg') center/cover; padding: 120px 10%; }
.header-services { background: linear-gradient(rgba(44, 62, 80, 0.459), rgba(44,62,80,0.8)), url('Service_pic.jpg') center/cover; padding: 120px 10%; }

/* --- Global Sections & Grids --- */
section { padding: 40px 5%; }

.section-title, .about-summary-title, .cta-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
    color: var(--nav-bg);
    text-align: center;
}

section p,
section li,
section h3,
section h4 {
    text-align: center;
}
section .section-title,
section .card,
section .image-card,
section .contact-intro,
section .contact-card {
    text-align: center;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; align-items: center; }
.grid-3 {  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }

/* --- Cards --- */
.card {
    padding: 30px; background: rgba(255, 255, 255, 0.808); border-radius: 0; box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: center;
}
.card:hover { transform: translateY(-5px); }
.card-services { background: #F4F7F6; border-bottom: none; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: left; }
.card-services:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

/* --- Buttons --- */
.btn {
    padding: 15px 35px; background: var(--accent-orange); color: #162f50;
    font-weight: 800; border-radius: 5px; display: inline-block; border: none; cursor: pointer; text-transform: uppercase;
}
.btn:hover { background: #faa459; transform: translateY(-3px); }
.btn-outline { background: transparent; border: 1px solid var(--accent-orange); color: #61cfe2; }
.btn-outline:hover { background: #faa459;  border: 1px solid #0a0c55; color: #0a0c55; }

/* --- Image Showcase --- */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 30px;
}
.image-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.image-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.image-card h4 {
    padding: 14px 16px 6px;
    color: var(--nav-bg);
    font-size: 1.1rem;
}
.image-card p {
    padding: 0 16px 16px;
    color: #5f6b76;
    font-size: 0.95rem;
}
.slideshow {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.slideshow img {
    position: absolute;
    inset: 0;
    width: 90%;
    height: 90%;
    margin: auto;
    object-fit: cover;
    opacity: 0;
    animation: slideshowFade 20s ease-in-out infinite;
    border-radius: 0;
}
.slideshow img:nth-child(1) { animation-delay: 0s; }
.slideshow img:nth-child(2) { animation-delay: 10s; }
.slideshow img:nth-child(3) { animation-delay: 20s; }
.slideshow img:nth-child(4) { animation-delay: 30s; }
.slideshow img:nth-child(5) { animation-delay: 40s; }

@keyframes slideshowFade {
    0%, 75% {
        opacity: 0;
    }
    8%, 75% {
        opacity: 1;
    }
    76%, 100% {
        opacity: 0;
    }
}

.slideshow-single {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0;
}
.slideshow-single img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: aboutSlideshowFade 18s ease-in-out infinite;
}
.slideshow-single img:nth-child(1) { animation-delay: 0s; }
.slideshow-single img:nth-child(2) { animation-delay: 6s; }
.slideshow-single img:nth-child(3) { animation-delay: 12s; }

@keyframes aboutSlideshowFade {
    0%, 100% {
        opacity: 0;
    }
    8%, 25% {
        opacity: 1;
    }
    33%, 100% {
        opacity: 0;
    }
}

/* --- Expanded Footer --- */
footer { background-color: var(--footer-bg); color: #bdc3c7; padding: 70px 10% 30px; border-top: 4px solid var(--accent-orange); }
.footer-col h4 { color: var(--text-light); font-size: 1.2rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--accent-orange); padding-left: 5px; }
.footer-contact-info p { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 15px; }
.footer-contact-info i { color: var(--accent-orange); font-size: 1.2rem; width: 20px; }
.social-links { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; color: white; transition: 0.3s; }
.social-links a:hover { background: var(--accent-orange); color: var(--nav-bg); transform: translateY(-3px); }
.footer-bottom { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; }

/* --- Contact Page --- */
.chatbot-launcher {
    position: fixed; right: 24px; bottom: 24px; width: 56px; height: 56px;
    border-radius: 50%; background: var(--nav-bg); color: var(--text-light);
    display: flex; align-items: center; justify-content: center; cursor: grab;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25); z-index: 1200; font-size: 1.3rem;
    touch-action: none; user-select: none; transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: chatbotPulse 2.4s ease-in-out infinite;
}
.chatbot-launcher:hover { transform: scale(1.05); }
.chatbot-launcher.active { display: none; }
.chatbot-container {
    position: fixed; right: 24px; bottom: 24px; width: 320px; max-width: calc(100vw - 32px);
    background: #ffffff; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    overflow: hidden; display: none; flex-direction: column; z-index: 1200;
    opacity: 0; transform: scale(0.96) translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.chatbot-container.active { display: flex !important; opacity: 1; transform: scale(1) translateY(0); visibility: visible; }
.chatbot-container.dragging, .chatbot-launcher.dragging { cursor: grabbing; }
.chat-header {
    background: var(--nav-bg); color: var(--text-light); padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between; cursor: grab;
    touch-action: none; user-select: none;
}
.chat-body { padding: 16px; display: grid; gap: 10px; background: #f7fbff; min-height: 180px; }
.typing-indicator {
    display: flex; align-items: center; gap: 6px; opacity: 0; max-height: 0; overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.2s ease;
}
.typing-indicator.active { opacity: 1; max-height: 24px; }
.typing-indicator span {
    width: 8px; height: 8px; border-radius: 50%; background: #5fa8d3; animation: chatbotBounce 0.8s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatbotPulse {
    0%, 100% { box-shadow: 0 10px 25px rgba(0,0,0,0.25); }
    50% { box-shadow: 0 12px 28px rgba(65, 137, 189, 0.45); transform: scale(1.02); }
}

@keyframes chatbotBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.55; }
    40% { transform: translateY(-4px); opacity: 1; }
}
.chat-status { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #2ecc71; }
.chat-close { cursor: pointer; font-size: 1rem; }
.chat-body { padding: 16px; display: grid; gap: 10px; background: #f7fbff; min-height: 180px; }
.message { padding: 10px 12px; border-radius: 12px; font-size: 0.95rem; line-height: 1.5; }
.msg-ai { background: #eaf5ff; color: #1f3550; }
.chat-input-area { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #e6edf4; background: #ffffff; }
.chat-input-area input { flex: 1; border: 1px solid #d7dde2; border-radius: 999px; padding: 10px 12px; }
.chat-input-area button { border: none; background: var(--nav-bg); color: var(--text-light); border-radius: 999px; padding: 10px 14px; cursor: pointer; }

.section-contact {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 5% 40px;
}

.contact-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 30px;
}

.contact-intro,
.contact-card {
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.contact-intro {
    background: rgba(255, 255, 255, 0.92);
    padding: 36px;
    backdrop-filter: blur(8px);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(243, 156, 18, 0.16);
    color: var(--primary-blue);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-intro h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--nav-bg);
}

.intro-copy,
.card-copy {
    color: #4f5d67;
    font-size: 1rem;
}

.contact-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f6f9fb;
    color: var(--nav-bg);
}

.contact-item i {
    color: var(--accent-orange);
    width: 18px;
}

.contact-card {
    background: #ffffff;
    padding: 36px;
}

.contact-card h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--nav-bg);
}

.contact-card form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.contact-card input,
.contact-card textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d7dde2;
    border-radius: 12px;
    background: #f7f9fb;
    font-size: 1rem;
    color: var(--text-dark);
}

.contact-card input:focus,
.contact-card textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 91, 150, 0.15);
}

.contact-card textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-block {
    width: 100%;
    text-align: center;
    border-radius: 12px;
    margin-top: 6px;
}

.chatbot-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 340px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    border: 1px solid #e7e9ef;
}

.chat-header {
    background: var(--primary-blue);
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    height: 220px;
    padding: 16px;
    background: #f8fafc;
    overflow-y: auto;
}

.message {
    max-width: 86%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.msg-ai {
    background: #e2f2fb;
    color: var(--text-dark);
}

.chat-input-area {
    display: flex;
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid #eef2f6;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d7dde2;
    border-radius: 999px;
    outline: none;
}

.chat-input-area button {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 0 14px;
    margin-left: 10px;
    border-radius: 999px;
    cursor: pointer;
}



/* Photo adverts*/

/* Container for the advertisement */
.ad-carousel-container {
  position: relative;
  width: 100%;
    max-width: none;
    height: 70vh;
  margin: 0 auto;
  overflow: hidden;
  background-color: #000;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

/* Base state for all slides */
.ad-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
    transition: opacity 1.2s ease-in-out;
  z-index: 1;
}

/* Active slide currently being viewed */
.ad-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Slide that is exiting */
.ad-slide.outgoing {
  opacity: 0;
  z-index: 1;
}

/* Make images cover the slide area cleanly */
.ad-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Brief information on the body of the photo */
.ad-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: sans-serif;
  font-size: 16px;
  text-align: center;
  width: 80%;
  max-width: 600px;
}

/* Next and Previous Buttons */
.ad-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 16px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  transition: background-color 0.3s ease;
}

.ad-nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* Photo adverts*/


/* Universal Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    color: #171a20;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Header Styling */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
}

.logo {
    color: #171a20;
    display: flex;
    align-items: center;
}

.main-nav, .side-nav {
    display: flex;
    gap: 8px;
}

.site-header a:not(.logo) {
    text-decoration: none;
    color: #171a20;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

/* Hover effect on navigation links */
.site-header a:not(.logo):hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Scroll Snapping Architecture */
.snap-container {
    height: 100vh;
    scroll-snap-type: y mandatory; /* Forces scroll to snap to sections */
    overflow-y: scroll;
    scroll-behavior: smooth;
}

/* Individual Sections */
.hero-section {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start; /* Alignment point for snapping */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 16vh; /* Pushes title down slightly */
    padding-bottom: 10vh; /* Pushes buttons up slightly */
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Typography for Section Text */
.hero-content {
    text-align: center;
    animation: fadeUp 1s ease-out;
}

.hero-content h1 {
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.6px;
    margin-bottom: 8px;
}

.hero-content p {
    font-size: 14px;
    font-weight: 400;
    color: #393c41;
}

/* Button Layout & Styling */
.hero-buttons {
    display: flex;
    gap: 24px;
    z-index: 10;
    animation: fadeUp 1.2s ease-out;
}

.btn {
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    width: 264px;
    text-align: center;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

/* Distinct contrast buttons */
.btn.primary {
    background-color: #f4f4f4;
    color: #171a20;
}

.btn.secondary {
    background-color: #171a20;
    color: #ffffff;
    opacity: 0.8;
}

.btn:hover {
    opacity: 1;
}

/* Footer Styling */
.site-footer {
    position: absolute;
    bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.site-footer a {
    text-decoration: none;
    color: #5c5e62;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #171a20;
}

/* Simple animation for text loading */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for mobile */
@media screen and (max-width: 1024px) {
    .main-nav {
        display: none; /* Hide middle navigation on smaller screens */
    }
    .hero-buttons {
        flex-direction: column;
        gap: 16px;
    }
    .btn {
        width: 90vw;
        max-width: 340px;
    }
}
/* Keep all your previous CSS, but update/add the following: */

.hero-section {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-top: 16vh; 
    padding-bottom: 12vh; /* Adjusted to make room for dots */
    position: relative;
    border-bottom: 6px solid var(--accent-orange);
}

/* Slideshow Architecture */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Pushes the images behind the text and buttons */
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 1.2s ease-in-out; /* The smooth crossfade effect */
}

.slide.active {
    opacity: 1; /* Only the active slide is visible */
}

/* Dynamic Text Animation */
.hero-content.fade {
    animation: fadeText 0.5s ease-in-out;
}

@keyframes fadeText {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Slider Indicators (The Dots at the bottom) */
.slide-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    height: 8px;
    width: 8px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dot.active {
    opacity: 1;
    transform: scale(1.3); /* Makes the active dot slightly larger */
}
/* mimicking something */


@media (max-width: 900px) {
    .contact-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        padding-top: 30px;
    }

    header {
        height: 60px;
        padding-right: 0;
    }

    .brand-link {
        order: 1;
    }

    .logo {
        font-size: 1.05rem;
        line-height: 1.2;
    }

    .nav-container {
        order: 2;
        width: 20%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
        margin-left: auto;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
    }

    .dropdown {
        width: auto;
        margin-left: auto;
    }

    .dropbtn {
        width: auto;
        min-width: 120px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px 12px;
        font-size: 13px;
    }

    .dropdown-content {
        display: none;
        position: fixed;
        left: 0;
        right: auto;
        top: 60px;
        width: 30%;
        height:auto;
        margin-top: 0;
        border: 1px solid #e3e7eb;
        border-radius: 0;
        overflow: hidden;
        background-color: rgba(104, 150, 142, 0.938);
    }

    .dropdown-content a {
        padding: 10px 12px;
        font-size: 13px;
    }

    .dropdown-content a:hover,
    .dropdown-content a:active,
    .dropdown-content a:focus {
        color: red !important;
        background-color: white;
    }

    .header-home {
        height: auto;
        min-height: 85vh;
        padding: 80px 16px 60px;
        margin-top: -90px;
    }
    .brand-label{
        padding: 1px 0%;
        font-size: 14px;
    }
    .brand-part-one{
        height: auto;
        flex-wrap: wrap;
    }
    .brand-part-two{
        height: auto;
        flex-wrap: wrap;
    }

    .header-home h1 {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    .header-home p {
        font-size: 1rem !important;
        padding: 0 8px;
    }

    .page-header h1 {
        font-size: 2.1rem;
    }

    section {
        padding: 40px 5%;
    }

    .section-title, .about-summary-title, .cta-title {
        font-size: 1.8rem;
    }

    section p,
    section li,
    section h3,
    section h4 {
        text-align: center;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 13px 18px;
    }

    .header-home > div {
        flex-direction: column;
        width: 100%;
        gap: 12px !important;
    }

    .hero-section .hero-content,
    .building-projects-section .hero-content,
    main .hero-section .hero-content {
        max-width: 80%;
        padding: 8px 12px;
    }

    .hero-section .hero-content h1,
    .building-projects-section .hero-content h1,
    main .hero-section .hero-content h1 {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }

    .hero-section .hero-content p,
    .building-projects-section .hero-content p,
    main .hero-section .hero-content p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .image-card img,
    .slideshow {
        height: 180px;
    }

    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: block;
    }

    .section-contact {
        padding: 30px 4% 30px;
    }

    .contact-intro,
    .contact-card {
        padding: 20px;
    }

    .chatbot-container {
        width: calc(100% - 24px);
        right: 12px;
        left: 12px;
        bottom: 12px;
    }
}

.slide-project-one {
    background-image: url('Progress1.jpg');
}

.slide-project-two {
    background-image: url('Progress2.jpg');
}

.slide-project-three {
    background-image: url('Progress3.jpg');
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-button {
    min-width: 190px;
    text-align: center;
}

.building-projects-section .hero-buttons {
    justify-content: center;
}

.building-projects-section .hero-section {
    width: 100%;
}

.building-projects-section .hero-content {
    max-width: min(90%, 760px);
    padding: 18px 28px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.62);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 3;
}

.building-projects-section .hero-content h1,
.building-projects-section .hero-content p {
    color: #ffffff;
}

main .hero-section .hero-content {
    max-width: min(90%, 760px);
    padding: 18px 28px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.62);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 3;
}

main .hero-section .hero-content h1,
main .hero-section .hero-content p {
    color: #ffffff;
}

.about-summary-copy {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

.value-card-image {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    margin: 0 auto 16px;
    border-radius: 0;
}

.card-copy-offset {
    margin-top: 10px;
}

.section-action {
    text-align: center;
    margin-top: 40px;
}

.values-button {
    color: var(--nav-bg);
    border-color: var(--nav-bg);
}

.service-title {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.cta-section {
    text-align: center;
    padding: 60px 10%;
}

/* I added it*/
.cta-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: green;
}

.cta-copy {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #bdc3c7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about-copy {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}

.about-copy-lead {
    margin-bottom: 20px;
}

.ceo-profile {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: 36px;
    align-items: center;
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.ceo-photo-wrap {
    overflow: hidden;
    border-radius: 14px;
}

.ceo-photo {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.ceo-details {
    text-align: left;
}

.ceo-eyebrow {
    margin-bottom: 8px;
    color: var(--primary-blue);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ceo-details h2 {
    margin-bottom: 6px;
    color: var(--nav-bg);
    font-size: 2rem;
    text-align: center;
}

.ceo-details h3 {
    margin-bottom: 16px;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.ceo-details > p:not(.ceo-eyebrow) {
    color: #555;
    text-align: left;
}

.qualification-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.qualification-list span {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--light-bg);
    color: var(--nav-bg);
    font-size: 0.9rem;
    font-weight: 600;
}
/*Added to control phone view*/
/* Mobile View Overrides */
@media (max-width: 768px) {
    .ceo-profile {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Resets the 36px desktop grid gap so it doesn't apply between every text element */
        gap: 0; 
    }

    /* Flattens the div so its children can be reordered individually alongside the photo */
    .ceo-details {
        display: contents;
    }

    .ceo-eyebrow {
        order: 1;
        margin-bottom: 16px; 
    }

    .ceo-photo-wrap {
        order: 2;
        width: 100%;
        margin-bottom: 20px; /* Creates spacing before the H2 */
    }

    .ceo-details h2 {
        order: 3;
    }

    .ceo-details h3 {
        order: 4;
        text-align: center; /* Centralizes the sub-heading */
    }

    .ceo-details > p:not(.ceo-eyebrow) {
        order: 5;
        text-align: center; /* Overrides the desktop left alignment */
    }

    .qualification-list {
        order: 6;
        justify-content: center; /* Centers the flex items */
    }
}
/*Added to control phone view*/


.section-title-spaced {
    margin-top: 30px;
}

.gallery-image {
    width: 100%;
    border-radius: 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-card-title {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.value-title {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-gallery-section {
    padding-top: 0;
    padding-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
    justify-content: center;
    text-align: center;
    color: var(--nav-bg);
    font-size: 1.25rem;
}

.footer-description {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.privacy-link {
    color: var(--accent-orange);
}