/* ===========================
   RentEasy Global Stylesheet
   Author: Matshelonyana (Pty) Ltd
   =========================== */

:root {
  --rent-orange: #FF7A00;
  --rent-black: #000000;
  --rent-white: #ffffff;
  --rent-gray: #f9f9f9;
}

/* ============ GLOBAL ============ */
body {
  font-family: 'Albert Sans', sans-serif;
  color: var(--rent-black);
  background: var(--rent-white);
  scroll-behavior: smooth;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

section {
  scroll-margin-top: 90px;
  transition: padding 0.3s ease;
}

/* ============ HEADER ============ */
.header {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.logo img {
  height: 42px;
  animation: pulse 6s infinite ease-in-out;
}

.navmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.navmenu a {
  color: var(--rent-white);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}

.navmenu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 3px;
  width: 0;
  background: var(--rent-orange);
  transition: width 0.3s ease-in-out;
}

.navmenu a:hover,
.navmenu a.active {
  color: var(--rent-orange);
}

.navmenu a:hover::after,
.navmenu a.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--rent-orange);
  color: var(--rent-white);
  border-radius: 8px;
  font-size: 1.4rem;
  width: 44px;
  height: 38px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991px) {
  .menu-toggle {
    display: flex;
  }

  .navmenu ul {
    display: none;
  }

  .navmenu.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 48px;
    background: rgba(0, 0, 0, 0.98);
    border-radius: 12px;
    padding: 10px 14px;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }

  .navmenu.open a {
    display: block;
    padding: 10px 8px;
    border-radius: 8px;
  }

  .navmenu.open a:hover {
    background: rgba(255, 122, 0, 0.15);
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: url("../assets/img/renteasy-bg.png") center/cover no-repeat;
  color: var(--rent-white);
  text-align: center;
  padding: 140px 0 90px; /* compact height */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(255, 122, 0, 0.5));
  z-index: 0;
}

.hero h1,
.hero p {
  position: relative;
  z-index: 1;
  color: var(--rent-white);
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.hero h1 {
  font-weight: 900;
  font-size: 3rem;
  animation: fadeSlideIn 1.5s ease-out;
}

.hero p {
  font-size: 1.1rem;
  margin-top: 8px;
}

.hero .btn {
  margin-top: 20px;
  background: var(--rent-orange);
  border: none;
  color: var(--rent-black);
  font-weight: 600;
  transition: all 0.3s;
}

.hero .btn:hover {
  background: var(--rent-white);
  color: var(--rent-black);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.3);
}

/* ============ MOBILE SHOWCASE ============ */
.mobile-showcase {
  position: relative;
  padding: 40px 0;
  overflow: hidden;
  background: linear-gradient(180deg, #FF7A00 0%, #000000 100%);
  isolation: isolate;
}

.mobile-showcase .gradient-blend {
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(255, 122, 0, 0.2) 100%);
  z-index: 1;
  opacity: 0.9;
}

.mobile-showcase .gradient-bottom {
  position: absolute;
  bottom: -80px;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, #f9f9f9 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 2;
}

.mobile-showcase .mobile-visual {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  z-index: 3;
}

.mobile-showcase .mobile-visual img {
  display: block;
  width: 90%;
  margin: 0 auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.55));
  transform-origin: center;
  transition: transform 1s ease-in-out, filter 1s ease;
}

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

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

.mobile-showcase:hover img {
  transform: scale(1.02) rotateX(2deg) rotateY(-2deg);
  filter: brightness(1.05) drop-shadow(0 40px 90px rgba(255, 122, 0, 0.4));
}

.mobile-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 50% 50%, rgba(255, 255, 255, 0.08), transparent 80%);
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
}

/* ============ FEATURES ============ */
.features {
  background: var(--rent-gray);
  color: var(--rent-black);
  padding: 60px 0;
}

.features h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.icon {
  color: var(--rent-orange);
  font-size: 2rem;
  margin-bottom: 10px;
  transition: transform 0.4s ease;
}

.icon:hover {
  transform: scale(1.1);
}

/* ============ CTA ============ */
.cta {
  background: var(--rent-orange);
  color: var(--rent-black);
  text-align: center;
  padding: 60px 20px;
}

.cta h2 {
  font-weight: 900;
  margin-bottom: 10px;
  font-size: 2rem;
}

.cta p {
  font-size: 1.05rem;
}

.cta .btn {
  background: var(--rent-black);
  color: var(--rent-white);
  border: none;
}

.cta .btn:hover {
  background: var(--rent-white);
  color: var(--rent-black);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--rent-black);
  color: var(--rent-white);
  padding: 30px 0;
  text-align: center;
}

.footer a {
  color: var(--rent-orange);
  text-decoration: none;
}

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

.social-links a {
  color: var(--rent-white);
  margin: 0 10px;
  font-size: 1.4em;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--rent-orange);
}

.footer #theme-toggle {
  border: 2px solid var(--rent-orange);
  color: var(--rent-white);
  transition: all 0.3s;
}

.footer #theme-toggle:hover {
  background: var(--rent-orange);
  color: var(--rent-black);
  transform: rotate(20deg);
}

/* ============ DARK MODE ============ */
body.dark-mode {
  background: #0a0a0a;
  color: var(--rent-white);
}

body.dark-mode section {
  background: #111;
  color: var(--rent-white);
}

body.dark-mode .footer {
  background: #000;
  color: var(--rent-white);
}

body.dark-mode .cta .btn {
  background: var(--rent-orange);
  color: var(--rent-black);
}

/* ============ ANIMATIONS ============ */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes fadeSlideIn {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .hero { padding: 100px 0 70px; }
  .hero h1 { font-size: 2.4rem; }
  .hero p { font-size: 1rem; }
  .mobile-showcase { padding: 30px 0; }
  .features { padding: 50px 0; }
  .cta { padding: 50px 15px; }
  .footer { padding: 25px 0; }
}