/* style.css */

/* CSS Variables for theming */
:root {
  /* Dark mode colors (default) */
  --bg-primary: #111;
  --bg-secondary: #000;
  --bg-tertiary: #1a1a1a;
  --bg-card: #1a1a1a;
  --bg-hover: #222;
  
  --text-primary: white;
  --text-secondary: #ccc;
  --text-tertiary: #bbb;
  
  --accent-primary: #112463;
  --accent-secondary: #1a3a8a;
  --accent-bright: #4a9eff;
  --accent-hover: #6ab5ff;
  
  --border-primary: #666;
  --border-secondary: #112463;
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  --gradient-accent: linear-gradient(90deg, #112463 0%, #1a3a8a 100%);
  --gradient-button: linear-gradient(to bottom, #112463, #1a3a8a);
  --gradient-radial: radial-gradient(circle at 20% 50%, rgba(17, 36, 99, 0.3) 0%, transparent 50%);
}

/* Light mode colors */
@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f3f4f6;
    --bg-card: #ffffff;
    --bg-hover: #e9ecef;
    
    --text-primary: #1a1a1a;
    --text-secondary: #2d3748;
    --text-tertiary: #4a5568;
    
    --accent-primary: #2563eb;
    --accent-secondary: #3b82f6;
    --accent-bright: #0066cc;
    --accent-hover: #0052a3;
    
    --border-primary: #e2e8f0;
    --border-secondary: #cbd5e1;
    
    /* Light mode gradients */
    --gradient-hero: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --gradient-accent: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    --gradient-button: linear-gradient(to bottom, #2563eb, #3b82f6);
    --gradient-radial: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
  }
}

/* Base styles */
body {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.1);
  padding: 1em 2em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light mode glass effect */
@media (prefers-color-scheme: light) {
  header {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
}

/* Floating state when scrolled */
header.floating {
  top: 10px;
  left: 10px;
  right: 10px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(0, 0, 0, 0.15);
}

/* Light mode floating state */
@media (prefers-color-scheme: light) {
  header.floating {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  }
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.3em;
  font-weight: bold;
  white-space: nowrap;
  color: white;
  transition: color 0.3s ease;
}

/* Logo text blue in light mode to match light logo */
@media (prefers-color-scheme: light) {
  .logo {
    color: var(--accent-primary);
  }
}

.logo-image {
  height: 32px;
  margin-right: 0.5em;
  transition: all 0.3s ease;
}

nav {
  display: flex;
  gap: 1.5em;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  display: block;
  transition: background-color 0.3s ease;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 6em 1em;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

/* Push first content section down to account for fixed header */
body > .hero:first-child,
body > section:first-child {
  margin-top: 80px;
}

/* Account for floating header spacing */
body.scrolled > .hero:first-child,
body.scrolled > section:first-child {
  margin-top: 100px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-radial);
  pointer-events: none;
}

.hero h1 {
  font-size: 2.8em;
  margin-bottom: 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.3em;
  margin-bottom: 2em;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.btn-primary,
.btn-secondary {
  font-size: 1em;
  padding: 1em 2em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

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

.btn-primary:hover {
  background-color: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(17, 36, 99, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-primary);
}

.btn-secondary:hover {
  background-color: #222;
  border-color: #666;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2em;
}

/* Services section */
.services {
  padding: 5em 0;
  background-color: var(--bg-secondary);
  transition: background-color 0.3s ease;
}

.services h2,
.about h2,
.contact h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 1em;
  font-weight: 700;
}

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

.service-card {
  background-color: var(--bg-card);
  padding: 2.5em;
  border-radius: 12px;
  border: 1px solid var(--border-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-secondary);
  box-shadow: 0 20px 40px rgba(17, 36, 99, 0.2);
}

.service-card:hover::before {
  transform: translateX(0);
}

.service-card h3 {
  font-size: 1.5em;
  margin-bottom: 0.8em;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: 1.5em;
}

.learn-more {
  color: #4a9eff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.learn-more:hover {
  color: var(--accent-hover);
}

/* Methodology section */
.methodology {
  padding: 5em 0;
  background-color: var(--bg-secondary);
  transition: background-color 0.3s ease;
}

.methodology-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2em;
  margin-top: 3em;
}

.step {
  background-color: var(--bg-card);
  padding: 2em;
  border-radius: 12px;
  border: 1px solid var(--border-primary);
  position: relative;
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  border-color: var(--border-secondary);
  box-shadow: 0 15px 30px rgba(17, 36, 99, 0.2);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 20px;
  width: 30px;
  height: 30px;
  background: var(--gradient-button);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
  color: white;
}

.step h3 {
  margin-top: 0.5em;
  margin-bottom: 0.8em;
  color: var(--accent-bright);
  font-size: 1.3em;
  transition: color 0.3s ease;
}

.step p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

/* Technologies section */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  margin-top: 3em;
}

.tech-category {
  background-color: #1a1a1a;
  padding: 2em;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  transition: all 0.3s ease;
}

.tech-category:hover {
  transform: translateY(-5px);
  border-color: #112463;
  box-shadow: 0 15px 30px rgba(17, 36, 99, 0.2);
}

.tech-category h3 {
  color: #4a9eff;
  margin-bottom: 1em;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.tech-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-category li {
  padding: 0.5em 0;
  color: #ccc;
  border-bottom: 1px solid #2a2a2a;
  transition: color 0.3s ease;
}

.tech-category li:last-child {
  border-bottom: none;
}

.tech-category li:hover {
  color: #4a9eff;
}

/* About Us specific styles */
.philosophy-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4em;
  margin-top: 3em;
}

.fancy-quote {
  font-size: 1.4em;
  font-style: italic;
  color: #4a9eff;
  border-left: 4px solid #112463;
  padding-left: 2em;
  margin: 2em 0;
  line-height: 1.6;
}

.philosophy-explanation {
  font-size: 1.1em;
  line-height: 1.8;
  color: #ccc;
  margin-top: 2em;
}

.philosophy-principles h3 {
  color: #4a9eff;
  margin-bottom: 1.5em;
}

.principle {
  margin-bottom: 2em;
}

.principle h4 {
  color: white;
  margin-bottom: 0.5em;
  font-size: 1.1em;
}

.principle p {
  color: #ccc;
  line-height: 1.6;
}

.story-content {
  margin-top: 3em;
}

.story-section {
  margin-bottom: 3em;
  padding: 2em;
  background-color: #1a1a1a;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
}

.story-section h3 {
  color: #4a9eff;
  margin-bottom: 1em;
}

.story-section p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1em;
}

