*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --navy: #0f1f3d;
  --navy-mid: #1a3260;
  --navy-light: #2d4f8a;
  --accent: #c9a84c;
  --accent-light: #e8c97a;
  --grey-dark: #2c3342;
  --grey-mid: #64748b;
  --grey-light: #f4f6f9;
  --white: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
}
a,
button,
input,
select,
textarea {
  font: inherit;
}
section {
  scroll-margin-top: 64px;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 31, 61, 0.97);
  backdrop-filter: blur(8px);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}
.nav-logo {
  font-family: "Playfair Display", serif;
  color: var(--white);
  font-size: 20px;
  letter-spacing: 0.02em;
}
.nav-logo span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-toggle,
.nav-menu-btn {
  display: none;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-cta {
  background: var(--accent);
  color: var(--navy) !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--accent-light);
  color: var(--navy) !important;
}

/* HERO */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 100px 5% 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(45, 79, 138, 0.3) 0%,
    rgba(15, 31, 61, 0) 70%
  );
  border-left: 1px solid rgba(201, 168, 76, 0.15);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 3px;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 5vw, 60px);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 700;
}
.hero h1 span {
  color: var(--accent);
}
.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 36px;
  max-width: 500px;
  font-weight: 300;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--navy);
  padding: 14px 32px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition:
    background 0.2s,
    transform 0.15s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  padding: 13px 32px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition:
    border-color 0.2s,
    color 0.2s;
  display: inline-block;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-num {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* HERO CARD */
.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  padding: 32px;
}
.hero-card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.service-item:last-child {
  border-bottom: none;
}
.service-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(201, 168, 76, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}
.service-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
}
.service-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

/* SECTION */
section {
  padding: 90px 5%;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3vw, 42px);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  font-weight: 300;
}
.section-divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 16px 0 40px;
}

/* ABOUT */
.about-bg {
  background: var(--grey-light);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.education-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.edu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 16px 20px;
}
.edu-degree {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.edu-school {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}
.edu-year {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.skill-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  transition:
    border-color 0.2s,
    transform 0.15s;
}
.skill-pill:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.skill-pill svg {
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  display: block;
}
.skill-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}

/* SERVICES */
.services-bg {
  background: var(--navy);
}
.services-bg .section-title {
  color: var(--white);
}
.services-bg .section-sub {
  color: rgba(255, 255, 255, 0.55);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.srv-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 28px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.srv-card:hover {
  border-color: rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.04);
}
.srv-icon {
  width: 48px;
  height: 48px;
  background: rgba(201, 168, 76, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.srv-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}
.srv-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.srv-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}
/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.proj-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.15s;
}
.proj-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(15, 31, 61, 0.1);
}
.proj-header {
  background: var(--navy);
  padding: 24px;
  position: relative;
}
.proj-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
}
.proj-tag-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.proj-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(201, 168, 76, 0.15);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 3px;
}
.proj-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}
.proj-body {
  padding: 24px;
}
.proj-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.proj-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.proj-tech {
  font-size: 11px;
  font-weight: 500;
  background: var(--grey-light);
  color: var(--navy);
  padding: 4px 10px;
  border-radius: 3px;
}
.proj-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.proj-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}
.proj-link:hover {
  color: var(--accent);
}
.proj-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* WHY */
.why-bg {
  background: var(--grey-light);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.why-num {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  color: rgba(201, 168, 76, 0.2);
  font-weight: 700;
  line-height: 1;
}
.why-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin: 8px 0 6px;
}
.why-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 12px;
}
.contact-info p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--navy);
  text-decoration: none;
  padding: 12px 16px;
  background: var(--grey-light);
  border-radius: 6px;
  transition: background 0.2s;
}
.contact-link-item:hover {
  background: rgba(201, 168, 76, 0.12);
}
.contact-link-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--grey-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group textarea {
  min-height: 110px;
  resize: vertical;
}
.btn-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  margin-top: 4px;
}
.btn-submit:hover {
  background: var(--navy-light);
}

/* FOOTER */
footer {
  background: var(--grey-dark);
  padding: 32px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: "Playfair Display", serif;
  color: var(--white);
  font-size: 18px;
}
.footer-logo span {
  color: var(--accent);
}
.footer-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }
  .nav-menu-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-radius: 6px;
    cursor: pointer;
  }
  .nav-menu-btn span {
    width: 18px;
    height: 2px;
    background: var(--accent);
    border-radius: 999px;
    transition:
      transform 0.2s,
      opacity 0.2s;
  }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    background: rgba(15, 31, 61, 0.98);
    border-bottom: 1px solid rgba(201, 168, 76, 0.22);
    padding: 10px 20px 18px;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }
  .nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links li:last-child {
    border-bottom: 0;
    padding-top: 8px;
  }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 12px;
  }
  .nav-cta {
    display: inline-block !important;
    padding: 10px 18px !important;
  }
  .nav-toggle:checked ~ .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle:checked + .nav-menu-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked + .nav-menu-btn span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .nav-menu-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  section {
    padding: 72px 24px;
  }
  .hero {
    min-height: auto;
    padding: 112px 24px 72px;
  }
  .hero::before {
    width: 100%;
    opacity: 0.65;
    border-left: 0;
  }
  .hero-grid {
    gap: 36px;
  }
  .hero-card {
    display: none;
  }
  .hero h1 {
    font-size: clamp(34px, 10vw, 48px);
  }
  .hero-sub {
    max-width: none;
    font-size: 16px;
  }
  .hero-btns {
    gap: 12px;
  }
  .hero-stats {
    gap: 18px;
    margin-top: 36px;
    padding-top: 24px;
    flex-wrap: wrap;
  }
  .hero-stats > div {
    flex: 1 1 120px;
  }
  .services-grid,
  .projects-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
  .about-grid,
  .contact-grid {
    gap: 42px;
  }
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .projects-grid {
    gap: 20px;
  }
  .proj-links {
    flex-wrap: wrap;
  }
  .contact-link-item {
    overflow-wrap: anywhere;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  nav {
    height: 60px;
    padding: 0 16px;
  }
  .nav-links {
    top: 60px;
    padding-left: 16px;
    padding-right: 16px;
  }
  section {
    padding: 60px 18px;
  }
  .hero {
    padding: 96px 18px 60px;
  }
  .hero-badge {
    max-width: 100%;
    font-size: 10px;
    letter-spacing: 0.08em;
    line-height: 1.4;
    align-items: flex-start;
  }
  .hero-badge::before {
    margin-top: 5px;
    flex-shrink: 0;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero-sub,
  .section-sub,
  .about-text p {
    font-size: 15px;
  }
  .hero-btns {
    flex-direction: column;
  }
  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
    padding-left: 18px;
    padding-right: 18px;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .stat-num {
    font-size: 28px;
  }
  .section-title {
    font-size: 30px;
  }
  .section-divider {
    margin-bottom: 30px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .srv-card,
  .proj-body,
  .why-card {
    padding: 22px;
  }
  .proj-header {
    padding: 22px;
  }
  .proj-num {
    font-size: 40px;
    right: 16px;
  }
  .proj-title {
    padding-right: 48px;
  }
  .proj-links {
    flex-direction: column;
    gap: 10px;
  }
  .proj-link {
    min-height: 36px;
  }
  .contact-info h3 {
    font-size: 24px;
  }
  .contact-link-item {
    align-items: flex-start;
    padding: 12px 14px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 14px;
  }
}
