/* NKB Tech - Main Stylesheet */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #059669;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --max-width: 1200px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a:hover {
  text-decoration: underline;
}

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

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo:hover {
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
  color: white;
}

.btn-secondary {
  display: inline-block;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 6rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero .btn-primary {
  background: white;
  color: var(--primary);
}

.hero .btn-primary:hover {
  background: var(--bg-alt);
}

/* Services Grid */
.services-preview, .services-list {
  padding: 4rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.services-preview h2, .services-list h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

/* Service Detail */
.service-detail {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  text-align: left;
}

.service-icon-large {
  font-size: 3rem;
  flex-shrink: 0;
}

/* Why Us / Features */
.why-us {
  background: var(--bg-alt);
  padding: 4rem 2rem;
  text-align: center;
}

.why-us h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature {
  padding: 1.5rem;
}

.feature h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* Page Header */
.page-header {
  background: var(--bg-alt);
  padding: 4rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Contact */
.contact-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}

.required {
  color: #dc2626;
}

.alert-success {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.alert-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.contact-info {
  padding: 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.info-item {
  margin-bottom: 1.5rem;
}

/* Blog */
.blog-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.blog-card {
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.blog-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.post-header {
  margin-bottom: 2rem;
}

.post-content {
  line-height: 1.8;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
}

/* About */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

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

.about-section h2 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.about-section ul {
  padding-left: 1.5rem;
}

.about-section li {
  margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
  background: var(--bg-alt);
  text-align: center;
  padding: 4rem 2rem;
}

.cta-section h2 {
  margin-bottom: 0.5rem;
}

.cta-section p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: white;
  padding: 3rem 2rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-container h3, .footer-container h4 {
  margin-bottom: 0.5rem;
}

.footer-container p {
  color: #d1d5db;
}

.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

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

  .contact-section {
    grid-template-columns: 1fr;
  }

  .service-detail {
    flex-direction: column;
    text-align: center;
  }
}
