/* Base & Theme Variables */
:root {
  --bg: #0b0b0c;
  --bg-soft: #121214;
  --bg-card: #141519;
  --text: #f7f7f8;
  --text-secondary: #e0e1e6;
  --muted: #c9cad1;
  --muted-dark: #8b8d98;
  --accent: #94f3d2;
  --accent-2: #5ae0b5;
  --accent-hover: #7ce6c1;
  --border: #27282d;
  --border-light: #32333a;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.5);
  --transition: all 0.3s ease;
}

/* Light Theme */
body.light-theme {
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --bg-card: #ffffff;
  --text: #1a1b1e;
  --text-secondary: #2c2d30;
  --muted: #5a5c66;
  --muted-dark: #787a85;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-hover: #3b82f6;
  --border: #e5e7eb;
  --border-light: #d1d5db;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.15);
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}
html { 
  scroll-behavior: smooth;
  overflow-x: hidden;
}
html, body { height: 100%; }
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { 
  max-width: 100%; 
  display: block; 
  height: auto;
  will-change: transform;
}
a { 
  color: inherit; 
  text-decoration: none; 
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
button { 
  cursor: pointer; 
  font-family: inherit;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,11,12,0.6);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

body.light-theme .site-header {
  background: rgba(255,255,255,0.8);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.3px; }
.brand-logo { height: 32px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); transition: transform 0.3s ease; }
.brand-logo:hover { transform: scale(1.05); }
.brand-text { display: none; }

.site-nav { display: flex; gap: 8px; align-items: center; position: relative; }
.site-nav a { 
  color: var(--muted); 
  padding: 10px 16px; 
  border-radius: 10px; 
  transition: color .2s ease, background .2s ease; 
  position: relative; 
  font-weight: 500;
  font-size: 15px;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); background: var(--bg-card); }
.site-nav .cta { 
  color: var(--bg); 
  background: var(--accent); 
  font-weight: 600; 
  margin-left: 8px;
}
.site-nav .cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.site-nav .cta.active { background: var(--accent-2); }

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-left: 8px;
}
.theme-toggle:hover { background: var(--bg-soft); transform: translateY(-1px); }
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
body.light-theme .theme-toggle .sun-icon { display: block; }
body.light-theme .theme-toggle .moon-icon { display: none; }

.nav-toggle { 
  display: none; 
  background: transparent; 
  border: 0; 
  width: 40px; 
  height: 40px; 
  border-radius: 10px; 
  position: relative; 
}
.nav-toggle .bar, .nav-toggle .bar::before, .nav-toggle .bar::after { 
  content: ''; 
  position: absolute; 
  left: 8px; 
  right: 8px; 
  height: 2px; 
  background: var(--text); 
  transition: transform .25s ease, opacity .25s ease, top .25s ease; 
}
.nav-toggle .bar { top: 19px; }
.nav-toggle .bar::before { top: -8px; }
.nav-toggle .bar::after { top: 8px; }
.nav-toggle.active .bar { opacity: 0; }
.nav-toggle.active .bar::before { transform: rotate(45deg); top: 0; }
.nav-toggle.active .bar::after { transform: rotate(-45deg); top: 0; }

