/* =========================================================================
   HIGH-IMPACT CREATIVE AGENCY THEME
   ========================================================================= */

:root {
  --bg-deep: #050508;
  --bg-glass: rgba(18, 18, 24, 0.4);
  --bg-darker: #020202;

  --accent: #ff5500;
  --accent-glow: #ff8c00;
  --accent-secondary: #ff0055;

  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;

  --border-glass: rgba(255, 255, 255, 0.05);
  --shadow-neon: 0 10px 40px rgba(255, 85, 0, 0.25);

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --nav-height: 100px;
}

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

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Dynamic 3D Orbs Background */
.dynamic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  animation: floatOrb 20s infinite ease-in-out alternate;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-secondary);
  bottom: 10vh;
  right: -5vw;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: #4a00e0;
  top: 40vh;
  left: 40vw;
  filter: blur(150px);
  opacity: 0.3;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(100px, 100px) scale(1.2);
  }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  border: none;
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-glow {
  box-shadow: var(--shadow-neon);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent));
  z-index: -1;
  transition: opacity 0.4s;
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 50px rgba(255, 85, 0, 0.5);
}

.btn i {
  margin-left: 10px;
}

.w-100 {
  width: 100%;
}

/* Glass Elements */
.floating-glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.glow-box {
  position: relative;
}

.glow-box::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(to bottom right, var(--accent), transparent, transparent);
  z-index: -1;
  opacity: 0.5;
}

/* NAVBAR */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background-color 0.4s, box-shadow 0.4s;
  background: transparent;
}

#navbar.scrolled {
  background-color: var(--bg-deep);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--border-glass);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.brand-logo {
  height: 70px;
  max-width: 250px;
  object-fit: contain;
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2000;
  width: 50px;
  height: 50px;
}

.menu-toggle .line {
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: 0.4s;
}

.menu-toggle .line-1 {
  width: 40px;
}

.menu-toggle .line-2 {
  width: 25px;
}

.menu-toggle .line-3 {
  width: 40px;
}

.menu-toggle.active .line-1 {
  transform: translateY(11px) rotate(45deg);
  width: 40px;
  background: var(--accent);
}

.menu-toggle.active .line-2 {
  opacity: 0;
  transform: translateX(20px);
}

.menu-toggle.active .line-3 {
  transform: translateY(-11px) rotate(-45deg);
  width: 40px;
  background: var(--accent);
}

/* FULL SCREEN OVERLAY */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-darker);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  /* Wipe down */
}

.close-menu {
  position: absolute;
  top: 40px;
  right: 5%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 2100;
  transition: 0.3s;
}

.close-menu:hover {
  color: var(--accent);
  transform: scale(1.1) rotate(90deg);
}

.nav-overlay-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 100px;
  align-items: center;
  padding-top: 50px;
}

.nav-overlay-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.overlay-link {
  font-family: var(--font-display);
  font-size: 4vw;
  /* Reduced from 5.5vw to avoid crowding the right panel */
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  line-height: 0.95;
  display: inline-block;
  position: relative;
  letter-spacing: -2px;
}

/* When hovering anywhere on the UL, subtly fade unhovered links */
.nav-overlay-links:hover .overlay-link {
  color: rgba(255, 255, 255, 0.4);
}

/* BUT for the specifically hovered link: cancel fade, turn neon and slide */
.nav-overlay-links .overlay-link:hover {
  transform: translateX(40px) skewX(-5deg);
  /* Lando Norris slant */
  text-shadow: 0 0 30px rgba(151, 55, 7, 0.28);
}

/* ROLLING WAVE EFFECT */
.roll-word {
  display: inline-flex;
  overflow: hidden;
  vertical-align: top;
}

.roll-char {
  position: relative;
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1), color 0.4s;
}

.roll-char::after {
  content: attr(data-char);
  position: absolute;
  left: 0;
  top: 100%;
  color: var(--accent);
  /* The new word color sliding from bottom */
}

.roll-trigger:hover .roll-char {
  transform: translateY(-100%);
  color: rgba(255, 255, 255, 0);
  /* Make original word transparent so shadow applies cleanly to accent */
}

