@import url('https://fonts.googleapis.com/css2?family=Playfair+Display&display=swap');

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

*:focus {
  outline: none;
}

body {
  font-family: "Playfair Display", "Times New Roman", serif;
  background-color: #fdf7f1;
  color: #1f1f1f;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 60px;
  background-color: #fffaf3;
  border-bottom: 1px solid #e8e1d8;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: 60px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-svg {
  width: 160px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: #3c2f1e;
  text-decoration: none;
  font-size: 1em;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #4b2e05;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 25px;
  height: 20px;
  position: relative;
  z-index: 1001;
  gap: 3px;
}

.hamburger-line {
  height: 2px;
  background-color: #3c2f1e;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.hamburger-line:nth-child(1),
.hamburger-line:nth-child(2) {
  width: 100%;
}

.hamburger-line:nth-child(3) {
  width: 50%;
  align-self: flex-start;
}

/* Overlay Menu - FIXED */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 250, 243, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Changed from center to flex-start */
  align-items: flex-start;
  padding-left: 60px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding-top: 100px; /* Reduced from 80px to bring content closer to top */
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.overlay-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px; /* Reduced gap */
  margin-bottom: 40px; /* Reduced margin */
}

.overlay-links a {
  font-size: 2.5rem;
  color: #3c2f1e;
  text-decoration: none;
  transition: color 0.3s ease;
}

.overlay-links a:hover {
  color: #4b2e05;
}

.overlay-btn {
  background-color: #000000;
  color: white;
  padding: 16px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  transition: background 0.3s ease;
  align-self: flex-start; /* Changed from center to flex-start */
  margin-top: 20px; /* Reduced margin */
}

.overlay-btn:hover {
  background-color: #333333;
}

/* Hamburger Animation */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  width: 100%;
  transform: translateY(-8px) rotate(-45deg);
}

/* Fade-in animation for intro */
.fade-text {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
}

.fade-text.delay {
  animation-delay: 1.2s;
}

.fade-text.delay-2 {
  animation-delay: 1.5s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Intro Section */
.intro-section {
  margin-top: 100px;
  margin-bottom: 80px;
  text-align: center;
  padding: 0 20px;
}

.intro-section h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #1f1f1f;
}

.intro-section p {
  font-size: 1.2em;
  max-width: 650px;
  margin: 0 auto 40px auto;
  color: #444;
}

/* Launch App Button */
.cta-btn {
  background-color: #000000;
  color: white;
  padding: 14px 34px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  transition: all 0.3s ease;
  display: inline-block;
  border: 1px solid #000000;
  margin-top: 20px;
}

.cta-btn:hover {
  background-color: #333333;
  border-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Phone Section - UPDATED */
.phone-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 100px;
  padding: 0 20px;
}

.phone-frame {
  position: relative;
  width: 340px; /* Increased from 320px to make it wider */
  height: 680px; /* Slightly increased height to maintain proportion */
  border-radius: 50px;
  overflow: hidden;
  background: #000; /* Keep background black for the phone screen */
  box-shadow: 
    0 0 80px rgba(255, 250, 243, 0.9),
    0 0 150px rgba(255, 250, 243, 0.7),
    0 0 220px rgba(255, 250, 243, 0.5);
}

/* Foggy glow effect only around the edges */
.phone-frame::before {
  content: '';
  position: absolute;
  inset: -10px; /* Extend beyond the phone edges */
  border-radius: 60px; /* Larger radius to cover the glow */
  background: 
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 250, 243, 0.6) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 250, 243, 0.4) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(255, 250, 243, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 250, 243, 0.3) 0%,
      transparent 50%
    );
  filter: blur(35px);
  pointer-events: none;
  z-index: 1;
}

.phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.8s ease;
  background: #000;
  position: relative;
  z-index: 2;
}

.phone-video.loaded {
  opacity: 1;
}

.overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
  z-index: 3;
}

.main-text {
  color: white;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  letter-spacing: 0.05em;
}

.sub-text {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  line-height: 1.6;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
  max-width: 280px;
}

/* Features */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 80px 20px;
  background-color: #fffdf8;
}

.feature {
  max-width: 300px;
  text-align: center;
}

.feature h2 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #1f1f1f;
}

.feature p {
  color: #444;
}

/* FAQ Section */
.faq-section {
  padding: 80px 20px;
  background-color: #fffdf8;
}

