/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background-color: #1e1e1e;
  position: relative;
  overflow-x: hidden; /* only hide sideways overflow */
  overflow-y: auto;   /* allow vertical scroll */
}

.cursor-glow {
  position: fixed;
  pointer-events: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.2), transparent 60%),
              radial-gradient(circle at 65% 65%, rgba(255,255,255,0.1), transparent 60%),
              radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05), transparent 70%);
  filter: blur(50px);
  transform: scale(1) rotate(0deg);
  transform-origin: center center;
  mix-blend-mode: lighten;
  z-index: 9999;
}




/* Desktop Navigation Bar */
nav {
  position: fixed;
  top: -100px; /* start hidden */
  left: 50%;
  transform: translateX(-50%);
  background-color: #6e6e6e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  height: 50px;
  width: 80%;
  max-width: 2000px;
  z-index: 1000;
  animation: slideDown 0.8s forwards;
  overflow: visible; /* needed for pseudo-element */
}

/* Pseudo-element for gradient stroke */
nav::before {
  content: '';
  position: absolute;
  top: -2px; bottom: -2px;
  left: -2px; right: -2px;
  border-radius: 9999px;
  padding: 2px; /* stroke thickness */
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.4));
  
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
          mask-composite: exclude;
  pointer-events: none;
  z-index: -1; /* behind nav */
}


@keyframes slideDown {
  to { top: 20px; }
}

/* Logo */
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo img {
  height: 32px;
  display: block;
}

/* Desktop Links */
.nav-left, .nav-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }

.nav-left a, .nav-right a {
  color: #A1A1A0;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.nav-left a:hover, .nav-right a:hover { color: #ffffff; }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}



.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #ff6b4a;
  transition: 0.3s;
}

.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);
}

/* Mobile Menu (hidden by default) */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  right: -200px;
  flex-direction: column;
  background-color: #1e1e1e;
  padding: 1rem;
  gap: 15px;
  transition: right 0.3s ease;
  z-index: 999;
}

.mobile-menu.active { right: 0; }

.mobile-menu a {
  color: #A1A1A0;
  text-decoration: none;
  font-size: 1rem;
}

