@font-face {
  font-family: "SubHeadings-Montserrat";
  src: url("../assets/fonts/Montserrat-Bold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Headings-CalSans";
  src:
    url("../assets/fonts/CalSans-SemiBold.otf") format("opentype"),
    url("../assets/fonts/CalSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Body-Montserrat";
  src: url("../assets/fonts/Montserrat-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}
/* global */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Headings-CalSans", sans-serif;
  font-weight: 600;
}

body {
  font-family: "Body-Montserrat", sans-serif;
}

.subheading,
.btn,
nav a {
  font-family: "SubHeadings-Montserrat", sans-serif;
  font-weight: 600;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

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

.hero {
  position: relative;

  width: 100%;
  height: calc(100vh);

  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.6)),
    url("../assets/images/HeroImage.PNG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  overflow: hidden;
}

/* dark overlay for readability */
.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.8)),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

/* content */
.hero-content {
  position: relative;
  z-index: 2;

  max-width: 1100px;
  padding: 0 20px;
}

/* headline */
.hero h1 {
  font: "Headings-CalSans", sans-serif;
  font-size: 3.5rem;
  line-height: 1.2;
  color: white;
  font-weight: bold;
}

/* yellow dot */
.hero .dot {
  color: var(--accent-yellow);
}

/* subtext */
.hero p {
  font: "subheadings-montserrat", sans-serif;
  margin-top: 20px;
  font-size: 1.7rem;
  color: rgba(255, 255, 255, 0.85);
}

/* buttons */
.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* =========================
   MOBILE FIX
========================= */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

.accent-dot {
  color: var(--accent-yellow);
}

/* ==========================
   BRAND COLORS
========================== */
:root {
  --primary-blue: #315dfe;
  --white: #ffffff;
  --accent-yellow: #fed04f;
}

/* ==========================
   BASE BUTTON (GLASS)
========================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;

  font-size: 0.85rem;
  letter-spacing: 1px;
  text-decoration: none;

  color: var(--white);

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.3);

  transition: all 0.3s ease;
}

/* ==========================
   HOVER (SAME FOR BOTH)
========================== */
.btn:hover {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);

  transform: translateY(-2px);
}

/* ==========================
   MOBILE ADJUSTMENTS
========================== */
@media (max-width: 768px) {
  .hero {
    min-height: calc(100vh - 70px);
    margin-top: 70px;
  }
}

/* =========================
   SECTION BASE
========================= */

.section {
  padding: 120px 10%;
}

.section h2 {
  max-width: 700px;
  margin-bottom: 20px;
}

.section p {
  max-width: 600px;
}

.section-cta {
  margin-top: 40px;
}

/* =========================
   VALUE SECTION (LIGHT STYLE)
========================= */

.value {
  width: 100%;
  padding: 160px 0 140px;

  background: var(--white);

  display: flex;
  justify-content: center;
}

/* CARD */

.value-content {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 70px;
  align-items: center;

  padding: 70px 90px;

  background: var(--primary-blue);
  backdrop-filter: blur(12px);

  border-radius: 18px;

  border: none;

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.04);

  position: relative;
  overflow: hidden;
}

.value-content::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at top left,
    rgba(49, 93, 254, 0.08),
    transparent 60%
  );

  pointer-events: none;
}

.value-content:hover {
  transform: translateY(-6px);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.2),
    0 15px 30px rgba(0, 0, 0, 0.1);
}

/* IMAGE */
.value-content img {
  width: 100%;
  height: 450px;
  object-fit: cover;

  border-radius: 12px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* TEXT */
.value-content h2 {
  font-family: "Headings-CalSans", sans-serif;
  font-size: 2.8rem;
  line-height: 1.2;
  letter-spacing: -1px;

  color: var(--white);
}

.value-content p {
  margin-top: 20px;

  font-family: "Body-Montserrat", sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;

  color: var(--white);
}

/* SUBTLE ACCENT LINE */
.value-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 80px;

  width: 60px;
  height: 3px;
}

/* =========================
   SERVICES PREVIEW
========================= */

.services-preview {
  background: var(--primary-blue);
  text-align: center;
  position: relative;
}

