@font-face {
  font-family: "Louis George Cafe";
  src: url(../fonts/LouisGeorgeCafe.woff) format("woff"),
       url(../fonts/LouisGeorgeCafe.woff2) format("woff2");
}

@font-face {
  font-family: "Catchye Demo";
  src: url(../fonts/CatchyeDemo.woff) format("woff"),
       url(../fonts/CatchyeDemo.woff2) format("woff2");
}

@font-face {
  font-family: "Metropolis";
  src: url(../fonts/Metropolis-SemiBold.woff) format("woff"),
       url(../fonts/Metropolis-SemiBold.woff2) format("woff2");
}

@font-face {
  font-family: "Montserrat";
  src: url(../fonts/Montserrat-Thin.woff) format("woff"),
       url(../fonts/Montserrat-Thin.woff2) format("woff2");
}

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

a {
  text-decoration: none;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

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

/* ==========================
   NAVIGATION
   ========================== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2em;  /* Changed to match security */
  width: 100%;
}

.logo {
  display: flex;  /* Changed from float */
  align-items: center;
  height: 45px;
  margin-top: 0;  /* Changed from 1em */
  margin-left: 0; /* Changed from 1.8em */
}

.menu-btn {
  text-transform: uppercase;
  cursor: pointer;
  margin-top: .3em;  /* Changed from 1.3em */
  height: 20px;
  flex-shrink: 0; /* Added to match security */
}

/* ==========================
   HERO SECTION
   ========================== */
.top {
  background-image: url(../img/soft-bg.jpg);
  min-height: 100vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 0;
  width: 100%;
  overflow-x: hidden;
}

.heading {
  color: #fff3b1;
  font-family: "Catchye Demo";
  font-size: 7rem;
  margin-left: 0.17em;
  margin-top: 0.6em;
}

/* ==========================
   SUBTEXT / SECTION HEADER
   ========================== */
.subtext {
  display: flex;
  flex-wrap: wrap;
  gap: 3em;
  margin-left: 1.25em;
  font-family: "Louis George Cafe";
  flex-direction: column;
}

.section-header {
  width: 100%;
}

.section-title {
  color: #de9171;
  font-family: "Catchye Demo";
  font-size: 3.5rem;
  margin-bottom: 15px;
  margin-top: -15px;
}

.section-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 700px;
  line-height: 1.8;
  font-family: "Louis George Cafe";
  margin-bottom: -1em;
}

/* ==========================
   PROJECTS GRID
   ========================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
  width: 100%;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.project-card:hover {
  border-color: rgba(242, 207, 0, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image-wrapper img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
}

.project-category {
  background: #de9171;
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.project-info {
  padding: 20px;
}

.project-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================
   STATS SECTION
   ========================== */
.stats-section {
  margin-top: 60px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-left: 1.25em;
  margin-right: 1.25em;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: #fff3b1;
  font-family: "Catchye Demo", sans-serif;
}

.stat-label {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 5px;
  font-family: "Montserrat", sans-serif;
}

/* ==========================
   MODAL STYLES
   ========================== */
.modal-content {
  background: rgba(20, 20, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #fff;
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 25px;
}

.modal-header .modal-title {
  color: #fff3b1;
  font-weight: 600;
  font-size: 1.3rem;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 25px;
}

.modal-body h6 {
  color: #fff3b1;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 8px;
}

.modal-body h6:first-child {
  margin-top: 0;
}

.modal-body p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 0.95rem;
}

.tech-list,
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-list li,
.feature-list li {
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.feature-list li i {
  color: #fff3b1;
  margin-right: 10px;
}

.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 25px;
}

.modal-footer .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
}

.modal-footer .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-footer .btn-primary {
  background: #fff3b1;
  border: none;
  color: #000;
  font-weight: 600;
}

.modal-footer .btn-primary:hover {
  background: #d4b300;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(242, 207, 0, 0.3);
}

/* ==========================
   VIDEO CONTAINER
   ========================== */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================
   FOOTER - REDESIGNED
   ========================== */
