/* ==========================================
   BUILD WITH EUGENE — MAIN STYLESHEET
   ========================================== */

/* ==========================================
   1. CUSTOM PROPERTIES (VARIABLES)
   ========================================== */
:root {
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-blue: #0066FF;
  --color-blue-dark: #0052CC;
  --color-blue-light: rgba(0, 102, 255, 0.1);
  --color-gray-50: #F8F9FA;
  --color-gray-100: #F0F2F5;
  --color-gray-200: #E8EAED;
  --color-gray-600: #5F6368;
  --color-gray-800: #202124;
  --color-dark: #0A0A0A;
  --color-card-dark: #111111;

  --font-family: 'Inter', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --shadow-blue: 0 8px 32px rgba(0,102,255,0.18);

  --transition: 0.3s ease;
  --nav-height: 92px;
}

/* ==========================================
   2. RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray-800);
  background: var(--color-white);
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ==========================================
   3. TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--color-gray-600);
  line-height: 1.75;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: var(--space-sm);
}

/* ==========================================
   4. LAYOUT UTILITIES
   ========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.text-center { text-align: center; }
.text-blue { color: var(--color-blue); }
.text-white { color: var(--color-white); }
.text-gray { color: var(--color-gray-600); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ==========================================
   5. BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}

.btn-primary:hover {
  background: var(--color-blue-dark);
  border-color: var(--color-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}

.btn-secondary {
  background: transparent;
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.btn-secondary:hover {
  background: var(--color-blue-light);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-blue);
  border-color: var(--color-white);
}

.btn-white:hover {
  background: var(--color-gray-100);
  transform: translateY(-1px);
}

/* ==========================================
   6. NAVBAR
   ========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  gap: var(--space-lg);
}

.navbar-logo img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 190px;
  height: auto;
  max-width: none;
  max-height: none;
  transform: translate(-50%, -50%);
}

.navbar-logo {
  position: relative;
  display: block;
  flex: 0 0 190px;
  width: 190px;
  height: 76px;
  overflow: hidden;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-gray-800);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-blue);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-blue);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.hamburger:hover {
  background: var(--color-gray-100);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gray-800);
  border-radius: 2px;
  transition: all 0.35s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: calc(var(--nav-height) + 1px);
  background: var(--color-white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-gray-800);
  transition: color var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--color-blue);
}

.mobile-nav .btn {
  margin-top: var(--space-sm);
  font-size: 1rem;
}

/* Page offset for fixed nav */
.page-content {
  padding-top: var(--nav-height);
}

/* ==========================================
   7. FOOTER
   ========================================== */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .footer-logo {
  width: 190px;
  height: 76px;
  object-fit: cover;
  object-position: center;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-col ul li a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: var(--space-sm);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-blue);
}

.footer-contact-item span,
.footer-contact-item a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  transition: color var(--transition);
}

.footer-contact-item a:hover {
  color: var(--color-blue);
}

.footer-contact-item a:focus-visible {
  color: var(--color-blue);
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: rgba(255,255,255,0.6);
}

.footer-social a:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
  background: var(--color-blue-light);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

/* ==========================================
   8. FLOATING WHATSAPP
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: #111;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

/* ==========================================
   9. HERO SECTIONS
   ========================================== */

/* Homepage Hero */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 1px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0,102,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,102,255,0.06) 0%, transparent 40%),
    linear-gradient(135deg, rgba(0,102,255,0.02) 0%, transparent 50%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: var(--space-2xl);
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(0,102,255,0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, black 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, black 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: none;
  padding: var(--space-2xl) 0;
}

.hero-image-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  justify-self: end;
}

.hero-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: var(--space-md);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-blue);
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: var(--color-black);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero h1 .highlight {
  color: var(--color-blue);
}

.hero-subtext {
  font-size: 1.12rem;
  color: var(--color-gray-600);
  max-width: 580px;
  margin-bottom: var(--space-lg);
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-gray-600);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: scrollBounce 2.4s ease-in-out infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
  color: var(--color-blue);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Page Hero (inner pages) */
.page-hero {
  background: var(--color-dark);
  color: var(--color-white);
  padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(0,102,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-sm);
}

