:root {
    --primary-yellow: #f4b400;
    --light-yellow: #fef4e8;
    --dark-yellow: #c38700;
    --accent-yellow: #ffcc00;
    --bg-white: #ffffff;
    --text-dark: #7a5f1f;
    --text-light: #8a7f5f;
    --card: #ffffff;
    --line: #e2e8f0;
    --muted: #64748b;
    
    /* Navigation variables */
    --nav-bg: #ffffff;
    --border-color: #e1e5e9;
    --text-color: #7a5f1f;
}

/* ===== DARK MODE VARIABLES ===== */
[data-theme="dark"] {
    --primary-yellow: #ffcc00;
    --light-yellow: #3a2d00;
    --dark-yellow: #f4b400;
    --accent-yellow: #ffd54f;
    --bg-white: #1a1a1a;
    --text-dark: #ffffff;
    --text-light: #d6d3d1;
    --card: #242424;
    --line: #333333;
    --muted: #a3a3a3;
    --nav-bg: #2d2d2d;
    --border-color: #333333;
    --text-color: #ffffff;
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes yellowPulse {
    0% { background: rgba(244, 180, 0, 0.7); }
    50% { background: rgba(244, 180, 0, 0.9); }
    100% { background: rgba(244, 180, 0, 0.7); }
}

@keyframes gradientFade {
    0% {
        background: linear-gradient(135deg, var(--light-yellow), var(--bg-white));
    }
    50% {
        background: linear-gradient(135deg, var(--bg-white), var(--light-yellow));
    }
    100% {
        background: linear-gradient(135deg, var(--light-yellow), var(--bg-white));
    }
}

@keyframes gradientFadeDark {
    0% {
        background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    }
    50% {
        background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    }
    100% {
        background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    }
}

@keyframes footerPulse {
    0% { background: rgba(244, 180, 0, 0.7); }
    50% { background: rgba(244, 180, 0, 0.9); }
    100% { background: rgba(244, 180, 0, 0.7); }
}

@keyframes heroGlow {
    0% {
        transform: rotate(0deg) translate(0, 0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: rotate(180deg) translate(20px, 20px) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) translate(0, 0) scale(1);
        opacity: 0.4;
    }
}
  
/* ===== RESET STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body background animation */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 80px; /* Account for fixed header */
    transition: background-color 0.3s, color 0.3s;
    
    /* Animated background */
    background: linear-gradient(135deg, var(--light-yellow), var(--bg-white));
    animation: gradientFade 8s ease-in-out infinite;
}

/* Apply dark mode animated background */
[data-theme="dark"] body {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    animation: gradientFadeDark 8s ease-in-out infinite;
}
/* ===== About Page Styles ===== */

/* Container */


/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s, box-shadow 0.3s;
  z-index: 1000;
}

/* Add shadow on scroll */
nav.scrolled {
  background: var(--bg-white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Toggle on left */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: auto;
}

/* Logo in center */
.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.imglogo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--dark-yellow);
}

.logotxt {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--text-color);
  letter-spacing: 1px;
  transition: color 0.3s;
}

