@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #050508;
  --surface: #0e0f17;
  --surface-hover: #161724;
  --surface-light: #1b1d2e;
  --line: rgba(255, 255, 255, 0.08);
  --line-hover: rgba(255, 255, 255, 0.18);
  
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.3);
  --secondary: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.3);
  --accent: #d946ef;
  
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --text-light: #6b7280;
  
  --text-hover: #ffffff;
  --text-heading: #ffffff;
  --header-bg: rgba(5, 5, 8, 0.75);
  --header-border: rgba(255, 255, 255, 0.06);
  --grid-bg-line: rgba(255, 255, 255, 0.015);
  --switcher-active-bg: #ffffff;
  --switcher-active-color: #050508;
  
  --green: #10b981;
  --red: #f43f5e;
  --amber: #f59e0b;
  
  --radius: 12px;
  --radius-lg: 20px;
  
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px -10px rgba(139, 92, 246, 0.2);
}

[data-theme="light"] {
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-hover: #f3f4f6;
  --surface-light: #e5e7eb;
  --line: rgba(0, 0, 0, 0.08);
  --line-hover: rgba(0, 0, 0, 0.16);
  
  --text: #1f2937;
  --text-muted: #4b5563;
  --text-light: #9ca3af;
  
  --text-hover: #000000;
  --text-heading: #111827;
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-border: rgba(0, 0, 0, 0.08);
  --grid-bg-line: rgba(0, 0, 0, 0.02);
  --switcher-active-bg: #111827;
  --switcher-active-color: #ffffff;
  
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 40px -10px rgba(139, 92, 246, 0.05);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Typography Setup */
h1, h2, h3, h4, .brand, .section-kicker {
  font-family: 'Outfit', sans-serif;
}

/* Button & UI Inputs Reset */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.button.primary {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4), var(--primary-glow);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6), 0 0 15px var(--secondary);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-hover);
  transform: translateY(-2px);
}

.button.danger {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.2);
  color: var(--red);
}

.button.danger:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: var(--red);
  transform: translateY(-2px);
}

/* Navigation Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px clamp(24px, 6vw, 80px);
  color: rgba(255, 255, 255, 0.9);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle {
  display: none;
}

.site-header[data-elevated="true"] {
  padding: 16px clamp(24px, 6vw, 80px);
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
  position: relative;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0));
  z-index: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
}

.nav-links a:not(.nav-whatsapp)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 250ms ease;
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--text-hover);
}

.nav-links a:not(.nav-whatsapp):hover::after {
  width: 100%;
}

/* Theme Toggle Button Style */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 200ms ease;
  width: 40px;
  height: 40px;
}

.theme-toggle:hover {
  color: var(--text-hover);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.theme-toggle .sun-icon {
  display: block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.theme-toggle .moon-icon {
  display: none;
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: block;
}

.language-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 30px;
  gap: 2px;
}

[data-theme="light"] .language-switcher {
  background: rgba(0, 0, 0, 0.03);
}

.language-switcher button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 200ms ease;
}

.language-switcher button.is-active {
  background: var(--switcher-active-bg);
  color: var(--switcher-active-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-links .nav-whatsapp {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  padding: 11px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 250ms ease;
}

.nav-links .nav-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.nav-links .nav-whatsapp:hover {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  background: var(--bg);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: 
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

/* Grid overlay background effect */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--grid-bg-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-bg-line) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
  animation: fadeInDown 800ms ease;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  margin: 0 0 24px 0;
  animation: fadeInUp 800ms ease;
}

.hero-copy {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.6;
  margin: 0 0 40px 0;
  animation: fadeInUp 1000ms ease;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 1200ms ease;
}

/* Sections General */
.section {
  position: relative;
  padding: 100px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 50px;
}

.section-kicker {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin: 0;
  line-height: 1.15;
}

/* Intro Band */
.intro-band {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.intro-grid p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-photo {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(5,5,8,0.4));
}

.about-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  transition: transform 500ms ease;
}

