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

:root {
  --background: hsl(201, 100%, 13%);
  --foreground: hsl(0, 0%, 100%);
  --muted-foreground: hsl(240, 4%, 66%);
  --primary: hsl(0, 0%, 100%);
  --primary-foreground: hsl(0, 0%, 4%);
  --secondary: hsl(0, 0%, 10%);
  --muted: hsl(0, 0%, 10%);
  --accent: hsl(0, 0%, 10%);
  --border: hsl(0, 0%, 18%);
  --input: hsl(0, 0%, 18%);

  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-card: #0f0f0f;
  --bg-glass: rgba(15, 15, 15, 0.6);
  --accent-1: #ffffff;
  --accent-2: #e0e0e0;
  --accent-3: #a1a1a1;
  --accent-4: #666666;
  --accent-5: #333333;
  --text-primary: #f1f1f1;
  --text-secondary: #a1a1a1;
  --text-muted: #6b6b6b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --glow: 0 0 60px rgba(255, 255, 255, 0.03);
  --glow-strong: 0 0 100px rgba(255, 255, 255, 0.05);

  --font-display: 'Instrument Serif', serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-3); border-radius: 3px; }

/* ========== CURSOR ========== */
.cursor-dot {
  width: 8px; height: 8px; background: var(--primary);
  border-radius: 50%; position: fixed; z-index: 99998;
  pointer-events: none; transition: transform 0.1s ease;
  mix-blend-mode: difference;
}
.cursor-ring {
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%; position: fixed; z-index: 99997;
  pointer-events: none; transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease;
  transform: translate(-50%, -50%);
}
.cursor-ring.hover { width: 60px; height: 60px; border-color: rgba(255,255,255,0.5); }

/* ========== NOISE OVERLAY ========== */
.noise-overlay {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ========== GRID BACKGROUND ========== */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ========== LIQUID GLASS EFFECT ========== */
.liquid-glass {
  background: rgba(255, 255, 255, .01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .1);
  position: relative;
  overflow: hidden;
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, .45) 0%,
    rgba(255, 255, 255, .15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, .15) 80%,
    rgba(255, 255, 255, .45) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ========== ENTRANCE ANIMATIONS ========== */
@keyframes fade-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-rise { animation: fade-rise .8s ease-out both; }
.animate-fade-rise-delay { animation: fade-rise .8s ease-out .2s both; }
.animate-fade-rise-delay-2 { animation: fade-rise .8s ease-out .4s both; }

/* ========== NAVIGATION ========== */
.nav-floating {
  position: fixed; top: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 1000; width: calc(100% - 4rem); max-width: 80rem;
  margin-left: auto; margin-right: auto;
  padding: 0 2rem; padding-top: 1.5rem; padding-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-floating-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem; border-radius: 100px;
  background: rgba(20,20,20,0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: all 0.4s ease;
}

.nav-floating.scrolled .nav-floating-inner {
  background: rgba(10,10,10,0.9);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; z-index: 1001; }
.nav-logo-text {
  font-family: var(--font-display); font-size: 1.875rem; font-weight: 400;
  color: var(--foreground); letter-spacing: -0.02em;
}
.nav-logo-sup { font-size: 0.75rem; position: relative; top: -0.8em; margin-left: 0.1rem; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted-foreground);
  font-size: 0.875rem; font-weight: 500; padding: 0.5rem 1.1rem;
  border-radius: 100px; transition: all 0.3s ease; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--foreground); background: rgba(255,255,255,0.05); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.5rem; border-radius: 100px;
  color: var(--foreground); font-size: 0.875rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-cta:hover { transform: scale(1.05); background: rgba(255,255,255,0.06); }

.mobile-toggle {
  display: none; width: 40px; height: 40px;
  background: none; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; cursor: pointer; color: var(--foreground);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  z-index: 1001;
}
.mobile-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--foreground);
  transition: all 0.3s ease; border-radius: 1px;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(5,5,5,0.95); backdrop-filter: blur(30px);
  flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  text-decoration: none; color: var(--muted-foreground);
  font-size: 1.5rem; font-weight: 500; transition: color 0.3s ease;
  font-family: var(--font-display);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--foreground); }

/* ========== CINEMATIC HERO ========== */
.hero-cinematic {
  position: relative; width: 100%; height: 100vh;
  overflow: hidden; background: #000;
}

.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; filter: grayscale(100%) contrast(1.1);
}

