/* GLOBAL */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: "Poppins", serif; line-height:1.6; color:#111; background:#f9f9f9; scroll-behavior: smooth; }
a { text-decoration:none; }

/* BUTTONS */
.btn, .btn-small {
  background-color: rgb(0,60,0);
  color: #fff;
  border-radius: 10px;
  text-align: center;
  font-weight:600;
  transition: all 0.3s ease;
  padding: 10px;
}
.btn { padding: 0.9em 2em; margin-top:20px; display:inline-block; }
.btn:hover, .btn-small:hover { background-color: rgb(0,80,0); transform: translateY(-3px); }

/* NAVBAR */
.navbar {
  position: sticky;
  top:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:5px 25px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  z-index:100;
  box-shadow:0 4px 15px rgba(0,0,0,0.05);
}
.nav-logo { display:flex; align-items:center; gap:10px; font-weight:700; font-size:1.2em; color: rgb(0,60,0); }
.nav-logo img { width:100px; height: auto; }
.nav-links { list-style:none; display:flex; gap:25px;font-size: 1.2em; }
.nav-links a { font-weight:600; color: rgb(0,60,0); transition:0.3s; }
.nav-links a:hover { color: rgb(0,80,0); }

/* HERO */
.hero {
  width: 100%;           /* full width */
  min-height: 100vh;     /* full viewport height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background-color: rgb(0,60,0); /* your solid green */
}

.hero .logo { width: 200px; margin-bottom:20px; animation: pulse 1.2s ease-out; }
.hero-title { font-size:3.5em; margin-bottom:10px; }
.hero-subtitle { font-size:1.5em; margin-bottom:20px; }
@keyframes pulse { 0%{transform:scale(0.9);opacity:0;}50%{transform:scale(1.05);opacity:1;}100%{transform:scale(1);opacity:1;} }

/* SECTIONS */
.section { padding:80px 20px; max-width:1200px; margin:auto; opacity:0; transform: translateY(20px); transition: all 0.8s ease-out; }
.section h2 { color: rgb(0,60,0); margin-bottom:25px; font-size:2em; text-align:center; }

/* PRODUCTS - GLASSMORPHISM */
.products { display:flex; flex-wrap:wrap; gap:25px; justify-content:center; }
.product-card {
  flex:1 1 280px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius:15px;
  padding:25px;
  text-align:center;
  box-shadow:0 8px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-8px); box-shadow:0 15px 40px rgba(0,0,0,0.15); }
.product-card h3 { color: rgb(0,60,0); margin-bottom:15px; }

