/* Modern CSS for Rentary Landing Page - Mobile First Approach */
:root {
  --primary-color: #246BFD;
  --primary-dark: #0047CC;
  --background-color: #080A0B;
  --card-bg: #111518;
  --text-color: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --gradient-blue: linear-gradient(135deg, #246BFD 0%, #0047CC 100%);
  --animation-time: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: color var(--animation-time) ease;
}

a:hover {
  color: var(--primary-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  gap: 0.5rem;
  position: relative; /* Added to ensure visibility */
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn svg {
  transition: transform 0.3s ease;
}

.btn:hover svg {
  transform: translateY(2px);
}

/* Fixed button hover state */
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(36, 107, 253, 0.4);
}

/* Header Section */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(8, 10, 11, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  display: block; /* Ensure it's always displayed */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  height: 70px;
  width: 100%;
  visibility: visible; /* Ensure navbar is visible */
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo span {
  font-weight: 700;
  font-size: 1.25rem;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Logo Link */
.logo-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.logo-link:hover {
  color: inherit;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

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

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

.nav-link.active {
  color: var(--text-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 100;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #AABDFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 220px; /* Reduced from 280px for iPhone proportions */
  height: 450px; /* Reduced from 570px for iPhone proportions */
}

.phone-outline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.phone-screen {
  position: absolute;
  top: 40px; /* Adjusted position */
  left: 15px; /* Adjusted position */
  width: 190px; /* Adjusted width for iPhone proportions */
  height: 370px; /* Adjusted height for iPhone proportions */
  overflow: hidden;
  border-radius: 15px; /* Slightly reduced border radius */
  background: #000;
  z-index: 1;
}

.app-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* Feature Sections */
.feature-section {
  padding: 6rem 0;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.feature-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.feature-section.alt {
  background-color: rgba(255, 255, 255, 0.02);
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
}

.feature-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.feature-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.feature-mockup-img {
  max-width: 100%;
  width: 240px; /* Added fixed width for iPhone proportions */
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.feature-image:hover .feature-mockup-img {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(36, 107, 253, 0.2);
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background: radial-gradient(circle at center, rgba(36, 107, 253, 0.15) 0%, transparent 70%);
  text-align: center;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo img {
  width: 32px;
  height: 32px;
}

.footer-logo span {
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--animation-time) ease;
}

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

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all var(--animation-time) ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 2rem;
}

/* Media Queries for Responsive Design */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-links {
    flex-direction: row;
    gap: 2rem;
  }
  
  /* Mobile Navigation */
  .nav-menu {
    display: flex;
  }
}

@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    padding: 1rem;
    flex-direction: column;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 99;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 992px) {
  .hero .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .hero-content {
    max-width: 45%;
  }
  
  .feature-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .feature-text, .feature-image {
    flex: 1;
  }

  .feature-mockup-img {
    max-width: 80%;
  }
  
  .feature-section.alt .feature-content {
    flex-direction: row-reverse;
  }
}

/* Base animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.animate__fadeIn {
  animation-name: fadeIn;
}

.animate__fadeInUp {
  animation-name: fadeInUp;
}

.animate__delay-1s {
  animation-delay: 0.5s;
}

.animate__delay-2s {
  animation-delay: 1s;
}