.about-photo:hover img {
  transform: scale(1.05);
}

.about-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 20px;
}

/* Stats Section */
.stats-section {
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
}

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

.stat-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: all 300ms ease;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 300ms ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--line-hover);
  background: var(--surface-hover);
  box-shadow: var(--shadow);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-item strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--text-heading) 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Projects Section (Selected Work) */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
}

.project-card.is-hidden {
  display: none !important;
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  transition: transform 500ms ease;
}

.project-body {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-type {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 0.1em;
  margin: 0 0 10px 0;
}

.project-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 12px 0;
  line-height: 1.25;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 20px 0;
}

/* Case Study Items inside project card */
.case-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 24px 0;
  background: var(--surface-hover);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.case-list div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  font-size: 0.85rem;
}

.case-list dt {
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-list dd {
  margin: 0;
  color: var(--text-muted);
}

/* Tag Lists */
.tag-list {
  list-style: none;
  padding: 0;
  margin: auto 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 30px;
  transition: all 200ms ease;
}

/* Hover effects for project card */
a.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}

a.project-card:hover img {
  transform: scale(1.03);
}

a.project-card:hover .tag-list li {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.1);
  color: var(--text);
}

/* Services Section */
.services-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 300ms ease;
  display: flex;
  flex-direction: column;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary);
  border-radius: var(--radius);
  margin-bottom: 24px;
  transition: all 300ms ease;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 12px 0;
}

.service-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.service-item:hover {
  transform: translateY(-5px);
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.1);
}

.service-item:hover .service-icon {
  background: var(--primary);
  color: #ffffff;
  transform: rotate(5deg) scale(1.05);
}

/* Testimonials Section */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  transition: all 300ms ease;
}

.testimonial-card p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 24px 0;
  font-style: italic;
}

.testimonial-card footer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.testimonial-card strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
}

.testimonial-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-hover);
  box-shadow: var(--shadow-glow);
}

/* Contact Section */
.contact-section {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  background: radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 60px;
  box-shadow: var(--shadow);
}

.contact-grid p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-actions .button {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

.contact-actions .whatsapp-button {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.contact-actions .whatsapp-button:hover {
  background: #059669;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer span:first-child {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-heading);
}

/* ==========================================================================
   CMS Admin Dashboard Section 
   ========================================================================== */

.admin-page {
  background: #030305;
}

.admin-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 100px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.admin-header h1 {
  margin: 0 0 8px 0;
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.admin-header-actions {
  display: flex;
  gap: 12px;
}

.admin-form {
  display: grid;
  gap: 24px;
}

/* CMS Forms Styles */
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

input[type="text"],
input[type="password"],
textarea,
select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: #ffffff;
  font-size: 0.95rem;
  transition: all 200ms ease;
  width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

select option {
  background: var(--surface-light);
  color: #ffffff;
}

/* Cards (CMS Panels) */
.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 20px;
  box-shadow: var(--shadow);
  max-width: 480px;
  margin: 60px auto 0;
}

.login-logo-header {
  text-align: center;
  margin-bottom: 8px;
}

.login-logo {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 16px;
  filter: drop-shadow(0 8px 16px rgba(139, 92, 246, 0.25));
}

.login-logo-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.login-logo-header .section-kicker {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 700;
}

.login-card form {
  display: grid;
  gap: 20px;
}

.login-card .button[type="submit"] {
  margin-top: 10px;
  padding: 14px;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: block;
  transition: all 300ms ease;
  overflow: hidden;
}

/* Accordion Trigger Styles */
.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  outline: none;
  transition: background 200ms ease;
}

.accordion-trigger:hover {
  background: rgba(255, 255, 255, 0.015);
}

.accordion-trigger h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-muted);
  border-left: 3px solid transparent;
  padding-left: 12px;
  transition: all 300ms ease;
}

