/* ===== Base Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2a3b4c;
  --secondary: #1e2a38;
  --accent: #4169e1;

  --bg-light: #f0f2f5;
  --bg-dark: #131c26;

  --text-light: #1e2a38;
  --text-dark: #f5f7fa;

  --muted-light: #333;
  --muted-dark: #d9e1ea;

  --card-light: #f2f2f2;
  --card-dark: #1f2a35;

  /* Theme-resolved aliases (default: dark) */
  --bg: var(--bg-dark);
  --text: var(--text-dark);
  --muted: var(--muted-dark);
  --card-bg: var(--card-dark);

  --transition: 0.3s ease;
}

@media (prefers-color-scheme: light) {
  :root {
    --primary: #3b4a5c;
    --secondary: #d9e1ea;
    --accent: #2a4c88;

    --bg: var(--bg-light);
    --text: var(--text-light);
    --muted: var(--muted-light);
    --card-bg: var(--card-light);
  }
}

html,
body {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  background: linear-gradient(135deg, var(--bg), #2d3e50);
  color: var(--text);
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
  line-height: 1.6;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.hero {
  padding: 3rem 1rem;
  text-align: center;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: inherit;
}

header .container {
  background: linear-gradient(135deg, #2d3e50, var(--secondary));
  color: var(--text);
  padding: 1rem 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.branding {
  display: flex;
  align-items: center;
  padding-left: 2rem;
  gap: 1rem;
}

.branding .logo {
  width: 45px;
  height: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.name {
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 0;
}

.company {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
  color: var(--muted);
}

/* ===== Navigation Toggle ===== */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 2.2rem;
  right: 2rem;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 26px;
  height: 3px;
  background-color: var(--text);
  margin: 4px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Navigation Menu ===== */
#nav-menu {
  display: none !important;
  flex-direction: column;
  gap: 1rem;
  background: var(--card-bg);
  color: var(--text);
  position: absolute;
  top: 60px;
  right: 2rem;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

#nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s ease;
}

#nav-menu a:hover {
  color: var(--accent);
}

#nav-menu.active {
  display: flex !important;
}

/* ===== Buttons ===== */
.btn {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  transition: background var(--transition);
}

.btn:hover {
  background: #2a4c88;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ===== Grid and Cards ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  background: var(--card-bg);
  padding: 1rem;
  text-align: left;
  border-radius: 8px;
  transition: background var(--transition);
}

blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
}

/* ===== Content Blocks ===== */
section {
  padding: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

h2,
h3 {
  color: var(--text);
  margin-bottom: 1rem;
}

p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-container p {
  text-align: justify;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  hyphens: auto;
}

/* ===== Forms ===== */
form label {
  display: block;
  margin: 0.5rem 0 0.25rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#form-status {
  opacity: 0;
  transition: opacity 0.5s ease;
}

#form-status.show {
  opacity: 1;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  background-color: var(--bg);
  border-top: 1px solid #2e3b4e;
}

/* ===== Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition);
}

.reveal.active {
  opacity: 1;
  transform: none;
}

/* ===== Utility ===== */
/* .container {
  max-width: 1200px;
  margin: 0 auto;
} */

@media (min-width: 768px) {
  #nav-menu {
    top: 70px;
  }
}
