/* ========= Variables: Soft Neubrutalism Theme ========= */
:root {
  --bg-body: #FFFDF5;       /* Creamy Background */
  --bg-card: #FFFFFF;
  --primary: #FFB703;       /* Marigold Yellow */
  --primary-hover: #FB8500;
  --accent-green: #A3E635;  /* For "Good Posture" vibes */
  --accent-blue: #60A5FA;   /* For "Tech" vibes */
  --text-main: #111827;     /* Soft Black */
  --text-muted: #4B5563;
  --border-color: #000000;  /* Bold Black Borders */
  --border-width: 2px;
  --shadow-hard: 4px 4px 0px #000000; /* The Signature Hard Shadow */
  --shadow-hover: 6px 6px 0px #000000;
  --font-heading: 'Outfit', sans-serif; 
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius: 16px;
  --radius-pill: 50px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.2s ease; }
img { max-width: 100%; display: block; border-radius: var(--radius); border: var(--border-width) solid var(--border-color); }
ul { list-style: none; }
ul li { margin-bottom: 0.8rem; position: relative; padding-left: 1.5rem; }
ul li::before {
  content: "→";
  color: var(--primary);
  font-weight: 900;
  position: absolute;
  left: 0;
}

/* ========= Typography ========= */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; color: var(--text-main); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.5rem; }

/* ========= Navigation ========= */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(255, 253, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-width) solid var(--border-color);
  padding: 1rem 0;
}
.nav-container { 
  width: 90%; max-width: 1200px; margin: 0 auto; 
  display: flex; justify-content: space-between; align-items: center; 
}
.logo { 
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 900; 
  display: flex; align-items: center; gap: 10px;
}
.logo-icon {
  background: var(--primary); 
  border: var(--border-width) solid var(--border-color);
  padding: 8px; 
  border-radius: 50%; 
  box-shadow: 2px 2px 0px #000;
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.logo-icon:hover {
  transform: rotate(-10deg) scale(1.1);
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 700; font-size: 0.95rem; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-hover); text-decoration: underline; text-decoration-thickness: 3px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ========= Buttons ========= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.8rem 2rem; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 1rem; cursor: pointer;
  border: var(--border-width) solid var(--border-color);
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn-primary {
  background: var(--primary); color: var(--text-main);
  box-shadow: var(--shadow-hard);
}
.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px #000; /* Pressed effect */
}
.btn-secondary {
  background: #FFFFFF; color: var(--text-main);
  box-shadow: var(--shadow-hard);
}
.btn-secondary:hover {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px #000;
}
.btn-dark {
  background: #111827; color: #FFFFFF;
  box-shadow: var(--shadow-hard);
}
.btn-dark:hover {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px #000;
}

/* ========= Layout Components ========= */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 4rem 0; }
.text-center { text-align: center; }

/* Bento Grid */
.bento-grid { 
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; margin-top: 2rem; 
}
.card {
  grid-column: span 4;
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-hard);
  transition: transform 0.3s ease;
  position: relative; overflow: hidden;
}
.card.wide { grid-column: span 6; }
.card.full { grid-column: span 12; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  background: #fff;
  border: 2px solid #000;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 4px 4px 0 #000;
}

/* Solution Grid */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .solution-grid { grid-template-columns: 1fr; }
}

/* Table Styles */
.styled-table {
  width: 100%;
  border-collapse: separate; /* Changed to separate for border-radius to work */
  border-spacing: 0;
  margin: 2rem 0;
  font-size: 1rem;
  font-family: var(--font-body);
  box-shadow: var(--shadow-hard);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-card);
}

.styled-table thead tr {
  background-color: var(--primary);
  color: var(--text-main);
  text-align: left;
}

.styled-table th,
.styled-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.styled-table th {
  font-family: var(--font-heading);
  font-weight: 800;
  border-bottom: var(--border-width) solid var(--border-color);
}

.styled-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.styled-table tbody tr:last-of-type td {
  border-bottom: none;
}

.styled-table tbody tr:hover {
  background-color: #fffbeb; /* Light yellow hover */
}

/* Badges */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 1rem; border: var(--border-width) solid var(--border-color);
  background: #FFFFFF; box-shadow: 2px 2px 0px #000;
}
.badge.yellow { background: #FEF3C7; }
.badge.green { background: #DCFCE7; }
.badge.blue { background: #DBEAFE; }

/* ========= Feature Specifics ========= */
.hero { 
  min-height: 90vh; display: flex; flex-direction: column; 
  align-items: center; justify-content: center; text-align: center; padding-top: 120px;
}

/* 3-Phone Animation Container */
.phones-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 400px;
  margin: 4rem auto 0; /* Center the container */
  display: flex;
  justify-content: center;
  align-items: center; /* Align items vertically */
}

.phone-mockup {
  width: 180px;
  height: 360px;
  background: transparent;
  border: 4px solid transparent;
  border-radius: 24px;
  position: absolute;
  overflow: hidden;
  box-shadow: none;
  transition: all 0.5s ease; /* Animate all properties */
  padding-top: 20px;
}

.phone-mockup:hover {
  transform: scale(1.15) !important; /* Enlarge on hover and override other transforms */
  z-index: 10 !important; /* Bring to front on hover */
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
  border-radius: 20px;
}

.phone-left {
  transform: translateX(-130px) rotate(-10deg) translateY(20px);
  z-index: 1;
}

.phone-right {
  transform: translateX(130px) rotate(10deg) translateY(20px);
  z-index: 1;
}

.phone-center {
  transform: translateY(0) scale(1.1);
  z-index: 2;
  border-width: 6px;
  box-shadow: none;
}

/* ========= Redesigned Sections ========= */

/* Three Card Layout */
.three-card-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* Timeline Redesign */
.timeline-process {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}
/* Vertical Line */
.timeline-process::before {
  content: '';
  position: absolute;
  left: 39px; /* Aligned with the center of the circle (2rem padding + ~half of circle width) */
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--border-color);
  z-index: 0;
}

.timeline-step { 
  display: flex; 
  gap: 1.5rem; 
  margin-bottom: 2rem; 
  align-items: center;
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-hard);
  transition: transform 0.3s ease;
}
.timeline-step:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-hover);
}

