:root {
  --primary: #1a5276;
  --primary-light: #2471a3;
  --primary-bright: #2e86c1;
  --accent: #1abc9c;
  --text: #2c3e50;
  --text2: #5d6d7e;
  --text3: #95a5a6;
  --bg: #ffffff;
  --bg2: #eaf2f8;
  --bg3: #f8f9fa;
  --card: #ffffff;
  --border: #d5dbdb;
  --footer-bg: #1a2a3a;
  --footer-text: #b0bec5;
  --radius: 0;
  --radius-lg: 0;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
  --max-width: 1200px;
  --font: 'Inter', -apple-system, sans-serif;
  --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--primary-bright); color: #fff; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  background-color: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.navbar.scrolled { padding: 10px 24px; box-shadow: var(--shadow); }
.nav-logo {
  display: flex; align-items: flex-start; gap: 8px;
  text-decoration: none; color: var(--text);
}
.nav-logo-img { height: 56px; width: auto; }
.nav-logo-text { font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.nav-logo-text span { color: var(--accent); }

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; padding: 4px; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links > a, .nav-dropdown > a {
  color: var(--text2); text-decoration: none;
  padding: 8px 14px; border-radius: 0;
  font-size: 0.88rem; font-weight: 500;
  transition: all var(--transition);
}
.nav-links > a:hover, .nav-dropdown > a:hover { color: var(--primary); background: var(--bg2); }
.nav-links a.active, .nav-dropdown > a.active { color: var(--primary) !important; font-weight: 600; }
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px;
  min-width: 250px; z-index: 100;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 8px 14px !important; white-space: nowrap;
  border-radius: 0; font-size: 0.85rem; color: var(--text2) !important;
}
.nav-dropdown-menu a:hover { background: var(--bg2); color: var(--primary) !important; }
.nav-dropdown-menu a.active { color: var(--primary) !important; font-weight: 600; }
.nav-header-item {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text3) !important; padding: 6px 14px 4px !important;
  cursor: default; font-weight: 600;
}
.nav-header-item:hover { background: transparent !important; }