.page-hero-breadcrumb a {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.page-hero-breadcrumb a:hover {
  color: var(--color-blue);
}

.page-hero-breadcrumb span { color: rgba(255,255,255,0.25); }
.page-hero-breadcrumb strong { color: rgba(255,255,255,0.75); }

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.page-hero p {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
}

/* ==========================================
   10. ABOUT PREVIEW (Homepage)
   ========================================== */
.about-preview {
  padding: var(--space-3xl) 0;
  background: var(--color-white);
}

.about-image-wrap {
  position: relative;
}

.about-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.about-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 3px solid var(--color-blue);
  opacity: 0.25;
  z-index: 1;
  pointer-events: none;
}

.about-image-accent {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 3px solid var(--color-blue);
  border-radius: var(--radius-md);
  bottom: -16px;
  right: -16px;
  opacity: 0.6;
  z-index: 0;
}

.about-text-col {
  padding-left: var(--space-lg);
}

.about-text-col h2 {
  margin-bottom: var(--space-md);
  color: var(--color-black);
}

.about-text-col p {
  margin-bottom: var(--space-md);
}

.about-text-col .btn {
  margin-top: var(--space-sm);
}

/* ==========================================
   11. TECH STACK
   ========================================== */
.tech-stack {
  background: var(--color-gray-50);
  padding: var(--space-3xl) 0;
}

.tech-grid {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
}

.tech-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
  min-width: 140px;
}

.tech-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--shadow-md);
  border-color: var(--color-blue);
}

.tech-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.tech-card span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-gray-800);
}

/* ==========================================
   12. SERVICES
   ========================================== */
.services-dark {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-3xl) 0;
}

.services-dark .section-header h2 {
  color: var(--color-white);
}

.services-dark .section-header p {
  color: rgba(255,255,255,0.55);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.service-card {
  background: var(--color-card-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  border-top: 3px solid var(--color-blue);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-blue);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,102,255,0.18);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--color-blue-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  border: 1px solid rgba(0,102,255,0.2);
}

.service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-blue);
}

.service-card h3 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  font-size: 1.15rem;
}

.service-card p {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  line-height: 1.7;
}

.services-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ==========================================
   13. PROJECTS SHOWCASE (Sticky Scroll)
   ========================================== */
.projects-showcase {
  padding: var(--space-3xl) 0;
  background: var(--color-white);
}

.projects-showcase .section-header {
  margin-bottom: var(--space-2xl);
}

.projects-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.projects-list {
  display: flex;
  flex-direction: column;
}

.project-item {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-gray-200);
  opacity: 0.4;
  transition: opacity 0.4s ease;
  cursor: default;
}

.project-item:first-child {
  border-top: 1px solid var(--color-gray-200);
}

.project-item.active {
  opacity: 1;
}

.project-number {
  order: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-blue);
  display: block;
  margin-bottom: var(--space-xs);
}

.project-item h3 {
  order: 1;
  color: var(--color-black);
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.project-category {
  order: 2;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-blue);
  margin-bottom: var(--space-sm);
  display: block;
}

