@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --clr-white: #ffffff;
  --clr-black: #020617;
  --clr-red: #e11d48;
  --clr-red-dark: #9f1239;
  --clr-bg: #f8fafc;
  --clr-border: #f1f5f9;
  --clr-slate-800: #1e293b;
  --clr-slate-600: #475569;
  --clr-text: #0f172a;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius: var(--radius-md);
  --shadow: var(--shadow-md);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--clr-white);
  color: var(--clr-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
}
header.scrolled {
  padding: 5px 0;
  box-shadow: var(--shadow-sm);
}
header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  max-width: 100%;
  padding: 0 20px;
}
header .logo {
  height: 80px;
  width: auto;
  transition: var(--transition);
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}
nav a {
  color: var(--clr-slate-800);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}
nav a:hover {
  color: var(--clr-red);
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}
.btn-primary {
  background: var(--clr-red);
  color: var(--clr-white);
  border: none;
  box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.3);
}
.btn-primary:hover {
  background: var(--clr-red-dark);
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgba(225, 29, 72, 0.4);
}

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.8) 0%, rgba(2, 6, 23, 0.4) 100%), url('assets/site.png');
  background-size: cover;
  background-position: center;
  color: var(--clr-white);
}
.hero-content {
  max-width: 900px;
  margin: 0 auto;
}
.hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
  color: var(--clr-white);
  margin-bottom: 24px;
  font-weight: 800;
}
.hero-content .lead {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}
.hero-ctas .btn {
  margin-right: 12px;
}
.btn-outline {
  color: var(--clr-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  border-color: var(--clr-white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.section {
  padding: 120px 0;
}
.section-alt {
  background-color: var(--clr-bg);
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  color: var(--clr-black);
  font-weight: 800;
  letter-spacing: -1px;
}
.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
  color: var(--clr-slate-600);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 30px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Responsive Flex Helper */
.flex-stack {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.card {
  background: var(--clr-white);
  border: 1px solid rgba(0,0,0,0.03);
  border-radius: var(--radius-md);
  padding: 48px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}
.project-card {
  border-top: 6px solid var(--clr-red);
  padding: 40px;
}
.project-card h3 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 10px;
}

.founder-card {
  text-align: center;
  padding: 24px;
  border-bottom: 6px solid var(--clr-red);
  background: var(--clr-white);
}
.founder-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: block;
  filter: grayscale(20%);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--clr-red);
  ring: 2px solid rgba(220, 38, 38, 0.1);
}
.contact-form button {
  width: 100%;
  font-size: 16px;
}

.contact-info .map-wrapper {
  margin-top: 16px;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.contact-info .map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

footer {
  background: var(--clr-white);
  color: var(--clr-text);
  padding: 100px 0 60px 0;
  border-top: 1px solid var(--clr-border);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.logo-small {
  height: 60px;
  margin-bottom: 24px;
}
.footer-content h4 {
  color: var(--clr-black);
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.footer-content a {
  color: var(--clr-slate-600);
  text-decoration: none;
  transition: var(--transition);
}
.footer-content a:hover {
  color: var(--clr-red);
}

/* Scroll Reveal */
.reveal {
  opacity: 1;
  transform: none;
  transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}
.reveal.from-left { transform: translateX(-100px); }
.reveal.from-right { transform: translateX(100px); }

.reveal.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stats Styles */
.stat-item h2 {
  font-family: 'Montserrat', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 4.5rem;
  color: var(--clr-red);
  font-weight: 800;
  line-height: 1;
}

.counter {
  display: inline-block;
  min-width: 1ch;
  text-align: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--clr-slate-800);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
  transform-origin: left;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

.form-msg {
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.success-message {
  color: #555;
  font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--clr-white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: 0.4s;
    padding-top: 100px;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  nav a {
    font-size: 1.2rem;
  }

  header .nav {
    height: 80px;
    padding: 0 20px;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

  .flex-stack {
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 40px;
  }
}