.hero-content-cinematic {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 6rem; padding-top: 9rem; padding-bottom: 9rem;
  min-height: 100vh; color: var(--foreground);
}

.hero-heading {
  font-family: var(--font-display); font-size: 3rem; font-weight: 400;
  line-height: 0.95; letter-spacing: -2.46px; max-width: 80rem; margin-bottom: 0;
}
@media (min-width: 640px) { .hero-heading { font-size: 4.5rem; } }
@media (min-width: 768px) { .hero-heading { font-size: 6rem; } }

.hero-heading em { font-style: normal; color: var(--muted-foreground); }

.hero-subtext {
  color: var(--muted-foreground); font-size: 1rem;
  line-height: 1.625; max-width: 42rem; margin-top: 2rem;
}
@media (min-width: 640px) { .hero-subtext { font-size: 1.125rem; } }

.hero-cta-cinematic {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 3rem; padding: 1.25rem 3.5rem; border-radius: 100px;
  font-size: 1rem; font-weight: 500; color: var(--foreground);
  text-decoration: none; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-cta-cinematic:hover { transform: scale(1.03); background: rgba(255,255,255,0.06); }

/* Inner Page Hero (Smaller, No Video usually) */
.page-hero {
  position: relative; width: 100%; padding-top: 12rem; padding-bottom: 6rem;
  text-align: center; border-bottom: 1px solid var(--border-color);
  background: radial-gradient(circle at top, var(--bg-card) 0%, var(--bg-primary) 100%);
}
.page-hero-title {
  font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400; line-height: 1; letter-spacing: -0.03em; margin-bottom: 1.5rem;
}
.page-hero-desc {
  font-size: 1.125rem; color: var(--text-secondary); line-height: 1.7; max-width: 600px; margin: 0 auto;
}

/* ========== SECTIONS ========== */
.section { position: relative; z-index: 2; padding: 8rem 2rem; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border-radius: 100px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-color);
  color: var(--accent-3); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.25rem;
}
.section-title-gradient {
  background: linear-gradient(135deg, var(--accent-2), var(--accent-4));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-desc { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.7; max-width: 600px; }

.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Shared Content Block (For detailed pages) */
.content-block {
  max-width: 800px; margin: 0 auto; color: var(--text-secondary); line-height: 1.8; font-size: 1.05rem;
}
.content-block h2, .content-block h3 {
  font-family: var(--font-display); color: var(--text-primary); font-weight: 400;
  margin-top: 3rem; margin-bottom: 1rem;
}
.content-block h2 { font-size: 2.5rem; }
.content-block h3 { font-size: 2rem; }
.content-block p { margin-bottom: 1.5rem; }
.content-block ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.content-block li { margin-bottom: 0.5rem; }

/* ========== ABOUT ========== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 4rem; }
.about-visual { position: relative; height: 500px; display: flex; align-items: center; justify-content: center; }
.about-visual-ring {
  position: absolute; border-radius: 50%; border: 1px solid var(--border-color);
  animation: ringRotate 20s linear infinite;
}
.about-visual-ring-1 { width: 350px; height: 350px; }
.about-visual-ring-2 { width: 250px; height: 250px; animation-direction: reverse; animation-duration: 15s; }
.about-visual-ring-3 { width: 150px; height: 150px; animation-duration: 10s; }
@keyframes ringRotate { to { transform: rotate(360deg); } }

.about-visual-center {
  width: 80px; height: 80px; border-radius: 20px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-4));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2rem; font-weight: 400; color: white;
  box-shadow: var(--glow-strong); z-index: 2; position: relative;
}
.about-visual-dot {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 20px rgba(255,255,255,0.1);
}
.about-visual-dot:nth-child(5) { top: 15%; left: 20%; }
.about-visual-dot:nth-child(6) { top: 25%; right: 15%; background: var(--accent-4); box-shadow: 0 0 20px rgba(255,255,255,0.05); }
.about-visual-dot:nth-child(7) { bottom: 20%; left: 10%; background: var(--accent-3); }
.about-visual-dot:nth-child(8) { bottom: 15%; right: 20%; }

.about-content h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; }
.about-content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; font-size: 0.95rem; }
.about-quote {
  padding: 2rem; border-radius: 20px; background: var(--bg-glass); backdrop-filter: blur(20px);
  border: 1px solid var(--border-color); margin-top: 2rem;
}
.about-quote p {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 400;
  font-style: italic; color: var(--text-primary); margin-bottom: 0.5rem;
}
.about-quote span { font-size: 0.85rem; color: var(--accent-3); font-weight: 600; }

.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 5rem;
  padding: 3rem; border-radius: 24px; background: var(--bg-glass); backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-body); font-size: 2.75rem; font-weight: 700;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-suffix { font-size: 1.5rem; font-weight: 600; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.25rem; }

/* ========== SERVICES ========== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4rem; }
.service-card {
  padding: 2.5rem; border-radius: 24px; background: var(--bg-card);
  border: 1px solid var(--border-color); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; overflow: hidden; cursor: default;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  opacity: 0; transition: opacity 0.4s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { transform: translateY(-8px); border-color: var(--border-hover); box-shadow: var(--glow); }
.service-card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.5rem; transition: all 0.4s ease; color: var(--accent-2);
}
.service-card:hover .service-card-icon { background: rgba(255,255,255,0.05); transform: scale(1.1); }
.service-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; margin-bottom: 0.75rem; }
.service-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.service-card-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1.5rem; }
.service-card-list li { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }
.service-card-list li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent-3); flex-shrink: 0; }
.service-card-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent-2); font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: all 0.3s ease;
}
.service-card-cta:hover { color: var(--accent-1); gap: 0.75rem; }

/* Expanded Service Section Detail */
.service-detail-section { margin-top: 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.service-detail-section.reverse { direction: rtl; }
.service-detail-section.reverse > * { direction: ltr; }
.service-detail-image { 
  width: 100%; height: 400px; border-radius: 24px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary)); 
  border: 1px solid var(--border-color); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.service-detail-image .iconify { font-size: 5rem; color: var(--accent-3); opacity: 0.5; }

/* ========== TECH STACK ========== */
.tech-section { background: var(--bg-secondary); }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4rem; }
.tech-category {
  padding: 2rem; border-radius: 20px; background: var(--bg-card);
  border: 1px solid var(--border-color); transition: all 0.4s ease;
}
.tech-category:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.tech-category-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.tech-category-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--accent-2);
}
.tech-category-header h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 400; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-tag {
  padding: 0.35rem 0.85rem; border-radius: 100px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.75rem; color: var(--text-secondary); font-weight: 500; transition: all 0.3s ease;
}
.tech-tag:hover { background: rgba(255,255,255,0.06); color: var(--accent-1); border-color: var(--border-hover); }