/* Right Panel Info Blocks */
.nav-overlay-right {
  position: relative;
  border-left: 2px solid var(--accent);
  padding-left: 40px;
  height: 350px;
  display: flex;
  align-items: center;
}

.info-block {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-30%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: calc(100% - 40px);
}

.info-block.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
}

.info-block p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 400px;
}

.link-secondary {
  font-size: 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.link-secondary:hover {
  color: #fff;
  gap: 15px;
}

.overlay-iso {
  width: 110px;
  height: auto;
  margin-bottom: 5px;
}

.info-title {
  color: var(--accent);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.info-link {
  font-size: 1.5rem;
}

.info-socials {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.info-socials a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.info-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* SECTIONS GLOBAL */
.section {
  padding: 180px 0;
}

.section-skewed {
  position: relative;
}

.section-dark-skewed {
  position: relative;
  background: var(--bg-darker);
  clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
  padding: 250px 0;
  margin: -5vw 0;
}

.section-tag {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}

.section-title {
  /* Fluid sizing: scales with viewport, capped at 4.5rem on desktop, min 1.7rem on tiny screens */
  font-size: clamp(1.7rem, 5.5vw, 4.5rem);
  margin-bottom: 30px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.section-title strong {
  color: var(--accent);
}

.neon-text {
  background: linear-gradient(to right, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* HERO SLIDER */
.heroSwiper {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.heroSwiper .hero-inner {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
  padding-top: var(--nav-height);
}

.hero-content {
  max-width: 800px;
}

.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  /* Zoom effect space */
  transition: transform 6s ease-out;
}

.swiper-slide-active .slide-bg img {
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-title {
  /* Fluid: caps at 6vw on desktop, never smaller than 2rem on tiny phones */
  font-size: clamp(2rem, 6vw, 5.5rem);
  margin-bottom: 25px;
  letter-spacing: -2px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.hero-desc {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.6;
}

/* Swiper Controls */
.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
  width: 12px;
  height: 12px;
  transition: 0.3s;
}

.swiper-pagination-bullet-active {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.5);
}

.swiper-pagination {
  bottom: 40px !important;
  text-align: left;
  padding-left: 5%;
}

.hero-nav-arrows {
  position: absolute;
  bottom: 30px;
  right: 5%;
  z-index: 20;
  display: flex;
  gap: 15px;
}

.hero-nav-arrows .swiper-button-prev,
.hero-nav-arrows .swiper-button-next {
  position: static;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  margin-top: 0;
  transition: 0.3s;
  backdrop-filter: blur(5px);
}

.hero-nav-arrows .swiper-button-prev::after,
.hero-nav-arrows .swiper-button-next::after {
  font-size: 1.2rem;
  font-weight: bold;
}

.hero-nav-arrows .swiper-button-prev:hover,
.hero-nav-arrows .swiper-button-next:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.05);
}

/* TECH MARQUEE (Angled) */
.tech-bar {
  padding: 40px 0;
  background: var(--accent);
  transform: rotate(-2deg) scale(1.05);
  overflow: hidden;
  z-index: 10;
  position: relative;
  box-shadow: var(--shadow-neon);
}

.marquee-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 80px;
  align-items: center;
  animation: marquee 20s linear infinite;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #000;
  font-size: 2.5rem;
}

.tech-item span {
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 40px));
  }
}

/* ABOUT */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.about-img-frame {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.about-img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: 0.5s;
}

.about-img-frame:hover .about-img {
  filter: grayscale(0%);
}

.exp-badge {
  position: absolute;
  bottom: 40px;
  right: 40px;
  background: var(--accent);
  color: #fff;
  padding: 30px;
  border-radius: 50%;
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: var(--shadow-neon);
}

.exp-badge strong {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 5px;
}

.about-lead {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 30px;
  letter-spacing: -1px;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.about-stats-grid {
  display: flex;
  gap: 60px;
}

.astat .stat-num {
  font-size: 4.5rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.astat span {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  font-weight: 700;
}

/* BENEFITS (Asymmetry) */
.benefits-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.bento-box {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
  transition: 0.4s;
  display: flex;
  flex-direction: column;
}

.bento-box:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
}

.bg-large {
  grid-row: span 2;
}

.bg-wide {
  grid-column: span 2;
}

.bg-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border: none;
}

