* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  background: #f7f7f5;
  color: #111;
  overflow-x: hidden;
  transition: 0.3s ease;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  width: 100%;
}
/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 5%;
  background: rgba(247, 247, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav-container {
  max-width: 1250px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* LOGO */
.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1.5px;
}
.logo span {
  color: #777;
}
/* NAV LINKS */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-menu a {
  font-size: 14px;
  font-weight: 600;
  position: relative;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -7px;
  background: #111;
  transition: 0.3s ease;
}
.nav-menu a:hover::after {
  width: 100%;
}
/* HAMBURGER */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
}
.menu-toggle span {
  width: 25px;
  height: 2px;
  background: #111;
  transition: 0.3s ease;
}

/* =========================
   HERO
========================= */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 130px 5% 80px;
}
.hero-container {
  width: 100%;
  max-width: 1250px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 2;
}

/* HERO TEXT */
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #777;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.96;
  letter-spacing: -5px;
  margin-bottom: 30px;
}
.hero h1 span {
  color: #777;
}
.hero-description {
  max-width: 570px;
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 35px;
}
/* BUTTONS */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.btn {
  min-height: 52px;
  padding: 0 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: 0.3s ease;
}
.btn:hover {
  transform: translateY(-3px);
}
.primary-btn {
  background: #111;
  color: #fff;
}
.secondary-btn {
  border: 1px solid #ccc;
}
/* SOCIALS */
.social-mini {
  display: flex;
  gap: 10px;
  margin-top: 35px;
}
.social-mini a {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  transition: 0.3s ease;
}
.social-mini a:hover {
  background: #111;
  color: #fff;
}
/* HERO IMAGE */
.hero-image-wrapper {
  position: relative;
  max-width: 500px;
  margin-left: auto;
  animation: heroPhoto 1.1s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-image-frame {
  width: 100%;
  aspect-ratio: 0.82;
  overflow: hidden;
  border-radius: 250px 250px 20px 20px;
  background: #ddd;
  animation: heroImage 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-image-frame img {
  height: 100%;
  object-fit: cover;
  transition: 0.8s ease;
}
.hero-image-frame:hover img {
  transform: scale(1.04);
}
/* FLOATING CARDS */
.floating-card {
  position: absolute;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}
.floating-card span {
  display: block;
  font-size: 10px;
  color: #777;
  margin-bottom: 5px;
}
.floating-card strong {
  display: block;
  font-size: 13px;
}
.card-top {
  top: 18%;
  left: -35px;
}
.card-top strong {
  font-size: 25px;
}
.card-bottom {
  bottom: 12%;
  right: -35px;
}
/* BACKGROUND CIRCLES */
.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: #ecece8;
}
.circle-one {
  width: 400px;
  height: 400px;
  top: -160px;
  right: -120px;
}
.circle-two {
  width: 250px;
  height: 250px;
  bottom: -120px;
  left: -100px;
}
/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 25px;
  left: 5%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #999;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.scroll-indicator span {
  width: 35px;
  height: 1px;
  background: #aaa;
}
/* =========================
   SECTIONS
========================= */
.section {
  padding: 130px 5%;
}
.section-container {
  max-width: 1250px;
  margin: auto;
}
.section-heading {
  margin-bottom: 70px;
}
.section-heading h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -3px;
}
.section-heading h2 span {
  color: #777;
}
/* =========================
   ABOUT
========================= */
.about {
  background: #111;
  color: #fff;
}
.about .eyebrow {
  color: #888;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}
.about-text p {
  color: #aaa;
  line-height: 1.9;
  margin-bottom: 22px;
  font-size: 16px;
}
.about-text strong {
  color: #fff;
}
.text-link {
  display: inline-block;
  margin-top: 15px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid #555;
  padding-bottom: 7px;
}
/* ABOUT STATS */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #333;
}
.stat {
  min-height: 170px;
  padding: 30px;
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stat strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 38px;
  color: #444;
}
.stat span {
  font-size: 13px;
  color: #aaa;
}
/* =========================
   SERVICES
========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.service-card {
  min-height: 340px;
  padding: 30px;
  background: #fff;
  border: 1px solid #e7e7e4;
  position: relative;
  transition: 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}
.service-number {
  font-size: 11px;
  color: #999;
}
.service-icon {
  font-size: 30px;
  margin: 50px 0 25px;
}
.service-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  margin-bottom: 15px;
}
.service-card p {
  color: #777;
  font-size: 13px;
  line-height: 1.7;
}
/* =========================
   WORK
========================= */
.work {
  background: #efefec;
}
.work-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
}
.work-heading > p {
  max-width: 360px;
  color: #777;
  line-height: 1.7;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.portfolio-item {
  height: 430px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #ddd;
}
.portfolio-item.large {
  height: 560px;
}
.portfolio-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.portfolio-item:hover img {
  transform: scale(1.07);
}
/* PORTFOLIO OVERLAY */
.portfolio-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
  padding-top: 100px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}
