/* =========================================
   VARIABLES & SETUP
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    /* Brand Palette */
    --primary: #0FB9B1;
    /* Ocean Teal */
    --secondary: #0A1F2C;
    /* Deep Navy */
    --accent: #FF8C42;
    /* Sunset Orange */
    --accent-hover: #e67d3b;
    --highlight: #FFC857;
    /* Yellow */

    /* Backgrounds & Text */
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-main: #334155;
    --text-dark: #0A1F2C;
    --text-light: #F8FAFC;

    /* UI Values */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px rgba(10, 31, 44, 0.05);
    --shadow-md: 0 10px 30px rgba(10, 31, 44, 0.1);
    --shadow-lg: 0 20px 40px rgba(10, 31, 44, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   TYPOGRAPHY
========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

.text-teal {
    color: var(--primary);
}

.text-orange {
    color: var(--accent);
}

.text-navy {
    color: var(--secondary);
}

.text-white {
    color: var(--bg-white);
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* =========================================
   LAYOUT & GRID
========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 6rem 0;
}

.bg-white {
    background-color: var(--bg-white);
}

.bg-navy {
    background-color: var(--secondary);
    color: var(--bg-light);
}

.bg-navy h2,
.bg-navy h3,
.bg-navy h4 {
    color: var(--bg-white);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    align-self: center;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* =========================================
   COMPONENTS
========================================= */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(15, 185, 177, 0.3);
}

.btn-secondary:hover {
    background: #0ea19a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 185, 177, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
}

.btn-outline:hover {
    background: var(--bg-white);
    color: var(--primary);
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bg-navy .glass {
    background: rgba(10, 31, 44, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   NAVBAR
========================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.25rem 0;
}

/* Default state for pages with a dark hero background */
nav.transparent {
    background: transparent;
    color: var(--bg-white);
}

nav.transparent .logo-text,
nav.transparent .nav-link {
    color: var(--bg-white);
}

nav.transparent .nav-link::after {
    background: var(--bg-white);
}

/* Scrolled or Solid state */
nav.scrolled,
nav.solid {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

nav.scrolled .logo-text,
nav.solid .logo-text,
nav.scrolled .nav-link,
nav.solid .nav-link {
    color: var(--secondary);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
}

.logo-img {
    height: 95px;
    width: auto;
    object-fit: contain;
    padding: 4px 0;
    transition: var(--transition);
}

footer .logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    font-family: var(--font-body);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

nav.transparent .hamburger {
    color: var(--primary);
}

nav.scrolled .hamburger,
nav.solid .hamburger {
    color: var(--secondary);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-white);
    z-index: 999;
    padding: 6rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
    right: 0;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary);
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--primary);
    padding-left: 10px;
}

/* =========================================
   PAGE HEROES (Internal Pages)
========================================= */
.page-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    /* Space for navbar */
    position: relative;
    overflow: hidden;
    color: var(--bg-white);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 31, 44, 0.9) 0%, rgba(10, 31, 44, 0.2) 100%);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 600px;
    animation: slideUpFade 0.8s ease forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-hero h1 {
    color: var(--bg-white);
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Page Specific Backgrounds */
.bg-about {
    background: url('../images/about.png') center top/cover no-repeat;
}

.bg-services {
    background: url('../images/services_1.png') center top/cover no-repeat;
}

.bg-chirala {
    background: url('../images/things_to_do.png') center center/cover no-repeat;
}

.bg-contact {
    background: url('../images/contact_2.png') center top/cover no-repeat;
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 65vh;
    }

    .page-hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .page-hero::before {
        background: linear-gradient(to top, rgba(10, 31, 44, 0.9) 0%, rgba(10, 31, 44, 0.4) 100%);
    }

    .page-hero h1 {
        font-size: 2.8rem;
    }
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   HOME: HERO SECTION
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5rem;
    color: var(--primary);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 0;
    object-fit: cover;
    filter: brightness(0.5);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 31, 44, 0.4), rgba(10, 31, 44, 0.2));
    z-index: 1;
}

.sound-control-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
    font-size: 1.2rem;
}