.accordion-trigger .chevron-icon {
  width: 20px;
  height: 20px;
  color: var(--text-light);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.card-content {
  padding: 0 32px 32px 32px;
  border-top: 1px solid var(--line);
  display: none;
  grid-template-columns: 1fr;
  gap: 20px;
  animation: slideDown 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Open Accordion States */
.admin-card.is-open {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.admin-card.is-open .accordion-trigger h2 {
  color: #ffffff;
  border-left-color: var(--primary);
}

.admin-card.is-open .accordion-trigger .chevron-icon {
  transform: rotate(-180deg);
  color: var(--primary);
}

.admin-card.is-open .card-content {
  display: grid;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Password field visibility toggle */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms ease;
}

.password-toggle:hover {
  color: #ffffff;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Eye off icon shows when state is visible */
.password-toggle .icon-eye-off {
  display: none;
}

.password-field input[type="text"] + .password-toggle .icon-eye {
  display: none;
}

.password-field input[type="text"] + .password-toggle .icon-eye-off {
  display: block;
}

/* Project editor nested cards */
.admin-section-header,
.project-editor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-editor-list {
  display: grid;
  gap: 20px;
}

.project-editor {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.01);
  padding: 24px;
  transition: border-color 200ms ease;
}

.project-editor:hover {
  border-color: var(--line-hover);
}

.project-editor-preview {
  overflow: hidden;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-light);
  aspect-ratio: 4 / 3;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.project-editor-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  padding: 10px;
}

.project-editor-fields {
  display: grid;
  gap: 16px;
}

.project-editor-top h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.field-grid {
  display: grid;
  gap: 16px;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-field {
  cursor: pointer;
}

.upload-field input[type="file"] {
  display: block;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--line);
  padding: 16px;
  margin-top: 4px;
  border-radius: var(--radius);
  text-align: center;
  transition: all 200ms ease;
}

.upload-field input[type="file"]:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.03);
}

.empty-state {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
}

.admin-card textarea {
  font-family: 'Inter', sans-serif;
  resize: vertical;
}

.admin-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Sticky Action Bar at the bottom of Admin Page */
.admin-actions {
  position: sticky;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(14, 15, 23, 0.85);
  padding: 16px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.admin-actions-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

#cms-status,
#login-status {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
}

#cms-status[data-error="true"],
#login-status[data-error="true"] {
  color: var(--red);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
  .project-grid,
  .service-grid,
  .stats-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .about-grid,
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-photo {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 20px 24px;
  }
  
  .site-header[data-elevated="true"] {
    padding: 12px 24px;
  }

  .brand span:last-child {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text-heading);
    cursor: pointer;
    transition: all 200ms ease;
    z-index: 110;
  }

  [data-theme="light"] .menu-toggle {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-heading);
  }

  .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line-hover);
  }

  [data-theme="light"] .menu-toggle:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--line-hover);
  }

  .menu-toggle.is-active .line-mid {
    opacity: 0;
  }

  .menu-toggle.is-active .line-top {
    transform: translateY(6px) rotate(45deg);
    transform-origin: center;
  }

  .menu-toggle.is-active .line-bot {
    transform: translateY(-6px) rotate(-45deg);
    transform-origin: center;
  }

  .menu-toggle svg {
    width: 22px;
    height: 22px;
  }

  .menu-toggle svg line {
    transition: transform 300ms ease, opacity 300ms ease;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 30px 24px;
    z-index: 95;
    
    /* Collapsed State */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }

  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  }

  .nav-links.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }

  [data-theme="light"] .nav-links.is-active {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  }

  .nav-links a {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 0;
    width: 100%;
    text-align: center;
  }

  .nav-links .theme-toggle {
    margin: 8px auto;
    align-self: center;
  }

  .nav-links .language-switcher {
    justify-content: center;
    margin: 8px auto;
    width: fit-content;
  }

  .nav-links .nav-whatsapp {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    margin-top: 8px;
  }

  .hero {
    min-height: 80vh;
    padding-top: 100px;
  }

  .project-grid,
  .service-grid,
  .stats-grid,
  .testimonial-grid,
  .project-editor,
  .field-grid.two,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    padding: 30px;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .admin-header-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
