/* Add this at the very top for global box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary:#1C1B2F;
  --accent: #f5c76a;
  --white: #fff;
  --gray: #f9f9f9;
  --text: #1a2530;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Cairo', Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #1C1B2F;
  position: relative;
}



/* Add a blurred, semi-transparent background image using a pseudo-element */

/* Make hero and contact-section backgrounds semi-transparent */
.hero {
  color: var(--white);
  text-align: center;
  padding: 0;
  position: relative;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: none;
}

.contact-section {
  color: var(--white);
  padding: 2.5rem 1rem 2rem 1rem;
  text-align: center;
}

header {
  background: var(--primary);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 2vw;
  flex-wrap: wrap;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
  padding-top: 0;
  margin-top: 0;
  /* border: 1px solid white; */
}

.header-content {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.logo {
  height: 100px;
  object-fit: cover;

}

@media (max-width: 800px) {
  .logo {
    height: 50px;
    width: 50px;
  }
}

.brand {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  transition: background 0.2s;
}

nav a.active, nav a:hover {
  background: rgba(255,255,255,0.10);
}

main {
  padding-top: 100px; /* Add space for fixed header */
  margin: 0;
  width: 100%;
}

section {
  width: 100%;
  scroll-margin-top: 110px;
}

.hero-text {
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.2;
  margin-top: -110px; /* Move H1 a bit above */
}

.hero p {
  font-size: 2.15rem;
  /* margin-bottom: 2rem; */
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
  padding: 0.8rem 2.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}

.btn:hover {
  background: #ffe3a3;
}

.hero-bg {
  /* background: url('images/masjid-bg.png') no-repeat bottom center/cover; */
  opacity: 0.35;
  position: absolute;
  left: 0; right: 0; bottom: 0; top: 0;
  z-index: 1;
  pointer-events: none;
}

/* Features Section */
.features-section {
  /* background: var(--white); */
  padding: 2.5rem 1rem 2rem 1rem;
  text-align: center;
}

.features-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 320px;
  text-align: left;
}

.feature .icon {
  font-size: 2rem;
  margin-top: 0.2rem;
}

.feature strong {
  font-size: 1.1rem;
  color: var(--text);
}

.feature p {
  margin: 0.3rem 0 0 0;
  color: #444;
  font-size: 1rem;
}

/* Features Section Flex Layout */
.features-flex {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* TV Display Styles */
.tv-frame {
  background: #222;
  border: 0px solid #f5c76a;
  width: 520px;
  height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  max-width: 95vw;
  min-width: 220px;
  /* Enhanced 3D shadow for more pop-up effect */
  box-shadow:
    0 16px 48px 0 rgba(0,0,0,0.45),
    0 4px 24px 0 rgba(245,199,106,0.22),
    0 32px 96px 0 rgba(0,0,0,0.22),
    0 0px 0px 8px #f5c76a44;
  /* 3D tilt effect */
  transform: perspective(1200px) rotateX(-5deg) rotateY(30deg);
  transition: transform 0.4s cubic-bezier(.4,2,.6,1);
}

.tv-video {
  width: 100%;
  height: 100%;
  object-fit:fill;
  background: #000;
  position: relative;
  z-index: 1;
  /* Remove border-radius and transform */
  border-radius: 0;
}



/* Mobile Display Styles */
.mobile-frame {
  background: #222;
  border: 6px solid #444;
  border-radius: 32px;
  width: 180px;
  height: 360px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  max-width: 45vw;
  min-width: 120px;
  overflow: hidden;
}

.mobile-video {
  width: 92%;
  height: 92%;
  border-radius: 24px;
  object-fit: cover;
  background: #000;
}

.mobile-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 10px;
  background: #333;
  border-radius: 8px;
  z-index: 2;
}

/* Responsive for TV on mobile */
@media (max-width: 600px) {
  .tv-frame {
    width: 98vw;
    height: 60vw;
    min-height: 160px;
    max-width: 100vw;
    border-width: 1px;
    /* border-radius: 16px; */
  }

  .mobile-frame {
    width: 38vw;
    height: 68vw;
    min-width: 80px;
    min-height: 140px;
    border-width: 3px;
    border-radius: 16px;
  }
  .mobile-notch {
    width: 30px;
    height: 6px;
    border-radius: 4px;
    top: 4px;
  }
}

/* Features Description */
.features-description {
  max-width: 400px;
  color: #fff;
  text-align: left;
}

.features-description h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.features-description p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.features-description ul {
  padding-left: 1.2em;
  margin: 0;
  list-style: none;
}

.features-description ul,
.features-description ul ul {
  list-style-type: disc;
  margin-left: 1.5em;
  font-size: 0.98rem;
  line-height: 1.4;
}

.features-description li {
  margin-bottom: 0.3em;
  font-size: 0.98rem;
  line-height: 1.4;
}

/* Contact Section */
.contact-section {
  /* background: rgba(12,34,58,0.85); */
  color: var(--white);
  padding: 2.5rem 1rem 2rem 1rem;
  text-align: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  border-radius: 16px;
  box-sizing: border-box;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-section p {
  margin-bottom: 2rem;
  color: #e6e6e6;
}

form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 0.9rem;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  margin-bottom: 0;
  outline: none;
  resize: none;
}

input, textarea {
  background: #f7f7f7;
  color: #222;
}

button[type="submit"] {
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
  padding: 0.8rem 2.2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover {
  background: #ffe3a3;
}

#formMessage {
  margin-top: 0.5rem;
  color: #ffe3a3;
  font-weight: bold;
}

/* About Section */
.about-section {
  background: var(--primary); /* Same as body background */
  color: #fff;                /* White text */
  padding: 2.5rem 1rem 2rem 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  margin-top: 2rem;
  margin-bottom: 20rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}

.about-section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color:var(--accent); /* Ensure heading is also white */
}

.about-section p {
  color: #fff;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Add this to offset anchor scroll for fixed header */
section {
  scroll-margin-top: 110px; /* Adjust to match or slightly exceed your header height */
}

/* Responsive */
@media (max-width: 800px) {
  .features-list {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .feature {
    max-width: 100%;
  }
  .contact-section,
  .about-section {
    max-width: 100%;
    padding: 1.5rem 0.5rem;
    border-radius: 0;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1rem 1vw;
  }
  .brand {
    font-size: 1.2rem;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
  .features-section h2,
  .contact-section h2 {
    font-size: 1.3rem;
  }
}


footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
}