.sound-control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.sound-control-btn i {
    transition: var(--transition);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero h1 {
    color: var(--bg-white);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 3rem;
}

.hero p {
    color: var(--bg-white);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 350px;
    opacity: 0.9;
}

/* =========================================
   HOME: TRUST BAR (CARD GRID)
========================================= */
.trust-section {
    margin-top: -80px;
    /* Floating container below hero */
    position: relative;
    z-index: 10;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.trust-card {
    background: rgba(255, 255, 255, 0.85);
    /* Light glass effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(10, 31, 44, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.trust-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 31, 44, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.trust-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    width: 70px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    background: rgba(15, 185, 177, 0.1);
    color: var(--primary);
    transition: var(--transition);
}

.trust-card:nth-child(even) .trust-card-icon {
    color: var(--accent);
    background: rgba(255, 140, 66, 0.1);
}

.trust-card:hover .trust-card-icon {
    transform: scale(1.1);
}

.trust-card h4 {
    font-size: 1.15rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.trust-card p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-section {
        margin-top: -40px !important;
    }
}

/* =========================================
   LOCATIONS CARDS
========================================= */
.location-card {
    padding: 0;
    border: none;
    box-shadow: var(--shadow-md);
    background: var(--bg-white);
}

.loc-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.loc-content {
    padding: 2rem;
}

.loc-content h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

/* =========================================
   HOOK SECTION (CTA)
========================================= */
.hook-section {
    padding: 8rem 0;
    background: var(--bg-light);
    position: relative;
}

.hook-card {
    display: flex;
    background: var(--secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(10, 31, 44, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hook-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(10, 31, 44, 0.25);
}

.hook-content {
    flex: 1;
    padding: 5rem 4rem;
    color: var(--bg-white);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hook-content h2 {
    color: var(--bg-white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hook-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.8;
}

.hook-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.hook-img-inner {
    position: absolute;
    top: -5%;
    left: -5%;
    right: -5%;
    bottom: -5%;
    background: url('../images/download.jpg') center/cover no-repeat;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hook-card:hover .hook-img-inner {
    transform: scale(1.08);
}

.hook-content::after {
    content: '';
    position: absolute;
    top: 0;
    right: -40px;
    width: 80px;
    height: 100%;
    background: var(--secondary);
    transform: skewX(-12deg);
    z-index: -1;
}

@media (max-width: 992px) {
    .hook-card {
        flex-direction: column;
    }

    .hook-content {
        padding: 4rem 2rem;
    }

    .hook-content::after {
        display: none;
    }

    .hook-image {
        min-height: 350px;
    }
}

/* =========================================
   ABOUT SECTION (Page + Widget)
========================================= */
.about-features i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hyd-connect {
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.1), rgba(255, 200, 87, 0.1));
    border-left: 4px solid var(--accent);
    padding: 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-top: 2rem;
}

/* =========================================
   SERVICES CARDS
========================================= */
.service-icon-wrap {
    width: 80px;
    height: 80px;
    background: rgba(15, 185, 177, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
}

.service-icon-wrap::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--highlight);
    border-radius: 50%;
    bottom: -10px;
    right: -10px;
    opacity: 0.5;
    z-index: -1;
}

.service-card {
    border-top: 4px solid transparent;
}

.service-card:hover {
    border-top-color: var(--primary);
}

.service-list {
    margin-top: 1.5rem;
}

.service-list li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.service-list i {
    color: var(--primary);
    margin-right: 0.5rem;
}

/* =========================================
   THINGS TO DO
========================================= */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: rgba(10, 31, 44, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -2.4rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--bg-white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    top: 0;
}

.timeline-item:nth-child(2) .timeline-dot {
    border-color: var(--accent);
}

.timeline-item:nth-child(3) .timeline-dot {
    border-color: var(--highlight);
}

/* =========================================
   CONTACT
========================================= */
.contact-info-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-top: 0.2rem;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* =========================================
   FOOTER
========================================= */
footer {
    background: linear-gradient(rgba(111, 110, 110, 0.9), rgba(13, 13, 13, 0.95)), url('../images/footer.jpg') center/cover no-repeat;
    background-color: var(--secondary);
    color: var(--bg-white);
    padding: 5rem 0 2rem;
    position: relative;
}

footer h4 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary);
}

/* =========================================
   FLOATING WHATSAPP
========================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =========================================
   ANIMATIONS
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   MEDIA QUERIES
========================================= */
@media screen and (max-height: 500px) {

    /* Hide top bar for more vertical space */
    .top-notification-bar,
    .marquee-container,
    .top-notification-bar+nav {
        display: none !important;
        height: 0 !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Ensure navbar is at the very top */
    nav#navbar {
        top: 0 !important;
        margin-top: 0 !important;
        padding: 0.2rem 0 !important;
        background: #0A1F2C !important;
        position: fixed !important;
        width: 100% !important;
        display: block !important;
    }

    nav#navbar .logo-img {
        height: 35px !important;
    }

    /* Adjust hero to fit the tiny height */
    header.hero {
        min-height: 100vh !important;
        height: 100vh !important;
        padding-top: 3.5rem !important;
        padding-bottom: 0.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
    }

    header.hero .hero-content {
        max-width: 95% !important;
        text-align: center !important;
        margin: 0 auto !important;
    }

    header.hero .hero-content h1 {
        font-size: 1.25rem !important;
        margin-bottom: 0.2rem !important;
        line-height: 1.1 !important;
    }

    header.hero .hero-content p {
        font-size: 0.75rem !important;
        margin-bottom: 0.6rem !important;
        line-height: 1.2 !important;
        max-width: 100% !important;
    }

    header.hero .btn {
        padding: 0.35rem 0.8rem !important;
        font-size: 0.7rem !important;
    }

    header.hero .sound-control-btn {
        bottom: 8px !important;
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
    }

    .trust-section {
        margin-top: 5px !important;
    }
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .trust-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    nav.mobile-open {
        background: var(--bg-white) !important;
        box-shadow: var(--shadow-sm) !important;
    }

    nav.mobile-open .logo-text,
    nav.mobile-open .hamburger i {
        color: var(--secondary) !important;
    }

    nav {
        padding: 0.8rem 0;
    }

    .logo-img {
        height: 55px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 200px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* --- Added Mobile Fixes --- */

    /* Smaller buttons on mobile */
    .btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
    }

    /* Hook / CTA section on mobile */
    .hook-section {
        padding: 3rem 0;
    }

    .hook-content {
        padding: 2rem 1.5rem;
        text-align: center;
        align-items: center;
    }

    .hook-content h2 {
        font-size: 2rem;
    }

    .hook-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    /* Contact Page Specifics */
    .contact-info-card {
        padding: 1.5rem;
        gap: 1rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .map-container iframe {
        height: 250px;
    }

    /* Footer alignment on mobile */
    footer {
        padding: 3rem 0 1.5rem;
        text-align: center;
    }

    footer .grid-4 {
        gap: 2rem;
    }

    .footer-socials {
        justify-content: center;
    }

    footer .footer-links a:hover {
        padding-left: 0;
    }

    /* --- End Mobile Fixes --- */

    .section {
        padding: 4rem 0;
    }

    .page-header {
        padding: 7rem 0 3rem;
    }

    .trust-section {
        margin-top: -30px;
    }
}

/* =========================================
   TOP NOTIFICATION BAR
========================================= */
.top-notification-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: var(--primary);
    /* Sunset Orange */
    display: flex;
    align-items: center;
    z-index: 1001;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.6);
    /* Subtle glow */
}

/* Offset the navbar on pages where the top bar is present */
.top-notification-bar+nav {
    top: 30px;
}

.marquee-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--bg-white);
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: marquee 35s linear infinite;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.top-notification-bar:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .top-notification-bar {
        height: 35px;
    }

    .top-notification-bar+nav {
        top: 35px;
    }

    .marquee-content {
        font-size: 0.85rem;
    }
}

