/* ==========================================================================
   Z CELL SOLUTIONS - Redesign Modern & Clean CSS Design System
   Supports Dark Mode & Light Mode via [data-theme]
   ========================================================================== */

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

:root,
html[data-theme="dark"] {
  /* Color Palette - Dark Mode (Default) */
  --bg-dark: #090e17;
  --bg-card-dark: #111827;
  --bg-page: #0b111e;
  --bg-alt: #0f172a;
  --bg-light: #0b111e;
  --bg-surface: #111827;
  --bg-surface-hover: #1a2438;
  --bg-header-scrolled: rgba(9, 14, 23, 0.88);
  --bg-floating: rgba(17, 24, 39, 0.92);
  --bg-input: #0b1220;
  --bg-footer: #05080f;

  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --primary-light: rgba(14, 165, 233, 0.14);

  --cyan-accent: #22d3ee;
  --cyan-glow: rgba(6, 182, 212, 0.3);
  --blue-accent: #3b82f6;
  --green-accent: #84cc16;
  --teal-accent: #14b8a6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --text-white: #f8fafc;
  --text-nav: rgba(248, 250, 252, 0.85);
  --text-nav-hover: #ffffff;

  --border-light: rgba(148, 163, 184, 0.16);
  --border-dark: #1e293b;
  --border-header: rgba(255, 255, 255, 0.1);

  --hero-bg: #090e17;
  --hero-overlay: radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.16) 0%, transparent 60%),
                  radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.16) 0%, transparent 50%),
                  linear-gradient(180deg, rgba(9, 14, 23, 0.4) 0%, rgba(9, 14, 23, 0.95) 100%);
  --hero-title-color: #ffffff;
  --hero-title-grad: linear-gradient(135deg, #ffffff 0%, #38bdf8 50%, #22d3ee 100%);
  --hero-desc-color: rgba(248, 250, 252, 0.78);
  --hero-divider: rgba(255, 255, 255, 0.1);
  --stat-grad: linear-gradient(135deg, #ffffff 0%, #22d3ee 100%);

  --calc-bg: linear-gradient(180deg, #090e17 0%, #0d1527 100%);
  --calc-wrapper-bg: rgba(17, 24, 39, 0.78);
  --calc-result-bg: rgba(9, 14, 23, 0.85);
  --calc-chip-bg: rgba(255, 255, 255, 0.05);
  --calc-chip-hover: rgba(255, 255, 255, 0.1);
  --calc-chip-active-bg: rgba(6, 182, 212, 0.16);
  --calc-chip-active-color: #22d3ee;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 30px -5px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 45px -10px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.25);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] {
  /* Color Palette - Light Mode */
  --bg-dark: #f1f5f9;
  --bg-card-dark: #ffffff;
  --bg-page: #f8fafc;
  --bg-alt: #f1f5f9;
  --bg-light: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-header-scrolled: rgba(255, 255, 255, 0.92);
  --bg-floating: rgba(255, 255, 255, 0.94);
  --bg-input: #f8fafc;
  --bg-footer: #f1f5f9;

  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;

  --cyan-accent: #0891b2;
  --cyan-glow: rgba(2, 132, 199, 0.2);
  --blue-accent: #1e40af;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #475569;
  --text-white: #0f172a;
  --text-nav: #334155;
  --text-nav-hover: #0284c7;

  --border-light: #e2e8f0;
  --border-dark: #cbd5e1;
  --border-header: rgba(15, 23, 42, 0.08);

  --hero-bg: #f0f9ff;
  --hero-overlay: radial-gradient(circle at 75% 25%, rgba(6, 182, 212, 0.14) 0%, transparent 55%),
                  radial-gradient(circle at 15% 80%, rgba(2, 132, 199, 0.12) 0%, transparent 50%),
                  linear-gradient(180deg, rgba(248, 250, 252, 0.85) 0%, rgba(241, 245, 249, 0.98) 100%);
  --hero-title-color: #0f172a;
  --hero-title-grad: linear-gradient(135deg, #0f172a 0%, #0284c7 55%, #06b6d4 100%);
  --hero-desc-color: #475569;
  --hero-divider: rgba(15, 23, 42, 0.1);
  --stat-grad: linear-gradient(135deg, #0f172a 0%, #0284c7 100%);

  --calc-bg: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  --calc-wrapper-bg: rgba(255, 255, 255, 0.94);
  --calc-result-bg: #f8fafc;
  --calc-chip-bg: #f1f5f9;
  --calc-chip-hover: #e2e8f0;
  --calc-chip-active-bg: rgba(2, 132, 199, 0.12);
  --calc-chip-active-color: #0284c7;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.18);
}

/* Brand Logo Styling - Clean Transparent PNG Only */
.logo {
  display: inline-flex;
  align-items: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.logo:hover {
  transform: scale(1.03);
  background: transparent;
  box-shadow: none;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Kanit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Common */
.section {
  padding: 6rem 0;
  position: relative;
  background-color: var(--bg-page);
  transition: background-color var(--transition-normal);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.section-badge.badge-dark {
  background: var(--primary-light);
  color: var(--cyan-accent);
  border-color: rgba(6, 182, 212, 0.25);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--cyan-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--cyan-accent) 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: var(--hero-title-color);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}

html[data-theme="light"] .btn-outline-white {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-sm);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

html[data-theme="light"] .btn-outline-white:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition-normal);
}

.header.scrolled {
  padding: 0.75rem 0;
  background: var(--bg-header-scrolled);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-header);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-link {
  color: var(--text-nav);
  font-weight: 500;
  font-size: 0.925rem;
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-nav-hover);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--cyan-accent));
  transition: width var(--transition-fast);
  border-radius: 2px;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-cta {
  padding: 0.7rem 1.35rem;
  font-size: 0.925rem;
}

/* Theme Toggle Button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-header);
  color: var(--text-nav-hover);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

html[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border-light);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
  transform: translateY(-1px);
}

.theme-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
  color: #f59e0b;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-nav-hover);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 8rem;
  padding-bottom: 6rem;
  background-color: var(--hero-bg);
  color: var(--hero-title-color);
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.75;
  pointer-events: none;
}

html[data-theme="light"] .hero-canvas {
  opacity: 0.85;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-overlay);
  z-index: 1;
  transition: background var(--transition-normal);
}

.hero-container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan-accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: pulse-border 3s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(6, 182, 212, 0.3); box-shadow: 0 0 0 rgba(6, 182, 212, 0); }
  50% { border-color: rgba(6, 182, 212, 0.7); box-shadow: 0 0 15px rgba(6, 182, 212, 0.2); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--hero-title-color);
}

.hero-title .gradient-text {
  background: var(--hero-title-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--hero-desc-color);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero Media / Graphic Card */
.hero-media {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid var(--border-light);
  background: var(--bg-card-dark);
}

.hero-image-wrapper img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-image-wrapper:hover img {
  transform: scale(1.04);
}

.hero-floating-card {
  position: absolute;
  bottom: -25px;
  left: -25px;
  background: var(--bg-floating);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}

.floating-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--cyan-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.floating-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.floating-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Stats Counter Bar */
.hero-stats {
  grid-column: 1 / -1;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--hero-divider);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: var(--stat-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* ==========================================================================
   Business Solutions Section
   ========================================================================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.solution-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 165, 233, 0.4);
}

.solution-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.solution-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.solution-card:hover .solution-thumb img {
  transform: scale(1.08);
}

.solution-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(9, 14, 23, 0.78);
  backdrop-filter: blur(8px);
  color: #22d3ee;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.solution-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.solution-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.solution-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.solution-features {
  margin-bottom: 1.75rem;
  margin-top: auto;
}

