/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --purple-dark: rgb(25, 0, 24);
  --purple-light: rgb(38, 30, 74);
  --purple-accent: rgb(88, 70, 134);
  --faded-out:rgb(39, 39, 39);
  --faded-highlighted:#94a3b8;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #333;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}



/* Header */
#stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}
header {
  position: relative;
  background: linear-gradient(to bottom, black 55%, var(--purple-dark) 100%);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  top: 0;
  z-index: 1000;
}
.header-content { 
  position: relative; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0 3rem;
  z-index: 1; 
}
.header-kosmicsoft-label h2 {
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
}
.navbar ul {
  display: flex;
  list-style: none;
  gap: 2.24rem;
}
.navbar a {
  text-decoration: none;
  color: white;
  font-weight: 660;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}
.navbar a:hover {
  color: pink;
}
.navbar a.active {
  color: var(--purple-accent);
}


/* Hero Section */
.hero {
  background: linear-gradient(to top, var(--purple-light) 0%, var(--purple-dark) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}
.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}
.hero-content h2 {
  font-size: 2.0rem;
  margin-top: 3rem;
  margin-bottom: 4rem;
  line-height: 1.2;
}
.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* CTA Section */
.cta-center {
  text-align: center;
  margin-top: 0rem;
}
.cta-section {
  background: linear-gradient(to bottom, var(--purple-light) 0%, var(--purple-dark) 100%);
  color: white;
  padding: 1rem 0;
  text-align: center;
}
.cta-content h2 {
  font-size: 2.3rem;
  margin-bottom: 2rem;
}
.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}


/* Footer */
footer {
  background: linear-gradient(to top, black 40%, var(--purple-dark) 100%);
  padding: 5rem 0 1.5rem;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;

}

/* stars stay behind */
#footer-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ensure text sits above canvas */
.footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

/* top row (logo + copyright) */
.footer-row-top h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.footer-row-top p {
  font-size: 0.95rem;
  color: var(--faded-out);
}

/* bottom row (links) */
.footer-row-bottom ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
  justify-content: center;
}
.footer-row-bottom a {
  text-decoration: none;
  color: var(--faded-out);
  font-weight: 500;
  transition: color 0.3s ease;
}
.footer-row-bottom a:hover {
  color: var(--faded-highlighted);
}

/* mobile stack */
@media (max-width: 640px) {
  .footer-row-bottom ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}



/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  opacity: 0;
}

.btn:active::after {
  animation: ripple 450ms ease-out forwards;
}

.btn-primary {
  background-color: #ffffff;
  color: var(--purple-light);
}

.btn-primary:hover {
  background-color: #f3f4f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary:active {
  background-color: #e5e7eb;
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.1);
}

.btn-secondary:active {
  background-color: rgba(255,255,255,0.2);
}

.btn-light {
  background-color: #ffffff;
  color: var(--purple-light);
}

.btn-light:hover {
  background-color: #f3f4f6;
  transform: translateY(-2px);
}

.btn-light:active {
  background-color: #e5e7eb;
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-dark) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.2rem;
  opacity: 0.95;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: #1e293b;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: #f9fafb;
}

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

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: #1e293b;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-card p {
  color: #64748b;
  line-height: 1.6;
}

/* Services Preview Section */
.services-preview {
  padding: 5rem 0;
  background-color: #ffffff;
}

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

.service-item {
  padding: 2rem;
  border-left: 4px solid var(--purple-light);
  background-color: #f9fafb;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.service-item:hover {
  background-color: rgba(38, 30, 74, 0.05);
  transform: translateX(5px);
}

.service-item h3 {
  color: #1e293b;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.service-item p {
  color: #64748b;
}



/* Content Section */
.content-section {
  padding: 5rem 0;
  background-color: #ffffff;
}
.about-intro {
  max-width: 800px;
  margin: 0 auto;
}
.about-intro h2 {
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 1.5rem;
}
.about-intro p {
  color: #475569;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}



/* Mission Section */
.mission-section {
  padding: 5rem 0;
  background-color: #f9fafb;
}



.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.value-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.value-card h3 {
  color: #1e293b;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.value-card p {
  color: #64748b;
  line-height: 1.6;
}



/* Team Section */
.team-section {
  padding: 5rem 0;
  background-color: #ffffff;
}
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.expertise-item h3 {
  font-size: 3rem;
  color: var(--purple-light);
  margin-bottom: 0.5rem;
}
.expertise-item p {
  color: #64748b;
  font-size: 1.1rem;
}



/* Approach Section */
.approach-section {
  padding: 5rem 0;
  background-color: #f9fafb;
}
.approach-content {
  max-width: 900px;
  margin: 0 auto;
}
.approach-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}
.approach-number {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-dark) 100%);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}
.approach-text h3 {
  color: #1e293b;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.approach-text p {
  color: #64748b;
  line-height: 1.6;
}



/* Services Detailed Section */
.services-detailed {
  padding: 3rem 0;
}
.service-detail {
  padding: 4rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.service-detail:last-child {
  border-bottom: none;
}
.service-detail-content h2 {
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 1rem;
}
.service-detail-content p {
  color: #475569;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}


.service-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.service-features li {
  padding: 0.5rem 0;
  color: #64748b;
  position: relative;
  padding-left: 1.5rem;
}
.service-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--purple-light);
  font-weight: bold;
}



/* Process Section */
.process-section {
  padding: 5rem 0;
  background-color: #f9fafb;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.process-step {
  text-align: center;
  padding: 2rem 1rem;
}
.process-icon {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-dark) 100%);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}
.process-step h3 {
  color: #1e293b;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.process-step p {
  color: #64748b;
  font-size: 0.95rem;
}



/* Contact Section */
.contact-section {
  padding: 4rem 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}
.contact-info h2,
.contact-form-container h2 {
  font-size: 1.8rem;
  color: #1e293b;
  margin-bottom: 1.5rem;
}
.contact-info p {
  color: #64748b;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.contact-item {
  margin-bottom: 2rem;
}
.contact-item h3 {
  color: var(--purple-light);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.contact-item p {
  color: #64748b;
  margin-bottom: 0.3rem;
}



/* Contact Form */
.contact-form {
  background-color: #f9fafb;
  padding: 2rem;
  border-radius: 10px;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #1e293b;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple-light);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}



/* Map Section */
.map-section {
  padding: 4rem 0;
  background-color: #f9fafb;
}
.map-placeholder {
  background-color: #e5e7eb;
  padding: 4rem 2rem;
  border-radius: 10px;
  text-align: center;
  color: #475569;
}
.map-placeholder p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}



/* FAQ Section */
.faq-section {
  padding: 4rem 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.faq-item {
  padding: 1.5rem;
  background-color: #f9fafb;
  border-radius: 8px;
}
.faq-item h3 {
  color: #1e293b;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}
.faq-item p {
  color: #64748b;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  .navbar ul {
    gap: 1rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .approach-item {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-content {
    grid-template-columns: 1fr;  /* stack on mobile */
    justify-items: center;       /* center the single column */
    text-align: center;          /* optional for mobile look */
  }
  .footer-section { text-align: inherit; }
}
