:root {
  --bg: #0b0c10;          /* deep charcoal */
  --panel: #111217;       /* card background */
  --muted: #a3a3a3;       /* secondary text */
  --text: #f5f7fb;        /* primary text */
  --brand: #7bd389;       /* soft green */
  --accent: #9cc9ff;      /* soft blue for hovers */
  --ring: rgba(123, 211, 137, .35);
  --radius: 18px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .25);
  --grid-gap: 22px;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #0b0c10 0%, #0e1117 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  scroll-behavior: smooth
}

/* Layout */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 16, .7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1b1e27
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text)
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #6ab7ff);
  display: inline-grid;
  place-items: center;
  box-shadow: var(--shadow)
}

.logo b {
  font-size: 14px
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 10px;
  padding: 8px 10px;
  border-radius: 10px
}

nav a:hover {
  color: var(--text);
  background: #151823
}

.cta {
  background: var(--brand);
  color: #0b0c10;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--ring)
}

.cta:hover {
  filter: brightness(1.05)
}

.menu-btn {
  display: none;
  background: #151823;
  border: 1px solid #22263a;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px
}

/* Hero */


/* 1. Modify your .hero rule */
.hero {
  position: relative;
  padding: 96px 0;
  overflow: hidden; /* Add this to contain the video */

  /* REMOVE these background properties from .hero */
  /* background-image: ... */
  /* background-size: ... */
  /* background-position: ... */
  /* background-repeat: ... */
}

/* 2. ADD this new rule for the dark overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* This gradient sits on top of the video but behind the text */
  background: linear-gradient(rgba(11, 12, 16, 0.7), rgba(11, 12, 16, 0.7));
  z-index: 1; 
}

/* 3. ADD this new rule for the video */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0; /* Sits at the very back */
}

/* 4. Modify your .hero-wrap rule */
.hero-wrap {
   display: grid;
  
  /* CHANGE THIS LINE */
  grid-template-columns: 1fr; /* From: 1.1fr .9fr */
  
  gap: 36px;
  align-items: center;

  /* ADD THESE LINES */
  max-width: 800px;  /* Constrains the text width */
  margin: 0 auto;     /* Centers the text block */
  text-align: center;  /* Centers the badge, h1, and p */
  position: relative;
  z-index: 2;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #273049;
  background: #121521;
  padding: 8px 12px;
  border-radius: 999px;
  color: #cfe9d6;
  font-size: 12px
}

h1 {
  font-size: 48px;
  line-height: 1.05;
  margin: 16px 0 10px
}

.lead {
  color: #cdd5e1;
  max-width: 640px
}

/* Find this rule */
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;

  /* ADD THIS LINE */
  justify-content: center;
}

.ghost {
  background: #141824;
  color: var(--text);
  border: 1px solid #23283b
}

.ghost:hover {
  border-color: #2e3755
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  margin-top: 28px
}

.stat {
  background: var(--panel);
  border: 1px solid #1a1f2d;
  border-radius: var(--radius);
  padding: 18px;
  text-align: center
}

.stat b {
  display: block;
  font-size: 28px
}

.mock {
  background: #0d1117;
  border: 1px solid #1a1f2d;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 340px;
  overflow: hidden
}

.mock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9
}

/* Sections */
section {
  padding: 84px 0;
  border-top: 1px solid #161a24
}

.title {
  font-size: 34px;
  margin: 0 0 8px
}

.sub {
  color: var(--muted);
  max-width: 700px
}

.grid {
  display: grid;
  gap: var(--grid-gap)
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr)
}

.card {
  background: var(--panel);
  border: 1px solid #1a1f2d;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow)
}

.card h3 {
  margin: 6px 0 8px;
  font-size: 20px
}

.card p {
  color: #c6cbd6
}

/* Services */
.svc-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #151a24;
  border: 1px solid #23283b;
  margin-bottom: 10px
}

/* Portfolio */
.portfolio .grid-3 {
  grid-template-columns: repeat(3, 1fr)
}

.shot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #1a1f2d
}

.shot img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease
}

.shot:hover img {
  transform: scale(1.04)
}

.shot .cap {
  position: absolute;
  inset: auto 12px 12px 12px;
  background: rgba(16, 18, 27, .75);
  backdrop-filter: blur(6px);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #1f2536;
  font-size: 14px
}

/* Process */
.steps {
  counter-reset: step
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start
}

.step:before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #121521;
  border: 1px solid #273049
}

/* Pricing */
.pricing .card {
  position: relative
}

.price {
  font-size: 32px;
  font-weight: 800
}

.tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #17202e;
  border: 1px solid #22314b;
  color: #cde1ff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px
}

.list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0
}

.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 8px 0;
  color: #cbd5e1
}

.list b {
  color: #a7f3c0
}

/* Testimonials */
.quote {
  font-size: 15px;
  color: #d0d7e3
}

.who {
  margin-top: 8px;
  color: #aab4c5
}

/* Contact */
form {
  display: grid;
  gap: 12px;
  margin-top: 18px
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: #10131c;
  border: 1px solid #23283b;
  color: var(--text)
}

input:focus,
textarea:focus {
  outline: 2px solid var(--ring);
  border-color: #2f8f4d
}

textarea {
  min-height: 120px
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--grid-gap)
}

/* Footer */
footer {
  padding: 32px 0;
  border-top: 1px solid #161a24;
  color: #aab4c5
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between
}

.links a {
  color: #cfe9d6;
  margin-right: 12px;
  text-decoration: none
}

.links a:hover {
  color: #e9fff0
}

/* Utilities */
.pill {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #273049;
  border-radius: 999px;
  color: #cfe9d6;
  background: #121521;
  font-size: 12px
}

