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

html {
  scroll-behavior: smooth;
}

:root {
  --bg: #ffffff;
  --text: #000000;
  --text-muted: #333333;
  --border: #e5e5e5;
  --hover: #f5f5f5;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Header / Nav */
.site-header {
  padding: 0;
  border-bottom: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  transition: background 0.3s ease;
  position: relative;
  z-index: 100;
}

.nav:hover {
  background: rgba(0, 0, 0, 1);
}

.logo {
  display: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.8;
}

/* Dropdown submenus */
.has-submenu {
  position: relative;
}

.has-submenu .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.95);
  border: none;
  list-style: none;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  border-radius: 4px;
}

.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  margin: 0;
}

.submenu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  color: #ffffff;
  transition: background 0.2s ease;
}

.submenu a:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 3rem) 3rem;
  text-align: center;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 1200px;
  height: 400px;
  background: #f0f0f0;
  border: 2px dashed #ccc;
  margin: 0 auto 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1rem;
  border-radius: 4px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text);
}

.hero p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Consultation Section */
.consultation-section {
  text-align: center;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.consultation-section p {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
  font-weight: 400;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--text);
  background: var(--bg);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary:hover {
  background: var(--text);
  color: var(--bg);
}

/* Sections */
main {
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 4rem clamp(1rem, 4vw, 3rem);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.section p {
  max-width: 700px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.section a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.section a:hover {
  opacity: 0.7;
}

/* Projects grid */
.grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: background 0.2s ease;
}

.card:hover {
  background: var(--hover);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text);
}

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

/* Footer */
.site-footer {
  padding: 3rem clamp(1rem, 4vw, 3rem);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

/* Responsive Navigation - Mobile */
@media (max-width: 767px) {
  .nav {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;
  }
  
  .hero-image-placeholder {
    height: 250px;
  }

  .hero {
    padding: 3rem clamp(1rem, 4vw, 3rem) 2rem;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 3rem clamp(1rem, 4vw, 3rem);
  }

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

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-links {
    gap: 1.5rem;
  }

  .hero {
    padding: 3.5rem clamp(1rem, 4vw, 3rem) 2.5rem;
  }
}
