/* ========================================
   IAIS Portfolio - Premium Styles
   ======================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Primary Colors */
  --primary: #1b6b3a;
  --primary-light: #2d8f50;
  --primary-dark: #0f4d28;
  --primary-50: rgba(27, 107, 58, 0.05);
  --primary-100: rgba(27, 107, 58, 0.1);
  --primary-200: rgba(27, 107, 58, 0.2);

  /* Accent */
  --accent: #10b981;
  --accent-light: #34d399;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gray-950: #020617;

  /* Dark section */
  --dark-bg: #0c1821;
  --dark-card: #152232;
  --dark-card-hover: #1a2d42;
  --dark-border: rgba(255, 255, 255, 0.06);

  /* Gradient */
  --gradient-primary: linear-gradient(135deg, #1b6b3a 0%, #10b981 100%);
  --gradient-dark: linear-gradient(135deg, #0c1821 0%, #1a2d42 100%);
  --gradient-hero: linear-gradient(
    180deg,
    rgba(12, 24, 33, 0.3) 0%,
    rgba(12, 24, 33, 0.85) 100%
  );

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 40px rgba(27, 107, 58, 0.15);

  /* Typography */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Outfit", "Inter", sans-serif;

  /* Sizing */
  --nav-height: 72px;
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  transition: color var(--transition-fast);
}

.navbar.scrolled .nav-logo {
  color: var(--primary);
}

.logo-icon {
  font-size: 1.6rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--transition-fast);
}

.navbar.scrolled .nav-link {
  color: var(--gray-600);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--primary);
  background: var(--primary-50);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.navbar.scrolled .nav-toggle span {
  background: var(--gray-700);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
  animation: fadeInUp 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #34d399, #10b981, #a7f3d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.hero-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(27, 107, 58, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 107, 58, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scroll-bounce 2s ease-in-out infinite;
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-white {
  background: var(--white);
}

.section-light {
  background: var(--gray-50);
}

.section-dark {
  background: var(--dark-bg);
}

.section-gradient {
  background: linear-gradient(180deg, var(--dark-bg) 0%, #0a2f1a 100%);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}

.section-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.section-label.light {
  color: var(--accent-light);
}

.section-label.light::before {
  background: var(--accent-light);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title.light {
  color: var(--white);
}

.section-description {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 620px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.section-description.light {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== CONTENT CARDS ===== */
.content-card {
  padding: 48px;
  border-radius: var(--radius-xl);
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
}

.elevated-card {
  background: var(--white);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
}

/* ===== OVERVIEW GRID ===== */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.overview-item {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
}

.overview-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.overview-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.overview-item h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--gray-800);
}

.overview-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.objective-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.objective-list li {
  font-size: 0.9rem;
  color: var(--gray-500);
  padding-left: 20px;
  position: relative;
}

.objective-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== PROBLEM GRID ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.problem-item {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
}

.problem-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #fee2e2;
  background: #fff5f5;
}

.problem-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #ef4444;
  transition: all var(--transition-base);
}

.problem-item:hover .problem-icon {
  background: #fecaca;
}

.problem-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--gray-800);
}

.problem-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== SOLUTION GRID ===== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.solution-item {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.solution-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.solution-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-100);
  line-height: 1;
  margin-bottom: 16px;
  transition: color var(--transition-base);
}

.solution-item:hover .solution-number {
  color: var(--primary-200);
}

.solution-item h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--gray-800);
}

.solution-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--dark-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(16, 185, 129, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon-wrap {
  background: rgba(16, 185, 129, 0.2);
  transform: scale(1.05);
}

.feature-emoji {
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* ===== ARCHITECTURE ===== */
.architecture-showcase {
  margin-top: 40px;
}

.arch-image-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--gray-200);
  background: var(--white);
  padding: 24px;
}

.arch-img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* ===== TECH STACK ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.tech-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.tech-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tech-icon-area {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.tech-card h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 6px;
}

.tech-category {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-light);
  display: block;
  margin-bottom: 12px;
}

.tech-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

/* Tech Table */
.tech-table-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
}

.tech-table thead {
  background: rgba(255, 255, 255, 0.05);
}

.tech-table th {
  padding: 16px 24px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tech-table td {
  padding: 14px 24px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.tech-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.tech-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.tech-badge.frontend {
  background: rgba(97, 218, 251, 0.15);
  color: #61dafb;
}
.tech-badge.backend {
  background: rgba(81, 43, 212, 0.15);
  color: #a78bfa;
}
.tech-badge.database {
  background: rgba(0, 117, 143, 0.2);
  color: #22d3ee;
}
.tech-badge.auth {
  background: rgba(247, 223, 30, 0.12);
  color: #fbbf24;
}
.tech-badge.tools {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

/* ===== UI DESIGNS ===== */
.ui-showcase {
  margin-top: 40px;
}

.ui-image-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--gray-200);
  background: var(--white);
  padding: 24px;
}

.ui-img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* ===== DIAGRAMS ===== */
.diagram-tabs {
  display: flex;
  gap: 8px;
  margin-top: 40px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.diagram-tab {
  padding: 10px 24px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: var(--white);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.diagram-tab:hover {
  border-color: var(--primary-200);
  color: var(--primary);
}

.diagram-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.diagram-panel {
  display: none;
}

.diagram-panel.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.diagram-image-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  background: var(--white);
  padding: 24px;
}

.diagram-img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.diagram-caption {
  font-size: 0.85rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 16px;
  font-style: italic;
}

/* ===== TESTING ===== */
.testing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testing-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  transition: all var(--transition-base);
}

.testing-card:hover {
  transform: translateY(-6px);
  background: var(--dark-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testing-icon {
  margin-bottom: 20px;
}

.testing-card h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 10px;
}

.testing-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 20px;
}

.test-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #4ade80;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-dot.pass {
  background: #4ade80;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  margin-top: 48px;
  padding-left: 48px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
  display: flex;
  align-items: flex-start;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -48px;
}

