:root {
    --primary-color: #1b2a49;
    --secondary-color: #2e4a7d;
    --accent-color: #f4b41a;
    --nav-footer-bg: linear-gradient(135deg, #1b2a49, #2e4a7d);
    --light-color: #f8f9fa;
    --text-light: #ffffff;
}

/* =========================
   RESET & GLOBAL
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    overflow-x: hidden;
    color: #333;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    background: var(--nav-footer-bg);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: var(--nav-footer-bg);
    padding: 0.6rem 0;
    backdrop-filter: blur(8px);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover .brand-text {
    color: var(--accent-color);
    text-shadow: 0 0 12px var(--accent-color);
}

.nav-link {
    color: var(--text-light) !important;
    margin: 0 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* =========================
   LOGO & BRAND
========================= */
.brand-logo {
    height: 80px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.35);
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.1);
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-icon i {
    font-size: 1.6rem;
    color: var(--accent-color);
}

.brand-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-logo {
        height: 50px;
    }

    .brand-text {
        font-size: 1rem;
        display: none;
    }

    .brand-icon {
        display: none;
    }
}

/* =========================
   HERO SECTION
========================= */
#home {
    position: relative;
    background: url('/static/images/security-bg.jpg') center center/cover no-repeat;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    padding-left: 8%;
    overflow: hidden;
}

#home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin: 1rem 0 2rem;
    max-width: 600px;
    color: #e0e0e0;
}

/* =========================
   BUTTONS
========================= */
.btn-custom {
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 10px 0 0;
}

.btn-primary-custom {
    background: var(--accent-color);
    color: var(--dark-color);
    border: none;
}

.btn-primary-custom:hover {
    background: #ffca28;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(244,180,26,0.4);
}

.btn-outline-custom {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline-custom:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* =========================
   ABOUT SECTION
========================= */
#about {
  background: #ffffff;
  color: #333;
}
#about .section-title {
  color: #1b2a49;
}
.about-card {
  background: #fff;
  transition: all 0.3s ease;
}
.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.text-primary {
  color: #1b2a49 !important;
}
.text-warning {
  color: #f4b41a !important;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================
   SERVICES
========================= */
#services {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.service-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 40px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-10px);
}

/* =========================
   CONTACT
========================= */
#contact {
    padding: 100px 0;
    background: #f9fafc;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* =========================
   FOOTER
========================= */
footer {
    background: var(--nav-footer-bg);
    color: var(--text-light);
    padding: 40px 0 20px;
    text-align: center;
}

footer p {
    color: rgba(255,255,255,0.85);
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.4rem;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .hero-title { font-size: 2.3rem; }
    .hero-subtitle { font-size: 1rem; }
    .btn-custom { padding: 12px 28px; font-size: 1rem; }
}


/* =========================
   ABOUT US SECTION
========================= */

/* About Us General */
#about {
    padding: 80px 0;
}

#about h2.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1b2a49;
    margin-bottom: 2rem;
}

#about h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1b2a49;
}

#about p, #about li {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* ================= Section Spacing ================= */
.about-section {
    margin-bottom: 60px;
}

/* ================= Cards Section ================= */
#about .about-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about .about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

#about .card-icon {
    font-size: 2.5rem;
    color: #f4b41a;
}

#about .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1b2a49;
    margin-bottom: 15px;
}

/* ================= Lists ================= */
#about ul {
    margin-top: 15px;
    padding-left: 20px;
}

#about ul li {
    margin-bottom: 0.5rem;
}

/* ================= Responsive ================= */
@media (max-width: 768px) {
    #about .about-card {
        margin: 0 auto;
    }
    #about h2.section-title {
        font-size: 2.3rem;
    }
    #about h3 {
        font-size: 1.5rem;
    }
}

/* Services Section */
#services {
    background: #f8f9fa; /* subtle background */
    padding: 100px 0;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

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

.service-icon {
    color: #f4b41a;
    margin-bottom: 15px;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1b2a49;
    margin-bottom: 10px;
}

.service-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Make all cards same height */
.row.g-4 > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

@media (max-width: 992px) {
    #services {
        padding: 70px 0;
    }
}


/* Fix navbar overlap */
body {
    padding-top: 90px;
}

/* Services Section */
#services {
    background: #f8f9fa;
    padding: 100px 0;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

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

.service-icon {
    color: #f4b41a;
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1b2a49;
    margin-bottom: 15px;
}

.service-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

/* Make all cards same height */
.row.g-4 > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

@media (max-width: 992px) {
    body {
        padding-top: 70px;
    }

    #services {
        padding: 70px 0;
    }
}


/* Modern Footer Design */
.footer-modern {
  background: linear-gradient(135deg, #1b2a49 0%, #162036 100%);
  color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.footer-modern::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -150px;
  width: 300px;
  height: 300px;
  background: rgba(244, 180, 26, 0.08);
  border-radius: 50%;
  z-index: 0;
}

.footer-modern .container {
  position: relative;
  z-index: 2;
}

.footer-heading {
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.footer-text {
  font-size: 0.95rem;
  color: #dcdcdc;
  max-width: 500px;
}

.footer-logo {
  width: 100px;
  height: auto;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.1);
}

.footer-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  width: 70%;
  margin-left: auto;
  margin-right: 0;
}

.social-icons a {
  color: #f4b41a;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: #fff;
  text-shadow: 0 0 10px #f4b41a;
}

@media (max-width: 768px) {
  .footer-modern {
    text-align: center;
  }
  .footer-divider {
    margin: 15px auto;
  }
}

footer.footer-modern {
    margin-top: auto;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero-title {
  overflow: hidden; /* Ensures typing effect looks clean */
  border-right: .15em solid #ffc107; /* Cursor color (Bootstrap warning color) */
  white-space: nowrap;
  letter-spacing: .05em;
  animation: typing 3s steps(30, end), blink-caret 0.75s step-end infinite;
}

/* Typing animation */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* Cursor blink */
@keyframes blink-caret {
  50% { border-color: transparent; }
}