footer.footer-btm {
  background: url(../img/footer-bg.jpg) 100%;
  background-size: cover;
  background-position: center;
  padding: 3em 4em;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1366px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2em;
}

/* ===== LOGO - LEFT ALIGNED ===== */
.footer-logo-wrapper {
  flex-shrink: 0;
  padding-top: 0.5em;
}

.footer-logo {
  display: block;
}

.ft-logo {
  height: 45px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.ft-logo:hover {
  opacity: 1;
}

/* ===== 4 DIVS IN THE MIDDLE ===== */
.footer-links-wrapper {
  display: flex;
  justify-content: flex-end;
  gap: 4em;
  flex-wrap: wrap;
}

.footer-col {
  min-width: 120px;
}

.footer-col-title {
  color: rgba(255, 255, 255, 0.5);
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5mm;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-text {
  color: rgba(255, 255, 255, 0.7);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.3px;
}

.footer-email {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-email:hover {
  color: #f2cf00;
}

/* ===== MENU LIST ===== */
.footer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu-list li {
  margin-bottom: 6px;
}

.footer-menu-list li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8mm;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 2px 0;
}

.footer-menu-list li a:hover {
  color: #f2cf00;
}

/* ===== DROPDOWN IN MENU ===== */
.footer-menu-list .footer-dropdown {
  position: relative;
  display: block;
}

.footer-menu-list .footer-dropbtn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8mm;
  background: none;
  border: none;
  padding: 2px 0;
  transition: color 0.3s ease;
}

.footer-menu-list .footer-dropbtn:hover {
  color: #f2cf00;
}

.footer-menu-list .footer-caret {
  display: inline-block;
  font-size: 8px;
  transition: transform 0.3s ease;
  color: rgba(255, 255, 255, 0.4);
}

.footer-menu-list .footer-dropdown:hover .footer-caret,
.footer-menu-list .footer-dropdown.active .footer-caret {
  transform: rotate(180deg);
  color: #f2cf00;
}

/* Dropdown Content */
.footer-menu-list .footer-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 0;
  z-index: 9999;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  min-width: 140px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  margin-top: 2px;
}

.footer-menu-list .footer-dropdown-content li {
  margin: 0;
  padding: 0;
}

.footer-menu-list .footer-dropdown-content a {
  display: block;
  padding: 8px 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  letter-spacing: 0.6mm;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-left: 2px solid transparent;
}

.footer-menu-list .footer-dropdown-content a:hover {
  color: #f2cf00;
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #f2cf00;
}

/* Show dropdown on hover (desktop) */
.footer-menu-list .footer-dropdown:hover .footer-dropdown-content {
  display: block;
}

/* Show dropdown when active (mobile/click) */
.footer-menu-list .footer-dropdown.active .footer-dropdown-content {
  display: block !important;
}

/* ==========================
   RESPONSIVE - MATCHING SECURITY.HTML
   ========================== */