.step-num {
  background: var(--primary); 
  color: var(--text-main); 
  min-width: 50px; 
  height: 50px;
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-weight: 900; 
  font-size: 1.2rem;
  border: 3px solid #000; 
  box-shadow: 2px 2px 0 #000;
  flex-shrink: 0; /* Prevent shrinking */
}

/* Two Column Layout (Modules) */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.column-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-hard);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.column-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.module-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  border: 3px solid #000;
  background: #fff;
  padding: 10px;
  box-shadow: 4px 4px 0 #000;
}

/* Before/After Comparison */
.comparison-wrapper { display: flex; gap: 1rem; margin-top: 1rem; }
.comp-box { flex: 1; position: relative; }
.comp-box img {
  width: 100%;
  height: auto;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  display: block;
}
.comp-label {
  position: absolute; top: 10px; left: 10px; z-index: 10;
  padding: 4px 8px; font-weight: 700; font-size: 0.7rem;
  border: 2px solid #000; background: #fff; box-shadow: 2px 2px 0 #000;
}

/* Timeline */
.timeline-step { 
  display: flex; gap: 1rem; margin-bottom: 2rem; align-items: flex-start; 
}
.step-num {
  background: var(--text-main); color: #fff; min-width: 40px; height: 40px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; border: 2px solid #000; box-shadow: 2px 2px 0 #000;
}

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

/* Mobile */
@media (max-width: 768px) {
  .nav-links { 
    display: none; position: absolute; top: 70px; left: 0; width: 100%; 
    background: var(--bg-body); flex-direction: column; padding: 2rem; border-bottom: 2px solid #000; 
  }
  .nav-links.mobile-open { display: flex; }
  .nav-toggle { display: block; }
  .card, .card.wide, .card.full { grid-column: span 12; }
  .phones-container { transform: scale(0.6); height: 300px; margin-top: 1rem; }
  .comparison-wrapper { flex-direction: column; }
  
  /* New Mobile Styles */
  .three-card-layout, .two-column-layout { grid-template-columns: 1fr; }
  .timeline-process { padding-left: 0; }
  .timeline-process::before { left: 24px; } /* Adjust line for mobile if needed, or hide */
}

/* ========= CTA Section ========= */
.cta-section {
  padding: 6rem 0;
  background: var(--bg-body);
}

.cta-card {
  background: var(--primary);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-hard);
  position: relative;
  overflow: hidden;
}

/* Decorative pattern for CTA */
.cta-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(#000 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.1;
  pointer-events: none;
}

.cta-card h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.cta-card p {
  color: var(--text-main);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  font-weight: 600;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-buttons .btn {
  min-width: 200px;
}

/* ========= Footer ========= */
.footer {
  background: #111827; /* Dark background */
  color: #fff;
  padding: 3rem 0;
  border-top: var(--border-width) solid var(--border-color);
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #9CA3AF;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-copyright {
  color: #6B7280;
  font-size: 0.85rem;
  margin-top: 2rem;
  text-align: center;
  border-top: 1px solid #374151;
  padding-top: 2rem;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

.profile-pic {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 12px;
}
.milestones-intro {
    max-width: 800px;
    margin: 8px auto 20px;
    color: #666;
    font-size: 0.98rem;
}

/* Milestone Card Styles */
.milestone-card {
  padding: 0;
  overflow: hidden;
}

.milestone-link {
  display: block;
  position: relative;
  height: 100%;
}

.milestone-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.milestone-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #fff;
  padding: 2rem;
}

.milestone-overlay h3 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.milestone-overlay p {
  color: #FFB703;
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
}

.milestone-card:hover .milestone-overlay {
  opacity: 1;
}

.milestone-card:hover .milestone-img {
  transform: scale(1.05);
}

/* Optional: keep consistent padding inside cards */
.card h3 { margin-bottom: 12px; }
/* Milestone Modal */
.milestone-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.milestone-modal.active {
    display: block;
}

.milestone-modal-content {
    background-color: #fff;
    margin: 2rem auto;
    padding: 2rem;
    max-width: 1000px;
    border-radius: 12px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary-hover);
}

.milestone-gallery {
    margin-top: 2rem;
}

.milestone-section {
    margin-bottom: 3rem;
}

.milestone-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

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

.gallery-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-images img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .milestone-modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .gallery-images {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
}