/* Variables & Theme */
:root {
  /* American Theme Colors */
  --primary-red: #B22234;
  /* Old Glory Red */
  --primary-blue: #3C3B6E;
  /* Old Glory Blue */
  --accent-white: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-light: #F4F4F6;
  --bg-color: #FAFAFA;
  --card-bg: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.85);

  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Shadows & Radius */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 12px;
  --border-radius-lg: 24px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Container Utility */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.bg-light {
  background-color: #F0F2F5;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--accent-white);
  box-shadow: 0 4px 14px 0 rgba(178, 34, 52, 0.39);
}

.btn-primary:hover {
  background-color: #9A1D2D;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(178, 34, 52, 0.23);
  color: var(--accent-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-white);
  border: 2px solid var(--accent-white);
}

.btn-secondary:hover {
  background-color: var(--accent-white);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Section Titles */
.section-title {
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.section-title p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.divider {
  height: 4px;
  width: 60px;
  background-color: var(--primary-red);
  margin: 0 auto 1.5rem auto;
  border-radius: 2px;
}

.divider.left {
  margin: 0 0 1.5rem 0;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  color: var(--primary-blue);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--primary-red);
  font-weight: 400;
}

.nav-links ul {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-red);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-blue);
  cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--primary-blue);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right 0.4s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav ul {
  text-align: center;
}

.mobile-nav li {
  margin: 1.5rem 0;
}

.mobile-nav a {
  color: var(--accent-white);
  font-size: 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
}

.mobile-nav a:hover {
  color: var(--primary-red);
}

.close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--accent-white);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('hero_bg_1772239074920.png');
  /* Downloaded from artifacts */
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(60, 59, 110, 0.9) 0%, rgba(26, 26, 26, 0.7) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--accent-white);
  max-width: 800px;
  padding-top: 5rem;
}

.hero h2 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card-bg);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--primary-red);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(60, 59, 110, 0.05);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem auto;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--primary-blue);
  color: var(--accent-white);
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-card p {
  color: #666;
  font-size: 0.95rem;
}

/* Image Banner / CTA Section */
.image-banner {
  position: relative;
  padding: 6rem 0;
  background-image: url('banner_bg_1772239092934.png');
  /* Downloaded from artifacts */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(178, 34, 52, 0.85);
  /* Red Overlay */
}

.banner-content {
  position: relative;
  color: var(--accent-white);
  z-index: 1;
}

.banner-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.banner-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.banner-content .btn-primary {
  background-color: var(--primary-blue);
  box-shadow: none;
}

.banner-content .btn-primary:hover {
  background-color: #2A2952;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about-flex {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.about-text p {
  margin-bottom: 1.5rem;
  color: #555;
  font-size: 1.05rem;
}

.feature-list {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.feature-list i {
  color: var(--primary-red);
}

.about-image-container {
  flex: 1;
  position: relative;
}

.about-image {
  height: 500px;
  border-radius: var(--border-radius-lg);
  background-image: url('about_img_1772239105543.png');
  /* Downloaded from artifacts */
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background-color: var(--primary-blue);
  color: var(--accent-white);
  padding: 2rem;
  border-radius: 50%;
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 20px rgba(60, 59, 110, 0.3);
  z-index: 2;
  border: 5px solid var(--accent-white);
}

.experience-badge .number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-heading);
}

.experience-badge .text {
  font-size: 0.8rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

/* Contact Section */
.contact-flex {
  display: flex;
  gap: 3rem;
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact-info {
  flex: 1;
  background-color: var(--primary-blue);
  color: var(--accent-white);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.icon-circle {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #FFD700;
  /* Gold touch */
}

.info-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.info-item p,
.info-item a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

.info-item a:hover {
  color: var(--accent-white);
  text-decoration: underline;
}

.contact-form-container {
  flex: 1.5;
  padding: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #E2E8F0;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  background-color: #F8FAFC;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(60, 59, 110, 0.1);
}

.form-group textarea {
  resize: vertical;
}

/* Footer */
footer {
  background-color: #1A1A1A;
  color: var(--accent-white);
  padding-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo h2 {
  font-size: 1.8rem;
  color: var(--accent-white);
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--primary-red);
}

.footer-logo p {
  color: #A0AEC0;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links h3,
.footer-social h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-links h3::after,
.footer-social h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 30px;
  height: 2px;
  background-color: var(--primary-red);
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #A0AEC0;
}

.footer-links a:hover {
  color: var(--primary-red);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-white);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-blue);
  transform: translateY(-3px);
}

.footer-bottom {
  background-color: #111;
  padding: 1.5rem 0;
}

.bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: #718096;
  font-size: 0.9rem;
}

/* ClearMoon.LLC attribution styling */
.design-credit {
  font-size: 0.85rem !important;
  color: #718096;
}

.design-credit a {
  color: #A0AEC0;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.design-credit a:hover {
  color: var(--primary-red);
}

/* Animations Utilities */
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero h2 {
    font-size: 3rem;
  }

  .about-flex {
    flex-direction: column;
    gap: 3rem;
  }

  .about-image-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .experience-badge {
    left: -15px;
    bottom: -15px;
    width: 120px;
    height: 120px;
  }

  .experience-badge .number {
    font-size: 2rem;
  }

  .contact-flex {
    flex-direction: column;
    gap: 0;
  }

  .contact-info {
    padding: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .bottom-flex {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    height: 350px;
  }

  .contact-form-container {
    padding: 2rem 1.5rem;
  }
}