/* CSS Variables - Dark Tech Theme */
:root {
  --bg-color: #0d1117;
  --card-bg: #161b22;
  --card-border: #30363d;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --success-color: #238636;
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Header & Nav */
.navbar {
  position: sticky;
  top: 0;
  background-color: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  z-index: 100;
  padding: 16px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-image {
  width: 38px;
  height: auto;
  display: block;
}

.logo-accent {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #21262d;
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background-color: #30363d;
}

.btn-outline {
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding: 8px 16px;
}

.btn-outline:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 100px 0 80px 0;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 650px;
  margin: 0 auto 36px auto;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  border-top: 1px solid var(--card-border);
  padding-top: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Services Section */
.services,
.projects,
.quote {
  padding: 80px 0;
  border-top: 1px solid var(--card-border);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-secondary);
}

.services-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
}

.service-icon {
  color: var(--accent-color);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Projects Section */
.project-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.project-image {
  height: 180px;
  width: 100%;
}

.placeholder-art {
  width: 100%;
  height: 100%;
  position: relative;
  padding: 16px;
  display: flex;
  align-items: flex-end;
}

.p1 {
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.p2 {
  background: linear-gradient(135deg, #1f2937, #111827);
}

.p3 {
  background: linear-gradient(135deg, #0f2942, #091a2b);
}

.project-tag {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: var(--accent-color);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-content {
  padding: 24px;
}

.project-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.project-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Quote Section */
.quote-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 48px;
}

.quote-info h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.quote-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.quote-features {
  list-style: none;
  color: var(--text-primary);
}

.quote-features li {
  margin-bottom: 12px;
  font-weight: 500;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

input,
select,
textarea {
  background-color: #0d1117;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-color);
}

.file-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background-color: #0d1117;
  border: 1px dashed var(--card-border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: border-color 0.2s ease;
}

.file-label:hover {
  border-color: var(--accent-color);
  color: var(--text-primary);
}

input[type="file"] {
  display: none;
}

.form-status {
  font-size: 0.9rem;
  margin-top: 8px;
  text-align: center;
}

.form-status.success {
  color: #3fb950;
}

/* Footer */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Top banner logo */
.top-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 0 8px;
  background-color: transparent;
}

.top-banner-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive + Mobile improvements */

/* Mobile navigation: hide desktop links and show toggle button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 6px;
}

.nav-container {
  position: relative;
}

.nav-links {
  transition: all 0.18s ease;
}

/* Drawer overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.64);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 200ms ease,
    visibility 200ms ease;
  z-index: 110;
}
.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile drawer panel - full screen with fade + scale */
.mobile-drawer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: 92%;
  max-width: 720px;
  height: auto;
  max-height: 92vh;
  background-color: var(--card-bg);
  opacity: 0;
  visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(2, 6, 23, 0.6);
  transition:
    opacity 200ms ease,
    transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1),
    visibility 200ms ease;
  z-index: 115;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}
.mobile-drawer.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.drawer-nav a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 14px 10px;
  border-radius: 10px;
  font-size: 1.05rem;
}

/* Prevent background scroll when drawer open */
body.drawer-open {
  overflow: hidden;
}

@media (max-width: 850px) {
  /* Header/menu */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
  }

  /* Hide the primary nav (desktop layout) on small screens */
  .nav-links {
    display: none;
  }

  /* Hero adjustments */
  .hero {
    padding: 60px 0 40px 0;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
  }

  /* Quote card stacks and form becomes single column */
  .quote-wrapper {
    grid-template-columns: 1fr;
    padding: 32px 18px;
  }
  .form-row {
    display: block;
  }

  /* Reduce spacing on services/projects */
  .service-card,
  .project-card {
    padding: 20px;
  }

  .project-image {
    height: 140px;
  }

  .hero-stats {
    gap: 24px;
  }
}
