/* ==========================================================================
   ROSUNI.COM — Clean Eco Light Design System (ScrapUncle Inspired Theme)
   Parent Entity: Kira Pioneers Pvt Ltd
   Official Email: Contact@rosuni.com
   Official App Link: https://play.google.com/store/apps/details?id=com.rosunii&pcampaignid=web_share
   ========================================================================== */

:root {
  /* Light Eco Green & Fresh White Palette (ScrapUncle Inspired) */
  --bg-light: #F0FDF4;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  
  --emerald-primary: #10B981;
  --emerald-dark: #059669;
  --emerald-light: #D1FAE5;
  
  --text-main: #0F172A;
  --text-slate: #334155;
  --text-muted: #64748B;
  
  --border-light: #E2E8F0;
  --border-emerald: #A7F3D0;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(16, 185, 129, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-main);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--emerald-dark);
  text-decoration: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-emerald {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

.btn-outline-emerald {
  background: #FFFFFF;
  color: #059669;
  border: 2px solid #10B981;
}

.btn-outline-emerald:hover {
  background: #ECFDF5;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.icon-btn-circle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: #ECFDF5;
  border: 1.5px solid #A7F3D0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

.icon-btn-circle:hover {
  background: #D1FAE5;
  border-color: #10B981;
  transform: translateY(-2px);
}

/* Badges */
.badge-eco {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #D1FAE5;
  color: #047857;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

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

.brand-logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.brand-subline {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-link:hover, .nav-link.active-tab {
  color: #059669;
}

/* Page Views System */
.page-view {
  display: none;
  min-height: calc(100vh - 80px);
  padding-top: 90px;
}

.page-view.active-view {
  display: block !important;
}

/* Hero Section */
.hero-section {
  padding: 40px 0 60px;
  background: linear-gradient(180deg, #DCFCE7 0%, #F0FDF4 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-title {
  font-size: 2.9rem;
  font-weight: 800;
  color: #0F172A;
  margin-top: 16px;
  letter-spacing: -0.5px;
}

.text-gradient-emerald {
  color: #059669;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #334155;
  margin-top: 16px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ScrapUncle-Inspired "Know How It Works" Section */
.how-it-works-wrapper {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  margin: 50px 0;
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.25);
}

.how-it-works-title {
  text-align: center;
  color: #FFFFFF;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease;
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-icon-wrapper {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-full);
  background: #ECFDF5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin-bottom: 16px;
}

.step-card h4 {
  color: #059669;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  color: #64748B;
  font-size: 0.85rem;
  line-height: 1.45;
}

/* Service Cards */
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #10B981;
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #ECFDF5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

/* Modal System & Close Button Fix */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: all 0.3s ease;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
}

/* LIGHTBOX ULTRA ZOOM MODAL STYLES (Zero-Lag High Performance) */
#rosuni-lightbox-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.95) !important;
  z-index: 999999 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

#rosuni-lightbox-modal.active {
  display: flex !important;
  opacity: 1 !important;
}

.lightbox-card {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 1100px;
  width: 98%;
  height: 94vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  border: 2px solid #10B981;
}

.lightbox-header {
  padding: 14px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lightbox-body {
  padding: 16px;
  overflow: auto;
  text-align: center;
  background: #1E293B;
  flex: 1;
  display: block;
}

.lightbox-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: width 0.2s linear, transform 0.2s linear;
  margin: 0 auto;
  display: block;
}

.zoom-btn-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.zoom-btn {
  background: #059669;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.zoom-btn:hover {
  background: #047857;
}

.modal-card {
  background: #FFFFFF;
  border: 2px solid #10B981;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 32px 32px 32px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  margin: auto;
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 100;
  background: #EF4444;
  color: #FFFFFF;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
  margin-top: -6px;
  margin-right: -6px;
}

.modal-close:hover {
  background: #DC2626;
  transform: scale(1.1);
}

/* Form Controls */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  color: #0F172A;
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #10B981;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0F172A;
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  border: 1px solid #10B981;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.active {
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Footer & Visitor Counter Badge */
.footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 50px 0 24px;
  margin-top: 60px;
}

.footer h4 { color: #FFFFFF; }
.footer a { color: #CBD5E1; }
.footer a:hover { color: #34D399; }

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #334155;
}

.visitor-analytics-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #1E293B;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.v-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #94A3B8;
}

.v-stat-item strong {
  color: #FFFFFF;
  font-weight: 700;
}

.v-stat-divider { color: #475569; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3col { grid-template-columns: 1fr; }
  .how-steps-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .how-steps-grid { grid-template-columns: 1fr; }
}