.solution-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.solution-feature-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.solution-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover {
  color: var(--primary-hover);
  gap: 0.75rem;
}

/* ==========================================================================
   Interactive Solution Finder / Calculator Section
   ========================================================================== */
.calculator-section {
  background: var(--calc-bg);
  color: var(--text-main);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-normal);
}

.calculator-wrapper {
  background: var(--calc-wrapper-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.calculator-form-group {
  margin-bottom: 1.75rem;
}

.calculator-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.calc-chip {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--calc-chip-bg);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  user-select: none;
}

.calc-chip:hover {
  background: var(--calc-chip-hover);
  color: var(--text-main);
}

.calc-chip.active {
  background: var(--calc-chip-active-bg);
  border-color: var(--calc-chip-active-color);
  color: var(--calc-chip-active-color);
  font-weight: 600;
}

.calculator-result-card {
  background: var(--calc-result-bg);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-result-header h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.calc-result-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.calc-specs-list {
  margin: 1.5rem 0;
}

.calc-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.calc-spec-label {
  color: var(--text-muted);
}

.calc-spec-val {
  color: var(--text-main);
  font-weight: 600;
  text-align: right;
}

/* ==========================================================================
   Project References Portfolio Section
   ========================================================================== */
.portfolio-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
}

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

.portfolio-img-box {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.portfolio-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-img-box img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(9, 14, 23, 0.85) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info {
  padding: 1.5rem;
}

.portfolio-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.portfolio-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.portfolio-location {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   About Us & Vision Section
   ========================================================================== */
.about-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  color: var(--text-main);
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillar-card {
  background: var(--bg-page);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.pillar-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.pillar-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Contact & Location Section
   ========================================================================== */
.contact-section {
  background-color: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
}

.contact-card-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.contact-info-list {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-detail h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.contact-detail p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-input);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  height: 100%;
  min-height: 400px;
  background: var(--bg-surface);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
  background-color: var(--bg-footer);
  color: var(--text-muted);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border-light);
  transition: background-color var(--transition-normal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-about p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-email-link {
  color: var(--cyan-accent);
  font-weight: 500;
}

.footer-email-link:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* Modal Popup */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 14, 23, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-close:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
}

.toast {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--cyan-accent);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  animation: slideInRight 0.3s ease forwards;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-media {
    max-width: 540px;
    margin: 0 auto;
  }

  .calculator-wrapper {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-light);
    flex-direction: column;
    padding: 6rem 2rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition-normal);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.open {
    right: 0;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .header-cta {
    display: none;
  }

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

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

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

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