/* ===== Base Styles ===== */
:root {
  --primary: #000000;
  --primary-dark: #838383;
  --accent: #21af7b;
  --text-dark: #595959;
  --text-light: #777;
  --bg-light: #fcfcfe;
  --contact-text: #406474;
  --footer-text: #8f8a98;
}

body {
  font-family: 'Euclid Circular B', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  -webkit-overflow-scrolling: touch;
}

/* ===== Typography ===== */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ===== Header/Navigation ===== */
header h1 {
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-size: 14px;
}

header p {
  color: var(--text-light);
  font-weight: 400;
  font-size: 14px;
}

.nav-link {
  color: var(--text-dark);
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
  font-size: 15px;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== Hero Section & Typing Animation ===== */
.hero-heading {
  position: relative;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.typing-container {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
}

.typing-text {
  display: inline-block;
  position: relative;
  animation: typing 1.8s steps(8, end) forwards; /* Slower typing speed (1.8s) */
}

.typing-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px; /* Adjusted position */
  width: 100%;
  height: 5px; /* Thicker underline */
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineExpand 0.6s ease-out 1.8s forwards; /* Matches typing duration */
}

.typing-cursor {
  position: absolute;
  right: -5px;
  bottom: 4px;
  height: 1.2em;
  width: 4px; /* Thicker cursor */
  background-color: white;
  opacity: 0;
  animation: 
    cursorBlink 0.8s steps(2) 1s 3 forwards,
    fadeOut 0.3s ease-out 2.8s forwards;
}

/* ===== Animations ===== */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes underlineExpand {
  to { transform: scaleX(1); }
}

@keyframes cursorBlink {
  from, to { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; }
}

@keyframes fadeInSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInSlideUp {
  animation: fadeInSlideUp 1s ease-out forwards;
}

.animate-fadeInSlideUp-delay {
  animation: fadeInSlideUp 1s ease-out 0.3s forwards;
  opacity: 0;
}

/* ===== FAQ Section ===== */
.faq-toggle {
  font-size: 16px !important;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-content {
  font-size: 14px;
  transition: all 0.3s ease;
  padding: 0 1.5rem 1.5rem;
}

/* ===== Mobile Menu ===== */
.hamburger-menu {
  display: none;
  z-index: 50;
}

.mobile-menu {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--primary);
  z-index: 40;
}

.mobile-menu::-webkit-scrollbar {
  width: 8px;
}

.mobile-menu::-webkit-scrollbar-track {
  background: var(--primary);
}

.mobile-menu::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* ===== Footer ===== */
footer {
  padding: 2rem 0;
  text-align: center;
  background-color: rgba(35, 24, 52, 0.9);
  font-family: 'Euclid Circular B', sans-serif;
  color: var(--footer-text);
}

footer a {
  color: var(--footer-text);
  font-size: 13px;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent);
}

/* ===== Responsive Styles ===== */
@media (max-width: 1023px) {
  .hamburger-menu {
    display: block;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu {
    transform: translateX(100%);
    opacity: 0;
  }
  
  .mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .hero-heading {
    font-size: 2.5rem;
  }
  
  .typing-text::after {
    height: 4px; /* Slightly thinner underline on mobile */
    bottom: -3px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-heading {
    font-size: 2rem;
  }
  
  .typing-cursor {
    width: 3px; /* Slightly thinner cursor on mobile */
  }
}

/* ===== Scrollbar Styles ===== */
body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: var(--bg-light);
}

body::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}
@media (min-width: 380px) {
  .two-col-380 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}