/* Hero */
.hero { 
  position: relative; 
  min-height: 90vh; 
  border-bottom: 1px solid var(--border); 
  overflow: hidden;
  will-change: transform;
}
.hero-media { 
  position: absolute; 
  inset: 0; 
  overflow: hidden;
  transform: translateZ(0);
}
.hero-video { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  filter: contrast(1.05) saturate(1.05) brightness(.88);
  transform: translateZ(0);
  will-change: transform;
}
.hero::after { 
  content: ''; 
  position: absolute; 
  inset: 0; 
  background: radial-gradient(80% 60% at 50% 30%, transparent, rgba(11,11,12,.65) 60%, rgba(11,11,12,.92)); 
  pointer-events: none;
}
.hero-overlay { 
  position: relative; 
  z-index: 1; 
  display: grid; 
  place-items: center; 
  text-align: center; 
  padding: 18vh 20px 14vh; 
  min-height: 90vh;
}
.hero-glass {
  width: min(980px, 94vw);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  padding: clamp(24px, 4vw, 40px) clamp(20px, 5vw, 48px);
  animation: fadeInUp 0.8s ease-out;
}
.hero h1 { 
  font-size: clamp(36px, 8vw, 72px); 
  margin: 0 0 12px; 
  letter-spacing: -0.5px; 
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .tagline { 
  color: #eaf7f3; 
  margin: 10px 0 8px; 
  font-size: clamp(16px, 2.8vw, 24px); 
  font-weight: 600; 
  letter-spacing: 0.3px;
}
.hero p { color: var(--muted); margin: 8px 0; font-size: clamp(15px, 2.4vw, 19px); }
.hero .region { color: #cfeae3; }
.hero-actions { display: flex; gap: 14px; margin-top: 24px; justify-content: center; flex-wrap: wrap; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  padding: 12px 24px; 
  border-radius: 12px; 
  border: 1px solid var(--border); 
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease; 
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: rgba(255,255,255,0.08); color: var(--text); border-color: rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--bg-card); border-color: var(--border-light); }
.btn-large { padding: 14px 32px; font-size: 16px; }

/* Sections */
.section { 
  padding: 80px 0; 
  border-bottom: 1px solid var(--border); 
  background: var(--bg);
}
.section.alt { background: var(--bg-soft); }
.section h2 { 
  margin: 0 0 24px; 
  font-size: clamp(28px, 5vw, 42px); 
  font-weight: 700;
  letter-spacing: -0.5px;
}
.section h3 { font-size: clamp(20px, 3.5vw, 28px); margin-bottom: 16px; font-weight: 600; }
.section-intro { 
  font-size: 18px; 
  color: var(--muted); 
  max-width: 800px; 
  margin: -8px auto 40px; 
  text-align: center; 
}
.section-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 32px; 
  flex-wrap: wrap;
  gap: 16px;
}

/* Page Header */
.page-header {
  padding: 100px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: clamp(36px, 7vw, 56px);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.page-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Services Overview (Homepage) */
.services-overview { padding: 100px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px var(--shadow-lg);
  border-color: var(--accent);
}
.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { color: var(--bg); }
.service-card h3 { margin-bottom: 16px; font-size: 24px; }
.service-features { list-style: none; padding: 0; margin: 20px 0; flex-grow: 1; text-align: left; width: 100%; }
.service-features li { padding: 8px 0; padding-left: 24px; position: relative; color: var(--muted); }
.service-features li::before { 
  content: '✓'; 
  position: absolute; 
  left: 0; 
  color: var(--accent); 
  font-weight: 700; 
}
.service-card .btn { margin-top: 20px; width: 100%; }

.cta-section { 
  text-align: center; 
  margin-top: 60px; 
  padding: 40px; 
  background: var(--bg-card); 
  border-radius: 20px; 
  border: 1px solid var(--border);
}
.cta-section h3 { font-size: 28px; margin-bottom: 12px; }
.cta-section p { color: var(--muted); margin-bottom: 24px; font-size: 17px; }

/* Portfolio Preview (Homepage) */
.portfolio-preview { padding: 100px 0; background: var(--bg-soft); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.portfolio-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  will-change: transform;
}
.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-lg);
}
.portfolio-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-soft);
}
.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { color: #fff; margin: 0; font-size: 20px; }
.portfolio-cat { color: var(--accent); font-size: 14px; margin: 4px 0 0; }
.portfolio-info {
  padding: 20px;
}
.portfolio-info h3 { font-size: 20px; margin-bottom: 8px; }
.portfolio-info p { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.portfolio-tags span {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--muted);
}
.portfolio-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
}
.portfolio-link:hover { color: var(--accent-hover); }

/* Why Me Section */
.why-me { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.feature-item {
  text-align: center;
  padding: 32px 20px;
}
.feature-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.3;
}
.feature-item h3 { font-size: 22px; margin-bottom: 12px; }
.feature-item p { color: var(--muted); font-size: 15px; }

