:root {
    --bg-dark: #f4f7f9;
    /* Light gray-blue background for a cleaner look */
    --bg-card: #ffffff;
    --navy: #002147;
    /* Professional Navy Blue */
    --tomato: #ff6347;
    /* Vibrant Tomato Red */
    --accent: var(--tomato);
    --accent-hover: #e5533d;
    --text-main: #1a2a44;
    /* Navy for text */
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.9);
    --border: rgba(0, 33, 71, 0.1);
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 6px;
    background: var(--tomato);
    border-radius: 3px;
}

.subtext {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 3.5rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.2rem 0;
    background: transparent;
}

/* Glass effect when scrolled or on subpages */
header.scrolled,
body:not(.home-page) header {
    background: rgba(0, 33, 71, 0.8) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled nav ul li a,
body:not(.home-page) header nav ul li a,
body:not(.home-page) header .logo,
body.home-page header nav ul li a,
body.home-page header .logo {
    color: #fff !important;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition);
}

nav>ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--tomato) !important;
    text-shadow: none;
}

/* Mobile Toggle Styles */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-toggle.active span:first-child {
    transform: rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-toggle.active span:last-child {
    transform: rotate(-45deg);
}

header:not(.scrolled) .mobile-toggle span {
    background-color: var(--navy);
}

body.home-page header:not(.scrolled) .mobile-toggle span {
    background-color: #fff;
}

header.scrolled .mobile-toggle span,
body:not(.home-page) header .mobile-toggle span {
    background-color: #fff;
}

/* Dropdown Curtain Effect */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    min-width: 220px;
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 20px 40px rgba(0, 33, 71, 0.3);
    z-index: 1001;
    border-top: 3px solid var(--tomato);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dropdown:hover .dropdown-content {
    max-height: 400px;
    opacity: 1;
    margin-top: 0.5rem;
}

.dropdown-content li {
    width: 100%;
}

.dropdown-content li a {
    color: #fff !important;
    padding: 1.2rem 2rem;
    display: block;
    text-transform: none !important;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: center;
}

.dropdown-content li a:hover {
    background: rgba(255, 99, 71, 0.1);
    color: var(--tomato) !important;
    padding-left: 2.2rem;
}

header:not(.scrolled) .dropdown-content {
    background: var(--navy);
}

header.scrolled .dropdown-content {
    background: #001a38;
}

/* Buttons */
.btn-yellow {
    background: var(--tomato);
    color: #fff;
    padding: 1rem 2.2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 99, 71, 0.3);
}

.btn-yellow:hover {
    background: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 33, 71, 0.2);
}

/* Cards & Layout */
section {
    padding: 120px 0;
    /* More spacing between sections */
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.05);
}

.glass-card:hover {
    border-color: var(--tomato);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 33, 71, 0.1);
}

.responsive-card {
    padding: 4rem;
}

@media (max-width: 768px) {
    .responsive-card {
        padding: 2.5rem 1.5rem;
    }
}

/* Hero Customization */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #fff 0%, #e1e8f0 100%);
}

.page-header {
    background: linear-gradient(to bottom, #000, var(--bg-dark));
    padding-top: 180px;
    padding-bottom: 60px;
    text-align: center;
}

@media (max-width: 768px) {
    .page-header {
        padding-top: 120px;
        padding-bottom: 40px;
    }
}

.hero-box {
    width: 100%;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(rgba(0, 33, 71, 0.85), rgba(0, 33, 71, 0.4)), url('../img/security_guard_hero.png');
    background-size: cover;
    background-position: center;
    min-height: 450px;
    display: flex;
    align-items: center;
    box-shadow: 0 30px 60px rgba(0, 33, 71, 0.2);
}

.hero-content {
    max-width: 650px;
    padding: 3rem;
    z-index: 2;
    color: #fff;
}

.hero h1 {
    color: #fff;
    font-size: clamp(3rem, 7vw, 4.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.tag {
    background: var(--tomato);
    color: #fff;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 100px;
    margin-bottom: 2rem;
    display: inline-block;
}

/* Grid Systems */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.grid-2-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 991px) {
    .grid-2-stack {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Animations - Set to visible by default as requested */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Service Card Fixes */
.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 99, 71, 0.1);
    color: var(--tomato);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.service-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--tomato);
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: 800;
    border: 2px solid #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Footer Improvements */
footer {
    background: #000c1a;
    padding: 100px 0 40px;
    border-top: 5px solid var(--tomato);
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--tomato);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--tomato);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Mission & Vision Styling */
.mv-box {
    background: #fff;
    padding: 4rem;
    border-radius: 30px;
    box-shadow: 0 40px 80px rgba(0, 33, 71, 0.08);
    height: 100%;
    transition: var(--transition);
}

.mv-box:hover {
    transform: translateY(-10px);
}

.mv-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 99, 71, 0.1);
    color: var(--tomato);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Responsive fixes */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    nav>ul {
        gap: 1.5rem;
    }
}

@media (max-width: 991px) {
    header {
        padding: 1rem 0;
    }

    .mobile-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--navy);
        padding: 80px 40px;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    nav.mobile-active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: left;
    }

    nav ul li a {
        font-size: 1.2rem;
        color: #fff !important;
    }

    .header-actions {
        display: none;
    }

    .dropdown-content {
        position: static;
        transform: none;
        max-height: none;
        opacity: 1;
        background: transparent;
        box-shadow: none;
        padding-left: 1.5rem;
        border-top: none;
        margin-top: 1rem;
        display: none;
        /* Initially hidden, can be toggled or shown differently */
    }

    .dropdown.active .dropdown-content {
        display: flex;
    }

    .dropdown-content li a {
        padding: 0.8rem 0;
        text-align: left;
        font-size: 1.1rem;
        border-bottom: none;
    }

    section {
        padding: 80px 0;
    }

    .grid-3 {
        gap: 2rem;
    }

    .glass-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    h2 {
        padding-left: 1rem;
    }

    .hero-box {
        min-height: 400px;
    }

    .hero-content {
        padding: 2rem;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 60px 0;
    }
}