/* ========= BASE ========= */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: #222;
  background: #e9e9e9;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========= NAV ========= */
header {
  background: #6f6f6f;
  padding: 20px 0;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  /* border-bottom-left-radius: 80px; */
}

/* Logo with icon and text */
.home-logo {
  display: flex;
  align-items: center;
  gap: 18px;

  background: white;
  padding: 18px;
  border-bottom-left-radius: 80px;

  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 20px;
}

.home-logo i {
  font-size: 64px;
  color: #df2029;
}

.home-logo img {
  /* width: 48px; */
  height: auto;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 0.8;
}

nav ul a {
  display: block;
  padding: 8px 12px;
}

/* ========= HAMBURGER MENU ========= */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger:hover span {
  background: #e9e9e9;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ========= HERO ========= */

.hero {
  background: #6f6f6f;
  padding: 100px 0;
  position: relative;
}

.hero-card {
  background: #e9e9e9;
  padding: 50px;
  width: 480px;
  margin-left: auto;
  border-bottom-left-radius: 90px;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 15px;
}

.hero-title i {
  font-size: 64px;
  color: #df2029;
}

.hero-title h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0;
}

.hero-card p {
  font-size: 20px;
  line-height: 1.7;
  max-width: 360px;
}

/* ========= SECTION HEADER ========= */

.section-header {
  background: #e31e24;
  color: white;
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  padding: 50px 20px 70px;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}

.section-header i {
  font-size: 40px;
  margin-right: 10px;
  vertical-align: middle;
}

/* ========= ABOUT SECTION ========= */

.about {
  background: #e9e9e9;
  padding: 80px 0;
  text-align: center;
}

.about p {
  max-width: 800px;
  margin: auto;
  margin-bottom: 20px;
  font-size: 18px;
}

/* ========= EXPERIENCE ========= */

.experience {
  background: #6f6f6f;
  padding: 100px 0;
  color: white;
}

.exp-box {
  background: #e31e24;
  padding: 25px;
  max-width: 420px;
  margin-left: auto;
  position: relative;
}

.exp-box:after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 40px 40px 0 40px;
  border-style: solid;
  border-color: #e31e24 transparent transparent transparent;
}

.exp-inner {
  background: #e9e9e9;
  color: #222;
  padding: 20px;
}

.exp-inner li {
  margin-bottom: 10px;
}

/* ========= QUALIFICATIONS ========= */

.qualifications {
  background: #e9e9e9;
  padding: 80px 0;
  text-align: center;
}

.qual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.qual-card {
  background: white;
  padding: 40px 20px;
  border-bottom-left-radius: 60px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.qual-card i {
  color: #e31e24;
  font-size: 28px;
  margin-bottom: 15px;
}

/* ========= GENERAL EDUCATION ========= */

.general {
  background: #e9e9e9;
  padding: 80px 0;
}

.general-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.general img {
  width: 100%;
  margin-bottom: 20px;
}

.general ul {
  padding-left: 20px;
}

/* ========= WHAT WE DO ========= */

.whatwedo {
  background: #e9e9e9;
  padding: 80px 0;
}

.whatwedo .intro {
  text-align: center;
  margin-bottom: 50px;
  font-size: 18px;
}

.process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* LEFT TEXT */

.process-text h3 {
  color: #e31e24;
  font-size: 30px;
  margin-bottom: 20px;
}

.process-text ul {
  padding-left: 20px;
  line-height: 1.7;
}

/* CIRCLE */

.process-circle {
  position: relative;
  width: 460px;
  height: 460px;
  margin: auto;
}

.process-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #dedede; /* thin guide ring */
}

/* Inner circle - smaller with ring shadow effect */
.inner-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: #f8f8f8;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 -2px 8px rgba(0, 0, 0, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

/* nodes */

.node {
  position: absolute;
  width: 110px;
  height: 110px;
  background: white;
  border-radius: 50%;
  border: 5px solid #e31e24;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 -3px 8px rgba(0, 0, 0, 0.15),
    0 0 0 2px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

/* nodes positioned via JavaScript for equal spacing */

/* responsive */

@media (max-width: 900px) {
  .process-layout {
    grid-template-columns: 1fr;
  }

  .process-circle {
    transform: scale(0.85);
  }
}

/* ========= CONTACT ========= */

.contact {
  background: #e9e9e9;
  padding: 80px 0;
}

form input,
form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #ccc;
}