.mobile-menu a:hover { color: #ffffff; }

/* Responsive Design */

@media (max-width: 430px) {
  .grey-rectangle {
    width: 345px !important;
    margin-top: 200px !important;
  }
}

@media (max-width: 1000px) {


.rectangle-img {
  height: 180% !important; /* 20% smaller than original height */
  width: auto !important; /* keeps proportions */
  top: -152px !important;  /* same vertical offset you already have */
  left: 50%;
  transform: translateX(-50%);
}

    .name {
    font-size: 80px !important; /* smaller text */
    margin-top: -35px !important; /* adjust vertical position */
    line-height: 1.1; /* optional: prevent text from looking too tall */
  }
  .subtitle-container {
    display: flex !important;          /* force flex */
    flex-direction: column !important; /* stack vertically */
    align-items: center;
    justify-content: center;
    gap: 20px !important;               /* VERY small gap */
    width: 100% !important;
    text-align: center !important;
    margin-top: 15px !important;       /* adjust spacing from name */
  }

  .subtitle {
    font-size: 18px !important;
    line-height: 1.2 !important;       /* tighter line spacing */
    display: block !important;
    width: 100% !important;
  }

  .subtitle .line1,
  .subtitle .line2 {
    display: block !important;         /* force two lines */
  }

  .cta-button {
    display: block !important;         /* force button below subtitle */
    padding: 10px 25px !important;
    font-size: 16px !important;
  }

  .reachout-button {
        display: block !important;         /* force button below subtitle */
    padding: 10px 25px !important;
    font-size: 16px !important;

  }
}
/* 1) Make the outro use the same container as projects */
.projects__outro {
  width: 80%;
  max-width: 1600px;     /* matches .projects.wrap */
  margin: 60px auto 0;   /* center in page */
  padding: 40px 0;
  text-align: left;      /* optional: align like header above */
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* 2) Make the button match the section width */
.projects__outro .reachout-button {
  display: inline-block;   /* only as wide as its content */
  margin: 14px auto 0;     /* top margin + centered horizontally */
  text-align: center;
}

/* 3) FIX: real hover selector (replaces your duplicate .reachout-button block) */
.reachout-button:hover {
  background: linear-gradient(135deg, #ff805b, #ffb347);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(255, 125, 80, 0.45);
}

/* 4) Responsive: keep it full-width on small screens too */
@media (max-width: 900px) {
  .projects__outro .reachout-button {
    width: 100%;
    font-size: 16px !important;
    padding: 12px 20px !important;
  }
}

@media (max-width: 480px) {
  .projects__outro { width: 80%; max-width: none; } /* same move you use elsewhere */
}
/* CTA Button */
.reachout-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #ff6b4a, #ff9a3c); /* cherry → orange */
  color: #fff;
  text-decoration: none;
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.35s ease;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(255, 107, 74, 0.3);
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.7s; /* fade after subtitle */
}

/* Hover effect: glow + subtle lift */
.reachout-button {
  background: linear-gradient(135deg, #ff805b, #ffb347);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(255, 125, 80, 0.45);
}

@media (max-width: 600px) {
    nav {
    width: 100%;
    top: 0 !important;
    border-radius: 0;
    background-color: transparent;
    padding: 0.5rem 1rem;
    justify-content: space-between;
    background-color: #1e1e1e;
  }

  .logo {
    position: static;
    transform: none;
  }

  .nav-left, .nav-right { display: none; }

  .hamburger { display: flex; }

  .mobile-menu { display: flex; }

    /* Hide gradient stroke on mobile */
  nav::before {
    display: none;
  }
}

.grey-rectangle {

  box-shadow: 0 14px 80px rgba(0, 0, 0, 10.8); /* soft, subtle shadow */
}

.rectangle-img {

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Optional gentle lift on hover */
.grey-rectangle:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Grey Rectangle below navbar */
.grey-rectangle {
  margin-top: 320px ;
  position: relative; /* needed for absolute positioning inside */
  margin: 250px auto 0;
  width: 80%;
  max-width: 1000px;
  height: 190px;
  background-color: #4a4a4a;
  border-radius: 20px;
  overflow: visible; /* allow image to go outside */

  /* Animation */
  opacity: 0;
  animation: slideUpRect 1s ease-out forwards;
  animation-delay: 0.2s;
}

/* Slide-up animation for rectangle (vertical only) */
@keyframes slideUpRect {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.rectangle-img {
  position: absolute; /* position relative to the rectangle */
  top: -210px;        /* moves the image above the rectangle */
  left: 50%;          /* centers horizontally */
  transform: translateX(-50%) translateY(50px); /* combine X centering with vertical slide */
  height: 400px;      /* scale image without changing rectangle */
  width: auto;        /* maintain aspect ratio */
  border-radius: 10px; /* optional: rounded corners on image */

  /* Animation */
  opacity: 0;
  animation: slideUpImg 1s ease-out forwards;
  animation-delay: 0.2s;
}

/* Slide-up animation for image (vertical only) */
@keyframes slideUpImg {
  0% {
    transform: translateX(-50%) translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.name {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 900; /* Black weight */
  position: relative;      /* relative to normal flow */
  text-align: center;      /* center horizontally */
  color: #999999;
  font-size: 120px;
  font-weight: bold;
  margin-top: -100px;       /* moves name up to overlap rectangle & image */
  z-index: 10;           /* ensures it’s above rectangle & image */

  /* Animation */
  opacity: 0;
  animation: slideUpName 1s ease-out forwards;
  animation-delay: 0.5s;
}

/* Slide-up animation for name (vertical only) */
@keyframes slideUpName {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}


/* Container for subtitle + button */
.subtitle-container {
  display: flex;
  flex-direction: row;      /* text and button side by side */
  justify-content: center;  /* center horizontally */
  align-items: center;      /* vertically aligned */
  gap: 600px;               /* space between text and button */
  margin-top: -10px;        /* space below the name */
  opacity: 0;               /* start hidden */
  animation: fadeUp 1s ease forwards; /* apply fade-up */
  animation-delay: 0.3s;    /* optional delay */
}

/* Subtitle text */
.subtitle {
  color: #C9C9C9;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;      /* prevent breaking on desktop */
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.5s;    /* slightly after container */
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #ff6b4a, #ff9a3c); /* cherry → orange */
  color: #fff;
  text-decoration: none;
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.35s ease;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(255, 107, 74, 0.3);
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.7s; /* fade after subtitle */
}

/* Hover effect: glow + subtle lift */
.cta-button:hover {
  background: linear-gradient(135deg, #ff805b, #ffb347);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(255, 125, 80, 0.45);
}


@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/*

.about-section {
  background-color: #1e1e1e;
  color: #C9C9C9;
  text-align: center;
  padding: 120px 20px;
  animation: fadeUp 1s ease forwards;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
}

.about-section p {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1.1rem;
  color: #A1A1A0;
}



*/

/*
.about-with-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 100px;
  padding: 120px 20px;
  color: #C9C9C9;
  position: relative;
  flex-direction: row; 
}

.about-with-image .about-text {
  flex: 1;
  max-width: 600px;
  order: 0; 
  text-align: left; 
    margin-top: 80px;
}

.about-with-image .about-image {
  flex: 1;
  max-width: 500px;
  position: relative;
  order: 1; 
}

.about-with-image .about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  object-fit: cover;


  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,1));
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-image: linear-gradient(to top, rgba(0,0,0,0), rgba(0,0,0,1));
  mask-repeat: no-repeat;
  mask-size: cover;
}


@media (max-width: 900px) {
  .about-with-image {
    flex-direction: column-reverse;
    align-items: center;  
    gap: 40px;
    margin-top: -100px;
  }

  .about-with-image .about-text {
    text-align: center;   
  }

  .about-with-image .about-image {
    display: flex;
    justify-content: center; 
    width: 100%;
  }

  .about-with-image .about-image img {
    width: 80%;  
    max-width: 400px; 
  }
}



.skills-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 500px;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
}

.skill-card {
  background-color:  #6e6e6e;
  border-radius: 15px;
  padding: 40px 20px;
  text-align: center;
  color: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2); 
}

.skill-card .icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 15px;
  color: #a173ff; 
}

.skill-card h3 {
  font-size: 1.1rem;
  font-weight: 400;
  color: #e0e0e0;
}


@media (max-width: 900px) {
  .about-with-image {
    flex-direction: column; 
    align-items: center;
    gap: 40px;
    margin-top: -100px;
  }

  .about-text {
    text-align: center;
    order: 0;
  }

  .skills-grid {
    order: 1; 
    width: 100%;
    max-width: 400px;
    grid-template-columns: 1fr; 
    gap: 20px;
    margin-top: 40px; 
  }
}
/* ---------- Section titles ---------- */
.section-title{
  color:#fff; font-size:18px; font-weight:700; letter-spacing:.4px;
  margin: 26px auto 12px; width:80%; max-width:1100px;
}

/* ---------- About hero (image-less) ---------- */
.about-hero{ width:80%; max-width:1600px; margin: 120px auto 24px; }
.about-hero__body{
  position:relative; padding:28px; border-radius:20px; background:#202020;
  border:1px solid rgba(255,255,255,0.06); box-shadow:0 14px 80px rgba(0,0,0,.45);
  background-image:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  background-size:14px 14px, 100% 100%;
}
.about-hero__body::after{
  content:""; position:absolute; left:24px; right:24px; bottom:-1px; height:1px;
  background:linear-gradient(90deg, #ff6b4a, #ff9a3c); opacity:.7;
}
.about-kicker{
  display:inline-block; font-size:12px; letter-spacing:.18em; text-transform:uppercase;
  color:#BFBFBF; background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08); padding:6px 10px; border-radius:999px; margin-bottom:10px;
}
.about-hero__body h1{ color:#fff; font-size:clamp(28px,4vw,44px); line-height:1.1; margin:6px 0 8px; }
.about-lead{ color:#C9C9C9; font-size:15px; line-height:1.7; max-width:120ch; margin-bottom:14px; }
.about-tags{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 2px; padding:0; }
.about-tags li{
  font-size:12px; color:#EDEDED; padding:6px 10px; border-radius:999px;
  background:#2a2a2a; border:1px solid rgba(255,255,255,0.06);
}
.about-stats{ display:flex; gap:22px; margin:16px 0 6px; }
.stat{ display:flex; flex-direction:column; } .stat__num{ color:#fff; font-weight:900; font-size:28px; }
.stat__label{ color:#A1A1A0; font-size:12px; }
.about-cta{ display:flex; gap:12px; margin-top:10px; }

/* Now / Next mini cards */
.about-now-next{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:16px; }
.mini-card{
  background:#242424; border:1px solid rgba(255,255,255,0.06); border-radius:14px; padding:14px;
  box-shadow:0 8px 26px rgba(0,0,0,.3);
}
.mini-card h4{ color:#fff; font-size:14px; display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.mini-card ul{ margin:0; padding-left:16px; color:#cfcfcf; font-size:13px; line-height:1.6; }

/* ---------- Tabs ---------- */
.about-tabs{ width:80%; max-width:1600px; margin: 8px auto 8px; }
.tabs{ display:flex; gap:8px; border-bottom:1px solid rgba(255,255,255,0.06); }
.tab{
  background:#242424; color:#d9d9d9; border:1px solid rgba(255,255,255,0.06);
  border-bottom:none; padding:10px 14px; border-top-left-radius:10px; border-top-right-radius:10px;
  display:flex; align-items:center; gap:8px; cursor:pointer;
}
.tab.is-active{ color:#fff; background:#2a2a2a; }
.panels{ background:#2a2a2a; border:1px solid rgba(255,255,255,0.06); border-radius:0 12px 12px 12px; padding:16px; }
.panel{ color:#d6d6d6; }
.panel-note{ color:#a9a9a9; font-size:12px; margin-top:10px; }

/* meters */
.meter-list{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.meter-list li{
  display:grid;
  grid-template-columns: minmax(180px,1fr) 260px; /* wider friendly */
  align-items:center; gap:12px;
}

.meter{
  position:relative;
  height:8px;
  border-radius:999px;
  background:#1f1f1f;
  border:1px solid rgba(255,255,255,0.05);
  overflow:hidden;
}
.meter__fill{
  position:absolute; inset:0 0 0 0;
  transform-origin:left;
  transform:scaleX(0);
  background:linear-gradient(90deg,#ff6b4a,#ff9a3c);
  transition:transform 900ms ease;
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .meter__fill{ transition:none; transform:none; }
}

/* Flow list */
.flow-steps{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.flow-steps li{ display:flex; gap:10px; align-items:flex-start; }
.flow-steps iconify-icon{ font-size:18px; margin-top:2px; }

/* Services grid */
.service-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:10px; margin-top:4px; }
.svc-pill{
  background:#242424; border:1px solid rgba(255,255,255,0.06); border-radius:12px; padding:12px;
}
.svc-pill h5{ color:#fff; margin:6px 0 4px; font-size:14px; }
.svc-pill p{ color:#bdbdbd; font-size:13px; }
.svc-cta{ margin-top:12px; display:inline-block; }

/* ---------- Timeline ---------- */
.about-timeline{ width:80%; max-width:1100px; margin: 10px auto; }
.timeline{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.t-item{ border:1px solid rgba(255,255,255,0.06); background:#242424; border-radius:12px; overflow:hidden; }
.t-head{
  width:100%; text-align:left; padding:12px 14px; background:#272727; color:#e9e9e9;
  border:none; display:flex; gap:10px; align-items:center; cursor:pointer;
}
.t-head[aria-expanded="true"]{ background:#2a2a2a; color:#fff; }
.t-body{ padding:12px 14px; color:#cfcfcf; background:#242424; }

/* ---------- Quick facts ---------- */
.about-facts{ width:80%; max-width:1100px; margin: 6px auto 10px; }
.facts-row{ list-style:none; display:flex; gap:14px; flex-wrap:wrap; padding:0; margin:0; }
.facts-row li{
  display:flex; align-items:center; gap:8px;
  background:#242424; color:#d8d8d8; border:1px solid rgba(255,255,255,0.06);
  padding:8px 12px; border-radius:999px; font-size:13px;
}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .about-hero{ width:88%; }
  .about-now-next{ grid-template-columns:1fr; }
  .meter-list li{ grid-template-columns:1fr; }
  .service-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width:600px){
  .service-grid{ grid-template-columns: 1fr; }
}



.footer {
  background: #2a2a2a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 20px 30px;
  text-align: center;
  color: #A1A1A0;
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.2s;
  margin-top: 250px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.footer-text {
  font-size: 0.9rem;
  color: #C9C9C9;
}

.social-links {
  display: flex;
  gap: 25px;
  justify-content: center;
}

/* icons default */
.social-links a img {
  width: 25px;
  height: 25px;
  opacity: 0.7;
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 0 rgba(255,107,74,0));
}

/* cherry-orange glow hover */
.social-links a:hover img {
  opacity: 1;
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 0 10px rgba(255, 125, 80, 0.6))
          drop-shadow(0 0 20px rgba(255, 154, 60, 0.4));
}

/* optional animated glow pulse (like CTA energy) */
.social-links a:hover img {
  animation: footerGlow 1.4s ease-in-out infinite alternate;
}

@keyframes footerGlow {
  0% {
    filter: drop-shadow(0 0 6px rgba(255, 107, 74, 0.4))
            drop-shadow(0 0 12px rgba(255, 154, 60, 0.3));
  }
  100% {
    filter: drop-shadow(0 0 14px rgba(255, 125, 80, 0.7))
            drop-shadow(0 0 26px rgba(255, 154, 60, 0.5));
  }
}

.logofooter img {
  width: 80px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.logofooter img:hover {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(255, 125, 80, 0.6));
}

@media (max-width: 500px) {
  .footer {
    padding: 40px 15px;
  }
  .social-links {
    gap: 18px;
  }
  .social-links a img {
    width: 22px;
    height: 22px;
  }
}








/* Active link */
nav a.active {
  color: #e0e0e0; 
  font-weight: 600;
}

nav a.active::after {
  width: 100%;
  background: #e0e0e0;
}










/*projects page*/

/* =========================
   PROJECTS — Match Contact Theme
   (append at end of style.css)
========================= */

/* Container width aligned with .contact */
.projects.wrap { width:80%; max-width:1600px; margin:120px auto 40px; }
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 videos per line */
  gap: 14px; /* tight spacing like your .contact-cards */
}

@media (max-width: 900px) {
  .projects__grid {
    grid-template-columns: 1fr; /* stack on tablets & phones */
    gap: 12px;
  }
}

/* Header & subcopy (dark page ink scale) */
.projects__head{
  text-align:left; /* you can set to center if you prefer */
  margin-bottom:14px;
}
.projects__title{
  color:#999999;
  font-size:clamp(28px,4vw,44px);
  line-height:1.1;
  letter-spacing:-0.015em;
}
.projects__title .red{ color:#ff6b4a; } /* match your warm accent from contact gradient */
.projects__sub{
  color:#C9C9C9;
  font-size:15px;
  line-height:1.7;
  max-width:70ch;
  margin-top:8px;
}

/* Subtle header underline like .contact-hero::after */
.projects__head{
  position:relative;
  padding-bottom:8px;
}
.projects__head::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px; height:1px;
  background:linear-gradient(90deg,#ff6b4a,#ff9a3c);
  opacity:.7;
}

/* Grid spacing mirrors your card gutters */
.projects__grid{ gap:12px; }
@media (max-width:1024px){ .projects__grid{ gap:12px; } }
@media (max-width:640px){ .projects__grid{ gap:10px; } }

/* Card shell = .c-card DNA */
.p-card{
  background:#242424;
  border:1px solid rgba(255,255,255,0.06);
  border-radius:14px;
  box-shadow:0 8px 26px rgba(0,0,0,.30);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.p-card:hover{
  transform: translateY(-3px);
  box-shadow:0 10px 36px rgba(0,0,0,.38);
  border-color: rgba(255,255,255,.08);
}

/* Media area with hairline divider (like your components) */
.p-card__media{
  position:relative;
  display:block;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#202020;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.p-card__media video{
  width:100%; height:100%; object-fit:cover; display:block;
  filter: contrast(1.02) saturate(1.02) brightness(0.98);
}

/* Scrim lighter to fit dark canvas */
.p-card__scrim{
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.28), rgba(0,0,0,.10) 55%, transparent);
  opacity:.9; pointer-events:none; transition:opacity .25s ease;
}
.p-card:hover .p-card__scrim{ opacity:1; }

/* Badge styled like your .contact-tags chips */
.p-card__badge{
  position:absolute; left:12px; top:12px;
  font-size:12px; color:#EDEDED;
  padding:6px 10px; border-radius:999px;
  background:#2a2a2a; border:1px solid rgba(255,255,255,0.06);
}

/* =========================
   FIX: Rounded corners on full project cards
========================= */

/* Apply radius and hide overflow on the outer card */
.p-card {
  border-radius: 14px;
  overflow: hidden; /* ensures video corners follow the card */
}

/* Remove border radius from inner media to avoid stacking radii */
.p-card__media {
  border-radius: 0;
  overflow: hidden;
}

/* Keep video respecting card rounding */
.p-card__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0; /* relies on .p-card for the rounding now */
}

/* Play glyph: same weight as your pills/ghost buttons */
.p-card__play{
  position:absolute; right:12px; bottom:10px;
  font-size:14px; line-height:1; color:#fff;
  background: rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.15);
  padding:7px 9px; border-radius:10px;
  backdrop-filter: blur(6px);
  opacity:.9; transform: translateY(2px);
  transition: transform .2s ease, opacity .2s ease;
}
.p-card:hover .p-card__play{ transform: translateY(0); opacity:1; }

/* Body text = your card typography scale */
.p-card__body{ padding:14px; }
.p-card__title{
  color:#fff; font-size:16px; font-weight:700; letter-spacing:.2px;
  margin-bottom:6px;
}
.p-card__text{ color:#cfcfcf; font-size:13px; line-height:1.55; }

/* CTA block: mirrors your form/card borders */
.projects__cta{
  margin-top:16px;

  border-radius:16px; padding:16px;

  text-align:center;
}
.projects__cta p{ color:#eaeaea; margin-bottom:10px; }

/* Let your existing .cta-button shine inside */
.projects__cta .cta-button{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color:#fff;
  padding:8px 16px; border-radius:8px;
  letter-spacing:.2px; transition:.25s ease; backdrop-filter: blur(6px);
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}
.projects__cta .cta-button:hover{
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
  box-shadow:0 10px 28px rgba(0,0,0,.45);
}

/* Reveal utility aligned with your .reveal pattern */
.fade-up{ opacity:0; transform: translateY(16px); transition:.5s ease; }
.fade-up.is-visible{ opacity:1; transform: translateY(0); }

.projects__outro {
  text-align: center;
  margin-top: 60px;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.projects__outro h2 {
  color: #fff;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: 0.4px;
  color: #eaeaea;
  opacity: 0.95;
}



/* ---------- Contact ---------- */
.contact{ width:80%; max-width:1600px; margin: 120px auto 40px; }

/* Hero */
.contact-hero{
  position:relative; padding:28px; border-radius:20px; background:#202020;
  border:1px solid rgba(255,255,255,0.06); box-shadow:0 14px 80px rgba(0,0,0,.45);
  background-image:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
  background-size:14px 14px, 100% 100%;
  margin-bottom:14px;
}
.contact-hero::after{
  content:""; position:absolute; left:24px; right:24px; bottom:-1px; height:1px;
  background:linear-gradient(90deg,#ff6b4a,#ff9a3c); opacity:.7;
}
.contact-kicker{
  display:inline-block; font-size:12px; letter-spacing:.18em; text-transform:uppercase;
  color:#BFBFBF; background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08); padding:6px 10px; border-radius:999px; margin-bottom:10px;
}
.contact-hero h1{ color:#fff; font-size:clamp(28px,4vw,44px); line-height:1.1; margin:6px 0 8px; }
.contact-lead{ color:#C9C9C9; font-size:15px; line-height:1.7; max-width:70ch; margin-bottom:12px; }
.contact-tags{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 2px; padding:0; }
.contact-tags li{
  font-size:12px; color:#EDEDED; padding:6px 10px; border-radius:999px;
  background:#2a2a2a; border:1px solid rgba(255,255,255,0.06);
}

/* Cards */
.contact-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin: 10px 0 16px; }
.c-card{
  background:#242424; border:1px solid rgba(255,255,255,0.06); border-radius:14px; padding:14px;
  box-shadow:0 8px 26px rgba(0,0,0,.3);
}
.c-card h3{ color:#fff; font-size:16px; display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.c-card p{ color:#cfcfcf; font-size:13px; margin-bottom:8px; }
.c-inline{ display:flex; gap:8px; align-items:center; }
.c-inline code{
  background:#1f1f1f; color:#eaeaea; padding:6px 10px; border-radius:8px; border:1px solid rgba(255,255,255,.06);
  font-size:13px;
}
.pill-link{
  display:inline-block; padding:6px 10px; border-radius:999px; background:#2a2a2a;
  border:1px solid rgba(255,255,255,.06); color:#eaeaea; text-decoration:none; font-size:13px;
}

/* Form */
.contact-form{
  background:#202020; border:1px solid rgba(255,255,255,0.06); border-radius:16px; padding:16px;
}
.hp{ position:absolute !important; left:-9999px !important; opacity:0 !important; }
.f-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.f-item{ display:flex; flex-direction:column; gap:6px; }
.f-item.full{ grid-column: 1 / -1; }
.f-item span{ color:#d6d6d6; font-size:13px; }
.f-item input, .f-item select, .f-item textarea{
  width:100%; background:#1b1b1b; color:#f0f0f0; border:1px solid rgba(255,255,255,.08);
  border-radius:10px; padding:10px 12px; outline:none;
}
.f-item input:focus, .f-item select:focus, .f-item textarea:focus{
  border-color: rgba(255,255,255,.18); box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}
.f-hint{ text-align:right; color:#9c9c9c; font-size:12px; margin-top:4px; }
.f-check{ display:flex; align-items:center; gap:8px; color:#cfcfcf; font-size:13px; margin-top:10px; }
.f-actions{ display:flex; align-items:center; gap:12px; margin-top:12px; }
.f-note{ color:#a9a9a9; font-size:12px; }

/* Copy button */
.btn-ghost.sm {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
  letter-spacing: 0.2px;
}

.btn-ghost.sm:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

.btn-ghost.sm:active {
  transform: scale(0.97);
  box-shadow: 0 0 4px rgba(255,255,255,0.15);
}

/* Inline layout with email */
.c-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: monospace;
  background: rgba(255,255,255,0.05);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.c-inline code {
  color: #fff;
  font-size: 0.9rem;
  user-select: text;
  overflow-wrap: anywhere;
}

/* Button spinner */
#sendBtn{ position:relative; }
.btn-spinner{
  width:16px; height:16px; border-radius:50%;
  border:2px solid rgba(255,255,255,.25); border-top-color:#fff;
  display:none; margin-left:8px;
}
#sendBtn.loading .btn-label{ opacity:.5; }
#sendBtn.loading .btn-spinner{ display:inline-block; animation: spin .9s linear infinite; }
@keyframes spin{ to{ transform: rotate(360deg); } }

/* Toast */
.f-toast{
  margin-top:12px; padding:10px 12px; border-radius:10px;
  border:1px solid rgba(255,255,255,.08); background:#242424; color:#eaeaea;
}

/* FAQ */
.section-title{
  color:#fff; font-size:18px; font-weight:700; letter-spacing:.4px;
  margin: 24px 0 10px;
}
.contact-faq .faq{ display:grid; gap:8px; }
.q{
  width:100%; text-align:left; padding:12px 14px; background:#272727; color:#e9e9e9;
  border:none; display:flex; gap:10px; align-items:center; cursor:pointer; border-radius:10px;
}
.q[aria-expanded="true"]{ background:#2a2a2a; color:#fff; }
.a{ padding:12px 14px; color:#cfcfcf; background:#242424; border:1px solid rgba(255,255,255,.06); border-radius:10px; }

/* Reveal reuse */
.reveal{ opacity:0; transform: translateY(16px); transition:.5s ease; }
.reveal.show{ opacity:1; transform: translateY(0); }

/* Responsive */
@media (max-width:980px){
  .contact{ width:88%; }
  .contact-cards{ grid-template-columns:1fr; }
  .f-grid{ grid-template-columns: 1fr; }
}

.is-active {
  color: white !important;
  font-weight: 600;
}




/* CTA Button */
.contact-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #ff6b4a, #ff9a3c); /* cherry → orange */
  color: #fff;
  text-decoration: none;
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.35s ease;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(255, 107, 74, 0.3);
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.7s; /* fade after subtitle */
}

/* Hover effect: glow + subtle lift */
.contact-button:hover {
  background: linear-gradient(135deg, #ff805b, #ffb347);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(255, 125, 80, 0.45);
}

@media (max-width:450px) {
    .contact-button {
    display: block !important;         /* force button below subtitle */
    padding: 10px 20px !important;
    font-size: 10px !important;
  }
}


/* Single-card grid helper */
.projects__grid--single {
  max-width: 1100px;
  margin-inline: auto;
}

/* Optional: center the CTA under the section */
.projects__cta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
/* =========================
   Recent Work (Home)
========================= */
.recent-work {

  text-align: center;
  width: 100%;
  margin: 80px 0;
}

.recent-head {
  margin-bottom: 24px;
}

.recent-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.recent-sub {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--muted);
  margin-top: 8px;
}

/* Video section */
.recent-video {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  margin: 40px auto;
  max-height: 70vh;
}

.recent-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
}

/* Subtle dark overlay for contrast */
.recent-video .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

/* Center CTA button */
.recent-cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* Centered section header */
.projects__head--center {
  text-align: center;
  margin-inline: auto;
  max-width: 800px;
}

/* Single project grid layout */
.projects__grid--single {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* Make video full width and cinematic */
.p-card--wide {
  width: 100%;
  max-width: 1200px;
}

.p-card--wide .p-card__media {
  position: relative;
  width: 100%;
  display: block;
  border-radius: 20px;
  overflow: hidden;
}

.p-card--wide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Center the CTA under the section */
.projects__cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.fade-up { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .6s ease; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

.recent {
  margin-top: 380px;   /* Try 180–220px depending on how airy you want it */
}
.grey-rectangle {
  margin-top: 340px;  /* adjust this value — try 100–160px */
}


/* --- FIX: Keep gutters and rounded corners on mobile/tablet --- */
@media (max-width: 1024px) {
  /* Keep comfortable side padding on the whole section */
  .projects.recent {
    padding-inline: clamp(16px, 4vw, 24px);
    margin-top: 140px; /* keep your breathing room */
  }

  /* Center the header and keep readable line-length */
  .projects__head--center {
    text-align: center;
    margin-inline: auto;
    max-width: 800px;
    padding-inline: 0; /* header inherits section gutters */
  }

  /* Keep the single card constrained and centered */
  .projects__grid--single {
    justify-content: center;
    margin-top: 28px;
  }

  /* Card width limited by viewport with gutters preserved */
  .p-card--wide {
    width: 100%;
    max-width: clamp(560px, 92vw, 1000px);
    margin-inline: auto;
  }

  /* Video fills the card, not the entire viewport, with rounded corners */
  .p-card--wide .p-card__media {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
  }

  .p-card--wide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Center the text under the video */
  .p-card--wide .p-card__body {
    text-align: center;
    padding-inline: clamp(12px, 3vw, 24px);
  }

  .projects__cta {
    justify-content: center;
    margin-top: 18px;
  }
}

/* Extra tune for small phones */
@media (max-width: 480px) {
  .p-card--wide {
    max-width: 600px;            /* keeps nice gutters even on tiny screens */
  }
  .p-card--wide .p-card__media {
    border-radius: 14px;
  }
}

/* Checkbox row */
.f-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 24px;
  font-size: 13px;
  line-height: 1.4;
  color: #fff; /* match your form text color */
  cursor: pointer;
  user-select: none;
}

/* the input itself */
.f-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #b75255; /* your accent red */
  flex-shrink: 0;
}

/* optional: if you want lighter label text */
.f-check span {
  color: rgba(255,255,255,0.8);
  font-weight: 400;
}