/* ========== PORTFOLIO ========== */
.portfolio-filters { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 3rem; margin-bottom: 3rem; }
.portfolio-filter {
  padding: 0.5rem 1.25rem; border-radius: 100px;
  background: transparent; border: 1px solid var(--border-color);
  color: var(--text-secondary); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all 0.3s ease;
}
.portfolio-filter:hover, .portfolio-filter.active { background: rgba(255,255,255,0.05); border-color: var(--accent-3); color: var(--text-primary); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.portfolio-card {
  border-radius: 20px; overflow: hidden; background: var(--bg-card);
  border: 1px solid var(--border-color); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer; position: relative; text-decoration: none; display: block;
}
.portfolio-card:hover { transform: translateY(-8px); border-color: var(--border-hover); box-shadow: var(--glow); }
.portfolio-card-image { height: 220px; position: relative; overflow: hidden; }
.portfolio-card-image-bg {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; transition: transform 0.6s ease; color: var(--accent-3);
}
.portfolio-card:hover .portfolio-card-image-bg { transform: scale(1.1); }
.portfolio-card-image-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--bg-card) 100%); }
.portfolio-card-category {
  position: absolute; top: 1rem; left: 1rem; padding: 0.3rem 0.75rem; border-radius: 100px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.7rem; font-weight: 600; color: var(--accent-2); letter-spacing: 0.1em; text-transform: uppercase;
}
.portfolio-card-body { padding: 1.5rem; }
.portfolio-card-body h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; margin-bottom: 0.5rem; color: var(--text-primary); }
.portfolio-card-body p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
.portfolio-card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--accent-2); font-size: 0.8rem; font-weight: 600;
  text-decoration: none; transition: all 0.3s ease;
}
.portfolio-card:hover .portfolio-card-link { color: var(--accent-1); gap: 0.6rem; }