/* HEADER */
.services-header {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-header h2 {
  font-family: "Headings-CalSans", sans-serif;
  font-size: 3rem;
  margin-bottom: 15px;
  color: #ffffff;
  text-align: center;
}

.services-header p {
  font-family: "Body-Montserrat", sans-serif;
  color: white;
  font-size: 1.1rem;
  text-align: center;
}

/* GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);

  padding: 30px;
  border-radius: 18px;

  border: 1px solid rgba(0, 0, 0, 0.04);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.05),
    0 30px 60px rgba(0, 0, 0, 0.08);

  transition: all 0.4s ease;
}

/* HOVER */
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.service-image {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

/* IMAGE */
.service-image {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;
}

.service-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

/* HOVER ZOOM */
.service-card:hover .service-image img {
  transform: scale(1.05);
}
/* TEXT */
.service-card h3 {
  font-family: "SubHeadings-Montserrat", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.service-card p {
  color: #555;
  margin-bottom: 15px;
}

/* LIST */
.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card li {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 6px;
}

/* CTA */
.section-cta {
  margin-top: 60px;
}

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

@media (max-width: 900px) {
  .value-content {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 30px;
  }

  .value-content img {
    height: 280px;
  }

  .value-content h2 {
    font-size: 2rem;
  }
}

.work-preview {
  text-align: center;
  padding: 100px 20px;
  background: #f9fafb;
}

/* Heading */
.work-preview h2 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Subheading (CENTERED PROPERLY) */
.work-preview .muted {
  max-width: 550px;
  margin: 0 auto 50px;
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* =========================
   GRID
========================= */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* =========================
   PROJECT CARDS
========================= */
.work-item {
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

/* IMAGE FIX */
.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* THIS fixes stretching */
  display: block;
  transition: transform 0.4s ease;
}

.work-item::before {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0);

  transition: background 0.35s ease;
  z-index: 1;
}

.work-item:hover .work-overlay h3 {
  opacity: 1;
  transform: translateY(0);
}

.work-item:hover::before {
  background: rgba(0, 0, 0, 0.7);
}

/* hover effect */
.work-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* =========================
   TEXT OVERLAY
========================= */
.work-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 2;
  pointer-events: none; /* prevents hover issues */
}

.work-overlay h3 {
  font-family: "subheadings-montserrat", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 4px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  color: var(--white);
}

.work-item:hover .work-overlay h3 {
  transform: translateY(0);
  opacity: 1;
}

/* =========================
   ABOUT PREVIEW (REFINED)
========================= */
.about-preview {
  background: var(--primary-blue);
  color: white;
  padding: 120px 20px;
  position: relative;
  overflow: hidden;
}

/* subtle background image */
.about-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/about-bg.jpg") center/cover no-repeat;
  opacity: 0.06; /* slightly reduced for cleaner look */
}

/* =========================
   LAYOUT
========================= */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 🔥 EXACT 50/50 SPLIT */
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* =========================
   TEXT SIDE
========================= */
.about-text {
  max-width: 500px;
}

.about-content h2 {
  font-family: "subheadings-montserrat", sans-serif;
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-content p {
  font-family: "Inter", sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #d1d5db; /* slightly brighter for contrast */
  margin-bottom: 30px;
}

/* =========================
   IMAGE SIDE (FIXED)
========================= */
.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
}

.about-image img {
  width: 100%;
  max-width: 520px;
  height: auto;

  object-fit: contain;

  opacity: 0.95;
  transition: all 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.04);
}

/* =========================
   BUTTON
========================= */
.about-content .btn {
  margin-top: 10px;
}

/* =========================
   FINAL CTA (UPGRADED)
========================= */
.final-cta {
  text-align: center;
  padding: 140px 20px;

  background: linear-gradient(135deg, #07393c, #2c666e);
  color: #fff;

  position: relative;
  overflow: hidden;
}

/* glow layer */
.final-cta::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.06);
  filter: blur(140px);
  top: -150px;
  left: -150px;
}

.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;

  background: url("assets/images/noise.png");
  opacity: 0.04;
}

/* heading */
.final-cta h2 {
  font-family: "subheadings-montserrat", sans-serif;
  font-size: 2.6rem;
  font-weight: 600;
  margin-bottom: 30px;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

/* button */
.final-cta .btn.primary {
  background: #fff;
  color: #07393c;
  font-weight: 600;
  padding: 14px 32px;
  position: relative;
  z-index: 2;
}

.final-cta .btn.primary:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .about-preview {
    padding: 80px 20px;
  }

  .about-content h2,
  .final-cta h2 {
    font-size: 2rem;
  }

  .final-cta {
    padding: 100px 20px;
  }
}

/* =========================
   NAVBAR BASE
========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

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

  padding: 25px 40px;

  background: transparent;
  transition: all 0.4s ease;
}

/* =========================
   SCROLLED STATE
========================= */
.navbar.scrolled {
  background: #07393c; /* 🔥 your primary blue */
  padding: 18px 40px;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px); /* subtle premium effect */
}

/* =========================
   LOGO
========================= */
.logo {
  height: 40px;
  object-fit: contain;
}

/* =========================
   NAV LINKS
========================= */
.navbar nav {
  display: flex;
  gap: 30px;
}

.navbar nav a {
  font-family: "SubHeadings-Montserrat", sans-serif;
  font-size: 0.95rem;

  color: white;
  text-decoration: none;

  position: relative;
  transition: 0.3s ease;
}

/* hover underline effect */
.navbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;

  width: 0%;
  height: 2px;
  background: #ffd84d; /* accent */

  transition: width 0.3s ease;
}

.navbar nav a:hover::after {
  width: 100%;
}

/* =========================
   HAMBURGER
========================= */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 4px 0;
  transition: 0.3s;
}

/* =========================
   MOBILE MENU
========================= */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    background: #07393c;

    flex-direction: column;
    align-items: center;
    padding: 20px 0;

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;

    transition: 0.3s ease;
  }

  .navbar nav.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .navbar nav a {
    padding: 10px 0;
  }
}

/* =========================
   HAMBURGER ANIMATION
========================= */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* =========================
   FOOTER
========================= */
footer {
  background: var(--primary-blue);
  color: var(--white);
  padding: 40px 20px;

  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* text */
footer p {
  font-family: "Body", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}