/* Tablet: 992px and below */
@media (max-width: 992px) {
  .heading {
    font-size: 5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-title {
    font-size: 3rem;
  }
}

/* Mobile: 768px and below - MATCHING SECURITY NAV */
@media (max-width: 768px) {
  /* === NAV MATCHING SECURITY.HTML === */
  .nav {
    padding: 0.5em;  /* Changed from 1.5em 0 to match security */
  }
  
  .logo {
    display: flex;
    align-items: center;
  }
  
  .logo img {
    height: 22px;  /* Changed to match security */
    width: auto;
  }
  
  .menu-btn {
    height: 16px;  /* Changed to match security */
    width: auto;
  }

  /* === OTHER MOBILE STYLES === */
  .heading {
    font-size: 3.5rem;
    margin-left: 0.2em;
    margin-top: 0.4em;
  }

  .container {
    padding: 0.5em;  /* Reduced padding */
  }
  
  .subtext {
    margin-left: 0.5em;
    gap: 2em;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .section-description {
    font-size: 1rem;
    padding-right: 15px;
  }
  
  .stat-number {
    font-size: 2.2rem;
  }
  
  .stats-section {
    margin-left: 0.5em;
    margin-right: 0.5em;
    gap: 10px;
    padding: 20px 0;
  }
  
  .project-image-wrapper {
    height: 180px;
  }
  
  .modal-dialog {
    margin: 10px;
  }

  /* ===== FOOTER MOBILE ===== */
  footer.footer-btm {
    padding: 2em 1.5em;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
  }

  .footer-logo-wrapper {
    padding-top: 0;
  }

  .ft-logo {
    height: 35px;
  }

  .footer-links-wrapper {
    justify-content: center;
    gap: 2em 3em;
    width: 100%;
  }

  .footer-col {
    min-width: 120px;
    flex: 0 0 auto;
    text-align: center;
  }

  .footer-col-title {
    font-size: 10px;
    letter-spacing: 1.2mm;
  }

  .footer-col-text {
    font-size: 11px;
  }

  .footer-menu-list li a {
    font-size: 11px;
    letter-spacing: 0.6mm;
  }

  .footer-menu-list .footer-dropbtn {
    font-size: 11px;
    letter-spacing: 0.6mm;
  }

  /* ===== MOBILE DROPDOWN - FIXED TO SHOW ===== */
  .footer-menu-list .footer-dropdown-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 200px;
    max-width: 85vw;
    z-index: 99999;
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .footer-menu-list .footer-dropdown-content li {
    display: block;
    width: 100%;
    text-align: center;
  }

  .footer-menu-list .footer-dropdown-content a {
    padding: 12px 24px;
    font-size: 14px;
    text-align: center;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
  }

  .footer-menu-list .footer-dropdown-content a:last-child {
    border-bottom: none;
  }

  .footer-menu-list .footer-dropdown-content a:hover {
    border-left: none;
    background: rgba(255, 255, 255, 0.08);
    color: #f2cf00;
  }

  /* Force dropdown to show when active */
  .footer-menu-list .footer-dropdown.active .footer-dropdown-content {
    display: block !important;
  }

  .footer-menu-list .footer-dropdown.active .footer-caret {
    transform: rotate(180deg);
  }

  /* Backdrop overlay */
  .footer-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    display: none;
  }

  .footer-dropdown-overlay.active {
    display: block;
  }
}

/* Small Mobile: 480px and below - MATCHING SECURITY NAV */
@media (max-width: 480px) {
  /* === NAV MATCHING SECURITY.HTML === */
  .logo img {
    height: 18px;  /* Changed to match security */
    width: auto;
  }
  
  .menu-btn {
    height: 12px;  /* Changed to match security */
    width: 35px;   /* Changed to match security */
  }

  /* === OTHER SMALL MOBILE STYLES === */
  .heading {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .project-image-wrapper {
    height: 150px;
  }
  
  .project-info {
    padding: 15px;
  }
  
  .project-title {
    font-size: 1rem;
  }
  
  .project-description {
    font-size: 0.85rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .modal-body {
    padding: 15px;
  }

  footer.footer-btm {
    padding: 1.5em 0.8em;
  }

  .ft-logo {
    height: 28px;
  }

  .footer-links-wrapper {
    gap: 1.2em 1.5em;
  }

  .footer-col {
    min-width: 80px;
  }

  .footer-col-title {
    font-size: 8px;
    letter-spacing: 0.8mm;
    margin-bottom: 6px;
    padding-bottom: 4px;
  }

  .footer-col-text {
    font-size: 9px;
    line-height: 1.5;
  }

  .footer-menu-list li a {
    font-size: 9px;
    letter-spacing: 0.4mm;
  }

  .footer-menu-list .footer-dropbtn {
    font-size: 9px;
    letter-spacing: 0.4mm;
  }

  /* Smallest screen dropdown - center and visible */
  .footer-menu-list .footer-dropdown-content {
    min-width: 160px;
    max-width: 92vw;
    padding: 6px 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .footer-menu-list .footer-dropdown-content a {
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* Extra Small Mobile: 380px and below */
@media (max-width: 380px) {
  .heading {
    font-size: 2.4rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}