/*
Theme Name: AskAndy
Theme URI: https://askandy.sg/
Author: Myer
Author URI: https://askandy.sg/
Description: A basic custom WordPress theme for AskAndy
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: askandy
Tags: custom, basic, responsive
*/

/* styles.css for AskAndy One-page Site with smooth animations */

:root {
  --bg-dark: #0b1b3b;
  --bg-card: #0f2a59;
  --accent: #5fa6ff;
  --text-light: #ffffff;
  --text-muted: rgba(255,255,255,0.7);
  --text-dark: #0b1b3b;
  --transition: all 0.3s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Smooth fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 27, 59, 0.85);
  backdrop-filter: blur(8px);
  padding: 1rem 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.navbar:hover {
  background: rgba(11, 27, 59, 0.95);
}

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

.navbar .nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.navbar .nav-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.navbar .logo {
  font-weight: normal;
  color: var(--text-light);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar .logo:hover {
  color: var(--accent);
}

.navbar .nav-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.navbar .nav-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-nav-primary,
.btn-nav-secondary {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-nav-primary {
  background: var(--text-light);
  color: var(--bg-dark);
}

.btn-nav-primary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-nav-secondary {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-nav-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
}

/* ===== Links ===== */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* ===== Buttons ===== */
.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-nav-primary,
.btn-nav-secondary {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-nav-primary {
    background: var(--text-light);
    color: var(--bg-dark);
}

.btn-nav-primary:hover {
    background: var(--accent);
    color: #fff;
}

.btn-nav-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-nav-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
}

/* ========= BASE ========= */
.navbar {
  width: 100%;
  background: #0B1B3B;
  padding: 1rem 0;
  color: var(--text-light);
  /* position: relative; */
  z-index: 10;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-box {
  background: #FFF;
  color: #0B1B3B;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-weight: bold;
  border-radius: 4px;
  margin-right: 6px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Hide hamburger by default */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}

.hamburger span {
  background: white;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hamburger active (X icon) */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========= MOBILE ========= */
@media (max-width: 768px) {

  .hamburger {
      display: flex;
      z-index: 999;
  }

  .nav-menu {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: rgba(11, 27, 59, 0.97);
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: center;

      /* hidden state */
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: all 0.35s ease;
  }

  /* Open mobile menu */
  .nav-menu.active {
      max-height: 600px;
      padding: 1.5rem 0;
      opacity: 1;
  }

  .nav-links,
  .nav-buttons {
      flex-direction: column;
      gap: 1.2rem;
      width: 100%;
      text-align: center;
  }

  .nav-buttons a {
      width: 80%;
  }
}

  

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(95,166,255,.25), transparent 60%), radial-gradient(900px 400px at 100% 10%, rgba(255,255,255,.06), transparent 40%), var(--bg-dark);
  padding-top: 6rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  text-align: left;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1.2s ease forwards;
  color: var(--text-light);
}

.hero p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  animation: fadeInUp 1.5s ease forwards;
}

.buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-footer {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-footer .separator {
  color: rgba(255,255,255,0.3);
}

/* Laptop Mockup */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.laptop-mockup {
  position: relative;
  width: 100%;
  max-width: 600px;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  animation: fadeInUp 1.8s ease forwards;
}

.laptop-screen {
  background: #1a1a2e;
  border-radius: 12px 12px 4px 4px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.1);
}

.screen-content {
  background: #0f1419;
  border-radius: 8px;
  padding: 1.5rem;
  min-height: 500px;
  color: #fff;
  font-size: 0.75rem;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
}

.dropdown {
  color: rgba(255,255,255,0.5);
}

.charts-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.chart-box {
  background: rgba(95,166,255,0.05);
  border: 1px solid rgba(95,166,255,0.2);
  border-radius: 6px;
  padding: 0.75rem;
}

.chart-title {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}

.chart-placeholder {
  height: 80px;
  background: linear-gradient(135deg, rgba(95,166,255,0.2) 0%, rgba(255,107,107,0.2) 100%);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.chart-placeholder.large {
  height: 120px;
  margin-top: 1rem;
}

.chart-metric {
  background: rgba(255,255,255,0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--accent);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.metric {
  background: rgba(95,166,255,0.1);
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
}

.screen-disclaimer {
  margin-top: 1rem;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  text-align: right;
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .buttons {
    justify-content: center;
  }
  
  .hero-footer {
    justify-content: center;
  }
  
  .laptop-mockup {
    transform: none;
    max-width: 100%;
  }
}

.btn-primary, .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  transform: translateY(0);
}

.btn-primary {
  background: var(--text-light);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text-light);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

/* Section Styling */
.section {
  padding: 6rem 0;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1.5s forwards;
}

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

.section.light {
  background: #ffffff;
  color: var(--text-dark);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.section.light h2 {
  color: #333;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.section p {
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 2rem;
}

.section.light p {
  color: #555;
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: 1.5rem;
}

/* Default grid: 2 columns on tablet, 4 on desktop */
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 3-column grid for "How it works" section */
.grid.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 4-column grid for outcomes (stats) */
.grid.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid.grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light);
  text-align: left;
  transition: var(--transition);
  position: relative;
}

.section.light .card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  color: var(--text-dark);
}

.section.light .card:hover {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Step Cards for How it works section */
.step-card {
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: left;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-color: #d0d0d0;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.75rem;
}

.step-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  border-color: var(--accent);
}

/* Stats */
.stat {
  background: #fff;
  color: #222;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat:hover {
  transform: translateY(-5px);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(95,166,255,0.3);
}

/* Logos */
.logos {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.logos .logo {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
}

.logos .logo:hover {
  background: rgba(95,166,255,0.1);
  transform: scale(1.05);
  border-color: var(--accent);
}

/* Security Section */
.security-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.security-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: var(--transition);
}

.security-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: #d0d0d0;
}

.security-bullet {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.security-content {
  flex: 1;
}

.security-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.security-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.security-cta {
  text-align: center;
  margin-top: 2rem;
}

.btn-security {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid #e0e0e0;
}

.btn-security:hover {
  background: #e8e8e8;
  border-color: #d0d0d0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Book a Demo Section */
.demo-booking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.demo-form-card,
.calendar-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  width: 100%;
  font-size: 1rem;
  transition: var(--transition);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(95,166,255,0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.checkbox-label {
  font-weight: 400;
  font-size: 0.9rem;
  color: #666;
  cursor: pointer;
}

.btn-submit-demo {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--bg-dark);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.btn-submit-demo:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(95,166,255,0.3);
}

/* Calendar Card */
.calendar-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.calendar-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.calendar-placeholder {
  width: 100%;
  min-height: 400px;
  border: 2px dashed #ccc;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  color: #999;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .demo-booking-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 0;
  background: var(--bg-dark);
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.footer:hover {
  color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar .container {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .navbar .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.85rem;
  }
  
  .navbar .nav-buttons {
    gap: 0.5rem;
  }
  
  .btn-nav-primary,
  .btn-nav-secondary {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
  }
  
  .buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .buttons a {
    text-align: center;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .charts-container {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

