/* WIGTECH Solutions - Modern Tech-Forward Design */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --primary: #00ff00;
  --primary-dark: #00cc00;
  --bg-dark: #0a0e27;
  --bg-darker: #050810;
  --text-light: #e0e0e0;
  --text-muted: #a0a0a0;
  --border-color: rgba(0, 255, 0, 0.1);
  --accent: #00ffff;
}

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

html, body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  font-size: 15px;
}

/* Header / Logo Bar */
header.site-header {
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header.site-header .grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

header.site-header .site-logo {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0.75rem 0;
  flex-shrink: 0;
}

header.site-header .site-logo img {
  max-height: 40px;
  filter: brightness(1.1);
  transition: filter 0.3s ease;
}

header.site-header .site-logo:hover img {
  filter: brightness(1.4) drop-shadow(0 0 15px rgba(0, 255, 0, 0.6)) drop-shadow(0 0 30px rgba(0, 255, 0, 0.3));
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-menu span {
  width: 25px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation */
header.site-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
}

header.site-header .menu {
  background: transparent;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  gap: 0;
}

header.site-header .menu li {
  border-right: 1px solid var(--border-color);
}

header.site-header .menu li:last-child {
  border-right: none;
}

header.site-header .menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

header.site-header .menu a:hover,
header.site-header .menu a[aria-current="page"] {
  color: var(--primary);
  background: rgba(0, 255, 0, 0.05);
  border-bottom-color: var(--primary);
}

header.site-header .menu-text {
  padding: 1rem 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  font-size: 0.85rem;
  border-right: 1px solid var(--border-color);
}

/* Legacy top-bar support (can be removed if not needed) */
.top-bar {
  background: transparent;
  border-bottom: none;
  padding: 0;
}

.top-bar .grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.top-bar .menu {
  background: transparent;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  gap: 0;
}

.top-bar .menu li {
  border-right: 1px solid var(--border-color);
}

.top-bar .menu li:last-child {
  border-right: none;
}

.top-bar .menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.top-bar .menu a:hover,
.top-bar .menu a[aria-current="page"] {
  color: var(--primary);
  background: rgba(0, 255, 0, 0.05);
  border-bottom-color: var(--primary);
}

.top-bar .menu-text {
  padding: 1rem 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  font-size: 0.85rem;
  border-right: 1px solid var(--border-color);
}

/* Main content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  min-height: calc(100vh - 300px);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: inherit;
  font-family: 'JetBrains Mono', monospace;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.callout {
  background: rgba(0, 255, 0, 0.03);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--primary);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 12px;
}

.callout h2 {
  margin-top: 0;
}

.muted {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Grid layout */
.grid-x {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.cell {
  grid-column: span 12;
}

.cell.small-12 { grid-column: span 12; }
.cell.small-6 { grid-column: span 12; }
.cell.medium-6 { grid-column: span 12; }
.cell.medium-12 { grid-column: span 12; }
.cell.large-6 { grid-column: span 12; }

@media (min-width: 768px) {
  .cell.small-6, .cell.medium-6 { grid-column: span 6; }
  .cell.medium-12 { grid-column: span 12; }
}

@media (min-width: 1024px) {
  .cell.large-6 { grid-column: span 6; }
}

/* Service cards */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card, .service-card {
  background: rgba(0, 255, 0, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover, .service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
  transform: translateY(-2px);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: grayscale(0.3) brightness(0.85);
  transition: filter 0.3s ease;
}

.service-card:hover img {
  filter: grayscale(0) brightness(1);
}

.card-section {
  padding: 1.5rem;
}

.card-section h4,
.card-section h5 {
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.card-section p {
  margin-bottom: 0.75rem;
}

/* Buttons */
.button {
  background: var(--bg-darker);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.button:hover {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.button.small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Forms */
input, textarea, select {
  width: 100%;
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  padding: 0.75rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
}

/* Bio section */
.bio {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.bio img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.bio-content dt {
  font-weight: 700;
  color: var(--primary);
  margin-top: 1rem;
}

.bio-content dd {
  margin: 0.25rem 0 0 0;
  color: var(--text-muted);
}

/* Lists */
.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.download-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.download-list a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.download-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer */
footer.site-footer {
  background: var(--bg-darker);
  color: var(--text-muted);
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}

footer.site-footer a {
  color: var(--primary);
  text-decoration: none;
}

footer.site-footer a:hover {
  color: var(--accent);
}

/* Hero section */
.hero {
  padding: 2rem 3rem;
  background: linear-gradient(135deg, rgba(0, 255, 0, 0.08) 0%, rgba(0, 255, 255, 0.05) 50%, rgba(0, 255, 0, 0.03) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  header.site-header .grid-container {
    padding: 0 1rem;
  }

  header.site-header .site-logo img {
    max-height: 30px;
  }

  .hamburger-menu {
    display: flex;
    order: 2;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.active {
    max-height: 400px;
  }

  header.site-header .menu {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  header.site-header .menu li {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  header.site-header .menu li:last-child {
    border-bottom: none;
  }

  header.site-header .menu a {
    padding: 1rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bio img {
    width: 120px;
    height: 120px;
  }

  main {
    padding: 2rem 1rem;
  }

  .hide-for-small-only {
    display: none !important;
  }

  .show-for-medium {
    display: none;
  }

  @media (min-width: 768px) {
    .show-for-medium {
      display: block !important;
    }
  }
}

/* Utilities */
.text-center { text-align: center; }
.margin-top { margin-top: 1rem; }
.margin-bottom { margin-bottom: 1rem; }