nav.scrolled .logotxt {
  color: var(--dark-yellow);
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 50px;
  height: 25px;
  background: #e0e0e0;
  border-radius: 12.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-switch:hover {
  transform: scale(1.05);
}

.toggle-handle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.toggle-switch.active {
  background: var(--primary-yellow);
}

.toggle-switch.active .toggle-handle {
  transform: translateX(25px);
}

.toggle-icon {
  font-size: 1.2rem;
  transition: opacity 0.3s ease;
}

.sun-icon { opacity: 1; }
.moon-icon { opacity: 0.4; }

.toggle-switch.active ~ .moon-icon { opacity: 1; }
.toggle-container:has(.toggle-switch.active) .sun-icon { opacity: 0.4; }

/* Hamburger */
.hamburger {
  position: absolute;
  right: 2rem;
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  z-index: 1100;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) { opacity: 0; }

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Nav links */
.nav-links {
  position: absolute;
  right: 2rem;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.nav-links a:hover {
  background: var(--border-color);
  color: var(--dark-yellow);
}

/* Responsive */
@media (max-width: 1042px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: var(--nav-bg);
    width: 220px;
    height: calc(100vh - 70px);
    padding: 2rem;
    border-left: 1px solid var(--border-color);
    transition: right 0.4s ease;
  }

  .nav-links.active { right: 0; }

  .hamburger { display: flex; }

  .logo { 
    align-items:center; position: relative; left: auto; transform: none; }
}
footer {
  background: var(--dark-yellow);
  color: white;
  padding: 2rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle glowing animation */
footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  animation: footerPulse 6s infinite linear;
  z-index: 0;
}

footer * {
  position: relative;
  z-index: 1;
}

/* Footer nav links */
.nav-links1 {
  display: grid;
  place-items: center;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.nav-links1 a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
}

.nav-links1 a:hover {
  color: var(--light-yellow);
  transform: scale(1.05);
}

/* Animation */
@keyframes footerPulse {
  0% { transform: rotate(0deg); opacity: 0.4; }
  50% { opacity: 0.8; }
  100% { transform: rotate(360deg); opacity: 0.4; }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1044px) {
  /* Mobile Navigation */
  .hamburger {
    display: flex;
    right: 1rem;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background: var(--nav-bg);
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.4s ease-in-out;
    border-left: 1px solid var(--border-color);
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .logo {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .toggle-container { order: 1; }
  .imglogo { order: 2; }
  .logotxt { order: 3; }
  
  
  /* Mobile Table Styles */
  thead { display: none; }
  table, tbody, tr, td {
    display: block;
    width: 100%;
  }
  
  tbody tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--card);
  }
  
  tbody td {
    border: none;
    border-top: 1px solid var(--line);
    padding: 10px;
  }
  
  tbody td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
  }
  
  /* Mobile Hero Section */
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 0.95rem; }
  
  /* Mobile Container */
  .container {
    margin: 40px 20px 60px;
    padding: 15px;
  }
}
/* ===== Table Container ===== */
.container {
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 20px;
}

.wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 28px;
  transition: background 0.3s, color 0.3s;
}

/* ===== Headings ===== */
.container > h1 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 18px;
  letter-spacing: .3px;
  background: linear-gradient(90deg, var(--dark-yellow), var(--primary-yellow), var(--accent-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wrap > h1 {
  font-size: clamp(20px, 2.4vw, 28px);
  margin: 0 0 8px;
  color: var(--text-dark);
}

.wrap > p {
  color: var(--muted);
  margin: 0 0 22px;
}

/* ===== Table ===== */
table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
}

thead th {
  text-align: left;
  font-weight: 700;
  padding: 14px 16px;
  background: var(--light-yellow);
  color: var(--text-dark);
  border-bottom: 1px solid var(--line);
}

tbody td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--text-light);
}

tbody tr:nth-child(odd) {
  background: rgba(244, 180, 0, 0.05); /* faint yellow stripe */
}

tbody tr:hover {
  background: rgba(244, 180, 0, 0.15);
  transition: background .22s ease;
}

/* Phase cells highlighted */
td.phase {
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary-yellow), var(--accent-yellow));
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
}

/* Inline text helpers */
td em {
  font-style: normal;
  color: var(--dark-yellow);
  font-weight: 600;
}
td strong {
  color: var(--primary-yellow);
}

/* ===== Responsive (mobile cards) ===== */


/* ===== Milestone Tags ===== */
.foot {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.foot strong {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--light-yellow);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
  transition: transform .15s ease, border-color .2s ease;
}

.tag.ok {
  background: var(--primary-yellow);
  color: #fff;
  border-color: var(--dark-yellow);
}

.tag:hover {
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.05"/><circle cx="80" cy="40" r="0.8" fill="white" opacity="0.03"/><circle cx="40" cy="80" r="1.2" fill="white" opacity="0.04"/><circle cx="60" cy="10" r="0.6" fill="white" opacity="0.06"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-yellow);
    border: 2px solid var(--primary-yellow);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(244, 180, 0, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(244, 180, 0, 0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: var(--dark-yellow);
    border-color: var(--dark-yellow);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(244, 180, 0, 0.4);
}

/* Categories Section */
.categories {
    padding: 6rem 2rem;
    background: var(--bg-white);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--dark-yellow));
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: var(--card);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(122, 95, 31, 0.1);
    border: 1px solid var(--line);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--accent-yellow) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(122, 95, 31, 0.3);
    border-color: var(--primary-yellow);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.category-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.category-card:hover .category-icon img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) brightness(1.1);
    transform: scale(1.1);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .categories {
        background: var(--bg-white);
    }
    
    .section-title {
        color: var(--text-dark);
    }
    
    .category-card {
        background: var(--card);
        box-shadow: 0 10px 30px rgba(122, 95, 31, 0.2);
        border-color: var(--line);
    }
    
    .category-name {
        color: var(--text-dark);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .hero {
        padding: 0 1rem;
    }
    
    .categories {
        padding: 4rem 1rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}