.portfolio-ai .portfolio-card-image-bg { background: linear-gradient(135deg, #0a0a0a, #050505); }
.portfolio-erp .portfolio-card-image-bg { background: linear-gradient(135deg, #0f0f0f, #050505); }
.portfolio-health .portfolio-card-image-bg { background: linear-gradient(135deg, #080808, #050505); }
.portfolio-ecom .portfolio-card-image-bg { background: linear-gradient(135deg, #0a0a0a, #080808); }
.portfolio-cv .portfolio-card-image-bg { background: linear-gradient(135deg, #060606, #0a0a0a); }
.portfolio-pm .portfolio-card-image-bg { background: linear-gradient(135deg, #080808, #060606); }
.portfolio-custom .portfolio-card-image-bg { background: linear-gradient(135deg, #111, #050505); }

/* ========== BLOG ========== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card {
  border-radius: 20px; overflow: hidden; background: var(--bg-card);
  border: 1px solid var(--border-color); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none; display: block;
}
.blog-card:hover { transform: translateY(-8px); border-color: var(--border-hover); box-shadow: var(--glow); }
.blog-image { height: 200px; position: relative; background: linear-gradient(135deg, #1a1a1a, #0a0a0a); display:flex; align-items:center; justify-content:center; }
.blog-image .iconify { font-size: 3rem; color: var(--accent-4); }
.blog-content { padding: 1.5rem; }
.blog-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.blog-meta span { display: flex; align-items: center; gap: 0.3rem; }
.blog-content h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: var(--text-primary); margin-bottom: 0.5rem; line-height: 1.3; }
.blog-content p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.blog-author { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.blog-author-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #333, #111); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: white; font-family: var(--font-display); }
.blog-author-info h4 { font-size: 0.8rem; color: var(--text-primary); }

.blog-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.blog-featured .blog-image { height: 100%; min-height: 350px; }
.blog-featured .blog-content { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.blog-featured h3 { font-size: 2.25rem; }
.blog-featured p { font-size: 1rem; }

/* Blog Article Detail */
.article-header { padding: 12rem 2rem 4rem; text-align: center; max-width: 900px; margin: 0 auto; position: relative; z-index: 2;}
.article-meta { display: flex; align-items: center; justify-content: center; gap: 1.5rem; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.article-title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 400; line-height: 1.1; margin-bottom: 2rem; color: var(--text-primary); }
.article-author-large { display: inline-flex; align-items: center; gap: 1rem; text-align: left; padding: 0.5rem 1rem; border-radius: 100px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); }
.article-hero-image { max-width: 1000px; height: 500px; margin: 0 auto 4rem; border-radius: 24px; background: linear-gradient(135deg, #151515, #050505); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; }
.article-hero-image .iconify { font-size: 5rem; color: var(--accent-4); }

/* ========== TEAM ========== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 4rem; }
.team-card {
  padding: 2rem; border-radius: 20px; background: var(--bg-card);
  border: 1px solid var(--border-color); text-align: center; transition: all 0.4s ease;
  position: relative; overflow: hidden;
}
.team-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-3), transparent);
  opacity: 0; transition: opacity 0.4s ease;
}
.team-card:hover::after { opacity: 1; }
.team-card:hover { transform: translateY(-6px); border-color: var(--border-hover); }
.team-avatar {
  width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: white;
  position: relative;
}
.team-avatar-1 { background: linear-gradient(135deg, #333, #111); }
.team-avatar-2 { background: linear-gradient(135deg, #444, #222); }
.team-avatar-3 { background: linear-gradient(135deg, #3a3a3a, #1a1a1a); }
.team-avatar-4 { background: linear-gradient(135deg, #555, #333); }
.team-avatar-5 { background: linear-gradient(135deg, #4a4a4a, #2a2a2a); }
.team-avatar-6 { background: linear-gradient(135deg, #666, #444); }
.team-avatar-7 { background: linear-gradient(135deg, #383838, #181818); }

.team-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; margin-bottom: 0.25rem; }
.team-role { font-size: 0.75rem; color: var(--accent-3); font-weight: 500; margin-bottom: 1rem; }
.team-socials { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.team-social {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.85rem; text-decoration: none; transition: all 0.3s ease;
}
.team-social:hover { background: rgba(255,255,255,0.08); color: var(--accent-1); border-color: var(--border-hover); }

/* ========== CONTACT ========== */
.contact-section { background: var(--bg-secondary); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; margin-top: 4rem; }
.contact-info h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; }
.contact-info > p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 2.5rem; }
.contact-methods { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-method {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; border-radius: 16px;
  background: var(--bg-card); border: 1px solid var(--border-color); transition: all 0.3s ease;
}
.contact-method:hover { border-color: var(--border-hover); transform: translateX(4px); }
.contact-method-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; color: var(--accent-2);
}
.contact-method h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; }
.contact-method p, .contact-method a { font-size: 0.8rem; color: var(--text-secondary); text-decoration: none; line-height: 1.5; }
.contact-method a:hover { color: var(--accent-1); }

.contact-socials { display: flex; gap: 0.75rem; margin-top: 2rem; }
.contact-social-link {
  width: 44px; height: 44px; border-radius: 12px; background: var(--bg-card);
  border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1.2rem; text-decoration: none; transition: all 0.3s ease;
}
.contact-social-link:hover { background: rgba(255,255,255,0.05); color: var(--accent-1); border-color: var(--border-hover); transform: translateY(-3px); }

.contact-form { padding: 2.5rem; border-radius: 24px; background: var(--bg-card); border: 1px solid var(--border-color); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; }
.form-group label .required { color: var(--accent-3); }
.form-input {
  width: 100%; padding: 0.85rem 1.1rem; border-radius: 12px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border-color);
  color: var(--text-primary); font-size: 0.9rem; font-family: var(--font-body);
  transition: all 0.3s ease; outline: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--accent-3); box-shadow: 0 0 0 3px rgba(255,255,255,0.03); background: rgba(255,255,255,0.04); }
textarea.form-input { resize: vertical; min-height: 120px; }
select.form-input {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b6b6b' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.form-privacy { font-size: 0.75rem; color: var(--text-muted); margin-top: 1rem; text-align: center; }
.btn-submit {
  display: inline-block; text-align: center;
  width: 100%; padding: 1rem; border-radius: 12px;
  background: var(--accent-1); color: var(--bg-primary);
  font-size: 0.95rem; font-weight: 600; border: none; cursor: pointer; text-decoration: none;
  transition: all 0.4s ease; box-shadow: 0 8px 32px rgba(255,255,255,0.05);
  font-family: var(--font-body);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,255,255,0.1); background: var(--accent-2); }

/* ========== FOOTER ========== */
.footer { position: relative; z-index: 2; padding: 4rem 2rem 2rem; border-top: 1px solid var(--border-color); }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-top: 1rem; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-primary); margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { text-decoration: none; color: var(--text-muted); font-size: 0.85rem; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--accent-1); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2rem; border-top: 1px solid var(--border-color); flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: color 0.3s ease; }
.footer-bottom-links a:hover { color: var(--accent-1); }

/* ========== MARQUEE ========== */
.marquee-section {
  position: relative; z-index: 2; padding: 2rem 0; overflow: hidden;
  border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}
.marquee-track { display: flex; gap: 3rem; animation: marquee 30s linear infinite; width: max-content; }
.marquee-item {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 400;
  color: rgba(255,255,255,0.05); white-space: nowrap;
  display: flex; align-items: center; gap: 1rem;
}
.marquee-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.1); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.4s ease; padding: 2rem;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  max-width: 700px; width: 100%; max-height: 85vh; overflow-y: auto; border-radius: 24px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  padding: 3rem; position: relative; transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem; width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-color);
  color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all 0.3s ease;
}
.modal-close:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.modal-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--text-muted); font-size: 0.85rem; cursor: pointer;
  background: none; border: none; margin-bottom: 1.5rem; transition: color 0.3s ease;
}
.modal-back:hover { color: var(--accent-1); }
.modal-category {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.75rem; border-radius: 100px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.7rem; font-weight: 600; color: var(--accent-3); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.modal h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; margin-bottom: 1rem; line-height: 1.2; }
.modal h2 + p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 2rem; }
.modal-section-title {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent-3); margin-bottom: 1rem; margin-top: 2rem;
}
.modal-features { list-style: none; display: grid; gap: 0.5rem; }
.modal-features li { font-size: 0.9rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0; }
.modal-features li::before { content: '—'; color: var(--accent-3); font-weight: 400; font-size: 0.8rem; margin-right: 0.25rem; }
.modal-techs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.modal-tech {
  padding: 0.3rem 0.75rem; border-radius: 100px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.75rem; color: var(--text-secondary); font-weight: 500;
}
.modal-results {
  padding: 1.5rem; border-radius: 16px; background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color); font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7;
}
.modal-cta {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2rem; padding: 0.85rem 2rem;
  border-radius: 100px; background: var(--accent-1); color: var(--bg-primary);
  font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255,255,255,0.05);
}
.modal-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,255,255,0.1); background: var(--accent-2); }