/* ─── 3RD LEVEL DROPDOWN ─── */
.nav-dropdown-sub { position: relative; display: block; }
.nav-dropdown-sub > a::after { content: '▸'; float: right; margin-left: 8px; font-size: 0.7rem; color: var(--text3); }
.nav-dropdown-sub-menu {
  display: none; position: absolute; left: 100%; top: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px;
  min-width: 320px; z-index: 101;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.nav-dropdown-sub:hover .nav-dropdown-sub-menu { display: block; }
.nav-dropdown-sub-menu a {
  display: block; padding: 8px 14px !important; white-space: nowrap;
  border-radius: 0; font-size: 0.85rem; color: var(--text2) !important;
}
.nav-dropdown-sub-menu a:hover { background: var(--bg2); color: var(--primary) !important; }
.nav-dropdown-sub-menu a.active { color: var(--primary) !important; font-weight: 600; }
@media (max-width: 768px) {
  .nav-dropdown-sub > a::after { content: '▾'; }
  .nav-dropdown-sub-menu { position: static; display: none; min-width: auto; box-shadow: none; border: none; background: transparent; padding: 0 0 0 16px; }
  .nav-dropdown-sub.open .nav-dropdown-sub-menu { display: block; }
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #eaf2f8 0%, #d4e6f1 50%, #eaf2f8 100%);

}
.hero::before {
  content: ''; position: absolute;
  top: -30%; right: -20%; width: 60%; height: 120%;
  background: radial-gradient(circle, rgba(26,82,118,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; text-align: center; max-width: 800px; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  background: rgba(26,82,118,0.08);
  border: 1px solid rgba(26,82,118,0.15);
  border-radius: 0;
  font-size: 0.82rem; color: var(--primary); font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 20px; color: var(--primary);
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--accent); }
.hero-sub {
  font-size: 1.1rem; color: var(--text2);
  max-width: 640px; margin: 0 auto 32px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 0;
  font-size: 0.95rem; font-weight: 600;
  font-family: var(--font); text-decoration: none;
  cursor: pointer; border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 15px rgba(26,82,118,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26,82,118,0.35); color: #fff; }
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 15px rgba(26,188,156,0.25);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26,188,156,0.35); color: #fff; }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ─── SECTIONS ─── */
.section { padding: 100px 24px; max-width: var(--max-width); margin: 0 auto; }
.section-alt { background: var(--bg2); padding: 100px 24px; }
.section-alt .section { padding: 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block; padding: 6px 18px;
  background: rgba(26,82,118,0.08); border-radius: 0;
  border: 1px solid rgba(26,82,118,0.15);
  font-size: 0.8rem; font-weight: 600;
  color: var(--primary); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700; margin-bottom: 16px; color: var(--primary);
}
.section-sub {
  font-size: 1.05rem; color: var(--text2);
  max-width: 600px; margin: 0 auto; line-height: 1.7;
}

/* ─── PAGE HEADER ─── */
.page-header {
  padding: 120px 24px 60px;
  text-align: center;
  background: linear-gradient(135deg, #eaf2f8 0%, #d4e6f1 50%, #eaf2f8 100%);
}
.page-header-content { max-width: 800px; margin: 0 auto; }
.page-header h1 { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; margin-bottom: 16px; color: var(--primary); }

/* ─── GRID CARDS ─── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.card:hover { border-color: var(--primary-light); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(26,82,118,0.1), rgba(26,188,156,0.06));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.card p { font-size: 0.9rem; color: var(--text2); line-height: 1.6; }
.tag {
  display: inline-block; padding: 4px 12px;
  background: rgba(36,113,163,0.08); border-radius: 0;
  border: 1px solid rgba(36,113,163,0.12);
  font-size: 0.75rem; color: var(--primary-light); font-weight: 500;
}
.card .tag { margin-top: 12px; }

/* ─── PRODUCT CARDS ─── */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.product-card:hover { border-color: var(--primary-light); transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-card h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--primary); }
.product-card .product-icon {
  width: 56px; height: 56px; border-radius: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff; margin-bottom: 20px;
}
.product-card ul { list-style: none; margin-top: 16px; }
.product-card ul li {
  padding: 6px 0; font-size: 0.88rem; color: var(--text2);
  display: flex; align-items: center; gap: 8px;
}
.product-card ul li::before { content: '▸'; color: var(--accent); font-weight: 700; }

/* ─── PROJECT CARDS ─── */
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.project-card:hover { border-color: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.project-year {
  font-size: 0.78rem; color: var(--accent); font-weight: 700;
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.03em;
}
.project-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.project-card p { font-size: 0.85rem; color: var(--text2); line-height: 1.5; }

/* ─── PARTNERS ─── */
.partners-track { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.partner-item {
  padding: 10px 22px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 0; font-size: 0.85rem; font-weight: 500;
  color: var(--text2); transition: all var(--transition);
  box-shadow: var(--shadow);
}
.partner-item:hover { border-color: var(--primary-light); color: var(--primary); transform: translateY(-2px); }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.contact-item-icon {
  width: 40px; height: 40px; border-radius: 0;
  background: rgba(26,82,118,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item a { color: var(--primary-light); font-weight: 500; }
.contact-item a:hover { color: var(--primary); }
.contact-item .label { font-size: 0.78rem; color: var(--text3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; }
.contact-form {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 32px;
  box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.2rem; margin-bottom: 20px; color: var(--primary); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; color: var(--text2); margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 0; color: var(--text);
  font-family: var(--font); font-size: 0.9rem;
  outline: none; transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary-bright); box-shadow: 0 0 0 3px rgba(46,134,193,0.1); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── FOOTER ─── */
.footer {
  background: var(--footer-bg); color: var(--footer-text);
  padding: 48px 24px 24px;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-size: 0.82rem; color: var(--footer-text); }
.footer a { color: var(--footer-text); }
.footer a:hover { color: #fff; }

/* ─── PROFILE TEXT ─── */
.profile-text { max-width: 800px; margin: 0 auto 40px; font-size: 0.95rem; color: var(--text2); line-height: 1.8; }
.profile-text p { margin-bottom: 20px; }

/* ─── FEATURE LIST ─── */
.feature-list { list-style: none; margin-top: 16px; }
.feature-list li { padding: 6px 0; font-size: 0.88rem; color: var(--text2); display: flex; align-items: center; gap: 8px; }
.feature-list li::before { content: '▸'; color: var(--accent); font-weight: 700; }

/* ─── ANIMATIONS ─── */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.15s ease, transform 0.15s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 0.5s ease; }
.fade-in.visible { opacity: 1; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.anim-slide-up { animation: slideUp 0.5s ease forwards; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-logo-img { height: 44px; }
  .nav-logo-text { font-size: 0.9rem; }
  .navbar > span { display: none; }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 768px) {
  .navbar { padding: 10px 16px; }
  .nav-logo-img { height: 40px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    padding: 8px 12px; flex-direction: column;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); max-height: 80vh; overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > a, .nav-dropdown > a { padding: 10px 14px; width: 100%; font-size: 0.9rem; }
  .nav-toggle { display: block; font-size: 1.5rem; }
  .nav-dropdown-menu { position: static; display: none; min-width: auto; box-shadow: none; border: none; background: transparent; padding: 0 0 0 14px; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 8px 12px !important; font-size: 0.82rem; }
  .nav-dropdown-sub-menu { padding: 0 0 0 14px; }
  .hero { padding: 90px 16px 50px; min-height: 92vh; }
  .hero h1 { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .hero-sub { font-size: 0.9rem; margin-bottom: 24px; }
  .hero-badge { font-size: 0.75rem; padding: 6px 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn { width: 100%; justify-content: center; padding: 12px 24px; font-size: 0.9rem; }
  .section { padding: 50px 16px; }
  .section-alt { padding: 50px 16px; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: clamp(1.2rem, 5vw, 1.5rem); }
  .section-sub { font-size: 0.9rem; }
  .card { padding: 24px 20px; }
  .card h3 { font-size: 0.95rem; }
  .card p { font-size: 0.85rem; }
  .product-card { padding: 24px 20px; }
  .page-header { padding: 90px 16px 35px; }
  .page-header h1 { font-size: clamp(1rem, 5vw, 1.3rem); }
  .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; gap: 8px; }
  .footer-copy { font-size: 0.75rem; }
  .subpage-content p { font-size: 0.88rem; }
  .subpage-content h3 { font-size: 1rem; }
  .feature-list li { font-size: 0.82rem; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .project-card { padding: 18px; }
}
@media (max-width: 480px) {
  .navbar { padding: 8px 12px; }
  .nav-logo-img { height: 34px; }
  .hero { padding: 80px 12px 40px; }
  .hero h1 { font-size: 1.3rem; }
  .hero-sub { font-size: 0.85rem; }
  .section { padding: 40px 12px; }
  .section-alt { padding: 40px 12px; }
  .section-header h2 { font-size: 1.15rem; }
  .card { padding: 18px 16px; }
  .card-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .btn { padding: 10px 20px; font-size: 0.85rem; }
  .page-header { padding: 80px 12px 30px; }
}

/* ─── SUBPAGE CONTENT ─── */
.subpage-content { max-width: 800px; margin: 0 auto; }
.subpage-content .card { margin-bottom: 24px; }
.subpage-content p { margin-bottom: 16px; color: var(--text2); line-height: 1.8; }
.subpage-content h3 { color: var(--primary); margin-bottom: 12px; margin-top: 32px; }
.subpage-content ul, .subpage-content ol { margin-bottom: 16px; padding-left: 20px; color: var(--text2); }
.subpage-content li { margin-bottom: 8px; line-height: 1.6; }