/* =========================================
   GALLERY SECTION
========================================= */
.gallery-section {
    background-color: var(--bg-white);
    overflow: hidden;
    padding-bottom: 2rem;
}

.gallery-collage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item.featured {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.gallery-item.img-2 {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}

.gallery-item.img-3 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.gallery-item.img-4 {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 31, 44, 0.4);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-text {
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-text {
    transform: translateY(0);
}

@media (max-width: 900px) {
    .gallery-collage {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .gallery-item.featured {
        grid-column: 1 / 3;
        height: 350px;
    }

    .gallery-item.img-2,
    .gallery-item.img-3,
    .gallery-item.img-4 {
        grid-column: auto;
        grid-row: auto;
        height: 250px;
    }
}

@media (max-width: 600px) {
    .gallery-collage {
        grid-template-columns: 1fr;
    }

    .gallery-item.featured,
    .gallery-item.img-2,
    .gallery-item.img-3,
    .gallery-item.img-4 {
        grid-column: 1 / 2;
        height: 280px;
    }
}

/* HORIZONTAL STRIP */
.gallery-strip-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.gallery-strip-container::before,
.gallery-strip-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.gallery-strip-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-white), transparent);
}

.gallery-strip-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-white), transparent);
}

.gallery-strip {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: strip-scroll 35s linear infinite;
}