.text-dark {
  color: #fff !important;
}

.b-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 30px;
}

.bento-box h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.bento-box p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  flex-grow: 1;
}

.bento-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 100%;
}

.bento-flex .b-icon {
  font-size: 4rem;
  margin-bottom: 0;
}

/* CONTACT */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.contact-lead {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 40px;
}

.ci-item {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.ci-item i {
  color: var(--accent);
  font-size: 1.5rem;
}

.contact-form-wrap {
  padding: 50px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-glass);
  padding: 18px 25px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.1rem;
  border-radius: 12px;
  transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 15px rgba(255, 85, 0, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

/* FOOTER */
#footer {
  padding: 100px 0;
  border-top: 1px solid var(--border-glass);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 30px;
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-weight: 500;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-socials {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-socials a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: 0.3s;
}

.footer-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

/* WHATSAPP FLOAT */
.wa-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wa-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
  color: #fff;
}

/* ══ PORTAFOLIO (Lando Norris Aesthetic) ══ */
.portfolio-section {
  padding: 150px 0;
}

.portfolio-container {
  max-width: 1500px;
  width: 92%;
  margin: 0 auto;
}

/* Wider container */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
  padding-bottom: 80px;
}

/* Asymmetrical Staggering for 4 columns */
.lc-card-shadow-wrapper:nth-child(4n+2) {
  transform: translateY(40px);
}

.lc-card-shadow-wrapper:nth-child(4n+3) {
  transform: translateY(80px);
}

.lc-card-shadow-wrapper:nth-child(4n+4) {
  transform: translateY(20px);
}

/* The Glowing Hook */
.lc-card-shadow-wrapper {
  display: block;
  position: relative;
  text-decoration: none;
  filter: drop-shadow(0 0 1px var(--accent));
  transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lc-card-shadow-wrapper:hover {
  filter: drop-shadow(0 0 20px var(--accent));
  z-index: 10;
}

/* preserve staggering on hover */
.lc-card-shadow-wrapper:hover {
  transform: translateY(-5px);
}

.lc-card-shadow-wrapper:nth-child(4n+2):hover {
  transform: translateY(35px);
}

.lc-card-shadow-wrapper:nth-child(4n+3):hover {
  transform: translateY(75px);
}

.lc-card-shadow-wrapper:nth-child(4n+4):hover {
  transform: translateY(15px);
}

/* The Clean Premium Card Wrapper */
.lc-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--bg-deep);
  overflow: hidden;
  border-radius: 16px;
  /* Smooth square corners */
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Slight crisp edge */
}

/* Image Inside (Fallback) */
.lc-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: grayscale(90%) contrast(1.1);
}

.lc-card-shadow-wrapper:hover .lc-card-img {
  filter: grayscale(0%) contrast(1.2);
  transform: scale(1.05);
}

/* Auto-Scrolling Website Interaction */
.lc-blur-bg {
  position: absolute;
  inset: -20px;
  /* Bleed slightly so the edges aren't sharp from the blur */
  background-size: cover !important;
  background-position: center !important;
  filter: blur(20px) brightness(0.4) saturate(1.5);
  /* Deep thematic glow */
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0;
}

.lc-card-shadow-wrapper:hover .lc-blur-bg {
  transform: scale(1.1);
}

/* Floating Mac Window Mockup */
.mac-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  aspect-ratio: 16/11;
  /* Classic desktop proportion */
  background: #1e1e23;
  border-radius: 8px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.6s ease;
}

