@import './modern-normalize.css';

:root {
  --primary-color: #431878;
  --primary-color-rgb: 67, 24, 120;
  --secondary-color: #8e44ad;
  --secondary-color-rgb: 142, 68, 173;
  --accent-color: #005522;
  --accent-color-rgb: 0, 85, 34;
  --accent-color-light: #eff5ef;
  --warning-color: #f39c12;
  --neutral-color-dark: #2c3e50;
  --neutral-color-dark-med: #34495e;
  --neutral-color-med: #7f8c8d;
  --neutral-color-med-light: #dce1e2;
  --neutral-color-light: #ecf0f1;
  --background-color: #f8f9fa;
  --background-light: #f8f9fa;
  --text-dark: #2c3e50;
  --text-light: #f8f9fa;
  --border-color: #e1e8ed;
}

html,
body {
  background-color: var(--accent-color-light);
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/*  Styling resets in addition to
    those found in Modern Normalize */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

/*  ================  */
/*  Navigation        */
/*  ================  */
nav {
  padding: 1rem 2rem 1.5rem 2rem;
  box-shadow: 0 -8px 16px rgba(var(--accent-color-rgb), 0.5) inset;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-placeholder {
  color: white;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 4px;
}

.logo-placeholder img {
  max-height: 100px;
  max-width: 512px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--neutral-color-dark);
  text-decoration: none;
  font-size: larger;
  font-weight: 500;
}

/*  ================  */
/*  Hero Section      */
/*  ================  */
.hero-section {
  min-height: 600px;
  align-items: center;
  padding: 1rem 2rem;
}

.hero-title {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 3rem;
  line-height: 1.2;
  text-align: center;
}

.hero-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content .subheadline {
  font-size: 1.4rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.trust-badges {
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.badge {
  line-height: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #666;
}

.badge-icon {
  width: 24px;
  height: 24px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.8rem;
}

.cta-btn {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 1.2rem 2.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 85, 34, 0.3);
}

.cta-btn:visited {
  color: white;
}

.cta-btn:hover {
  background: #003d1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 85, 34, 0.4);
  text-decoration: none;
}

.hero-visual {
  /* background: #fff; */
  background: transparent;
  border-radius: 24px;
  padding: 1.5rem;
  margin: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.image-placeholder {
  width: 100%;
  /* height: auto; */
  aspect-ratio: 1/1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  text-align: center;
  /* padding: 1rem; */
}

.image-placeholder img {
  border-radius: 24px;
  object-fit: contain;
}

/*  ================================  */
/*  Development Capabilities Section  */
/*  ================================  */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

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

.project-card {
  background: #f8f9fa;
  overflow: hidden;
}

.primary-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.project-title {
  font-size: 1.5rem;
  border-radius: 12px 12px 0 0;
  color: white;
  margin: 0;
  font-weight: 600;
  padding: 1.5rem 2rem 0 2rem;
}

.project-image {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  text-align: center;
  padding: 1rem 2rem 2rem 2rem;
}

.project-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  border: var(--accent-color) 2px solid;
}

.project-content {
  padding: 0 2rem 1rem 2rem;
}

.project-subtitle {
  font-size: 0.95rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.project-description {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: #e8e8e8;
  color: #555;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-link {
  display: inline-block;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: #003d1a;
}

.project-link::after {
  content: ' →';
}

/*  ================  */
/*  Services Section  */
/*  ================  */
.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

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

.service-card {
  background: #fff;
  border-top: 4px solid var(--primary-color);
}
.service-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.service-header img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  flex-shrink: 0;
}
.service-card h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
}

.service-card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-list li {
  color: #555;
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

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

/*  ========================  */
/*  Call To Action Section    */
/*  ========================  */
.cta-container {
  text-align: center;
}
.cta-container h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.cta-container p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 0rem;
}

/*  ================  */
/*  Utilities         */
/*  ================  */
.max-width {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.even {
  background: linear-gradient(135deg, #f0f0f0 0%, #d0d0d0 100%);
}

.odd {
  background: linear-gradient(135deg, #ffffff 0%, #eeeeee 100%);
}

section.box {
  padding: 1rem 2rem;
}

.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}
.mb-4 {
  margin-bottom: 4rem;
}

.text-center {
  text-align: center;
}
.text-primary {
  color: var(--primary-color);
}
.text-accent {
  color: var(--accent-color);
}

.flex {
  display: flex;
}
.flex-center {
  align-items: center;
  justify-content: center;
}
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.gap-1 {
  gap: 1rem;
}
.gap-2 {
  gap: 2rem;
}

.card {
  border-radius: 1rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

a,
a:visited {
  color: inherit;
}

.back-to-top {
  position: fixed;
  bottom: 10rem;
  right: calc((100vw - 1200px) / 2 + 2rem);
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #003d1a;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

details {
  margin: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.hide-arrow summary {
  list-style: none;
}

/*  ================  */
/*  Responsive        */
/*  ================  */

@media (max-width: 1240px) {
  .back-to-top {
    right: 4rem;
  }
}

/*  ================  */
/*  Laptop            */
/*  ================  */
@media (max-width: 1024px) {
  .hero-columns {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero {
    padding: 1rem 1.5rem;
  }

  .back-to-top {
    right: 2rem;
  }
}

/*  ================  */
/*  Mobile            */
/*  ================  */

@media (max-width: 768px) {
  .hero-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-content .subheadline {
    font-size: 1.1rem;
  }

  .nav-links {
    display: none;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .services {
    padding: 1rem 1rem;
  }
}
