:root {
  --primary: #1a2a36;
  --primary-light: #2c4050;
  --accent: #d4922a;
  --accent-dark: #b87a20;
  --text: #2d3436;
  --text-light: #636e72;
  --bg: #f8f9fa;
  --bg-dark: #0f1a24;
  --white: #fff;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --radius: 8px;
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Top bar */
.top-bar {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--accent);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar span { display: inline-flex; align-items: center; gap: 6px; }
.top-bar a { color: rgba(255,255,255,0.8); text-decoration: none; }
.top-bar a:hover { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  background: var(--white);
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container { display: flex; justify-content: space-between; align-items: center; padding-top: 0; padding-bottom: 0; }
.logo { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; }
.logo-icon {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: var(--white);
}
.logo-text { line-height: 1.2; }
.logo-text strong { display: block; font-size: 1.15rem; color: var(--primary); letter-spacing: -0.3px; }
.logo-text small { font-size: 0.7rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }

nav { display: flex; gap: 4px; }
nav a {
  padding: 22px 16px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}
nav a:hover, nav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.4);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, transparent 50%, var(--bg-dark) 100%);
}
.hero .container { position: relative; z-index: 1; text-align: center; }
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.1;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 680px;
  margin: 20px auto 32px;
}
.hero-badges { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.hero-badges span {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 20px;
  border-radius: 50px;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,146,42,0.35); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Stats bar */
.stats {
  background: var(--primary);
  padding: 40px 0;
  border-top: 3px solid var(--accent);
}
.stats .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--accent); display: block; }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* Sections */
section { padding: 80px 0; }
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1rem;
}
.section-title:after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-image {
  height: 400px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}
.about-text h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 16px; }
.about-text p { color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.about-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.about-details dt { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.about-details dd { font-weight: 600; color: var(--primary); }

/* Cards grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: 0.2s;
  text-align: center;
  border: 1px solid #e9ecef;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.card-icon {
  width: 64px; height: 64px;
  background: rgba(212,146,42,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}
.card h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 8px; }
.card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.portfolio-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #e9ecef;
  transition: 0.2s;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.portfolio-img { height: 200px; background-size: cover; background-position: center; }
.portfolio-body { padding: 20px; }
.portfolio-body h3 { font-size: 1rem; color: var(--primary); }
.portfolio-body .meta { font-size: 0.8rem; color: var(--accent); font-weight: 600; margin: 4px 0 8px; }
.portfolio-body p { font-size: 0.85rem; color: var(--text-light); }

/* Contact section */
.contact-section { background: var(--primary); }
.contact-section .section-title { color: var(--white); }
.contact-section .section-title:after { background: var(--accent); }
.contact-section .section-subtitle { color: rgba(255,255,255,0.7); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 32px; }
.contact-info-card h3 { color: var(--white); margin-bottom: 16px; font-size: 1.1rem; }
.contact-info-card p { color: rgba(255,255,255,0.7); margin-bottom: 8px; font-size: 0.9rem; }
.contact-info-card strong { color: var(--white); }
.contact-form { background: var(--white); border-radius: var(--radius); padding: 32px; }
.contact-form label { font-size: 0.85rem; font-weight: 600; color: var(--text); display: block; margin-top: 16px; }
.contact-form label:first-child { margin-top: 0; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 10px 14px; margin-top: 4px;
  border: 1px solid #ddd; border-radius: 6px;
  font-family: inherit; font-size: 0.9rem;
  transition: 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,146,42,0.15);
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
}
footer .container:first-of-type { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
footer p, footer a { font-size: 0.85rem; color: rgba(255,255,255,0.6); text-decoration: none; line-height: 2; display: block; }
footer a:hover { color: var(--accent); }
footer .logo-text strong { color: var(--white); }
footer .logo-text small { color: rgba(255,255,255,0.5); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* Subpages */
.page-hero {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.3);
  z-index: 0;
}
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, transparent 50%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: 2.5rem; font-weight: 800; color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.7); margin-top: 8px; }
.page-section { padding: 60px 0; }
.page-section:nth-child(even) { background: var(--white); }

/* Table */
.data-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.data-table th, .data-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #e9ecef; font-size: 0.88rem; }
.data-table th { background: var(--primary); color: var(--white); font-weight: 600; }
.data-table tr:hover { background: rgba(212,146,42,0.05); }

/* Hamburger menu */
.hamburger { display: none; cursor: pointer; padding: 10px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); margin: 5px 0; transition: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero { min-height: 70vh; }
  .hamburger { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; border-bottom: 2px solid var(--accent); box-shadow: var(--shadow); }
  nav.open { display: flex; }
  nav a { padding: 16px 20px; border-bottom: 1px solid #e9ecef; }
  nav a.active { border-bottom-color: var(--accent); border-bottom-width: 2px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  footer .container:first-of-type { grid-template-columns: 1fr 1fr; }
  .stats .container { grid-template-columns: 1fr 1fr; }
  .about-details { grid-template-columns: 1fr; }
  .top-bar .container { justify-content: center; text-align: center; }
  .section-title { font-size: 1.5rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero { padding: 60px 0; }
}