.faq-section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 50px;
  color: #1f1f1f;
  font-weight: 600;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e8e1d8;
  margin-bottom: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  padding: 25px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1em;
  color: #1f1f1f;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #4b2e05;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: transparent;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  color: #555;
  line-height: 1.7;
  margin: 0 0 25px 0;
  font-size: 1em;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.faq-item.active .faq-answer p {
  opacity: 1;
  transform: translateY(0);
}

/* Footer - FIXED LEFT ALIGNMENT */
footer {
  background-color: #000000;
  color: #f1f1f1;
  padding: 60px 60px 40px;
  text-align: left; /* Ensured left alignment */
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 40px;
  text-align: left; /* Added left alignment */
}

.footer-logo-container {
  flex: 1;
  min-width: 200px;
  text-align: left; /* Added left alignment */
}

.footer-logo {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
}

.footer-sections {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  text-align: left; /* Added left alignment */
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left; /* Added left alignment */
}

.footer-section h3 {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #ffffff;
  text-align: left; /* Added left alignment */
}

.footer-section a {
  color: #f1f1f1;
  text-decoration: none;
  transition: color 0.3s ease;
  text-align: left; /* Added left alignment */
}

.footer-section a:hover {
  color: #d4d4d4;
  text-decoration: underline;
}

/* Social Media Styles */
.social-icons {
  display: flex;
  gap: 20px;
  justify-content: flex-start; /* Changed to flex-start for left alignment */
}

.social-icon {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
  filter: brightness(0) invert(1);
}

.social-icon:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

.copyright {
  font-size: 0.9em;
  color: #aaa;
  text-align: left; /* Changed to left alignment */
  border-top: 1px solid #333;
  padding-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 20px;
    height: 55px;
  }
  
  .logo-svg {
    width: 140px;
  }
  
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .overlay {
    padding-left: 30px;
    padding-top: 80px; /* Adjusted for mobile */
  }
  
  .overlay-links a {
    font-size: 2rem;
  }
  
  .intro-section {
    margin-top: 80px;
  }
  
  .intro-section h1 {
    font-size: 2em;
  }
  
  .intro-section p {
    font-size: 1.1em;
  }
  
  .phone-frame {
    width: 300px; /* Adjusted for mobile */
    height: 600px; /* Adjusted for mobile */
    border-radius: 45px;
  }
  
  .phone-frame::before {
    border-radius: 55px; /* Adjusted for mobile */
    inset: -8px; /* Adjusted for mobile */
  }
  
  .phone-video {
    border-radius: 45px; /* Adjusted for mobile */
  }
  
  .overlay-content {
    padding: 30px;
  }
  
  .main-text {
    font-size: 1.5rem;
  }
  
  .sub-text {
    font-size: 0.9rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: left; /* Maintain left alignment */
  }
  
  .footer-sections {
    gap: 40px;
    text-align: left; /* Maintain left alignment */
  }
  
  footer {
    padding: 40px 30px 30px;
    text-align: left; /* Maintain left alignment */
  }
  
  .social-icons {
    justify-content: flex-start; /* Maintain left alignment on mobile */
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 8px 15px;
    height: 50px;
  }
  
  .logo-svg {
    width: 130px;
  }
  
  .overlay {
    padding-top: 70px; /* Adjusted for smaller mobile */
    padding-left: 20px;
  }
  
  .overlay-links a {
    font-size: 1.6rem;
  }
  
  .overlay-btn {
    padding: 14px 30px;
    font-size: 1.1em;
  }
  
  .intro-section {
    margin-top: 70px;
  }
  
  .intro-section h1 {
    font-size: 1.8em;
  }
  
  .phone-frame {
    width: 280px; /* Adjusted for smaller mobile */
    height: 560px; /* Adjusted for smaller mobile */
    border-radius: 40px;
  }
  
  .phone-frame::before {
    border-radius: 50px; /* Adjusted for smaller mobile */
    inset: -7px; /* Adjusted for smaller mobile */
  }
  
  .phone-video {
    border-radius: 40px; /* Adjusted for smaller mobile */
  }
  
  .overlay-content {
    padding: 25px;
  }
  
  .main-text {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
  
  .sub-text {
    font-size: 0.85rem;
  }
  
  .footer-sections {
    flex-direction: column;
    gap: 30px;
    text-align: left; /* Maintain left alignment */
  }
  
  .social-icons {
    gap: 15px;
    justify-content: flex-start; /* Maintain left alignment */
  }
  
  .faq-section h2 {
    font-size: 1.8em;
  }
  
  .faq-question {
    font-size: 1em;
    padding: 20px 0;
  }
}