/* Toast */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 10001; padding: 1rem 1.5rem; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--accent-3); color: var(--text-primary); font-size: 0.9rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3); transform: translateY(20px); opacity: 0; transition: all 0.4s ease;
  display: flex; align-items: center; gap: 0.75rem;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { color: var(--accent-1); font-size: 1.2rem; }

/* ========== TEAM MODAL CLASSES ========== */
.team-modal-header {
  display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color); padding-bottom: 2rem;
}
.team-modal-avatar {
  width: 100px; height: 100px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-family: var(--font-display);
  font-size: 2.5rem; color: white; flex-shrink: 0;
}
.team-modal-title h2 { margin-bottom: 0.25rem; }
.team-modal-title .team-role { color: var(--accent-3); font-weight: 500; font-size: 0.95rem; margin-bottom: 0; }
.team-modal-bio { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 2rem; }
.team-modal-bio p { margin-bottom: 1rem; }
.team-modal-focus {
  color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 2rem;
  background: rgba(255,255,255,0.02); padding: 1rem; border-radius: 12px;
  border: 1px solid var(--border-color);
}
.team-modal-skills { display: grid; gap: 0.75rem; margin-bottom: 2rem; }
.team-modal-skill {
  display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem;
  padding: 0.5rem 1rem; background: rgba(255,255,255,0.02); border-radius: 8px;
}
.team-modal-skill .skill-name { color: var(--text-primary); font-weight: 500; }
.team-modal-skill .skill-level { color: var(--accent-3); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.team-modal-achievements {
  color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 2rem;
  background: rgba(255,255,255,0.01); padding: 1rem; border-radius: 12px; border: 1px solid var(--border-color);
}
.team-modal-achievements p { margin-bottom: 0.75rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .nav-links { display: none; } .nav-cta { display: none; } .mobile-toggle { display: flex; } .mobile-menu { display: flex; }
  .services-grid, .portfolio-grid, .team-grid, .tech-grid, .footer-grid, .blog-grid, .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .blog-featured, .service-detail-section { grid-template-columns: 1fr; }
  .about-visual { height: 300px; }
  .blog-featured .blog-image { min-height: 250px; }
  .service-detail-section { gap: 2rem; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 1.25rem; }
  .page-hero { padding-top: 8rem; padding-bottom: 3rem; }
  .services-grid, .portfolio-grid, .team-grid, .tech-grid, .footer-grid, .blog-grid { grid-template-columns: 1fr; }
  .nav-floating { width: calc(100% - 2rem); top: 1rem; padding: 0; }
  .nav-floating-inner { padding: 0.75rem 1.25rem; }
  .nav-logo-text { font-size: 1.5rem; }
  .service-card, .team-card, .portfolio-card-body, .contact-form, .tech-category { padding: 1.5rem; }
  .blog-featured .blog-content { padding: 1.5rem; }
  .modal { padding: 1.5rem; }
  .modal-overlay { padding: 1rem; }
  .stats-bar { grid-template-columns: 1fr 1fr; padding: 1.5rem; gap: 1rem; }
  .stat-number { font-size: 2rem; }
  .stat-suffix { font-size: 1.2rem; }
}

@media (max-width: 640px) {
  .hero-cinematic { height: 100vh; }
  .hero-content-cinematic { padding: 1.5rem; padding-top: 8rem; padding-bottom: 6rem; }
  .hero-heading { font-size: 2.25rem; letter-spacing: -1.5px; }
  .form-row { grid-template-columns: 1fr; }
  .cursor-dot, .cursor-ring { display: none; }
  .portfolio-filters { gap: 0.35rem; } .portfolio-filter { padding: 0.4rem 0.85rem; font-size: 0.7rem; }
  .article-title { font-size: 2rem; }
  .page-hero-title { font-size: 2.5rem; }
  .team-modal-header { flex-direction: column; text-align: center; gap: 1rem; }
  .team-modal-avatar { width: 80px; height: 80px; font-size: 2rem; }
  .team-card { padding: 1.5rem; }
  .team-avatar { width: 64px; height: 64px; font-size: 1.25rem; margin: 0 auto 1rem; }
}
