/* Import Reset */
@import url('reset.css');

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* CSS Variables */
:root {
  /* Colors */
  --primary-color: #2e3192;
  --primary-dark: #1e2162;
  --primary-light: #4e51b2;
  --accent-teal: #17a398;
  --accent-coral: #ff6f61;
  --neutral-gray: #f2f2f2;
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --black: #000000;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-hero: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.25);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 50%;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base Styles */
html {
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

h1 {
  font-size: 4.8rem;
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: 3.6rem;
}

h3 {
  font-size: 2.8rem;
}

h4 {
  font-size: 2.4rem;
}

h5 {
  font-size: 2rem;
}

h6 {
  font-size: 1.8rem;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
}

.logo {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-color);
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--primary-light);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-teal);
  transition: width var(--transition-fast);
}

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

.nav-link:hover::after {
  width: 100%;
}

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

.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
  background: var(--gradient-hero);
  color: var(--white);
  padding: var(--spacing-xxl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
}

.hero-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

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

/* Buttons */
.btn {
  display: inline-block;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(2px);
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  padding: 1.2rem 3rem;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-lg);
  transform: scale(1);
  animation: btnPulse 2s infinite alternate;

@keyframes btnPulse {
  0% { box-shadow: var(--shadow-lg); transform: scale(1); }
  100% { box-shadow: var(--shadow-xl); transform: scale(1.05); }
}
}

.btn-primary:hover {
  background: var(--gradient-accent);
  transform: scale(1.07);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: var(--gradient-accent);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-md);
}

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

/* Cards */
.card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--spacing-md);
  color: var(--accent-teal);
}

.card h3 {
  margin-bottom: var(--spacing-sm);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Section Spacing */
.section {
  padding: var(--spacing-xxl) 0;
}

.section-gray {
  background-color: var(--neutral-gray);
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: auto;
}

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

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-sm);
  display: block;
}

.footer-section a:hover {
  color: var(--accent-teal);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Social Links */
.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--accent-teal);
  transform: translateY(-2px);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text-dark);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-size: 1.6rem;
  transition: border-color var(--transition-fast);
}

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

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-input.error,
.form-textarea.error {
  border-color: var(--accent-coral);
}

/* Service Page Styles */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: var(--spacing-xl);
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  width: 100px;
  height: 100px;
  margin-bottom: var(--spacing-lg);
}

.service-card h2 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.service-description {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
}

.service-features {
  list-style: none;
  margin-bottom: var(--spacing-lg);
}

.service-features li {
  position: relative;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-teal);
  font-weight: bold;
  font-size: 1.8rem;
}

.service-cta {
  text-align: center;
  margin-top: var(--spacing-lg);
}

/* Process Timeline */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--accent-teal);
  color: var(--white);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: var(--spacing-md);
}

.process-step h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.process-step p {
  max-width: 300px;
  margin: 0 auto;
}

/* Process step connector line */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: var(--accent-teal);
  opacity: 0.3;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

.text-right {
  text-align: right;
}

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* Responsive Design */
@media (max-width: 768px) {
  /* Typography */
  h1 { font-size: 3.6rem; }
  h2 { font-size: 2.8rem; }
  h3 { font-size: 2.4rem; }
  h4 { font-size: 2rem; }
  
  /* Navigation */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    padding: var(--spacing-xl);
    transition: left var(--transition-normal);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Hero */
  .hero p {
    font-size: 1.8rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  /* Grid adjustments */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  /* Service Grid */
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  /* Process Timeline */
  .process-step:not(:last-child)::after {
    display: none;
  }
  
  /* Section spacing */
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Page Header SVG Container */
.page-header {
  width: 100%;
  height: 200px;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.page-header svg {
  width: 100%;
  height: 100%;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-normal);
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all var(--transition-normal);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all var(--transition-normal);
}

.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* About Page Styles */
.about-hero {
  background: var(--gradient-hero);
  color: var(--white);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

.about-hero h1 {
  color: var(--white);
  font-size: 4.2rem;
  margin-bottom: var(--spacing-md);
}

.about-hero .lead {
  font-size: 2.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding: var(--spacing-xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-teal);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  padding: var(--spacing-lg) 0;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: var(--spacing-xl);
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: var(--spacing-xl);
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent-teal);
  border: 4px solid var(--white);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-year {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.timeline-content h4 {
  color: var(--text-dark);
  margin-bottom: var(--spacing-xs);
}

/* Value Cards */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.value-card {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  color: var(--accent-teal);
}

/* Founder Profile */
.founder-section {
  background: var(--neutral-gray);
  padding: var(--spacing-xxl) 0;
}

.founder-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.founder-image {
  width: 100%;
  height: 300px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}

.founder-content h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.founder-content .title {
  color: var(--accent-teal);
  font-size: 1.8rem;
  margin-bottom: var(--spacing-md);
}

/* Tech Stack Visualization */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.tech-item {
  text-align: center;
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.tech-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.tech-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-sm);
}

/* About Page Responsive */
@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 60px !important;
    padding-right: var(--spacing-md) !important;
    text-align: left !important;
  }
  
  .timeline-dot {
    left: 20px !important;
    right: auto !important;
  }
  
  .founder-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .founder-image {
    max-width: 300px;
    margin: 0 auto;
  }
}