/* 
 * AgroVya Coming Soon Page Styles
 * Author: Your Name
 * Version: 1.0
 */

/* Base Styles */
:root {
  --primary-color: #123524;
  --secondary-color: #2e7d32;
  --accent-color: #8bc34a;
  --light-green: #e8f5e9;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3 {
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

p {
  margin-bottom: 1rem;
}

/* Header Styles */
header {
  background-color: var(--bg-white);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  max-height: 50px; /* Adjust based on your logo's dimensions */
  width: auto;
  /* Optional drop shadow for the logo */
  /* filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.1)); */
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  color: var(--text-light);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Newsletter Form */
.newsletter {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter form {
  display: flex;
  flex-direction: column;
}

#form-container {
  display: flex;
  gap: 10px;
}

.newsletter input {
  flex-grow: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.newsletter button {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 5px;
  padding: 12px 24px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter button:hover {
  background-color: var(--secondary-color);
}

.form-caption {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.success-box {
  background-color: var(--light-green);
  color: var(--primary-color);
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* Devices Section - PERFECTLY CENTERED TEXT GUARANTEED */
.devices {
  padding: 4rem 0;
  background-color: var(--bg-white);
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.device-card {
  background-color: var(--bg-light);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  height: 100%;
  /* Using standard block instead of flex for reliable text centering */
  display: block;
}

.device-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Container for screenshots */
.device-container {
  width: 100%;
  max-width: 100%;
  height: 300px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Device screenshots with consistent height */
.device-screenshot {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  object-fit: contain;
  max-height: 280px;
}

.device-card:hover .device-screenshot {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ABSOLUTELY CENTERED TEXT STYLES */
.device-card h3 {
  display: block;
  width: 100%;
  text-align: center !important;
  margin: 0 auto 0.75rem auto;
  padding: 0;
  font-size: 1.5rem;
  color: var(--primary-color);
  /* Force center alignment */
  left: 0;
  right: 0;
  position: relative;
}

.device-card p {
  display: block;
  width: 100%;
  text-align: center !important;
  margin: 0 auto;
  padding: 0;
  color: var(--text-dark);
  /* Force center alignment */
  left: 0;
  right: 0;
  position: relative;
}

/* Removed frame styles */
.device-frame,
.mobile-frame,
.tablet-frame,
.desktop-frame,
.mobile-frame::before,
.tablet-frame::before,
.desktop-frame::after {
  display: none;
}

/* Media Queries for device section */
@media (max-width: 1200px) {
  .device-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .device-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .device-container {
    height: 280px;
  }
  
  .device-screenshot {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .device-card {
    padding: 1rem;
  }
  
  .device-container {
    height: 250px;
  }
  
  .device-screenshot {
    max-height: 220px;
  }
}

/* Features Section */
.features {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--light-green);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Footer Styles */
footer {
  background-color: #333;
  color: var(--text-light);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.footer-info {
  margin-bottom: 1.5rem;
  text-align: center;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-white);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
}

.footer-bottom a {
  color: var(--accent-color);
  transition: var(--transition);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Media Queries */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }

  .footer-info {
    margin-bottom: 0;
    text-align: left;
  }

  #form-container {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.5rem;
  }

  .hero {
    height: 500px;
  }

  #form-container {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .hero {
    height: 400px;
  }

  .logo-img {
    max-height: 40px; /* Slightly smaller logo on mobile */
  }
}