.project-desc {
  order: 3;
  color: var(--color-gray-600);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.project-link {
  order: 4;
  align-self: flex-start;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}

.project-link:hover {
  gap: 0.7rem;
}

.projects-display {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

/* Browser window mockup */
.browser-frame {
  background: var(--color-gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-200);
}

.browser-bar {
  background: #E8EAED;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #D0D3D8;
}

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.browser-dot.red { background: #FF5F57; }
.browser-dot.yellow { background: #FFBD2E; }
.browser-dot.green { background: #28CA41; }

.browser-url {
  flex: 1;
  background: var(--color-white);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 0.76rem;
  color: var(--color-gray-600);
  border: 1px solid var(--color-gray-200);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-content {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--color-gray-200);
  overflow: hidden;
}

.project-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-video.active {
  opacity: 1;
}

.project-video-slot:empty {
  display: none;
}

.projects-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ==========================================
   14. GRAPHIC DESIGN GALLERY
   ========================================== */
.graphic-design {
  padding: var(--space-3xl) 0;
  background: var(--color-gray-50);
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.design-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
}

.design-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.design-item:hover img {
  transform: scale(1.04);
}

.design-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.design-item:hover .design-overlay {
  background: rgba(0,0,0,0.45);
}

.design-overlay svg {
  color: var(--color-white);
  width: 36px;
  height: 36px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.design-item:hover .design-overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: var(--space-lg);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: min(90vw, 600px);
  max-height: 88vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* ==========================================
   15. CTA SECTIONS
   ========================================== */
.cta-section {
  background: var(--color-blue);
  color: var(--color-white);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  font-size: 1.05rem;
}

/* ==========================================
   16. ABOUT PAGE
   ========================================== */
.about-bio {
  padding: var(--space-3xl) 0;
}

.about-bio-image {
  position: relative;
}

.about-bio-image .image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.about-bio-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
  border: 3px solid rgba(0,102,255,0.15);
}

.about-text h2 {
  margin-bottom: var(--space-md);
}

.about-text p {
  margin-bottom: var(--space-md);
}

/* Values Cards */
.values-section {
  background: var(--color-gray-50);
  padding: var(--space-3xl) 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.value-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-blue);
}

.value-icon {
  width: 56px;
  height: 56px;
  background: var(--color-blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  border: 2px solid rgba(0,102,255,0.15);
}

.value-icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-blue);
}

.value-card h3 {
  font-size: 1.05rem;
  color: var(--color-black);
  margin-bottom: var(--space-sm);
}

.value-card p {
  font-size: 0.88rem;
  color: var(--color-gray-600);
}

/* ==========================================
   17. SERVICES PAGE
   ========================================== */
.services-detailed {
  padding: var(--space-3xl) 0;
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block.reverse {
  direction: rtl;
}

.service-block.reverse > * {
  direction: ltr;
}

.service-block-visual {
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-gray-200);
  position: relative;
  overflow: hidden;
}

.service-block-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-blue);
}

.service-block-icon {
  width: 80px;
  height: 80px;
  background: var(--color-blue-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-block-icon svg {
  width: 42px;
  height: 42px;
  color: var(--color-blue);
}

.service-block-content .section-label {
  display: block;
  margin-bottom: 0.5rem;
}

.service-block-content h2 {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
}

.service-block-content p {
  margin-bottom: var(--space-sm);
}

.service-detail-list {
  margin: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-gray-600);
}

.service-detail-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--color-blue);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

/* Process section */
.process-section {
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-3xl) 0;
}

.process-section .section-header h2 {
  color: var(--color-white);
}

