/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #4A90E2;
  --light-blue: #6BA3E8;
  --dark-blue: #357ABD;
  --text-primary: #2C3E50;
  --text-secondary: #7F8C8D;
  --text-light: #95A5A6;
  --bg-white: #FFFFFF;
  --bg-light-grey: #F8F9FA;
  --border-light: #E8EBED;
  --shadow-subtle: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  background-color: var(--bg-white);
  font-weight: 300;
}

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

/* Navigation */
.navbar {
  background-color: var(--bg-white);
  /* border-bottom: 0px solid var(--border-light); */
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  /* box-shadow: var(--shadow-subtle); */
}

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

.nav-brand {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary-blue);
}

.nav-brand a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

.nav-brand a:hover {
  color: var(--dark-blue);
}

.nav-brand .logo {
  height: 40px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 400;
  font-size: 0.95rem;
  transition: color 0.3s;
}

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

/* Hamburger Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--primary-blue);
  margin: 5px 0;
  transition: all 0.3s;
}

.nav-toggle.active .hamburger:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background-color: var(--bg-white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 2rem;
    transition: right 0.3s ease-in-out;
    z-index: 100;
  }

  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.1rem;
  }
}

/* Hero Section */
.hero {
  background-color: var(--bg-white);
  padding: 6rem 0 5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

/* Optional: Add background image to hero section
   Place your image in static/images/hero-bg.jpg and uncomment below */
.hero.hero-with-bg {
  background-image: linear-gradient(rgba(255, 255, 255, 1.0), rgba(255, 255, 255, 0.1)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

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

.hero-title {
  font-size: 2.75rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 0.375rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}

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

.btn-primary:hover {
  background-color: var(--dark-blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-blue);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--primary-blue);
  transform: translateY(-1px);
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  padding: 2rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--light-blue);
}

.feature-icon {
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 400;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

/* Simulator Section */
.simulator-section {
  padding: 5rem 0;
  background-color: var(--bg-light-grey);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.subtitle {
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1.1rem;
}

.simulator-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.simulator-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-top: 2.5rem;
  color: var(--text-primary);
  font-weight: 400;
}

.simulator-text h3:first-child {
  margin-top: 0;
}

.simulator-text p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
}

.feature-list {
  margin: 1.5rem 0;
  list-style: none;
}

.feature-list li {
  padding: 0.6rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: var(--primary-blue);
  font-size: 1.2rem;
}

.simulator-visual {
  position: relative;
  min-width: 0;
  height: 100%;
}

/* Screenshot Carousel */
.screenshot-carousel {
  position: relative;
  background-color: #F8F9FA;
  /* border: 1px solid var(--border-light); */
  border-radius: 0.5rem;
  overflow: hidden;
  max-width: 100%;
  height: 100%;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%; /* Match parent height */
  min-height: 400px; /* Minimum height to prevent it being too small */
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover; /* Crop to fill, maintains aspect ratio */
  object-position: center top; /* What part to show when cropping */
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  padding: 1.5rem;
  font-size: 0.9rem;
  font-weight: 300;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-light);
  color: var(--primary-blue);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

.carousel-nav:hover {
  background-color: var(--primary-blue);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

.carousel-nav svg {
  width: 20px;
  height: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background-color: var(--bg-light-grey);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background-color: white;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.carousel-dot:hover {
  background-color: var(--light-blue);
}

.carousel-dot.active {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

/* Placeholder for when no images are added yet */
.carousel-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  color: var(--text-secondary);
  font-weight: 300;
  background-color: var(--bg-light-grey);
}

/* Consulting Section */
.consulting-section {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  padding: 2rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  border-color: var(--light-blue);
  box-shadow: var(--shadow-soft);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 400;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-weight: 300;
}

.service-list {
  list-style: none;
  margin-top: 1rem;
}

.service-list li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: var(--primary-blue);
}

/* Team Section */
.team-section {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

.team-carousel {
  position: relative;
  max-width: 900px;
  margin: 3rem auto 0;
}

.team-carousel-container {
  position: relative;
  min-height: 400px;
}

/* Team carousel specific arrow positioning */
#team-carousel .carousel-prev {
  left: -60px;
}

#team-carousel .carousel-next {
  right: -60px;
}

/* Hide arrows on smaller screens where they'd go off-screen */
@media (max-width: 1100px) {
  #team-carousel .carousel-prev {
    left: 0.5rem;
  }
  
  #team-carousel .carousel-next {
    right: 0.5rem;
  }
}

.team-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.team-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.team-slide-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: center;
}

.team-photo-large {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-light);
  transition: border-color 0.3s;
  flex-shrink: 0;
}

.team-photo-large:hover {
  border-color: var(--primary-blue);
}

.team-photo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--bg-light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.team-photo-placeholder svg {
  width: 100px;
  height: 100px;
}

.team-info {
  text-align: left;
}

.team-info h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 400;
}

.team-info .team-role {
  color: var(--primary-blue);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.team-info p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
  font-size: 1rem;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background-color: var(--bg-light-grey);
}

/* Commented out grid layout for contact section when removed the contact forms

 .contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
} */

.contact-grid {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 400;
  font-size: 0.95rem;
}

.form-input,
.form-textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color 0.3s;
  background-color: var(--bg-white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.form-textarea {
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-card {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-light);
}

.contact-info-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 400;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item i {
  color: var(--primary-blue);
  font-size: 1.25rem;
  margin-top: 0.25rem;
  min-width: 1.25rem;
}

.info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.info-item p {
  color: var(--text-primary);
  margin: 0.25rem 0;
  font-weight: 300;
}

/* Footer */
.footer {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 400;
}

.footer-section h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 400;
}

.footer-section p {
  font-weight: 300;
  line-height: 1.7;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.6rem;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 300;
}

.footer-section a:hover {
  color: var(--primary-blue);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-light);
  font-weight: 300;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-light-grey);
  color: var(--text-secondary);
  transition: all 0.3s;
  font-size: 1.25rem;
}

.social-icon:hover {
  background-color: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 968px) {
  .simulator-content {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .team-slide-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .team-photo-large {
    margin: 0 auto;
  }
  
  .team-info {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
  }
  
  .section-title {
    font-size: 1.85rem;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .team-photo-large {
    width: 250px;
    height: 250px;
  }
  
  .team-info h3 {
    font-size: 1.5rem;
  }
  
  .team-carousel-container {
    min-height: 500px;
  }
}

/* Legal Pages */
.legal-page {
  padding: 5rem 0;
  background-color: var(--bg-white);
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-weight: 400;
}

.legal-page h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 400;
}

.legal-page h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 400;
}

.legal-page p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
}

.legal-page ul, .legal-page ol {
  margin-bottom: 1.5rem;
  margin-left: 2rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-page li {
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.legal-page a {
  color: var(--primary-blue);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page em {
  color: var(--text-light);
  font-style: italic;
}
