:root {
    --primary-color: #003366;
    /* Deep Navy Blue */
    --secondary-color: #00509e;
    /* Lighter Blue */
    --accent-color: #ff6600;
    /* Safety Orange */
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f4f7f6;
    --dark-bg: #111111;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Alert Banner */
.alert-banner {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 0;
    position: relative;
    text-align: center;
    font-size: 0.9rem;
}

.alert-banner a {
    text-decoration: underline;
    font-weight: bold;
}

.alert-banner button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-dark);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: url('hero_cctv_modern.png') no-repeat center center/cover;
    /* Fallback if image fails */
    background-color: #1a1a1a;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 0, 0, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Services Grid - Show All 4 Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.service-card h3 {
    margin: 20px 0 10px;
    font-size: 1.5rem;
    color: white;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

/* Gallery Placeholder */
.elfsight-placeholder {
    background-color: #e0e0e0;
    border: 2px dashed #999;
    border-radius: var(--radius);
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #666;
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #999;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Review Cards */
.review-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.review-card .stars {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.review-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.review-card h4 {
    color: white;
    font-weight: 600;
}

/* Quote Section */
.quote-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.quote-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.benefits-list {
    margin-top: 30px;
}

.benefits-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.benefits-list i {
    color: var(--accent-color);
}

.quote-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent-color);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    min-width: 30px;
}

.info-item strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 5px;
}

.map-container {
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .map-container {
        height: 400px;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
    padding: 60px 0 20px;
    border-top: 3px solid var(--accent-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px;
}

.footer-social .social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.copyright a {
    text-decoration: none;
    transition: var(--transition);
}

.copyright a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

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

    .footer-links {
        align-items: center;
    }

    .footer-social .social-links {
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        position: relative;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 16px 0;
    }

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

    .hero-btns {
        flex-direction: column;
    }

    .quote-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

/* Language Toggle */
.lang-toggle {
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 5px 15px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    gap: 5px;
    align-items: center;
}

.lang-toggle span {
    opacity: 0.5;
    transition: var(--transition);
}

.lang-toggle span.active {
    opacity: 1;
    color: var(--primary-color);
    font-weight: 800;
}

.lang-toggle:hover {
    background-color: rgba(0, 51, 102, 0.05);
}

@media (max-width: 768px) {
    .lang-toggle {
        margin-top: 10px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
}

/* Generic chat float used by Viber/Telegram (and others) */
.chat-float {
    position: fixed;
    width: 56px;
    height: 56px;
    right: 40px;
    border-radius: 50px;
    color: #FFF;
    text-align: center;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
    transition: var(--transition);
    z-index: 100;
}

/* Stack the buttons above WhatsApp so they don't overlap */
.telegram-float {
    bottom: 110px; /* above WhatsApp */
    background-color: #0088cc; /* Telegram blue */
}

.telegram-float:hover {
    transform: scale(1.05);
}

.viber-float {
    bottom: 180px; /* above Telegram */
    background-color: #665CAC; /* Viber purple */
}

.viber-float:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .whatsapp-float,
    .chat-float {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

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

    /* Shift stacked positions slightly on small screens */
    .telegram-float { bottom: 90px; }
    .viber-float { bottom: 150px; }
}

/* Scrollytelling & Sticky Effects */
.scrolly-container {
    position: relative;
    background-color: #000;
}

/* Make sticky behaviour only for sections inside the scrolly container.
   This prevents sticky elements from covering later non-sticky sections
   (e.g., Reviews/Contact) and blocking clicks. */
.sticky-section {
    height: 100vh;
    /* default: not sticky unless inside .scrolly-container */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scrolly-container .sticky-section {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Ensure the last section doesn't get stuck behind footer */
.sticky-section:last-child {
    margin-bottom: 0;
}

.sticky-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    will-change: transform;
}

/* Text Reveal Animation */
.content-overlay {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    /* Slight overlay for readability */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-overlay.left-align {
    justify-content: flex-start;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.content-overlay.right-align {
    justify-content: flex-end;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.feature-box {
    max-width: 800px;
    padding: 60px;
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--accent-color);
    margin: 0 5%;
}

.feature-box h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}

.feature-box p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    mix-blend-mode: screen;
}