:root {
  /* Light Theme Variables (Mirroring the reference) */
  --bg-body: #ffffff;
  --bg-subtle: #F9FAFB;
  --bg-card: #F3F4F6;
  --bg-button-primary: #1F2937; /* Dark charcoal/black */
  --text-main: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --border-light: #E5E7EB;
  
  /* Tag Colors */
  --tag-cyan-bg: #E0F2FE; --tag-cyan-text: #0284C7;
  --tag-rose-bg: #FFE4E6; --tag-rose-text: #E11D48;
  --tag-green-bg: #DCFCE7; --tag-green-text: #16A34A;
  --tag-yellow-bg: #FEF9C3; --tag-yellow-text: #CA8A04;
  --tag-blue-bg: #DBEAFE; --tag-blue-text: #2563EB;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.grid {
  display: grid;
  gap: 24px;
}

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

@media (max-width: 1024px) {
  .grid-cols-3 { grid-template-columns: 1fr 1fr; }
  .grid-cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-8 { gap: 32px; }

.text-center { text-align: center; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-4xl { font-size: 36px; }
.text-6xl { font-size: 60px; line-height: 1.1; }

.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.font-medium { font-weight: 500; }

/* Background Grid Pattern */
.bg-grid {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, #F3F4F6 1px, transparent 1px),
    linear-gradient(to bottom, #F3F4F6 1px, transparent 1px);
  background-position: top center;
}

/* Header */
.navbar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  border-bottom: 1px solid var(--border-light);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.avatar-small {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ddd;
  overflow: hidden;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 9999px; /* Pill shape */
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--bg-button-primary);
  color: white;
}
.btn-primary:hover {
  background-color: black;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: white;
  border: 1px solid var(--border-light);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--text-muted);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

/* Hero Section */
.hero-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.toggle-switch {
  display: inline-flex;
  background: white;
  border: 1px solid var(--border-light);
  padding: 4px;
  border-radius: 8px;
  margin-top: 24px;
}
.toggle-option {
  padding: 8px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.toggle-option.active {
  background: var(--bg-subtle);
  font-weight: 600;
}

.hero-browser-mockup {
  margin-top: 60px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
  border: 1px solid var(--border-light);
  background: #1e1e1e; /* Dark theme inside mockup as per ref */
  aspect-ratio: 16/9;
  position: relative;
}
/* Abstract representation of the Figma interface inside the mockup */
.mockup-header {
  height: 40px;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: #444; }
.mockup-body {
  display: flex;
  height: calc(100% - 40px);
}
.mockup-sidebar {
  width: 200px;
  border-right: 1px solid #333;
  padding: 16px;
}
.mockup-content {
  flex: 1;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logos Section */
.logos-section {
  border-bottom: 1px solid var(--border-light);
  padding: 40px 0;
}
.logo-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  opacity: 0.6;
  filter: grayscale(100%);
}
.logo-placeholder {
  height: 24px;
  width: 100px;
  background: #ccc;
  border-radius: 4px;
}

/* Skills Tags */
.skills-section {
  padding: 80px 0;
}
.tag-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
}
.tag-pill {
  padding: 8px 20px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tag-pill::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}
.tag-cyan { background: var(--tag-cyan-bg); color: var(--tag-cyan-text); }
.tag-rose { background: var(--tag-rose-bg); color: var(--tag-rose-text); }
.tag-green { background: var(--tag-green-bg); color: var(--tag-green-text); }
.tag-yellow { background: var(--tag-yellow-bg); color: var(--tag-yellow-text); }
.tag-blue { background: var(--tag-blue-bg); color: var(--tag-blue-text); }

/* Projects */
.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}
.project-image {
  background-color: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  transition: transform 0.3s ease;
}
.project-card:hover .project-image {
  transform: translateY(-4px);
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-info h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

/* Services / Methodology */
.methodology-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 768px) {
  .methodology-grid { grid-template-columns: 1fr; gap: 32px; }
}

.service-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: 12px;
  height: 100%;
}
.service-icon {
  margin-bottom: 24px;
  font-size: 24px;
}

/* Footer CTA */
.footer-cta {
  background: var(--tag-blue-bg); /* Using light blue as base */
  background: linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 100%);
  padding: 60px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media(max-width: 768px) {
  .footer-cta { flex-direction: column; align-items: flex-start; gap: 32px; }
}
.cta-image {
  width: 200px;
  height: 150px;
  background: #ddd;
  border-radius: 12px;
  position: relative;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  margin-top: 80px;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Utilities */
.placeholder-img {
  width: 100%;
  height: 100%;
  background-color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 24px;
}

/* Gradients for placeholders */
.project-placeholder-1 { background: linear-gradient(135deg, #FFD8CB 0%, #FF9D7E 100%); }
.project-placeholder-2 { background: linear-gradient(135deg, #D8E2FD 0%, #9FB9FD 100%); }
.project-placeholder-3 { background: linear-gradient(135deg, #FFE4BC 0%, #FDD289 100%); }

.cta-img-placeholder { 
  background: linear-gradient(to right, #FFD8CB, #FDD289);
  width: 250px; 
  height: 160px; 
  border-radius: 12px;
}

/* Margins & Specific Utilities */
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }

.w-full { width: 100%; }
.max-w-md { max-width: 500px; }
.max-w-lg { max-width: 600px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.col-span-2 { grid-column: span 2; }
.text-bold { font-weight: 700; }