.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.timeline-dot.completed {
    border: 1px solid rgb(23, 138, 0);
    box-shadow: 0 0 0 6px var(--primary-100);
}

.timeline-dot.completed::after {
    content: '✓';
    color: rgb(0, 189, 0);
    font-size: 0.9rem;
    font-weight: 700;
}

.timeline-dot.active {
    border: 1px solid rgb(0, 138, 41);
    box-shadow: 0 0 0 6px rgba(0, 133, 88, 0.15);
    animation: pulse-ring 2s ease-in-out infinite;
}

.timeline-dot.active::after {
  content: "⏳";
  font-size: 0.85rem;
}

.timeline-dot.will {
    border: 1px solid rgb(0, 71, 138);
    box-shadow: 0 0 0 6px rgba(16, 103, 185, 0.15);
    animation: pulse-ring 2s ease-in-out infinite;
}

.timeline-dot.will::after {
    content: '📅';
    font-size: 0.85rem;
}

.timeline-content {
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  flex: 1;
  transition: all var(--transition-base);
}

.timeline-content:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.timeline-week {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin: 6px 0 8px;
  color: var(--gray-800);
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== BUDGET ===== */
.budget-table-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  margin-top: 40px;
}

.budget-table {
  width: 100%;
  border-collapse: collapse;
}

.budget-table thead {
  background: var(--primary);
}

.budget-table th {
  padding: 16px 24px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.budget-table td {
  padding: 14px 24px;
  font-size: 0.9rem;
  color: var(--gray-700);
  border-top: 1px solid var(--gray-100);
}

.budget-table tbody tr {
  transition: background var(--transition-fast);
}

.budget-table tbody tr:hover {
  background: var(--gray-50);
}

.budget-table .budget-total {
  background: var(--gray-50);
}

.budget-status {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.budget-status.free {
  background: #dcfce7;
  color: #16a34a;
}

.budget-status.minimal {
  background: #dbeafe;
  color: #2563eb;
}

/* ===== MEETINGS ===== */
.meetings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.meeting-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.meeting-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.meeting-image-placeholder {
  height: 200px;
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.placeholder-text {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 500;
}

.meeting-info {
  padding: 20px;
}

.meeting-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}

.meeting-info h3 {
  font-size: 1rem;
  margin: 6px 0 8px;
  color: var(--gray-800);
}

.meeting-info p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.meeting-note,
.team-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 32px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.meeting-note p,
.team-note p {
  font-size: 0.85rem;
  line-height: 1.6;
}

.meeting-note code,
.team-note code {
  background: rgba(30, 64, 175, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.team-card {
  text-align: center;
  padding: 24px 12px;
  border-radius: var(--radius-lg);
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  transition: all var(--transition-base);
}

.team-card:hover {
  transform: translateY(-6px);
  background: var(--dark-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.team-avatar {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
}

.avatar-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.avatar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  animation: rotate-ring 4s linear infinite;
}

.team-card h3 {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 6px;
}

.team-role {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-light);
  display: block;
  margin-bottom: 8px;
}

.team-email {
  font-size: 0.74rem;
  line-height: 1.3;
  word-break: break-word;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.team-note {
  color: rgba(255, 255, 255, 0.6);
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.team-note code {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-950);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-links h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-light);
  transform: translateX(4px);
  display: inline-block;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(27, 107, 58, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(27, 107, 58, 0.4);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.15);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0.05);
  }
  100% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.15);
  }
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.3;
  }
}

@keyframes rotate-ring {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid,
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

  .team-card {
    padding: 16px 8px;
  }

  .team-avatar,
  .avatar-placeholder {
    width: 64px;
    height: 64px;
  }

  .team-card h3 {
    font-size: 0.82rem;
  }

  .team-email {
    font-size: 0.66rem;
  }

  .social-link {
    width: 26px;
    height: 26px;
  }

  .social-link svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .section {
    padding: 64px 0;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    flex-direction: column;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu .nav-link {
    color: var(--gray-700);
    padding: 12px 20px;
    width: 100%;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    color: var(--primary);
    background: var(--primary-50);
  }

  .nav-toggle {
    display: flex;
  }

  .content-card {
    padding: 28px 20px;
  }

  .problem-grid,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .tech-grid,
  .testing-grid,
  .meetings-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .diagram-tabs {
    flex-direction: column;
  }

  .team-card {
    padding: 10px 4px;
  }

  .team-avatar,
  .avatar-placeholder {
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
  }

  .team-card h3 {
    font-size: 0.64rem;
    margin-bottom: 4px;
  }

  .team-email {
    font-size: 0.54rem;
    margin-bottom: 8px;
  }

  .team-socials {
    gap: 6px;
  }

  .social-link {
    width: 20px;
    height: 20px;
  }

  .social-link svg {
    width: 11px;
    height: 11px;
  }

  .diagram-tab {
    text-align: center;
  }

  .timeline {
    padding-left: 36px;
  }

  .timeline::before {
    left: 13px;
  }

  .timeline-marker {
    left: -36px;
  }

  .timeline-dot {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .timeline-dot.completed::after {
    font-size: 0.7rem;
  }

  .timeline-dot.active::after {
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .container {
    padding: 0 16px;
  }
}