.mac-header {
  height: 22px;
  background: rgba(30, 30, 35, 0.95);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.mac-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.mac-dot:nth-child(1) {
  background: #ff5f56;
}

.mac-dot:nth-child(2) {
  background: #ffbd2e;
}

.mac-dot:nth-child(3) {
  background: #27c93f;
}

.lc-page-screenshot {
  flex: 1;
  /* Fills the rest of the mac window */
  width: 100%;
  background-size: 100% auto !important;
  /* Perfect desktop scaling width */
  background-position: top center !important;
  background-repeat: no-repeat !important;
  transition: background-position 6s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
  background-color: #0b0b10;
}

.lc-card-shadow-wrapper:hover .mac-window {
  transform: translate(-50%, -52%) scale(1.05);
  box-shadow: 0 35px 60px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.lc-card-shadow-wrapper:hover .lc-page-screenshot {
  background-position: bottom center !important;
}

/* Content Overlay - Adding back a subtle bottom gradient for text legibility against white screenshots */
.lc-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 25%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  padding-bottom: 40px;
  /* space slightly above notch line */
}

.lc-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Floating Glassmorphism Category Badge */
.lc-notch-label {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lc-card-shadow-wrapper:hover .lc-notch-label {
  border-color: rgba(255, 85, 0, 0.4);
  /* Subtle accent rim */
  color: var(--accent);
  box-shadow: 0 8px 25px rgba(255, 85, 0, 0.2);
  transform: translate(-50%, -5px);
}

/* =========================================================================
   RESPONSIVE — Mobile Optimization
   ========================================================================= */

/* === TABLET (≤ 1024px) === */
@media (max-width: 1024px) {
  :root {
    --nav-height: 80px;
  }

  .container {
    padding: 0 6%;
  }

  .section {
    padding: 120px 0;
  }

  .section-title {
    font-size: 3.5rem;
  }

  .hero-inner,
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-visual {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .benefits-bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bg-large {
    grid-row: span 1;
  }

  .nav-overlay-inner {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
    padding-top: 80px;
  }

  .overlay-link {
    font-size: 3rem;
  }

  .nav-overlay-right {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid var(--accent);
    padding-top: 30px;
    height: auto;
    min-height: 240px;
    justify-content: center;
  }

  .info-block {
    align-items: center;
    text-align: center;
    left: 0;
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

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

  /* Reset 4-column stagger and apply 2-column stagger */
  .lc-card-shadow-wrapper:nth-child(4n+2),
  .lc-card-shadow-wrapper:nth-child(4n+3),
  .lc-card-shadow-wrapper:nth-child(4n+4) {
    transform: translateY(0);
  }
  .lc-card-shadow-wrapper:nth-child(2n+2) {
    transform: translateY(40px);
  }
  .lc-card-shadow-wrapper:nth-child(4n+2):hover,
  .lc-card-shadow-wrapper:nth-child(4n+3):hover,
  .lc-card-shadow-wrapper:nth-child(4n+4):hover {
    transform: translateY(-5px);
  }
  .lc-card-shadow-wrapper:nth-child(2n+2):hover {
    transform: translateY(35px);
  }
}

/* === MOBILE (≤ 768px) === */
@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }

  /* Lighter background orbs for mobile GPU */
  .orb-1 { width: 300px; height: 300px; filter: blur(80px); top: -80px; left: -80px; }
  .orb-2 { width: 250px; height: 250px; filter: blur(80px); }
  .orb-3 { width: 200px; height: 200px; filter: blur(90px); }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 24px;
  }

  .section-tag {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }

  /* Buttons */
  .btn {
    padding: 14px 28px;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
  }

  .btn-primary:hover {
    transform: none;
  }

  /* Navbar */
  .brand-logo {
    height: 50px;
    max-width: 180px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    gap: 6px;
  }

  .menu-toggle .line-1,
  .menu-toggle .line-3 {
    width: 30px;
  }

  .menu-toggle .line-2 {
    width: 20px;
  }

  .menu-toggle.active .line-1 {
    transform: translateY(9px) rotate(45deg);
    width: 30px;
  }

  .menu-toggle.active .line-3 {
    transform: translateY(-9px) rotate(-45deg);
    width: 30px;
  }

  /* Nav overlay */
  .close-menu {
    top: 22px;
    right: 20px;
    font-size: 1.9rem;
  }

  .nav-overlay-inner {
    padding-top: 70px;
    gap: 30px;
  }

  .nav-overlay-links {
    gap: 8px;
  }

  .overlay-link {
    font-size: 2.2rem;
    letter-spacing: -1px;
  }

  /* Disable hover-slant on touch */
  .nav-overlay-links .overlay-link:hover {
    transform: none;
  }

  .nav-overlay-right {
    min-height: 220px;
  }

  .info-block p {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .info-link {
    font-size: 1.05rem;
  }

  .overlay-iso {
    width: 64px;
    margin-bottom: 4px;
  }

  .info-title {
    font-size: 0.85rem;
  }

  .info-socials {
    justify-content: center;
  }

  .info-socials a {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  /* Hero */
  .heroSwiper {
    height: 100vh;
    min-height: 560px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-tag {
    font-size: 0.75rem !important;
    letter-spacing: 1.5px;
  }

  .hero-title {
    font-size: 2.6rem;
    letter-spacing: -1px;
    line-height: 1.05;
    margin-bottom: 18px;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.5;
  }

  .hero-actions .btn {
    padding: 14px 26px;
    font-size: 0.8rem;
  }

  .slide-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.65) 55%, rgba(0, 0, 0, 0.35) 100%);
  }

  .swiper-pagination {
    bottom: 20px !important;
    text-align: center;
    padding-left: 0;
  }

  /* Hide redundant arrows on touch — pagination + swipe is enough */
  .hero-nav-arrows {
    display: none;
  }

  /* Tech bar — drop scale(1.05) which was causing ~9px horizontal overflow */
  .tech-bar {
    padding: 22px 0;
    transform: rotate(-2deg);
  }

  .marquee-track {
    gap: 40px;
    animation-duration: 15s;
  }

  .tech-item {
    font-size: 1.5rem;
    gap: 10px;
  }

  /* About */
  .about-inner {
    gap: 50px;
  }

  .about-visual {
    position: relative;
  }

  .about-img-frame {
    aspect-ratio: 1.1;
  }

  .about-lead {
    font-size: 1.4rem;
    margin-bottom: 18px;
  }

  .about-content p {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .about-stats-grid {
    gap: 40px;
    flex-wrap: wrap;
  }

  .astat .stat-num {
    font-size: 3rem;
  }

  .astat span {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
  }

  .exp-badge {
    bottom: 16px;
    right: 16px;
    width: 90px;
    height: 90px;
    padding: 12px;
    font-size: 0.85rem;
  }

  .exp-badge strong {
    font-size: 1.6rem;
  }

  /* Benefits */
  .section-dark-skewed {
    padding: 100px 0;
    clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
    margin: -3vw 0;
  }

  .benefits-bento-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 36px;
  }

  .bento-box {
    padding: 28px;
  }

  .bento-box:hover {
    transform: none;
  }

  .b-icon {
    font-size: 2rem;
    margin-bottom: 18px;
  }

  .bento-box h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .bento-box p {
    font-size: 0.95rem;
  }

  .bg-wide {
    grid-column: span 1;
  }

  .bento-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .bento-flex .b-icon {
    font-size: 2.5rem;
    margin-bottom: 0;
  }

  /* Portfolio */
  .portfolio-section {
    padding: 80px 0;
  }

  .portfolio-container {
    width: 100%;
    padding: 0 20px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 40px;
    padding-bottom: 30px;
  }

  /* Reset ALL stagger transforms aggressively (defensive against caching/specificity) */
  .lc-card-shadow-wrapper,
  .lc-card-shadow-wrapper:nth-child(n) {
    transform: translateY(0) !important;
    min-width: 0;            /* Prevent grid blowout */
    width: 100%;
  }

  /* Disable expensive hover transforms on touch */
  .lc-card-shadow-wrapper:hover,
  .lc-card-shadow-wrapper:nth-child(n):hover {
    transform: translateY(0) !important;
    filter: drop-shadow(0 0 1px var(--accent));
  }

  /* MOBILE PORTFOLIO CARD
     Keep the original "floating mac-window with blurred halo" design,
     but use a more square aspect ratio so the mac dominates without
     huge empty space, and make the mac-window itself larger. */
  .lc-card {
    aspect-ratio: 5/4;           /* Slightly landscape — mac fills more of the card */
    border-radius: 14px;
  }

  .mac-window {
    width: 88%;
    aspect-ratio: 16/10.5;       /* Slightly more landscape than 16/11 — fills better */
    border-radius: 6px;
  }

  /* Cancel hover transforms on touch */
  .lc-card-shadow-wrapper:hover .mac-window {
    transform: translate(-50%, -50%);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  }

  .lc-card-shadow-wrapper:hover .lc-blur-bg {
    transform: none;
  }

  .lc-card-shadow-wrapper:hover .lc-page-screenshot {
    background-position: top center !important;
  }

  .mac-header {
    height: 20px;
    padding: 0 10px;
    gap: 5px;
  }

  .mac-dot {
    width: 8px;
    height: 8px;
  }

  /* Notch label — guard against text overflow on narrow cards */
  .lc-notch-label {
    bottom: 16px;
    padding: 7px 16px;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    max-width: calc(100% - 32px);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Contact */
  .contact-inner {
    gap: 40px;
  }

  .contact-lead {
    font-size: 1.1rem;
    margin-bottom: 28px;
  }

  .ci-item {
    font-size: 1rem;
    gap: 14px;
    margin-bottom: 14px;
  }

  .ci-item i {
    font-size: 1.2rem;
  }

  .contact-form-wrap {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group {
    margin-bottom: 16px;
  }

  /* font-size: 16px prevents auto-zoom on iOS focus */
  .form-group input,
  .form-group textarea {
    padding: 14px 18px;
    font-size: 16px;
    border-radius: 10px;
  }

  /* Footer */
  #footer {
    padding: 60px 0 40px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand p {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .footer-logo img {
    height: 40px;
    margin-bottom: 18px;
  }

  .footer-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .footer-col ul li {
    margin-bottom: 10px;
  }

  .footer-socials a {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  /* WhatsApp float */
  .wa-float {
    width: 52px;
    height: 52px;
    font-size: 1.7rem;
    bottom: 18px;
    left: 18px;
  }

  .wa-float:hover {
    transform: none;
  }
}

/* === SMALL PHONES (≤ 480px) === */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .heroSwiper .hero-inner{
    height: 75vh;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 2.05rem;
  }

  .hero-title {
    font-size: 3.15rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .overlay-link {
    font-size: 1.85rem;
  }

  .btn {
    padding: 13px 22px;
    font-size: 0.78rem;
    letter-spacing: 1px;
  }

  .tech-item {
    font-size: 1.2rem;
  }

  .marquee-track {
    gap: 30px;
  }

  .about-lead {
    font-size: 1.2rem;
  }

  .astat .stat-num {
    font-size: 2.4rem;
  }

  .exp-badge {
    width: 78px;
    height: 78px;
    font-size: 0.72rem;
    bottom: 12px;
    right: 12px;
  }

  .exp-badge strong {
    font-size: 1.35rem;
  }

  .bento-box {
    padding: 22px;
  }

  .bento-box h3 {
    font-size: 1.25rem;
  }

  .contact-form-wrap {
    padding: 22px 16px;
  }

  .swiper-pagination {
    bottom: 14px !important;
  }
}

/* === TOUCH DEVICES — disable expensive hover effects === */
@media (hover: none) {
  .lc-card-shadow-wrapper:hover {
    filter: drop-shadow(0 0 1px var(--accent));
  }

  .lc-card-shadow-wrapper:hover .lc-blur-bg {
    transform: none;
  }

  .lc-card-shadow-wrapper:hover .mac-window {
    transform: translate(-50%, -50%);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  }

  .lc-card-shadow-wrapper:hover .lc-page-screenshot {
    background-position: top center !important;
  }

  .lc-card-shadow-wrapper:hover .lc-notch-label {
    transform: translateX(-50%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  }

  .nav-overlay-links:hover .overlay-link {
    color: #fff;
  }

  .about-img-frame:hover .about-img {
    filter: grayscale(100%);
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .orb {
    animation: none;
  }

  .marquee-track {
    animation: none;
  }
}

/* FOOTER WAVE TEXT FIXES */
.footer-col ul li a {
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 1px;
}

.footer-col {
  overflow: hidden;
  /* sometimes hover wave needs clean bounds */
}