/* Service Detail Pages */
.service-detail { padding: 80px 0; }
.service-detail-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}
.service-icon-large {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.service-icon-large svg { color: var(--bg); }
.service-intro {
  font-size: 20px;
  color: var(--muted);
  margin-top: 16px;
}

.service-content { max-width: 1000px; margin: 0 auto; }
.service-features-detailed { margin-bottom: 60px; }
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.feature-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.feature-block h4 { font-size: 18px; margin-bottom: 10px; color: var(--accent); }
.feature-block p { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* Pricing */
.pricing-section { margin-top: 60px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px var(--shadow-lg);
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 20px var(--shadow);
}
.pricing-card .badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: var(--bg);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.pricing-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.pricing-header h4 { font-size: 22px; margin-bottom: 12px; }
.price {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.pricing-features li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  color: var(--muted);
  font-size: 15px;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.pricing-card .btn { width: 100%; }
.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 24px;
}

/* Tech Stack */
.tech-stack { margin: 60px 0; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.tech-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.tech-item:hover {
  border-color: var(--accent);
  background: var(--bg-soft);
  transform: translateY(-2px);
}

/* Portfolio Page */
.portfolio-filter-section { padding: 40px 0 20px; background: var(--bg-soft); }
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 24px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.portfolio-section { padding: 60px 0 100px; background: var(--bg-soft); }
.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.web-preview, .bot-preview {
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.web-mockup {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 280px;
}
.mockup-header {
  background: #f3f4f6;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mockup-dots {
  display: flex;
  gap: 4px;
}
.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
}
.mockup-url {
  background: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 10px;
  color: #6b7280;
  flex: 1;
}
.mockup-content {
  background: #fff;
  padding: 32px 24px;
  text-align: center;
  color: #1f2937;
}
.mockup-content h2 { font-size: 20px; margin-bottom: 8px; color: #111827; }
.mockup-content p { font-size: 13px; color: #6b7280; }

.bot-mockup {
  text-align: center;
  color: #fff;
}
.bot-mockup svg { margin: 0 auto 16px; opacity: 0.9; }
.bot-mockup h3 { font-size: 20px; color: #fff; }

/* About Page */
.about-intro { padding: 80px 0; }
.two-col-about {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: center;
}
.about-image img {
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px var(--shadow);
}
.about-text h2 { margin-bottom: 20px; }
.about-text p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.8;
}

.skills-section { padding: 100px 0; background: var(--bg-soft); }
.skills-categories {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}
.skill-category h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 24px;
}
.skill-category svg { color: var(--accent); }
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-tags span {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}
.skill-tags span:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.timeline-section { padding: 100px 0; }
.timeline {
  max-width: 800px;
  margin: 48px auto 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}
.timeline-marker {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  z-index: 1;
}
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.timeline-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--accent);
}
.timeline-content p {
  color: var(--muted);
  line-height: 1.7;
}

.stats-section { padding: 80px 0; background: var(--bg-card); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.stat-item {
  text-align: center;
  padding: 24px;
}
.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.stat-label {
  color: var(--muted);
  font-size: 16px;
}

/* Contact Page */
.contact-section { padding: 80px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--muted); font-size: 16px; margin-bottom: 32px; }

.contact-methods { margin: 32px 0; }
.contact-method {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-method:last-child { border-bottom: none; }
.method-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.method-icon svg { color: var(--accent); }
.contact-method h4 { font-size: 16px; margin-bottom: 6px; }
.contact-method a { color: var(--accent); font-weight: 500; }
.contact-method a:hover { color: var(--accent-hover); }
.contact-method p { color: var(--muted); font-size: 15px; line-height: 1.6; }

.social-contact { margin-top: 40px; }
.social-contact h4 { margin-bottom: 16px; }
.social-links-large {
  display: flex;
  gap: 12px;
}
.social-links-large a {
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-links-large a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.social-links-large a:hover svg { color: var(--bg); }

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}
.contact-form .form-group {
  margin-bottom: 20px;
}
.contact-form label {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font: inherit;
  font-size: 15px;
  transition: var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted-dark);
}
.contact-form .btn { width: 100%; margin-top: 8px; }
.form-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
}

.map-section { padding: 80px 0; background: var(--bg-soft); }
.map-section h2 { text-align: center; margin-bottom: 12px; }
.map-section > .container > p {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* CTA Large */
.cta-section-large {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-soft), var(--bg-card));
}
.cta-section-large h2 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 16px; }
.cta-section-large p { color: var(--muted); font-size: 18px; margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer { 
  padding: calc(60px + env(safe-area-inset-bottom, 0px)) 0 20px; 
  background: var(--bg-card); 
  border-top: 1px solid var(--border); 
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { height: 48px; width: auto; margin-bottom: 16px; }
.footer-tagline { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.social-links {
  display: flex;
  gap: 10px;
}
.social-links a {
  width: 40px;
  height: 40px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.social-links a:hover svg { color: var(--bg); }

.footer-links h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text);
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { color: var(--muted); font-size: 14px; margin: 0; }
.back-to-top {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.back-to-top:hover { color: var(--accent); }

/* Lightbox */
.lightbox { 
  position: fixed; 
  inset: 0; 
  display: none; 
  align-items: center; 
  justify-content: center; 
  background: rgba(0,0,0,.92); 
  z-index: 100; 
  padding: 24px; 
}
.lightbox.open { display: flex; }
.lightbox-content { 
  max-width: min(1200px, 92vw); 
  max-height: 90vh; 
}
.lightbox-content img, .lightbox-content video { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  border-radius: 12px; 
}
.lightbox-close { 
  position: fixed; 
  top: 20px; 
  right: 20px; 
  width: 48px; 
  height: 48px; 
  border-radius: 50%; 
  background: var(--bg-card); 
  color: var(--text); 
  border: 1px solid var(--border); 
  font-size: 24px; 
  z-index: 101;
  transition: var(--transition);
}
.lightbox-close:hover {
  background: var(--accent);
  color: var(--bg);
  transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 980px) {
  .two-col-about { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-masonry { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
  .site-nav { 
    position: absolute; 
    right: 16px; 
    top: 64px; 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: 16px; 
    padding: 12px; 
    flex-direction: column; 
    gap: 4px; 
    display: none; 
    box-shadow: 0 8px 24px var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .site-nav a { 
    width: 200px; 
    text-align: left; 
  }
  .site-nav .cta { margin-left: 0; }
  .nav-toggle { display: inline-block; }
  .theme-toggle { order: -1; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .social-links { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .page-header { padding: 80px 0 50px; }
}

@media (min-width: 769px) {
  .brand-text { display: inline; }
  .brand-logo { height: 40px; }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Performance optimizations */
.hero-video,
.portfolio-image img,
.service-card,
.portfolio-item {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
}

/* Dashboard Styles */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* User Profile Dropdown */
.user-profile {
  position: relative;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.user-profile-btn:hover {
  border-color: var(--accent);
  background: var(--bg-card);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--bg);
  font-size: 14px;
}

.user-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 200px;
  box-shadow: 0 4px 16px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 100;
}

.user-profile.open .user-profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-profile-dropdown a,
.user-profile-dropdown button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  color: var(--text);
  text-align: left;
  transition: var(--transition);
}

.user-profile-dropdown a:hover,
.user-profile-dropdown button:hover {
  background: var(--bg-soft);
}

.user-profile-dropdown a:first-child {
  border-radius: 12px 12px 0 0;
}

.user-profile-dropdown button:last-child {
  border-radius: 0 0 12px 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.user-profile-dropdown svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dashboard-sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.dashboard-brand {
  margin-bottom: 40px;
}

.dashboard-brand img {
  height: 40px;
  width: auto;
}

.dashboard-nav {
  list-style: none;
  flex: 1;
}

.dashboard-nav li {
  margin-bottom: 8px;
}

.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--muted);
  transition: var(--transition);
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  background: var(--bg-soft);
  color: var(--accent);
}

.dashboard-nav svg {
  flex-shrink: 0;
}

.dashboard-main {
  flex: 1;
  margin-left: 260px;
  padding: 40px;
  width: calc(100% - 260px);
}

.dashboard-header {
  margin-bottom: 32px;
}

.dashboard-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dashboard-header p {
  color: var(--muted);
  font-size: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition);
}

.dashboard-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 16px var(--shadow);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.status-in_review {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.status-approved {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.status-rejected {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.status-in_progress {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.status-completed {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.status-scheduled,
.status-in_progress {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.status-review {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.status-cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.logout-btn {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state svg {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  opacity: 0.3;
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text);
}

.empty-state p {
  margin-bottom: 24px;
}

/* Dashboard Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.alert {
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
  .dashboard-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .dashboard-main {
    margin-left: 0;
    width: 100%;
    padding: 20px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header h1 {
    font-size: 24px;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.modal-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text);
}

/* Tab Links (in project modal) */
.tab-link {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab-link:hover {
  color: var(--text);
}

.tab-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.project-tab {
  display: none;
}

.project-tab.active {
  display: block;
}
