@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded');

:root {
  --red: #d51f2a;
  --green: #1c9b50;
  --dark: #101418;
  --black: #000000;
  --white: #ffffff;
  --light: #f5f6f8;
  --muted: #8793a1;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Tajawal', 'Poppins', sans-serif;
  background-color: var(--white);
  color: var(--dark);
  line-height: 1.7;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(19, 23, 33, 0.95), rgba(19, 23, 33, 0.75));
  color: var(--white);
  padding: 2rem clamp(1.5rem, 4vw, 4rem) 6rem;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(213, 31, 42, 0.35), transparent 55%),
    radial-gradient(circle at 85% 65%, rgba(28, 155, 80, 0.35), transparent 45%);
  z-index: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand img {
  width: clamp(52px, 6vw, 80px);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.4rem;
}

.brand h1 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin: 0;
  font-weight: 600;
}

.brand p {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2vw, 2.5rem);
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 500;
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--green));
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background-color: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 1rem 0;
  line-height: 1.3;
}

.hero-text p {
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

.pill {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  letter-spacing: 0.4px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--green));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-block {
  width: 100%;
}

.hero-card {
  background-color: rgba(16, 20, 24, 0.72);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(28, 155, 80, 0.25);
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.stat-label {
  flex: 1;
  color: rgba(255, 255, 255, 0.65);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 600;
}

.stat-trend {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.stat-trend.up {
  color: var(--green);
}

.progress {
  margin-top: 1.5rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--green));
  border-radius: inherit;
}

.section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 5vw, 6rem);
}

.section-alt {
  background-color: var(--light);
}

.section-header {
  max-width: 720px;
  margin: 0 auto clamp(3rem, 6vw, 4rem);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.section-header h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 1rem;
}

.section-header p {
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.four {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(16, 20, 24, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card h4 {
  margin: 1rem 0 0.8rem;
  font-size: 1.25rem;
}

.card p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-right: 1.2rem;
  color: var(--dark);
  list-style: none;
}

.card ul li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-right: 1rem;
}

.card ul li::before {
  content: '•';
  color: var(--green);
  position: absolute;
  right: 0;
}

.icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  font-size: 1.6rem;
}

.icon-red {
  background: linear-gradient(135deg, var(--red), #f05f5f);
}

.icon-green {
  background: linear-gradient(135deg, var(--green), #4fd07f);
}

.icon-dark {
  background: linear-gradient(135deg, var(--dark), #2d3949);
}

.material-symbols {
  font-family: 'Material Symbols Rounded', sans-serif;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.timeline {
  display: grid;
  gap: 2rem;
  position: relative;
  padding-right: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  right: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--red), var(--green));
  opacity: 0.2;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.timeline-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.08);
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.timeline-marker.red {
  background: var(--red);
}

.timeline-marker.green {
  background: var(--green);
}

.timeline-marker.dark {
  background: var(--dark);
}

.timeline-marker.white {
  background: var(--white);
}

.timeline-content {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(16, 20, 24, 0.05);
}

.timeline-content h4 {
  margin: 0 0 0.8rem;
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
}

.tech-stack .tech-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  text-align: center;
  font-weight: 600;
  border: 1px solid rgba(16, 20, 24, 0.06);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.tech-stack .tech-card:hover {
  transform: translateY(-4px);
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid rgba(16, 20, 24, 0.05);
  box-shadow: var(--shadow-sm);
}

.testimonial p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-style: italic;
}

.author .name {
  font-weight: 600;
  color: var(--dark);
}

.contact {
  background: linear-gradient(135deg, rgba(21, 31, 42, 1), rgba(16, 20, 24, 0.92));
  color: var(--white);
}

.contact-card {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
}

.contact-card p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.2rem;
}

.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.contact-list .material-symbols {
  font-size: 1.8rem;
  color: var(--green);
}

.contact-form {
  display: grid;
  gap: 1.2rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: inherit;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
}

.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem clamp(1.5rem, 4vw, 4rem);
}

.footer-content {
  display: grid;
  gap: 1.6rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.brand-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-weight: 600;
  color: var(--white);
}

.brand-mini img {
  width: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .hero {
    padding-bottom: 4rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-card {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 3;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(16, 20, 24, 0.95);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(1rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.nav-open {
    transform: translateY(0.5rem);
    opacity: 1;
    pointer-events: all;
  }

  .hero-text {
    text-align: center;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 0.95rem;
  }

  .hero {
    padding: 1.5rem 1.25rem 3.5rem;
  }

  .hero-content {
    margin-top: 3rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .timeline {
    padding-right: 1rem;
  }

  .timeline::before {
    right: 0.5rem;
  }

  .timeline-item {
    gap: 1rem;
  }
}

