/* ==========================================================================
   Adam Kowalski IT - Production Stylesheet
   Dark-mode Software Engineering Aesthetics
   ========================================================================== */

:root {
  --bg-main: #0F172A;
  --bg-surface: #1E293B;
  --bg-surface-hover: #273549;
  --bg-card: rgba(30, 41, 59, 0.85);
  
  --border-color: #334155;
  --border-highlight: rgba(59, 130, 246, 0.4);
  
  --primary: #3B82F6;
  --primary-hover: #2563EB;
  --accent-green: #10B981;
  --accent-green-dim: rgba(16, 185, 129, 0.15);
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-sm: 6px;
  
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 10px 30px -10px rgba(59, 130, 246, 0.25);
  --shadow-glow-green: 0 10px 30px -10px rgba(16, 185, 129, 0.2);
  
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Box Sizing */
*,
*::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-body);
  line-height: 1.65;
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* Typography & Utility */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

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

code, .mono-text, .mono-tag {
  font-family: var(--font-mono);
}

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

.text-blue {
  color: #60A5FA;
}

.text-green {
  color: var(--accent-green);
}

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Section Spacing */
.section-spacing {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.05rem;
  max-width: 680px;
}

/* ==========================================================================
   Header & Navigation (Mobile-First)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.875rem 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-main);
  gap: 0.2rem;
}

.brand-bracket {
  color: var(--accent-green);
}

.brand-accent {
  color: var(--primary);
}

/* Hamburger Mobile Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-main);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

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

/* Primary Navigation Drawer on Mobile */
.primary-nav {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 1.25rem;
  transform: translateY(-150%);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.primary-nav.is-open {
  transform: translateY(0);
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nav-link {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0;
}

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

.btn-nav-cta {
  display: inline-block;
  text-align: center;
  background-color: var(--primary);
  color: #fff !important;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
}

/* ==========================================================================
   Buttons & UI Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--bg-surface-hover);
  border-color: #64748B;
  transform: translateY(-2px);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.green-dot {
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.mono-tag {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.tech-badge-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.code-pill {
  background-color: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: #93C5FD;
}

/* ==========================================================================
   Bento Grid Foundation
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.bento-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-3px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.hero-title {
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Hero Terminal Bento */
.visual-card-hero {
  padding: 0;
  background: #0d1527;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #152033;
  border-bottom: 1px solid var(--border-color);
}

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

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background-color: #EF4444; }
.dot-yellow { background-color: #F59E0B; }
.dot-green { background-color: #10B981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.hero-image-frame {
  position: relative;
  overflow: hidden;
  background: #020617;
}

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

.terminal-output {
  padding: 0.85rem 1rem;
  background: #0B1120;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-color);
}

.term-prompt {
  color: var(--primary);
  margin-right: 0.5rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.card-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-box {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

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

.about-visual-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.image-container {
  width: 100%;
  overflow: hidden;
}

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

.card-overlay-badge {
  padding: 0.75rem 1rem;
  background: #152033;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: #93C5FD;
}

/* ==========================================================================
   Stack Bento Cards
   ========================================================================== */
.tech-card {
  display: flex;
  flex-direction: column;
}

.tech-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.tech-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.tech-icon-box.accent-green {
  background: var(--accent-green-dim);
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.25);
}

.tech-svg {
  width: 24px;
  height: 24px;
}

.tech-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.tech-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.tech-card-desc {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.tech-features-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.tech-features-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.tech-features-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.tech-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.code-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #CBD5E1;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.service-visual-card {
  padding: 0;
  background: #020617;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

.service-visual-overlay {
  padding: 0.75rem 1rem;
  background: #152033;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--accent-green);
}

.service-list-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-item {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.service-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-number {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.service-name {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.service-desc {
  font-size: 0.9rem;
}

/* ==========================================================================
   Contact & Google Maps Section
   ========================================================================== */
.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-item-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
}

.contact-icon-bubble {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-bubble.accent-green {
  background: var(--accent-green-dim);
  color: var(--accent-green);
}

.contact-icon-bubble svg {
  width: 20px;
  height: 20px;
}

.contact-item-info {
  display: flex;
  flex-direction: column;
}

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

.contact-item-link {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
}

.contact-item-link:hover {
  color: var(--primary);
}

/* Google Maps Integration */
.maps-wrapper {
  margin-top: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #020617;
}

.maps-header {
  padding: 0.5rem 0.75rem;
  background: #152033;
  border-bottom: 1px solid var(--border-color);
}

.google-maps-container iframe {
  display: block;
  width: 100%;
  filter: grayscale(80%) invert(90%) hue-rotate(180deg) contrast(90%);
}

/* Form Styles */
.site-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.req {
  color: #EF4444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #0F172A;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

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

.form-error-msg {
  font-size: 0.8rem;
  color: #EF4444;
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea {
  border-color: #EF4444;
}

.form-group.has-error .form-error-msg {
  display: block;
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.form-status-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  margin-top: 0.5rem;
}

.form-status-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-green);
  color: #A7F3D0;
}

.form-status-alert.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #EF4444;
  color: #FECACA;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-color);
  background-color: #0B1120;
  padding: 3rem 0;
  margin-top: 3rem;
}

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

.footer-brand {
  font-family: var(--font-mono);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Responsive Media Queries (Desktop Enhancement)
   ========================================================================== */
@media (min-width: 640px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-actions {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
  
  .stack-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
  
  .primary-nav {
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    transform: none;
    box-shadow: none;
  }
  
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
  
  .nav-link {
    padding: 0;
    font-size: 0.95rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }

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

  .about-bento {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: stretch;
  }

  .services-bento {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
  }

  .contact-bento {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }

  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
