/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #001a00;
  --bg-secondary: #003300;
  --bg-tertiary: #002600;
  --accent: #ffa500;
  --text-primary: #d9cba0;
  --text-secondary: #b8a580;
  --active: #00cc44;
  --inactive: #ff3333;
  --warning: #ff9933;
  --white: #ffffff;
  --black: #000000;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-dark: rgba(0, 0, 0, 0.6);
  --gradient-primary: linear-gradient(135deg, #001a00 0%, #000d00 100%);
  --gradient-accent: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
  --border-radius: 18px;
  --border-radius-small: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gradient-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 204, 68, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

/* Diagonal Split Effect */
.hero-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 2px;
  height: 200%;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  transform: translateX(-50%) rotate(0%);
  opacity: 0.3;
}

/* ===== PHONE SECTION ===== */
.phone-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-image {
  width: 300px;
  height: 600px;
  object-fit: contain;
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  transition: var(--transition);
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.8));
  z-index: 0;
}

.phone-image:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.phone-screen {
  width: 240px;
  height: 520px;
  background: transparent;
  border-radius: 15px;
  padding: 0;
  overflow: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* Display Glass Effect */
.phone-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%),
    linear-gradient(45deg, transparent 0%, rgba(255,255,255,0.05) 100%);
  border-radius: 15px;
  pointer-events: none;
  z-index: 2;
}

/* App Screens */
.app-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  border-radius: 15px;
  opacity: 0;
  transform: translateY(20px) scale(0.95) skewY(0deg);
  transition: var(--transition);
  z-index: 0;
  box-shadow: 
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Screen 1 - Dashboard */
#screen-home {
  background: url('../img/screen 1.webp') center/cover no-repeat;
  background-size: 100% 200%;
  background-position: center 0%;
  border-radius: 15px;
  animation: smoothScroll 15s linear infinite;
}

@keyframes smoothScroll {
  0% {
    background-position: center 0%;
  }
  100% {
    background-position: center 200%;
  }
}

@keyframes scrollScreenshot {
  0% {
    background-position: center top;
  }
  100% {
    background-position: center bottom;
  }
}

.app-screen.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  z-index: 1;
  box-shadow: 
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 20px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(0, 26, 0, 0.2);
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 15px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-small);
}

.header-content h1 {
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.status {
  font-size: 12px;
  font-weight: 500;
}

.status.inactive {
  color: var(--inactive);
}

.status.active {
  color: var(--active);
}

.settings-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.settings-btn:hover {
  background: rgba(255, 165, 0, 0.1);
}

.app-section {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-small);
  padding: 15px;
  margin-bottom: 15px;
}

.app-section h2 {
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.alarm-btn {
  width: 100%;
  background: var(--active);
  color: var(--white);
  border: none;
  border-radius: 25px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.alarm-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.status-item, .settings-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius-small);
  margin-bottom: 8px;
}

.status-item .icon, .settings-item .icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.status-info, .settings-info {
  flex: 1;
}

.status-info p:first-child, .settings-info p:first-child {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
}

.status-text {
  font-size: 11px;
  font-weight: 500;
}

.status-text.inactive {
  color: var(--inactive);
}

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

.status-text.warning {
  color: var(--warning);
}

.switch {
  width: 40px;
  height: 22px;
  background: var(--inactive);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: var(--transition-fast);
}

.switch::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: var(--transition-fast);
}

.switch.active {
  background: var(--active);
}

.switch.active::before {
  transform: translateX(18px);
}

.camera-placeholder {
  background: var(--bg-tertiary);
  border-radius: var(--border-radius-small);
  padding: 40px;
  text-align: center;
  color: var(--text-secondary);
}

.camera-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

/* ===== CONTENT SECTION ===== */
.content-section {
  padding-left: 40px;
}

.hero-content {
  max-width: 500px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  line-height: 1.1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cta-btn.primary {
  background: var(--gradient-accent);
  color: var(--black);
  box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
}

.cta-btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 165, 0, 0.4);
}

.cta-btn.secondary:hover {
  background: var(--accent);
  color: var(--black);
}

.btn-icon {
  font-size: 18px;
}

/* ===== FEATURES SECTION ===== */
.features {
  padding: 100px 0;
  background: var(--bg-primary);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 70% 30%, rgba(0, 204, 68, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(255, 165, 0, 0.05) 0%, transparent 50%);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.feature-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 165, 0, 0.1);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 165, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.feature-details {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.feature-card:hover .feature-details {
  max-height: 200px;
}

.feature-details ul {
  list-style: none;
  text-align: left;
}

.feature-details li {
  color: var(--text-secondary);
  padding: 5px 0;
  position: relative;
  padding-left: 20px;
}

.feature-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--active);
  font-weight: bold;
}

/* ===== SCREENSHOTS SECTION ===== */
.screenshots {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.screenshot-item {
  cursor: pointer;
  transition: var(--transition);
}

.screenshot-item:hover {
  transform: scale(1.05);
}

.screenshot-frame {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 165, 0, 0.2);
}

.screenshot-content {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius-small);
}

.screenshot-content h3 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.screenshot-content p {
  color: var(--text-secondary);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  padding: 100px 0;
  background: var(--bg-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.testimonial-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 30px;
  border: 1px solid rgba(255, 165, 0, 0.1);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 165, 0, 0.3);
}

.testimonial-content {
  margin-bottom: 25px;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info h4 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.author-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 165, 0, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--text-secondary);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-section h4 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--bg-secondary);
  color: var(--accent);
  text-decoration: none;
  border-radius: 25px;
  border: 1px solid rgba(255, 165, 0, 0.3);
  transition: var(--transition-fast);
  font-size: 14px;
}

.download-btn:hover {
  background: var(--accent);
  color: var(--black);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 165, 0, 0.1);
  color: var(--text-secondary);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-image {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-container::before {
    display: none;
  }
  
  .content-section {
    padding-left: 0;
  }
  
  .phone-image {
    transform: none;
    width: 280px;
    height: 560px;
  }
  
  .phone-screen {
    width: 200px;
    height: 400px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-container {
    padding: 0 20px;
  }
  
  .phone-image {
    width: 250px;
    height: 500px;
  }
  
  .phone-screen {
    width: 180px;
    height: 360px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-container {
    padding: 0 15px;
  }
  
  .phone-image {
    width: 200px;
    height: 400px;
  }
  
  .phone-screen {
    width: 150px;
    height: 300px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .cta-btn {
    padding: 14px 28px;
    font-size: 14px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
  animation: fadeInRight 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent);
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-40 {
  margin-top: 40px;
}