.portfolio-overlay span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.portfolio-overlay h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  margin-top: 8px;
}
.portfolio-overlay b {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  font-weight: 400;
}
/* =========================
   SKILLS
========================= */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}
.skills-list {
  border-top: 1px solid #ddd;
}
.skill {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid #ddd;
  font-size: 15px;
  font-weight: 600;
}
.skill span:last-child {
  color: #999;
  font-size: 11px;
}
/* =========================
   CONTACT CTA
========================= */
.cta {
  padding: 150px 5%;
  background: #111;
  color: #fff;
  text-align: center;
}
.cta-container {
  max-width: 850px;
  margin: auto;
}
.cta .eyebrow {
  color: #777;
}
.cta h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(48px, 7vw, 90px);
  line-height: 0.95;
  letter-spacing: -5px;
  margin-bottom: 25px;
}
.cta h2 span {
  color: #666;
}
.cta p:not(.eyebrow) {
  color: #999;
  max-width: 520px;
  margin: 0 auto 35px;
  line-height: 1.7;
}
.whatsapp-btn {
  background: #fff;
  color: #111;
}
/* =========================
   FOOTER
========================= */
footer {
  background: #111;
  color: #fff;
  padding: 40px 5% 25px;
  border-top: 1px solid #292929;
}
.footer-container {
  max-width: 1250px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.footer-brand p {
  color: #777;
  margin-top: 10px;
  font-size: 12px;
}
.footer-socials {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-socials a {
  font-size: 12px;
  color: #aaa;
}
.footer-socials a:hover {
  color: #fff;
}
.copyright {
  max-width: 1250px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid #292929;
  color: #555;
  font-size: 11px;
}
/* =========================
   MODAL
========================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.modal.active {
  display: flex;
  animation: modalFade 0.3s ease;
}
.modal-content {
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
}
.modal-content img {
  max-height: 75vh;
  object-fit: contain;
}
.modal-info {
  color: #fff;
  padding-top: 15px;
}
.modal-info span {
  color: #999;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.modal-info h2 {
  font-family: "Space Grotesk", sans-serif;
  margin-top: 5px;
}
.modal-close {
  position: fixed;
  top: 25px;
  right: 30px;
  width: 45px;
  height: 45px;
  border: 1px solid #555;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
/* =========================
   ANIMATIONS
========================= */
.hero-content {
  animation: heroText 1s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes heroText {
  from {
    opacity: 0;
    transform: translateY(45px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heroPhoto {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes heroImage {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}
@keyframes modalFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* =========================
   DARK MODE
========================= */
@media (prefers-color-scheme: dark) {
  body {
    background: #0d0d0d;
    color: #f4f4f4;
  }
  .navbar {
    background: rgba(13, 13, 13, 0.85);
    border-color: rgba(255, 255, 255, 0.07);
    color: white;
  }
  .linknav {
    color: white;
  }
  .linknav:hover {
    color: white;
  }

  .nav-menu a::after {
    color: white;
    background: #fff;
  }
  .menu-toggle span {
    background: #fff;
  }
  .hero-bg-circle {
    background: #191919;
  }
  .hero-description {
    color: #999;
  }
  .primary-btn {
    background: #fff;
    color: #111;
  }
  .secondary-btn {
    border-color: #333;
  }
  .social-mini a {
    border-color: #333;
  }
  .social-mini a:hover {
    background: #fff;
    color: #111;
  }
  .floating-card {
    background: rgba(25, 25, 25, 0.9);
    border-color: #333;
  }
  .floating-card strong {
    color: #fff;
  }
  .services {
    background: #0d0d0d;
  }
  .service-card {
    background: #151515;
    border-color: #262626;
  }
  .work {
    background: #141414;
  }
  .skills-list,
  .skill {
    border-color: #292929;
  }
  .whatsapp-btn {
    background: #fff;
    color: #111;
  }
}
/* =========================
   TABLET
========================= */
@media (max-width: 950px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .linknav {
    color: white;
  }
  .hero h1 {
    font-size: 56px;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* =========================
   MOBILE
========================= */
@media (max-width: 700px) {
  .navbar {
    padding: 16px 5%;
  }
  .menu-toggle {
    display: flex;
  }
  .linknav {
    color: white;
  }
  .nav-menu {
    position: absolute;
    top: 75px;
    left: 5%;
    right: 5%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #ddd;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s ease;
    color: white;
  }
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-menu a {
    padding: 15px;
    border-radius: 9px;
    color: white;
  }
  .nav-menu a:hover {
    background: #f2f2f2;
    color: black;
  }
  .nav-menu a::after {
    display: none;
    color: white;
  }
  /* HERO */
  .hero {
    padding-top: 115px;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  .hero h1 {
    font-size: clamp(46px, 14vw, 65px);
    letter-spacing: -3px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-image-wrapper {
    width: 85%;
    margin: auto;
  }
  .floating-card {
    display: none;
  }
  .scroll-indicator {
    display: none;
  }
  /* SECTIONS */
  .section {
    padding: 90px 5%;
  }
  .section-heading {
    margin-bottom: 45px;
  }
  .section-heading h2 {
    font-size: 45px;
    letter-spacing: -2.5px;
  }
  /* ABOUT */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  /* SERVICES */
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 290px;
  }
  /* WORK */
  .work-heading {
    display: block;
  }
  .work-heading > p {
    margin-top: 25px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-item,
  .portfolio-item.large {
    height: 450px;
  }
  /* SKILLS */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  /* CTA */
  .cta {
    padding: 110px 5%;
  }
  .cta h2 {
    font-size: 55px;
    letter-spacing: -3px;
  }
  /* FOOTER */
  .footer-container {
    flex-direction: column;
  }
  .footer-socials {
    gap: 15px;
  }
}
/* DARK MOBILE MENU */
@media (max-width: 700px) and (prefers-color-scheme: dark) {
  .nav-menu {
    background: rgba(20, 20, 20, 0.98);
    border-color: #292929;
    color: white;
  }
  .nav-menu a:hover {
    background: #222;
  }
}

/* ==========================================
   CSS-ONLY RESPONSIVE HAMBURGER MENU
   ========================================== */

/* Hide checkbox element natively */
.menu-checkbox {
  display: none;
}

/* Base Mobile Navigation Styles (under 768px screen width) */
@media screen and (max-width: 768px) {
  .nav-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Make sure the label/hamburger icon acts like a clickable button */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: currentColor; /* Matches existing text color */
    border-radius: 2px;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }

  /* Mobile menu dropdown positioning */
  .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(15, 15, 15, 0.95); /* Dark background overlay */
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s ease;
  }

  /* Checkbox Hack Trigger: When checkbox is checked, display menu */
  .menu-checkbox:checked ~ .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Optional: Animate Hamburger icon into an 'X' when open */
  .menu-checkbox:checked ~ .menu-toggle span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }

  .menu-checkbox:checked ~ .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-checkbox:checked ~ .menu-toggle span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }
}

/* Ensure desktop navigation behaves normally (above 768px) */
@media screen and (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}
