/* =========================================
   RESET
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================
   VARIABLES
========================================= */

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --gray-dark: #444444;
  --gray: #777777;
  --gray-light: #eeeeee;
  --off-white: #f7f7f7;
  --white: #ffffff;

  --container: 1200px;
}

/* =========================================
   GENERAL
========================================= */

.container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

.section {
  padding: 120px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 60px;
}

.section-heading h2 {
  margin-top: 15px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -2px;
}

.section-heading > p:last-child {
  margin-top: 20px;
  color: var(--gray);
  max-width: 550px;
}

/* =========================================
   NAVIGATION
========================================= */

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
}

.nav-container {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 250px;
  height: auto;
  display: block;
}

.logo-brw {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.logo-brw img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 180px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.5;
}

.nav-button {
  background: var(--black);
  color: var(--white);
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-button:hover {
  background: #333333;
}

/* =========================================
   HERO
========================================= */

.hero {
  min-height: 850px;
  background: var(--white);
  display: flex;
  align-items: center;
  padding-top: 90px;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 80px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 30px;
}

.hero h1 {
  max-width: 750px;
  font-size: clamp(55px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -6px;
  font-weight: 900;
}

.hero h1 span {
  display: block;
  color: #888888;
}

.hero-description {
  max-width: 570px;
  margin-top: 35px;
  font-size: 18px;
  color: var(--gray);
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 25px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

.button-white {
  background: var(--black);
  color: var(--white);
}

.button-white:hover {
  background: #333333;
}

.button-outline {
  border: 1px solid #cccccc;
}

.button-outline:hover {
  border-color: var(--black);
}

/* =========================================
   HERO VISUAL
========================================= */

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 460px;
  height: 430px;
  background: #111111;
  padding: 18px;
  box-shadow: 30px 30px 0 #eeeeee;
  transform: rotate(2deg);
}

.card-top {
  display: flex;
  gap: 7px;
  padding-bottom: 20px;
}

.card-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #777777;
}

.code-lines {
  padding: 50px 25px;
}

.code-line {
  height: 12px;
  margin-bottom: 20px;
  background: #444444;
}

.code-line.long {
  width: 90%;
}

.code-line.medium {
  width: 65%;
}

.code-line.short {
  width: 35%;
}

.code-space {
  height: 25px;
}

/* =========================================
   INTRO
========================================= */

.intro {
  background: var(--black);
  color: var(--white);
  padding: 100px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
}

.intro h2 {
  font-size: clamp(35px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 30px;
}

.intro h2 strong {
  color: #777777;
}

.intro p:not(.section-label) {
  color: #999999;
  max-width: 650px;
  font-size: 17px;
}

/* =========================================
   SERVICES
========================================= */

.services {
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #d8d8d8;
}

.service-card {
  background: var(--off-white);
  padding: 45px;
  min-height: 430px;
  transition: 0.3s ease;
}

.service-card:hover {
  background: var(--white);
}

.service-number {
  font-size: 13px;
  color: #888888;
}

.service-card h3 {
  font-size: 28px;
  margin-top: 70px;
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.service-card > p {
  color: var(--gray);
  margin-bottom: 30px;
}

.service-card ul {
  list-style: none;
}

.service-card li {
  font-size: 14px;
  padding: 8px 0;
  border-top: 1px solid #dddddd;
}

/* =========================================
   PROJECTS
========================================= */

.projects {
  background: var(--white);
}

.projects-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 50px;
}

.projects-heading > p {
  max-width: 400px;
  color: var(--gray);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px 30px;
}

.project-card {
  border-bottom: 1px solid #dddddd;
  padding-bottom: 30px;
}

.project-card:first-child {
  grid-column: span 2;
}

.project-card:first-child .project-image {
  height: 500px;
}

.project-image {
  height: 370px;
  background: #eeeeee;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-one {
  background: #111111;
}

.project-two {
  background: #e9e9e9;
}

.project-three {
  background: #dcdcdc;
}

.project-browser {
  width: 75%;
  height: 75%;
  background: white;
  box-shadow: 20px 20px 0 rgba(0, 0, 0, 0.15);
}

.browser-bar {
  height: 30px;
  background: #dddddd;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 12px;
}

.browser-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #777777;
}

.browser-content {
  padding: 40px;
}

.mock-title {
  height: 25px;
  width: 55%;
  background: #111111;
  margin-bottom: 45px;
}

.mock-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mock-row div {
  height: 100px;
  background: #dddddd;
}

.project-placeholder {
  width: 80%;
  height: 70%;
  border: 2px solid #999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-placeholder span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #777777;
}

.project-info {
  padding-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.project-type {
  font-size: 10px;
  letter-spacing: 2px;
  color: #888888;
  margin-bottom: 7px;
}

.project-info h3 {
  font-size: 28px;
}

.project-info > p {
  color: var(--gray);
  font-size: 14px;
}

.project-link {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 700;
  margin-top: 5px;
}

/* =========================================
   ABOUT
========================================= */

.about {
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 100px;
  align-items: center;
}

.about-number {
  width: 300px;
  height: 300px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-number span {
  font-size: 65px;
  font-weight: 900;
  letter-spacing: -5px;
}

.about-content h2 {
  max-width: 750px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -3px;
  margin: 18px 0 30px;
}

.about-content > p:not(.section-label) {
  max-width: 700px;
  color: var(--gray);
  margin-bottom: 18px;
}

.about-stats {
  display: flex;
  gap: 60px;
  margin-top: 45px;
}

.about-stats div {
  display: flex;
  flex-direction: column;
}

.about-stats strong {
  font-size: 25px;
}

.about-stats span {
  color: var(--gray);
  font-size: 12px;
  margin-top: 5px;
}

/* =========================================
   WHY US
========================================= */

.why-us {
  background: var(--white);
}

.why-grid {
  border-top: 1px solid #dddddd;
}

.why-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid #dddddd;
}

.why-item > span {
  color: #999999;
  font-size: 13px;
}

.why-item h3 {
  font-size: 24px;
  margin-bottom: 5px;
}

.why-item p {
  color: var(--gray);
}

/* =========================================
   CONTACT
========================================= */

.contact {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 150px 0;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact .section-label {
  color: #777777;
}

.contact h2 {
  max-width: 900px;
  margin: 25px auto;
  font-size: clamp(50px, 8vw, 100px);
  line-height: 0.95;
  letter-spacing: -5px;
}

.contact h2 span {
  color: #777777;
}

.contact-container > p:not(.section-label) {
  max-width: 550px;
  color: #888888;
  margin-bottom: 35px;
}

.contact-button {
  background: var(--white);
  color: var(--black);
}

.contact-button:hover {
  background: #dddddd;
}

/* =========================================
   FOOTER
========================================= */

.footer {
  background: var(--black);
  color: var(--white);
  border-top: 1px solid #222222;
  padding: 30px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer p {
  color: #666666;
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 25px;
}

.footer-links a {
  color: #888888;
  font-size: 12px;
}

.footer-links a:hover {
  color: white;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 150px 0 100px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .hero h1 {
    letter-spacing: -4px;
  }

  .hero-card {
    max-width: 500px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-heading {
    display: block;
  }

  .projects-heading > p {
    margin-top: 25px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-number {
    width: 220px;
    height: 220px;
  }

  .project-card:first-child {
    grid-column: span 1;
  }

  .project-card:first-child .project-image {
    height: 370px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 80px 0;
  }

  .nav-button {
    padding: 10px 14px;
    font-size: 11px;
  }

  .hero {
    padding-top: 130px;
  }

  .hero h1 {
    font-size: 55px;
    letter-spacing: -4px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-card {
    height: 300px;
    box-shadow: 15px 15px 0 #eeeeee;
  }

  .code-lines {
    padding: 30px 15px;
  }

  .services-grid {
    gap: 0;
  }

  .service-card {
    padding: 30px;
    min-height: auto;
  }

  .service-card h3 {
    margin-top: 45px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .project-image,
  .project-card:first-child .project-image {
    height: 280px;
  }

  .project-info {
    grid-template-columns: 1fr;
  }

  .project-link {
    grid-column: auto;
  }

  .about-content h2 {
    letter-spacing: -2px;
  }

  .about-stats {
    gap: 25px;
  }

  .why-item {
    grid-template-columns: 50px 1fr;
    gap: 15px;
  }

  .contact {
    padding: 100px 0;
  }

  .contact h2 {
    letter-spacing: -3px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