/* FAQ ACCORDION */
.faq-item { margin-bottom:20px; border-bottom:1px solid #ddd; }
.faq-question {
  width:100%; background:none; border:none; padding:18px 0;
  font-size:1.1em; font-weight:600; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center;
}
.faq-question::after { content:'+'; font-weight:bold; transition:0.3s; }
.faq-question.active::after { transform: rotate(45deg); }
.faq-answer { display:none; padding-bottom:15px; font-weight:400; }

/* CONTACT FORM */
form { max-width:600px; margin:auto; }
form input, form textarea {
  width:100%; padding:12px; margin-bottom:15px; border-radius:8px; border:1px solid #ccc; transition:0.3s;
}
form input:focus, form textarea:focus { border-color: rgb(0,60,0); outline:none; }

/* FOOTER */
footer { text-align:center; padding:30px; background:#111; color:#fff; font-size:0.9em; }

/* FADE-IN ANIMATION */
.fade-in.show { opacity:1; transform:translateY(0); }

/* RESPONSIVE */
@media(max-width:768px){
  .products { flex-direction:column; }
  .hero-title { font-size:2.5em; }
  .hero-subtitle { font-size:1.2em; }
  .nav-links { flex-direction:column; gap:10px; margin-top:10px; }
}
.product-card p {
    margin-bottom: 20px; /* adds space below text before button */
}
.hero.education { background-color: rgb(26, 42, 90);}       /* slightly brighter green */
.hero.prediction { background-color: rgb(75, 42, 127);}   /* even brighter green */
.hero.research { background-color: rgb(92, 58, 33);}      /* darker green */
.hero.contact { background-color: rgb(0,80,0);}
.nav-links .contact a:hover { color: rgb(0,80,0); }
.nav-links .research a:hover { color: rgb(92, 58, 33); }
.nav-links .prediction a:hover { color: rgb(75, 42, 127); }
.nav-links .education a:hover { color: rgb(26, 42, 90); }
.section {
  padding: 50px 20px;
  text-align: center;
}

.contact-info p {
  font-size: 1.1rem;
  margin: 10px 0;
}

.contact-info a {
  color: #0077cc;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}
.btn-substack {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 15px;
  background-color: rgb(26, 42, 90); /* Dark Blue */
  color: #ffffff; /* white text */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-substack:hover {
  background-color: rgb(75, 42, 127); /* Regal Purple on hover */
  transform: translateY(-2px);
}

/* Wrapper to center the button */
.appstore-wrapper {
  text-align: center;       /* center horizontally */
  padding: 50px 20px;       /* padding above and below */
}

/* Button styling */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;      /* larger clickable area */
  background: linear-gradient(135deg, rgb(26, 42, 90), rgb(75, 42, 127));
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

.appstore-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  background: linear-gradient(135deg, rgb(75, 42, 127), rgb(26, 42, 90));
}

.appstore-btn .app-icon {
  width: 28px;
  height: 28px;
}

/* --- FAQ SECTION SPECIFIC --- */

.faq-layout {
  width: 100%;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-section {
  width: 100%;
}

.faq-heading {
  width: 100%;
  max-width: 1100px;
  margin: 50px auto 20px auto;
  padding: 0 20px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
  text-align: left;
}

/* --- FAQ ITEMS --- */
.faq-item {
  width: 100%;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  transition: background-color 0.3s ease;
}

/* Category Accent Borders */
.faq-item.all { border-left: 6px solid rgb(0,60,0); }
.faq-item.education { border-left: 6px solid rgb(26, 42, 90); }
.faq-item.prediction { border-left: 6px solid rgb(75, 42, 127); }
.faq-item.research { border-left: 6px solid rgb(92, 58, 33); }

/* --- THE QUESTION --- */
.faq-question {
  width: 100%;
  max-width: 1100px;
  padding: 30px 20px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #111;
  outline: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

/* --- THE ANSWER (The Fix) --- */
.faq-answer {
  width: 100%;
  max-height: 0;           /* Strictly hidden */
  overflow: hidden;        /* Prevents text peeking */
  visibility: hidden;      /* Prevents tab-focus or accidental visibility */
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
  display: flex;
  justify-content: center;
}

.faq-item.active .faq-answer {
  max-height: 500px;       /* Large enough to fit text */
  visibility: visible;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer p {
  width: 100%;
  max-width: 1100px;
  padding: 0 20px 30px 20px; /* Padding ONLY at the bottom when open */
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  margin: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .faq-question { font-size: 1.1rem; padding: 20px; }
  .faq-heading { font-size: 1.3rem; }
}
.privacy-wrap {
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.privacy-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  width: auto;            /* ⬅ shrink to content */
  text-align: right;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-right: 50px;
}

.privacy-toggle i {
  transition: transform 0.25s ease;
}

.privacy-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  font-size: 0.75rem;
  color: #000000;
  line-height: 1.6;
  margin-top: 0.75rem;
  padding-right: 50px;
  text-align: right;      /* ⬅ right aligned text */
  max-width: 420px; 
}

.privacy-wrap.open .privacy-content {
  max-height: 800px; /* safe large cap */
  opacity: 1;
}

.privacy-wrap.open .privacy-toggle i {
  transform: rotate(180deg);
}

.privacy-content h4 {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1rem 0 0.3rem;
  color: #000000;
}

.privacy-content ul {
  margin-left: 1rem;
  margin-bottom: 0.75rem;
}

.privacy-content li {
  margin-bottom: 0.35rem;
}
.contact-card {
  max-width: 420px;
  margin: 6rem auto;  /* vertically centered-ish */
  padding: 2rem;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.contact-card h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: #1C1C1E;
}

.contact-card .subtitle {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.contact-methods {
  list-style: none;
  padding: 0;
  text-align: left;
}

.contact-methods li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
}


.contact-btn:hover {
  background-color: rgb(0,80,0);
  transform: translateY(-2px);
}
.contact-text {
  text-align: left;
  font-family: 'Inter', sans-serif;
  max-width: 400px;
}

.contact-text h4 {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 0.5rem;
}

.contact-text p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1C1C1E;
}

.linkedin-link {
  color: #0A66C2;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 0.25rem;
}

.linkedin-link i {
  margin-right: 0.25rem;
}
