/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0a4d68;
    --secondary-color: #088395;
    --dark-color: #2c3e50;
    --light-color: #f4f4f4;
    --text-color: #555;
    --white-color: #fff;
    --shadow: 0 6px 15px rgba(0, 0, 0, 0.09);
    --nav-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--white-color);
    padding-top: var(--nav-height); 
}

/* --- Base Typography --- */
h1, h2, h3, h4 {
    margin-bottom: 1.25rem;
    line-height: 1.3;
    color: var(--dark-color);
    font-weight: 700;
}

/* Gradient text for visual appeal */
h1, h2 {
    background: linear-gradient(45deg, var(--primary-color), var(--dark-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--primary-color); transition: color 0.3s ease; }
a:hover { color: var(--secondary-color); }
ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.large-text { font-size: 1.15rem; color: #666; max-width: 700px; margin-left: auto; margin-right: auto; }
.bg-light { background: var(--light-color); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    margin-top: 1rem;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    background-size: 150%;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    background-position: right;
}
.btn-primary-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-primary-outline:hover {
    background: var(--primary-color);
    color: var(--white-color);
}
.btn-secondary {
    background: var(--light-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

/* --- Header & Navigation (UPDATED) --- */
header {
    background: var(--white-color);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    height: var(--nav-height);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* NEW LOGO PLACEHOLDER STYLE
  - This holds the space for your logo.
  - Adjust width/height here to match your logo file.
*/
.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px; /* <-- Increased size */
    height: 100px; /* <-- Increased size */
    background: transparent; /* <-- Transparent background */
    border: none; /* <-- No border */
    border-radius: 50%;
    color:white; /* <-- Lighter placeholder text */
    font-weight: 600;
    font-size: 0.9rem; /* <-- Slightly larger text */
    text-align: center;
    padding: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}


/* If you add an <img>, it will cover the text */
.logo-placeholder img {
    width: 200px;
    height: 100px;
    object-fit: contain;
}


.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.cta-button {
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    transition: all 0.3s ease;
    display: none; /* Hide on mobile by default */
}
.cta-button:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

.hamburger-menu {
    display: block;
    cursor: pointer;
    z-index: 102; 
}
.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hamburger 'X' animation */
.hamburger-menu.active .bar { background: var(--dark-color); }
.hamburger-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Desktop Nav (Hidden by default) */
.nav-desktop {
    display: none;
    margin-left: auto;
    margin-right: 2rem;
}
.nav-desktop a {
    padding: 0 1rem;
    font-weight: 600;
    color: var(--text-color);
}
.nav-desktop a.active, .nav-desktop a:hover {
    color: var(--primary-color);
}

/* Mobile "Glass" Nav */
.nav-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: -100%; /* Start off-screen */
    width: 100%;
    height: 100vh;
    
    /* "Glassmorphism" Effect */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

    z-index: 99;
    transition: left 0.3s ease-in-out;
}
.nav-mobile.active {
    left: 0;
}
.nav-mobile a {
    font-size: 2rem;
    font-weight: 700;
    padding: 1.5rem;
    color: var(--white-color);
}
.nav-mobile a.active {
    color: var(--white-color);
    border-bottom: 2px solid var(--white-color);
}

/* Prevent body scroll when mobile nav is open */
body.no-scroll {
    overflow: hidden;
}

/* --- Animated Hero Section (Homepage) --- */
@keyframes crossfade {
    0%, 20% { opacity: 1; transform: scale(1.05); }
    25%, 95% { opacity: 0; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

#hero-animated {
    position: relative;
    height: calc(90vh - var(--nav-height));
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-color); 
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: crossfade 15s linear infinite;
    transform: scale(1);
}

.hero-slide-1 {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('images/finished\ 1.jpg');
    animation-delay: 0s;
}
.hero-slide-2 {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('images/on\ site\ 2.jpg');
    animation-delay: 5s;
}
.hero-slide-3 {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('images/on\ site\ 3.jpg');
    animation-delay: 10s;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}
.hero-content h1 {
    color: var(--white-color);
    -webkit-text-fill-color: var(--white-color);
    text-fill-color: var(--white-color);
    font-size: 3.5rem;
    font-weight: 800;
}
.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 1.5rem;
}
.hero-content .btn {
    margin: 0 0.5rem;
}

/* --- Hero Ticker --- */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.hero-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    white-space: nowrap;
    z-index: 3;
}
.ticker-track {
    display: inline-block;
    animation: marquee 30s linear infinite;
}
.ticker-track p {
    display: inline-block;
    margin: 0;
    padding: 1rem 2rem;
    color: var(--white-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- Homepage Content --- */
.page-content {
    padding: 4rem 0;
}
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}
.home-card {
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.home-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.home-card img, .app-card img, .feature-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--light-color);
    color: var(--text-color);
    font-weight: 600;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}
.home-card .btn {
    margin-top: auto;
}

/* --- Generic Page Header --- */
.page-header {
    background: var(--light-color);
    padding: 3rem 0;
    text-align: center;
}
.page-header h1 {
    -webkit-text-fill-color: initial;
    text-fill-color: initial;
    background: linear-gradient(45deg, var(--primary-color), var(--dark-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}


/* --- Features Section (Homepage) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.feature-card {
    background: var(--white-color);
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden; /* For image radius */
    padding-bottom: 2rem;
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.feature-card img {
    border-radius: 5px 5px 0 0;
    margin-bottom: 1.5rem;
    height: 200px;
}
.feature-card h3, .feature-card p {
    padding: 0 1.5rem;
}

/* --- Applications Page --- */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.app-card {
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}
.app-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.app-card img {
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}
.app-card h3, .app-card p {
    padding: 0 1.5rem;
}
.app-card h3 {
    padding-top: 1.5rem;
}
.app-card p {
    padding-bottom: 1.5rem;
}

/* --- Gallery Page --- */
.gallery-grid {
    columns: 3;
    column-gap: 1rem;
}
.gallery-item {
    margin-bottom: 1rem;
    display: inline-block;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white-color);
    padding: 1.5rem 1rem 1rem;
    font-weight: 600;
}

/* --- Contact Page (UPDATED) --- */
#contact-page {
    padding: 4rem 0;
}
.contact-grid-no-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.contact-details-card {
    background: var(--white-color);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.contact-details-card h3 {
    margin-top: 0;
}
.contact-details-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.contact-details-card p i {
    color: var(--primary-color);
    width: 25px;
    margin-right: 10px;
}
.contact-details-card .slogan {
    font-style: italic;
    font-weight: 600;
    color: var(--dark-color);
    border-top: 1px solid var(--light-color);
    padding-top: 1.5rem;
}
.map-placeholder {
    width: 100%;
    min-height: 450px;
    background: var(--light-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-color);
    box-shadow: var(--shadow);
    padding: 0;
    overflow: hidden;
}
.map-placeholder iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: 0;
}

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    text-align: center;
    padding: 3rem 0;
}
.cta-banner h2 {
    color: var(--white-color);
    -webkit-text-fill-color: var(--white-color);
    text-fill-color: var(--white-color);
    background: none;
}

