:root {
  --color-navy: #011224;
  --color-orange: #ffb048;
  
  --color-white: #ffffff;
  --color-gray: #f8f9fa;
  --color-dark: #4e4d4d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  font-weight: 300;
  color: var(--color-gray);
  background-color: var(--color-navy);
  line-height: 1.6;
  font-size: 112%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/static/images/back_image.webp") center/cover no-repeat;
  opacity: 0.27;
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--color-orange);
  margin: 0 0 1rem 0;
}

p {
  margin: 0 0 1rem 0;
}

.navbar {
  background: rgba(1, 18, 36, 0.95);
  backdrop-filter: blur(20px);
  color: var(--color-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 176, 72, 0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(1, 18, 36, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar .brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-orange);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.navbar .brand:hover {
  transform: scale(1.05);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navbar a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 400;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  position: relative;
  transition: all 0.3s ease;
}

.navbar a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-orange);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar a:hover {
  color: var(--color-orange);
  background: rgba(255, 176, 72, 0.1);
}

.navbar a:hover::before {
  width: 80%;
}

.hamburger {
  display: none;
  flex-direction: column;
  width: 24px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  background: var(--color-orange);
  margin: 4px 0;
}

@media (max-width: 768px) {
  .navbar ul {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-navy);
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    display: none;
  }

  .navbar ul.show {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

.hero {
  background: linear-gradient(135deg, var(--color-navy), #0a1c31);
  color: var(--color-white);
  padding: 6rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(1, 18, 36, 0.7), rgba(10, 28, 49, 0.8));
  z-index: 2;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.hero .container {
  position: relative;
  z-index: 20;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--color-orange), #ffcc73);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(255, 176, 72, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero .hero-lead {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .hero-subtext {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-primary,
.btn-secondary {
  padding: 1.25rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: 'Rubik', sans-serif;
  border: none;
  cursor: pointer;
  min-width: 220px;
  border-radius: 12px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-orange), #ff9900);
  color: var(--color-white);
  border: 2px solid transparent;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff9900, #e6850e);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 176, 72, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border: 2px solid rgba(255, 176, 72, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 176, 72, 0.1);
  border-color: var(--color-orange);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 176, 72, 0.2);
  color: var(--color-orange);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .btn-primary,
  .btn-secondary {
    min-width: 280px;
  }
}

.message-container {
  text-align: center;
  padding: 1rem;
  background: var(--color-orange);
  color: var(--color-navy);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 18, 36, 0.8);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 16px;
  max-width: 500px;
  width: 95%;
  color: var(--color-dark);
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 176, 72, 0.1);
  border: 1px solid rgba(255, 176, 72, 0.2);
  transform: translateY(-20px);
  animation: slideUp 0.4s ease-out forwards;
}

.modal-content h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: var(--color-navy);
  position: relative;
}

.modal-content h2:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-orange), #ff9900);
  border-radius: 2px;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-dark);
  background: rgba(0, 0, 0, 0.1);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--color-orange);
  color: var(--color-white);
  transform: rotate(90deg);
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-content form input,
.modal-content form select,
.modal-content form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  color: var(--color-dark);
  background: var(--color-white);
  transition: all 0.3s ease;
  outline: none;
}

.modal-content form input:focus,
.modal-content form select:focus,
.modal-content form textarea:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(255, 176, 72, 0.1);
  transform: translateY(-2px);
}

.modal-content form input::placeholder,
.modal-content form textarea::placeholder {
  color: #6c757d;
  opacity: 0.8;
}

.modal-content form select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1rem;
  padding-right: 3rem;
  appearance: none;
}

.modal-content form textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.modal-content form button {
  margin-top: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--color-orange), #ff9900);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  font-family: 'Rubik', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 176, 72, 0.3);
}

.modal-content form button:hover {
  background: linear-gradient(135deg, #ff9900, #e6850e);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 176, 72, 0.4);
}

.modal-content form button:active {
  transform: translateY(0);
}

/* Form validation styling */
.modal-content form input:invalid:not(:placeholder-shown),
.modal-content form select:invalid,
.modal-content form textarea:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.modal-content form input:valid:not(:placeholder-shown),
.modal-content form select:valid:not([value=""]),
.modal-content form textarea:valid:not(:placeholder-shown) {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Loading state for form submission */
.modal-content form button:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.modal-content form button:disabled:hover {
  background: #6c757d;
  transform: none;
  box-shadow: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.section {
  padding: 5rem 1rem;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  color: var(--color-dark);
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--color-navy), #0a1c31);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-orange), #ff9900);
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.features .feature {
  background: var(--color-white);
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 176, 72, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.features .feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-orange), #ff9900);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.features .feature:hover::before {
  transform: scaleX(1);
}

.features .feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 176, 72, 0.15);
  border-color: rgba(255, 176, 72, 0.3);
}

.feature .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(255, 176, 72, 0.1), rgba(255, 176, 72, 0.05));
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  transition: all 0.3s ease;
}

.features .feature:hover .icon {
  background: linear-gradient(135deg, rgba(255, 176, 72, 0.2), rgba(255, 176, 72, 0.1));
  transform: scale(1.1);
}

