/* css/style.css */

/* === Root Theme Variables === */
:root {
  --accent: #ff8200;
  --accent-light: #ff9e40;
  --bg: #f5f7fa;
  --text: #0f1724;
  --muted: #6b7280;
  --nav-bg: #0f1724;
  --nav-text: #ffffff;
  --nav-hover: rgba(255, 255, 255, 0.1);
  --card: #ffffff;
  --shadow: 0 6px 20px rgba(15, 23, 36, 0.08);
}

/* === Global Styles === */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Container === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

/* === Navbar === */
.site-nav {
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  color: var(--nav-text);
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
}

/* Brand */
.brand img {
  vertical-align: middle;
}

/* Nav List */
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-list a, .dropdown-toggle {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
}

.nav-list a:hover,
.dropdown-toggle:hover {
  background: var(--nav-hover);
  color: var(--accent-light);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0; /* Align to the right */
  background: var(--card);
  color: var(--text);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 0.4rem;
  list-style: none;
  display: none;
  min-width: 180px;
  z-index: 100;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 0.9rem;
  color: var(--text);
  border-radius: 6px;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: var(--accent);
  color: white;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 3px;
  background: var(--nav-text);
  margin: 5px auto;
  border-radius: 2px;
  width: 22px;
  transition: transform 0.2s, opacity 0.2s;
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #0f1724 0%, #183555 100%);
  color: #fff;
  padding: 5rem 0 3rem;
  text-align: center;
}

.hero-home .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 800px) {
  .hero-home .container {
    flex-direction: row;
    text-align: left;
  }
  .hero-left {
    flex: 1;
  }
  .hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

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

.hero p {
  color: #c9d2e3;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
}

.hero .btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.hero .btn:hover {
  background: var(--accent-light);
}

/* === Section / Content === */
.section {
  padding: 1rem 0; /* Reduced padding */
}

.section h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #07203b;
  margin-bottom: 1.8rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  color: #07203b;
}

/* === Footer === */
.site-footer {
  background: #0f1724;
  color: #c9d2e3;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.95rem;
  margin-top: 2rem;
}

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

.site-footer a:hover {
  color: white;
  text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 800px) {
  .hero {
    padding: 3rem 0 2rem;
  }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    gap: 0.5rem;
    width: auto;
    min-width: 200px;
    padding: 0.8rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
  .nav-list.open {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-dropdown .dropdown-menu {
    display: none; /* Hide on mobile */
  }
}

/* === Hyperlink === */
:not(nav) > a {
  color: #ff8200;
}

/* === Active Nav Link === */
.nav-list .active a {
  background: var(--nav-hover);
  color: #ff8200;
}