.gallery-strip:hover {
    animation-play-state: paused;
}

.gallery-strip img {
    height: 220px;
    width: 320px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

@keyframes strip-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 31, 44, 0.95);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--bg-white);
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2002;
}

.lightbox-close:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2001;
    backdrop-filter: blur(4px);
}

.lightbox-nav:hover {
    background: var(--accent);
    color: var(--bg-white);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

#lightbox-caption {
    margin-top: 1.5rem;
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* =========================================
   BENTO GRID (ABOUT PAGE)
========================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.bento-card-1 {
    grid-column: span 2;
    grid-row: span 2;
    border-radius: 40px 10px 40px 10px !important;
    background: linear-gradient(135deg, rgba(15, 185, 177, 0.15), rgba(255, 255, 255, 0.05)) !important;
    border: 1px solid rgba(15, 185, 177, 0.3) !important;
}

.bento-card-2 {
    border-radius: 10px 40px 10px 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.bento-card-3 {
    border-radius: 10px 10px 40px 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.bento-card-4 {
    grid-column: span 3;
    border-radius: 10px 10px 10px 40px !important;
    background: linear-gradient(90deg, rgba(255, 140, 66, 0.15), rgba(255, 255, 255, 0.05)) !important;
    border: 1px solid rgba(255, 140, 66, 0.3) !important;
    display: flex;
    align-items: center;
    gap: 3rem;
}

/* Mobile Optimizations for Bento Grid */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bento-card-1,
    .bento-card-2,
    .bento-card-3,
    .bento-card-4 {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        border-radius: 20px !important;
        padding: 2rem !important;
    }

    .bento-card-1 i {
        font-size: 2.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .bento-card-1 h3 {
        font-size: 1.8rem !important;
    }

    .bento-card-4 {
        flex-direction: column !important;
        text-align: center;
        gap: 1.5rem !important;
    }
}

@media (max-width: 500px) {

    .bento-card-1,
    .bento-card-2,
    .bento-card-3,
    .bento-card-4 {
        padding: 1.5rem !important;
    }

    .bento-card-4 {
        gap: 1rem !important;
    }
}

/* =========================================
   TRUSTWORTHY PARTNERS SECTION
========================================= */
.partners-section {
    padding: 5rem 0 0 0;
    background: var(--bg-light);
    /* Set to light grey so white cards stand out dynamically! */
    position: relative;
    overflow: hidden;
}

.partners-section .section-title {
    margin-bottom: 4rem;
}

.partners-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape-blob {
    position: absolute;
    filter: blur(60px);
    opacity: 0.15;
    border-radius: 50%;
    animation: floatBlob 10s infinite alternate ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--highlight);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 15s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.2);
    }
}

/* Continuous Auto-Scrolling Marquee */
.marquee-container-fluid {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* bleed full width */
    overflow: hidden;
    padding: 2rem 0 1rem 0;
    position: relative;
    background: linear-gradient(90deg, rgba(248, 250, 252, 0) 0%, rgba(10, 31, 44, 0.02) 50%, rgba(248, 250, 252, 0) 100%);
}

.marquee-container-fluid::before,
.marquee-container-fluid::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container-fluid::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-light) 0%, transparent 100%);
}

.marquee-container-fluid::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-light) 0%, transparent 100%);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 6rem;
    width: fit-content;
    animation: scrollMarquee 25s linear infinite;
    padding-left: 3rem;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1.5rem));
    }

    /* Shift by exactly half if contents are cleanly doubled */
}

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    opacity: 0.9;
    transition: all 0.4s ease;
    cursor: pointer;
}

.marquee-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.marquee-item img {
    max-height: 80px;
    max-width: 220px;
    object-fit: contain;
}

/* Specific item for the APMB circular logo */
.marquee-item.logo-large {
    height: 140px;
}

.marquee-item.logo-large img {
    max-height: 120px;
}

/* Specific capsule for Alert24 white logo so it's beautifully visible */
.marquee-item.dark-capsule {
    background: var(--secondary);
    padding: 15px 40px;
    border-radius: 50px;
    opacity: 0.85;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.marquee-item.dark-capsule:hover {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(10, 31, 44, 0.3);
}

@media (max-width: 768px) {
    .marquee-track {
        gap: 4rem;
    }

    .marquee-item img {
        max-height: 60px;
        max-width: 160px;
    }

    .marquee-item.logo-large img {
        max-height: 100px;
    }
}