.story-section ul {
  color: #ccc;
  line-height: 1.6;
  margin-left: 1.5em;
}

.story-section li {
  margin-bottom: 0.5em;
}

.story-section strong {
  color: #4a9eff;
}

.timeline {
  position: relative;
  margin-top: 3em;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #112463, #1a3a8a);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 3em;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-date {
  flex: 0 0 150px;
  text-align: center;
  font-weight: bold;
  color: #4a9eff;
  font-size: 1.2em;
  background-color: #1a1a1a;
  padding: 1em;
  border-radius: 50px;
  border: 2px solid #112463;
  position: relative;
  z-index: 2;
}

.timeline-content {
  flex: 1;
  padding: 2em;
  background-color: #1a1a1a;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  margin: 0 2em;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: #112463;
  box-shadow: 0 15px 30px rgba(17, 36, 99, 0.2);
}

.timeline-content h3 {
  color: #4a9eff;
  margin-bottom: 0.5em;
}

.timeline-content p {
  color: #ccc;
  line-height: 1.6;
  margin: 0;
}

/* About section */
.about {
  padding: 5em 0;
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3em;
  margin-top: 3em;
}

.feature {
  text-align: center;
}

.feature h3 {
  font-size: 1.8em;
  color: var(--accent-bright);
  margin-bottom: 0.5em;
  transition: color 0.3s ease;
}

.feature p {
  color: var(--text-secondary);
  font-size: 1.1em;
  line-height: 1.6;
}

/* Contact section */
.contact {
  padding: 5em 0;
  background-color: var(--bg-secondary);
  text-align: center;
  transition: background-color 0.3s ease;
}

.contact > .container > p {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 3em;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  max-width: 800px;
  margin: 0 auto;
}

.contact-method {
  background-color: var(--bg-card);
  padding: 2em;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  border: 1px solid var(--border-primary);
}

.contact-method:hover {
  transform: translateY(-5px);
  border-color: var(--border-secondary);
  box-shadow: 0 15px 30px rgba(17, 36, 99, 0.2);
}

.contact-method h3 {
  margin-bottom: 0.5em;
  color: var(--text-primary);
}

.contact-method p {
  color: var(--accent-bright);
  font-size: 1.1em;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 3em 0 1em;
  border-top: 1px solid var(--border-primary);
}

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

.footer-section h4 {
  color: var(--text-primary);
  margin-bottom: 1em;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.footer-section p {
  line-height: 1.6;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

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

.footer-section ul li {
  margin-bottom: 0.5em;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-bright);
}

.footer-bottom {
  text-align: center;
  padding-top: 2em;
  border-top: 1px solid #1a1a1a;
  font-size: 0.9em;
}

/* Tablet responsive - More aggressive navbar collapse */
@media (max-width: 1024px) {
  /* Header mobile adjustments */
  nav {
    display: none;
    flex-direction: column;
    background-color: #000;
    position: absolute;
    top: 100%;
    right: 0;
    padding: 1em 2em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    min-width: 200px;
  }

  nav.show {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  header {
    flex-wrap: wrap;
  }

  /* Ensure nav items have proper spacing in mobile menu */
  nav a {
    padding: 0.5em 0;
    border-bottom: 1px solid #333;
  }

  nav a:last-child {
    border-bottom: none;
  }

  /* Hero mobile adjustments */
  .hero h1 {
    font-size: 2em;
  }
  
  .hero p {
    font-size: 1.1em;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    padding: 0 1em;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
  }
  
  /* Section headings mobile */
  .services h2,
  .about h2,
  .contact h2 {
    font-size: 2em;
  }
  
  /* Grid layouts mobile */
  .services-grid,
  .features,
  .contact-options,
  .methodology-steps,
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  /* About Us mobile adjustments */
  .philosophy-content {
    grid-template-columns: 1fr;
    gap: 2em;
  }
  
  .fancy-quote {
    font-size: 1.2em;
    padding-left: 1.5em;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 40px;
  }
  
  .timeline-item:nth-child(even) {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .timeline-date {
    flex: none;
    margin-bottom: 1em;
    font-size: 1em;
    padding: 0.5em 1em;
    position: absolute;
    left: -30px;
    top: 0;
  }
  
  .timeline-content {
    margin: 0;
    width: 100%;
  }
  
  /* Footer mobile */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .hero {
    padding: 4em 0.5em;
  }
  
  .hero-buttons {
    padding: 0 0.5em;
    gap: 0.5em;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: none;
    margin: 0;
    font-size: 0.9em;
    padding: 0.8em 1.5em;
  }
}