/* --- Footer --- */
footer {
    background: linear-gradient(45deg, var(--primary-color), var(--dark-color));
    color: var(--light-color);
    padding-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}
.footer-col h3, .footer-col h4 {
    color: var(--white-color);
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col ul li a {
    color: var(--light-color);
}
.footer-col ul li a:hover {
    color: var(--white-color);
    padding-left: 5px;
}
.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #444;
}

/* --- Responsive Media Queries --- */

@media (min-width: 769px) {
    .nav-desktop {
        display: flex;
    }
    .hamburger-menu {
        display: none;
    }
    .cta-button {
        display: inline-block; /* Show CTA on desktop */
    }
    .logo-placeholder {
        position: static;
        transform: none;
        width: 150px; /* <-- Increased size */
        height: 60px; /* <-- Increased size */
        border-radius: 5px;
        border: none; /* <-- No border */
    }
    .logo-placeholder:before {
        content: "Your Logo";
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .applications-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        columns: 2;
    }

    .contact-grid-no-form {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        columns: 1;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .header-right {
        gap: 0.5rem; /* Tighter spacing on small screens */
    }
    .logo-placeholder {
        width: 60px;
        height: 60px;
    }
    .logo-placeholder:before {
        font-size: 0.9rem;
    }

    .ticker-track p {
        padding: 1rem; /* Smaller padding on ticker */
        font-size: 0.9rem;
    }
}