button {
  background: #e31e24;
  color: white;
  border: none;
  padding: 14px 30px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #c71920;
}

button:active {
  transform: scale(0.98);
}

/* ========= FOOTER ========= */

footer {
  background: #e31e24;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid white;
  padding-bottom: 2px;
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 0.8;
}

/* ========= RESPONSIVE ========= */

@media (max-width: 900px) {
  .general-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    width: 100%;
    margin: auto;
  }
}

/* ========= MOBILE OPTIMIZATION ========= */

@media (max-width: 768px) {
  /* Container adjustments */
  .container {
    width: 95%;
  }

  /* Navigation */
  nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  /* Show hamburger button on mobile */
  .hamburger {
    display: flex;
    order: 3;
  }

  /* Hide menu by default on mobile */
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 4;
    gap: 0;
    padding: 20px 0;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
  }

  /* Show menu when active */
  .nav-menu.active {
    display: flex;
  }

  nav ul a {
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Logo */
  .home-logo {
    gap: 12px;
    padding: 14px 20px;
    border-bottom-left-radius: 50px;
    font-size: 18px;
  }

  .home-logo i {
    font-size: 48px;
  }

  /* Hero Section */
  .hero {
    padding: 50px 0;
  }

  .hero-card {
    padding: 35px 25px;
    border-bottom-left-radius: 50px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-title {
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
  }

  .hero-title i {
    font-size: 50px;
    flex-shrink: 0;
  }

  .hero-title h1 {
    font-size: 34px;
    line-height: 1.2;
  }

  .hero-card p {
    font-size: 17px;
    line-height: 1.6;
    max-width: 100%;
    margin-top: 5px;
  }

  /* Section Headers */
  .section-header {
    font-size: 26px;
    padding: 40px 15px 60px;
  }

  .section-header i {
    font-size: 32px;
  }

  /* About Section */
  .about {
    padding: 60px 0;
  }

  .about p {
    font-size: 16px;
    padding: 0 10px;
  }

  /* Experience */
  .experience {
    padding: 60px 0;
  }

  .experience h2 {
    font-size: 24px;
  }

  .exp-box {
    max-width: 100%;
    margin: 0;
  }

  .exp-box:after {
    border-width: 30px 30px 0 30px;
    bottom: -30px;
  }

  /* Qualifications */
  .qualifications {
    padding: 60px 0;
  }

  .qual-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .qual-card {
    border-bottom-left-radius: 40px;
  }

  /* General section */
  .general {
    padding: 60px 0;
  }

  /* What We Do */
  .whatwedo {
    padding: 60px 0;
  }

  .whatwedo .intro {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .process-text h3 {
    font-size: 24px;
  }

  .process-text ul {
    font-size: 15px;
  }

  .process-circle {
    width: 360px;
    height: 360px;
  }

  .inner-circle {
    width: 90px;
    height: 90px;
  }

  .node {
    width: 90px;
    height: 90px;
    font-size: 11px;
    padding: 8px;
    border: 4px solid #e31e24;
  }

  /* Contact */
  .contact {
    padding: 60px 0;
  }

  form input,
  form textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  button {
    width: 100%;
    padding: 16px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  /* Logo */
  .home-logo {
    gap: 10px;
    padding: 12px 16px;
    border-bottom-left-radius: 40px;
    font-size: 16px;
  }

  .home-logo i {
    font-size: 36px;
  }

  /* Hero */
  .hero {
    padding: 35px 0;
  }

  .hero-card {
    padding: 25px 20px;
    border-bottom-left-radius: 35px;
  }

  .hero-title {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .hero-title i {
    font-size: 40px;
  }

  .hero-title h1 {
    font-size: 28px;
    line-height: 1.1;
  }

  .hero-card p {
    font-size: 15px;
    line-height: 1.5;
    margin-top: 10px;
  }

  /* Section Headers */
  .section-header {
    font-size: 22px;
    padding: 35px 10px 55px;
  }

  .section-header i {
    font-size: 28px;
  }

  /* Process Circle */
  .process-circle {
    width: 300px;
    height: 300px;
  }

  .inner-circle {
    width: 70px;
    height: 70px;
  }

  .node {
    width: 75px;
    height: 75px;
    font-size: 10px;
    padding: 6px;
    border: 3px solid #e31e24;
  }

  /* Qualifications */
  .qual-card {
    padding: 30px 15px;
  }
}
