/* ----------------------------------------
   CSS Reset & Custom Properties
   ---------------------------------------- */
:root {
  --bg-main: #0B0F17;
  --bg-card: #151D2A;
  --bg-card-hover: #1A2434;
  --bg-card-light: #1e293b;
  --accent-cyan: #0EA5E9;
  --accent-cyan-glow: rgba(14, 165, 233, 0.25);
  --accent-emerald: #10B981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(14, 165, 233, 0.4);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', 'JetBrains Mono', monospace;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --transition-fast: 200ms ease;
  --transition-smooth: 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------
   Layout Containers
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding-top: 64px;
  padding-bottom: 64px;
}

@media (min-width: 768px) {
  .section {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

/* ----------------------------------------
   Typography & Badges
   ---------------------------------------- */
.section-header {
  margin-bottom: 48px;
}

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

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
  .section-desc {
    font-size: 1.125rem;
  }
}

.text-gradient {
  background: linear-gradient(135deg, #0EA5E9 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ----------------------------------------
   Buttons & UI Elements
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  padding: 10px 20px;
}

.btn-primary {
  background-color: var(--accent-cyan);
  color: #07111E;
  box-shadow: 0 4px 14px var(--accent-cyan-glow);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #38bdf8;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45);
  transform: translateY(-2px);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-full-width {
  width: 100%;
}

/* ----------------------------------------
   Header & Navigation
   ---------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.125rem;
}

.brand-icon {
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(14, 165, 233, 0.15);
  color: var(--accent-cyan);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(14, 165, 233, 0.3);
  font-size: 0.875rem;
}

.accent-tech {
  color: var(--accent-cyan);
}

.desktop-nav {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent-cyan);
}

.header-cta-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta-wrap .btn-primary {
  display: none;
}

.mobile-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  transition: all var(--transition-fast);
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #0F1420;
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.mobile-nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-pill {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

@media (min-width: 860px) {
  .desktop-nav {
    display: block;
  }
  .header-cta-wrap .btn-primary {
    display: inline-flex;
  }
  .mobile-toggle {
    display: none;
  }
  .mobile-nav-drawer {
    display: none !important;
  }
}

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

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.status-text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-emerald);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.tech-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.pill-dot.java { background-color: #F87171; }
.pill-dot.python { background-color: #38BDF8; }
.pill-dot.sql { background-color: #FBBF24; }
.pill-dot.css { background-color: #34D399; }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 520px) {
  .hero-actions {
    flex-direction: row;
  }
}

@media (min-width: 992px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 56px;
  }
  .hero-title {
    font-size: 3.25rem;
  }
  .hero-subtitle {
    font-size: 1.1875rem;
  }
}

/* ----------------------------------------
   Terminal & Visuals
   ---------------------------------------- */
.terminal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.terminal-header {
  background-color: #0E141E;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-controls {
  display: flex;
  gap: 6px;
}

.control-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.control-btn.close { background-color: #EF4444; }
.control-btn.minimize { background-color: #F59E0B; }
.control-btn.maximize { background-color: #10B981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-body {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  background: #0B0F17;
}

.code-comment { color: #64748B; }
.code-keyword { color: #38BDF8; }
.code-class { color: #FBBF24; }
.code-string { color: #34D399; }
.code-method { color: #A78BFA; }

.terminal-asset-preview {
  position: relative;
  border-top: 1px solid var(--border-subtle);
  background-color: #000;
}

.terminal-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ----------------------------------------
   Bento Grid Section
   ---------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-2x1 {
    grid-column: span 2;
  }
}

.bento-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.7);
}

.bento-icon-box {
  margin-bottom: 16px;
}

.bento-lang-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background-color: rgba(14, 165, 233, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.python-card .bento-lang-tag {
  background-color: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.2);
}

.sql-card .bento-lang-tag {
  background-color: rgba(251, 191, 36, 0.12);
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.2);
}

.css-card .bento-lang-tag {
  background-color: rgba(167, 139, 250, 0.12);
  color: #C084FC;
  border-color: rgba(167, 139, 250, 0.2);
}

.bento-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.bento-text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.bento-points {
  margin-top: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bento-points li {
  font-size: 0.875rem;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento-points li::before {
  content: "→";
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

/* ----------------------------------------
   About & Capabilities Section
   ---------------------------------------- */
.about-section {
  background-color: #0E131E;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-image-wrap {
  position: relative;
}

.about-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  display: block;
  object-fit: cover;
}

.experience-card {
  position: absolute;
  bottom: -16px;
  right: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.exp-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

.exp-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.features-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  background-color: rgba(14, 165, 233, 0.15);
  color: var(--accent-cyan);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 992px) {
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
  }
}

/* ----------------------------------------
   Contact & Google Maps Section
   ---------------------------------------- */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

@media (min-width: 768px) {
  .contact-card {
    padding: 32px;
  }
}

.card-inner-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-inner-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #E2E8F0;
}

.required {
  color: #F87171;
}

.form-input {
  background-color: #0B0F17;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px var(--accent-cyan-glow);
}

.form-select {
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  font-size: 0.75rem;
  color: #F87171;
  display: none;
  margin-top: 2px;
}

.form-error.visible {
  display: block;
}

.form-status {
  margin-top: 12px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  padding: 0;
  transition: all var(--transition-fast);
}

.form-status.success {
  padding: 12px 16px;
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
}

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.detail-icon {
  font-size: 1.25rem;
  background-color: rgba(255, 255, 255, 0.05);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.detail-link:hover {
  color: var(--accent-cyan);
}

.detail-text {
  color: var(--text-main);
  font-size: 0.9375rem;
}

.map-card {
  padding: 0;
  overflow: hidden;
}

.map-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background-color: #0E141E;
}

.map-title-text {
  font-size: 0.875rem;
  font-weight: 600;
}

.status-badge-inline {
  font-size: 0.75rem;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  padding: 2px 8px;
  border-radius: 4px;
}

.map-container iframe {
  display: block;
  filter: grayscale(80%) invert(90%) contrast(85%);
}

@media (min-width: 992px) {
  .contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
  }
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.site-footer {
  background-color: #080B10;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-cyan);
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.8125rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  padding-top: 24px;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .footer-copy {
    width: auto;
    border-top: none;
    padding-top: 0;
  }
}