.process-section .section-header p {
  color: rgba(255,255,255,0.55);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue), rgba(0,102,255,0.2));
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-num {
  width: 64px;
  height: 64px;
  background: var(--color-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  margin: 0 auto var(--space-md);
  border: 4px solid rgba(0,102,255,0.2);
  position: relative;
  z-index: 1;
}

.process-step h3 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

/* ==========================================
   18. PROJECTS PAGE
   ========================================== */
.projects-cards {
  padding: var(--space-3xl) 0;
}

.project-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.project-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card-video {
  position: relative;
  width: 100%;
  background: var(--color-gray-800);
  overflow: hidden;
}

.project-card-video .browser-bar {
  position: relative;
  z-index: 1;
}

.project-card-video .browser-content {
  aspect-ratio: 16/10.5;
}

.project-card-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.project-card-body {
  padding: var(--space-md);
}

.project-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
  background: var(--color-blue-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.project-card-body h3 {
  font-size: 1.2rem;
  color: var(--color-black);
  margin-bottom: 0.5rem;
}

.project-card-body p {
  font-size: 0.88rem;
  color: var(--color-gray-600);
  margin-bottom: var(--space-md);
  line-height: 1.65;
}

/* Disclaimer banner */
.disclaimer-banner {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-left: 4px solid var(--color-blue);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.disclaimer-banner svg {
  width: 20px;
  height: 20px;
  color: var(--color-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.disclaimer-banner p {
  font-size: 0.88rem;
  color: var(--color-gray-600);
  margin: 0;
}

/* ==========================================
   19. CONTACT PAGE
   ========================================== */
.contact-section {
  padding: var(--space-3xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: var(--space-2xl);
  align-items: start;
  justify-content: center;
  max-width: 760px;
  margin-inline: auto;
}

.contact-info-card {
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.contact-info-card h3 {
  color: var(--color-white);
  font-size: 1.35rem;
  margin-bottom: var(--space-sm);
}

.contact-info-card > p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.contact-detail:last-of-type {
  border-bottom: none;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--color-blue-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0,102,255,0.2);
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-blue);
}

.contact-detail-text {
  flex: 1;
}

.contact-detail-text label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2px;
}

.contact-detail-text span,
.contact-detail-text a {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  word-break: break-all;
}

.contact-detail-text a:hover {
  color: var(--color-blue);
}

/* FAQ Section */
.faq-section {
  background: var(--color-gray-50);
  padding: var(--space-3xl) 0;
}

.faq-list {
  max-width: 720px;
  margin: var(--space-2xl) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: var(--color-blue);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gray-800);
  transition: color var(--transition);
}

.faq-item.open .faq-question {
  color: var(--color-blue);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--color-gray-600);
  transition: all var(--transition);
}

.faq-item.open .faq-toggle {
  background: var(--color-blue);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 var(--space-lg) var(--space-md);
  font-size: 0.9rem;
  color: var(--color-gray-600);
  line-height: 1.75;
}

/* Location note */
.location-note {
  text-align: center;
  padding: var(--space-lg) 0;
  color: var(--color-gray-600);
  font-size: 0.9rem;
}

.location-note svg {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  color: var(--color-blue);
}

/* ==========================================
   20. ANIMATIONS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: none; }

/* ==========================================
   21. SCROLL REVEALS (handled by JS)
   ========================================== */

/* ==========================================
   22. RESPONSIVE — TABLET (≤1024px)
   ========================================== */
@media (max-width: 1024px) {
  :root {
    --nav-height: 82px;
  }

  .navbar-logo {
    flex-basis: 165px;
    width: 165px;
    height: 66px;
  }

  .navbar-logo img {
    width: 165px;
  }

  .footer-brand .footer-logo {
    width: 165px;
    height: 66px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-layout {
    grid-template-columns: 1fr;
  }

  .projects-display {
    position: relative;
    top: auto;
  }

  .project-item {
    opacity: 1;
  }

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

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

  .process-steps::before {
    display: none;
  }

  .service-block {
    grid-template-columns: 1fr;
  }

  .service-block.reverse {
    direction: ltr;
  }

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

  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================
   23. RESPONSIVE — MOBILE (≤768px)
   ========================================== */
@media (max-width: 768px) {
  :root {
    --nav-height: 74px;
  }

  .navbar-logo {
    flex-basis: 145px;
    width: 145px;
    height: 58px;
  }

  .navbar-logo img {
    width: 145px;
  }

  .footer-brand .footer-logo {
    width: 145px;
    height: 58px;
  }

  .nav-links,
  .navbar > .btn-primary {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

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

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

  .about-text-col {
    padding-left: 0;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
    padding-bottom: var(--space-3xl);
  }

  .hero-image-wrap {
    max-width: 420px;
    justify-self: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .tech-grid {
    gap: var(--space-sm);
  }

  .tech-card {
    min-width: 110px;
    padding: var(--space-sm);
  }

  .project-cards-grid {
    grid-template-columns: 1fr;
  }

  .projects-layout--inline .projects-display {
    display: none;
  }

  .projects-layout--inline .project-item {
    opacity: 1;
    cursor: default;
  }

  .projects-layout--inline .project-video-slot {
    order: 0;
  }

  .projects-layout--inline .project-item h3 {
    order: 1;
  }

  .projects-layout--inline .project-desc {
    order: 2;
  }

  .projects-layout--inline .project-number {
    order: 3;
  }

  .projects-layout--inline .project-category {
    order: 4;
  }

  .projects-layout--inline .project-link {
    order: 5;
  }

  .projects-layout--inline .project-video-slot {
    margin-bottom: var(--space-md);
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background: var(--color-gray-800);
    box-shadow: var(--shadow-md);
  }

  .projects-layout--inline .project-video-slot .project-video {
    position: static;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 1;
    transition: none;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .project-card-body {
    display: flex;
    flex-direction: column;
  }

  .project-card-body h3 {
    order: 1;
  }

  .project-card-body p {
    order: 2;
  }

  .project-card-body .project-badge {
    order: 3;
    align-self: flex-start;
  }

  .project-card-body .btn {
    order: 4;
    align-self: flex-start;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
}

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

  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-scroll {
    animation: none;
  }
}