/* Responsive */
@media (max-width: 980px) {
  .hero-wrap {
    grid-template-columns: 1fr
  }

  .stats {
    grid-template-columns: repeat(2, 1fr)
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr
  }

  .contact-grid {
    grid-template-columns: 1fr
  }

  nav {
    display: none
  }

  .menu-btn {
    display: inline-block
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 36px
  }

  .title {
    font-size: 28px
  }

  .portfolio .grid-3 {
    grid-template-columns: 1fr
  }

  .stats {
    grid-template-columns: 1fr 1fr
  }
}




/*
|--------------------------------------------------------------------------
| Portfolio Detail Page
|--------------------------------------------------------------------------
*/
.portfolio-hero {
  position: relative;
  padding: 120px 0;
  background-size: cover;
  background-position: center center;
  text-align: center;
  min-height: 300px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #1b1e27;
}

.portfolio-hero h1 {
  font-size: 42px;
  line-height: 1.1;
  color: var(--text);
  margin: 0;
  max-width: 700px;
}

.portfolio-content .container {
  max-width: 840px; /* Constrain width for better reading */
}
/*
|--------------------------------------------------------------------------
| Portfolio Gallery Carousel
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| Portfolio Gallery Carousel
|--------------------------------------------------------------------------
*/

/* REMOVE these old rules */
/*
.gallery-grid { ... }
.gallery-item { ... }
.gallery-item img { ... }
*/

/* ADD these new rules for Splide */

#gallery-carousel {
  padding: 24px 0;
}

.splide__slide {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1a1f2d;
}

.splide__slide img {
  width: 100%;
  height: 300px; /* You can adjust this height */
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.splide__slide:hover img {
  transform: scale(1.05);
}

/* Style the arrows to match your dark theme */
.splide__arrow {
  background: rgba(17, 18, 23, 0.7); /* --panel color with opacity */
  border: 1px solid #23283b;
  backdrop-filter: blur(4px);
}

.splide__arrow:hover {
  background: #151a24;
}

.splide__arrow svg {
  fill: var(--text); /* --text color */
}

@media (max-width: 640px) {
  .splide__slide img {
    height: 250px; /* Shorter height on mobile */
  }
}


/*
|--------------------------------------------------------------------------
| Header Logo Buttons
|--------------------------------------------------------------------------
*/
.nav-logos {
  display: flex;
  gap: 12px;
  
  /* This moves the logos to the left of the CTA button */
  /* We use margin-left: auto to push them right */
  margin-left: auto;
  margin-right: 16px;
}

.logo-btn {
  display: grid;
  place-items: center;
  width: 100px;
  height: 40px;
  border-radius: 8px;
  text-decoration: none;
  font-family: sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Upwork */
.logo-btn.upwork {
  background: #14A800; /* Official Upwork Green */
  color: white;
}

/* Fiverr */
.logo-btn.fiverr {
  background: #1DBF73; /* Official Fiverr Green */
  color: white;
}
.logo-btn.fiverr b {
  transform: skewX(-10deg); /* Gives the italic 'fi' look */
}


/* --- Responsive Adjustments --- */

/* Hide logos on mobile (same breakpoint as your menu) */
@media (max-width: 980px) {
  .nav-logos {
    display: none;
  }
}

/* Adjust layout on desktop */
@media (min-width: 981px) {
  .nav {
    /* This makes sure all items are aligned */
    justify-content: flex-start;
  }
  
  #nav {
    /* This pushes nav items to the center */
    margin-left: 24px;
  }

  /* This was handled by nav-logos margin-left: auto */
  /* .cta {
    margin-left: auto;
  } */
}


/*
|--------------------------------------------------------------------------
| Mobile Menu Logo Buttons
|--------------------------------------------------------------------------
*/
.mobile-logo-btn {
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  transition: filter 0.2s ease;
}

.mobile-logo-btn:hover {
  filter: brightness(1.1);
}

.mobile-logo-btn.upwork {
  background: #14A800; /* Upwork Green */
}

.mobile-logo-btn.fiverr {
  background: #1DBF73; /* Fiverr Green */
}

/* Style the little text icon */
.mobile-logo-btn b {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(0,0,0,0.15); /* Darken the BG slightly */
  font-size: 12px;
  font-family: sans-serif;
}

.mobile-logo-btn.fiverr b {
  transform: skewX(-10deg);
}

/*
|--------------------------------------------------------------------------
| New Animated Footer (Corrected)
|--------------------------------------------------------------------------
*/

.footer-wave {
  /* This prevents a 1px gap between the SVG and the footer */
  margin-bottom: -1px; 
  /* FIX: Removed 'background: var(--bg);'
    The div is now transparent, allowing the SVG's fill
    to create the shape against the main page.
  */
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer {
  background: var(--bg); /* Deep charcoal background */
  padding: 80px 0 24px 0;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr; /* 4 columns */
  gap: var(--grid-gap);
}

.footer-col {
  font-size: 14px;
  line-height: 1.6;
}

.footer-col .brand {
  margin-bottom: 12px;
}

.footer-tagline {
  max-width: 280px;
  margin-bottom: 16px;
}

.footer-col h5 {
  color: var(--text);
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 16px;
}

.footer-col a,
.footer-col span {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-cta {
  display: inline-block;
  background: var(--brand);
  color: #0b0c10;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--ring);
}

.footer-cta:hover {
  color: #0b0c10;
  filter: brightness(1.05);
}

.footer-icon-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon-link span {
  display: inline;
  margin: 0;
}

.sub-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid #161a24;
  text-align: center;
  color: var(--muted);
}

/* Responsive Footer */
@media (max-width: 980px) {
  .footer-grid {
    /* 2x2 grid on tablets */
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    /* 1 column on mobile */
    grid-template-columns: 1fr;
    gap: 36px;
  }
}