/* 
  CapoTrip CSS 
  Based on a modern app landing page aesthetic.
*/

:root {
  --primary: #5266DF; /* Blue */
  --primary-hover: #3E51CC;
  --accent-yellow: #FFC800;
  --accent-teal: #00D3A9;
  --accent-red: #FF5E62;
  --bg-light: #F4F9FF;
  --text-dark: #1E293B;
  --text-body: #475569;
  --white: #FFFFFF;
  --gray-200: #E2E8F0;
  
  --font-main: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Shapes */
.bg-shape {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
}

.bg-shape-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, rgba(167, 243, 208, 0.5), rgba(191, 219, 254, 0.8));
  top: -200px;
  left: -200px;
}

.bg-shape-2 {
  width: 800px;
  height: 800px;
  background: linear-gradient(135deg, rgba(254, 215, 170, 0.4), rgba(221, 214, 254, 0.6));
  top: 10%;
  right: -300px;
}

.bg-shape-3 {
  width: 500px;
  height: 500px;
  background: rgba(186, 230, 253, 0.4);
  bottom: 0;
  left: -100px;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.5px;
}

.text-highlight {
  color: var(--primary);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--text-dark);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2);
}

.btn-primary:hover {
  background-color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 41, 59, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
}

.btn-outline:hover {
  background-color: var(--text-dark);
  color: var(--white);
}

/* Navbar */
.navbar {
  padding: 20px 0;
  position: relative;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

.logo-img {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-dark);
}

/* Hero Section */
.hero-section {
  padding: 80px 0 120px;
  position: relative;
  z-index: 10;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 540px;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin: 24px 0 36px;
  color: var(--text-body);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Phone Mockup */
.phone-mockup {
  width: 280px;
  height: 560px;
  background-color: #111;
  border-radius: 40px;
  border: 12px solid #222;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.mockup-header {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  text-align: center;
}

.mockup-map {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  border-radius: 12px;
  margin-bottom: 16px;
}

.mockup-card {
  width: 100%;
  height: 60px;
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Features Section */
.features-section {
  padding: 100px 0;
  background-color: var(--white);
  position: relative;
}

.features-container {
  display: flex;
  align-items: center;
  gap: 80px;
}

.features-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.yellow-circle {
  position: absolute;
  width: 450px;
  height: 450px;
  background-color: var(--accent-yellow);
  border-radius: 50%;
  z-index: 1;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.secondary-mockup {
  z-index: 2;
  transform: rotate(-5deg);
  border: 12px solid #fff;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.dark-screen {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  justify-content: center;
  align-items: center;
}

.social-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.s-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
}

.s-icon.blue { background-color: var(--primary); }
.s-icon.red { background-color: var(--accent-red); }
.s-icon.teal { background-color: var(--accent-teal); }

.floating-bubble {
  position: absolute;
  border-radius: 50%;
  z-index: 3;
}

.bubble-1 {
  width: 40px;
  height: 40px;
  background-color: var(--accent-red);
  top: 10%;
  left: 20%;
  animation: float 4s ease-in-out infinite 1s;
}

.bubble-2 {
  width: 24px;
  height: 24px;
  background-color: transparent;
  border: 4px solid var(--white);
  bottom: 20%;
  right: 10%;
  animation: float 5s ease-in-out infinite 2s;
}

.features-content {
  flex: 1;
}

.section-tag {
  color: var(--accent-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 16px;
}

.section-desc {
  margin: 24px 0 40px;
  font-size: 1.1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.feature-item h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-item p {
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background-color: #0f172a;
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  color: #94a3b8;
  max-width: 300px;
  margin-bottom: 20px;
}

.footer-email {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.footer-email:hover {
  color: var(--accent-teal);
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-container, .features-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 40px;
  }
  
  .nav-links {
    display: none; /* simple mobile nav hide for now */
  }
  
  .features-visual {
    margin-bottom: 40px;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .yellow-circle {
    width: 300px;
    height: 300px;
  }
}