.feature .icon i {
  font-size: 2.2rem;
  color: var(--color-orange);
  transition: all 0.3s ease;
}

.features .feature:hover .icon i {
  color: #ff9900;
  transform: scale(1.1);
}

.features .feature p {
  font-size: 1rem;
  line-height: 1.6;
  color: #6c757d;
  margin: 0;
}

.features h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--color-navy);
  font-weight: 600;
}

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

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

/* About and Intelligence sections */
#about {
  background: linear-gradient(135deg, var(--color-navy), #0a1c31);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
}

#about::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 176, 72, 0.1), transparent);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

#about .container {
  position: relative;
  z-index: 2;
}

#about h2 {
  color: var(--color-orange);
  background: none;
  -webkit-text-fill-color: unset;
}

#about h2::after {
  background: var(--color-white);
}

#about p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

#about strong {
  color: var(--color-orange);
  font-weight: 600;
}

#intelligence {
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  position: relative;
  overflow: hidden;
}

.intelligence-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  z-index: 1;
}

.intelligence-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.85), rgba(255, 255, 255, 0.9));
  z-index: 2;
}

#intelligence .container {
  position: relative;
  z-index: 10;
}

#intelligence p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--color-dark);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.5;
    transform: scaleX(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

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

@keyframes slideUpFromBottom {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  50% {
    opacity: 0.3;
    transform: translateY(50%);
  }
  100% {
    opacity: 0.6;
    transform: translateY(0);
  }
}

@keyframes slideUpFromBottomLight {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  50% {
    opacity: 0.4;
    transform: translateY(50%);
  }
  100% {
    opacity: 0.7;
    transform: translateY(0);
  }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for features */
.features .feature:nth-child(1) { animation-delay: 0.1s; }
.features .feature:nth-child(2) { animation-delay: 0.2s; }
.features .feature:nth-child(3) { animation-delay: 0.3s; }
.features .feature:nth-child(4) { animation-delay: 0.4s; }
.features .feature:nth-child(5) { animation-delay: 0.5s; }
.features .feature:nth-child(6) { animation-delay: 0.6s; }
.features .feature:nth-child(7) { animation-delay: 0.7s; }
.features .feature:nth-child(8) { animation-delay: 0.8s; }

.footer {
  background: linear-gradient(135deg, var(--color-navy), #0a1c31);
  color: var(--color-white);
  text-align: center;
  padding: 3rem 1rem 2rem;
  position: relative;
  border-top: 1px solid rgba(255, 176, 72, 0.2);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
}

.footer p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer p:first-child {
  font-weight: 600;
  color: var(--color-white);
  font-size: 1.1rem;
}

.footer a {
  color: var(--color-orange);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 2px 4px;
  border-radius: 4px;
}

.footer a:hover {
  color: #ffcc73;
  background: rgba(255, 176, 72, 0.1);
}

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

/* Comprehensive Responsive Design */

/* Large screens and desktops */
@media (max-width: 1200px) {
  .container {
    padding: 0 2rem;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .features-grid {
    gap: 2rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .navbar ul {
    gap: 1.5rem;
  }
  
  .hero {
    padding: 4rem 1rem;
  }
  
  .hero-background-image {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero .hero-lead {
    font-size: 1.3rem;
  }
  
  .hero .hero-subtext {
    font-size: 1rem;
  }
  
  .section {
    padding: 4rem 1rem;
  }
  
  .section h2 {
    font-size: 2rem;
  }
  
  .features-grid {
    gap: 1.5rem;
  }
  
  .intelligence-background-image {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  #about p,
  #intelligence p {
    font-size: 1.05rem;
  }
  
  /* Modal responsive */
  .modal-content {
    max-width: 95%;
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .modal-content h2 {
    font-size: 1.5rem;
  }
  
  .modal-content form input,
  .modal-content form select,
  .modal-content form textarea {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
  
  .modal-content form button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .navbar {
    padding: 0.75rem 1rem;
  }
  
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero-background-image {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.5;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .hero .hero-lead {
    font-size: 1.2rem;
  }
  
  .hero .hero-subtext {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .features .feature {
    padding: 2rem 1.25rem;
  }
  
  .feature .icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .feature .icon i {
    font-size: 1.8rem;
  }
  
  .features h3 {
    font-size: 1.2rem;
  }
  
  .features .feature p {
    font-size: 0.95rem;
  }
  
  #about p,
  #intelligence p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .footer {
    padding: 2rem 1rem 1.5rem;
  }
  
  .footer p {
    font-size: 0.95rem;
  }
  
  /* Modal mobile */
  .modal-content {
    padding: 1.5rem 1rem;
    border-radius: 12px;
  }
  
  .modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    font-size: 1.25rem;
  }
  
  .modal-content h2 {
    font-size: 1.4rem;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .btn-primary,
  .btn-secondary {
    min-width: 240px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }
  
  .features .feature {
    padding: 1.5rem 1rem;
  }
  
  .modal-content {
    padding: 1.25rem 0.75rem;
  }
}
