* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {

  /* DARK THEME DEFAULT */

  --bg-black: #050505;
  --bg-dark: #0f0f0f;

  --text-white: #f4f4f4;
  --text-dark: #111111;

  --accent-red: #ea1d25;
  --accent-gold: #b59a30;

  --border-gray: rgba(255,255,255,0.12);
  --glass: rgba(255,255,255,0.06);

  --header-bg: rgba(0,0,0,0.35);

  --hero-overlay-left: rgba(0,0,0,0.78);
  --hero-overlay-mid: rgba(0,0,0,0.45);
  --hero-overlay-right: rgba(0,0,0,0.72);

  --card-bg: rgba(255,255,255,0.05);
  --card-border: rgba(255,255,255,0.08);

  --secondary-btn-border: rgba(255,255,255,0.2);
}

body.light-theme {

  --bg-black: #f5f5f5;
  --bg-dark: #ffffff;

  --text-white: #111111;
  --text-dark: #111111;

  --border-gray: rgba(0,0,0,0.08);
  --glass: rgba(0,0,0,0.04);

  --header-bg: rgba(255,255,255,0.78);

  --hero-overlay-left: rgba(255,255,255,0.88);
  --hero-overlay-mid: rgba(255,255,255,0.52);
  --hero-overlay-right: rgba(255,255,255,0.82);

  --card-bg: rgba(255,255,255,0.65);
  --card-border: rgba(0,0,0,0.08);

  --secondary-btn-border: rgba(0,0,0,0.15);
}


body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-black);
  color: var(--text-white);
  overflow-x: hidden;

  transition:
    background 0.4s ease,
    color 0.4s ease;
}

/* ===================== */
/* HEADER */
/* ===================== */

/* ===================== */
/* HEADER */
/* ===================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 82px;
  padding: 0 4%;

  display: flex;
  align-items: center;

  z-index: 1000;

  backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-gray);

  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}


/* LOGO */
.logo-area {
  position: relative;
  width: 180px;
  height: 60px;

  display: flex;
  align-items: center;

  flex-shrink: 0;
}

.logo-area img {
  position: absolute;
  width: 180px;
  transition: opacity 0.4s ease;
}

.logo-light {
  opacity: 0;
}

body.light-theme .logo-dark {
  opacity: 0;
}

body.light-theme .logo-light {
  opacity: 1;
}


.theme-toggle {
  display: flex;
  align-items: center;
  margin-left: 20px;
  margin-right: 25px;
}

#theme-switch {
  display: none;
}

.toggle-label {
  width: 64px;
  height: 32px;

  background: rgba(255,255,255,0.12);

  border: 1px solid rgba(255,255,255,0.2);

  border-radius: 999px;

  position: relative;

  cursor: pointer;

  transition: 0.4s ease;
}

.toggle-ball {
  position: absolute;

  width: 24px;
  height: 24px;

  background: var(--accent-red);

  border-radius: 50%;

  top: 3px;
  left: 4px;

  transition: 0.4s ease;

  box-shadow: 0 4px 14px rgba(234,29,37,0.45);
}

#theme-switch:checked + .toggle-label .toggle-ball {
  transform: translateX(31px);
}

body.light-theme .toggle-label {
  background: rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.12);
}


/* NAVIGATION */
.nav-menu {
  flex: 1;

  display: flex;
  justify-content: center;
  gap: 40px;
}
.header-cta {
  margin-left: auto;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-white);
  font-weight: 500;
  position: relative;
  transition: 0.3s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: 0.3s ease;
}
.nav-menu a:hover {
  color: var(--accent-red);
}

.nav-menu a:hover::after {
  width: 100%;
}
.header-cta button {
  padding: 14px 28px;
  border: none;
  background: var(--accent-red);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}
.header-cta button:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(234,29,37,0.4);
}

.mobile-menu-btn {
  display: none;
}

/* ===================== */
/* HERO SECTION */
/* ===================== */

.hero-section{
  position:relative;
  width:100%;
  min-height:100vh;

  overflow:hidden;

  display:flex;
  align-items:center;

  padding:120px 7% 60px;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  filter: brightness(0.72);

  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-overlay{
  position:absolute;
  inset:0;

  background:
  linear-gradient(
    to right,
    var(--hero-overlay-left),
    var(--hero-overlay-mid),
    var(--hero-overlay-right)
  );

  z-index:2;

  transition: 0.4s ease;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-content{
  position:relative;
  z-index:5;

  width:100%;
  max-width:680px;

  padding-top:40px;
}

.hero-subtitle {
  color: var(--accent-gold);

  letter-spacing: 5px;
  text-transform: uppercase;

  margin-bottom: 25px;

  font-size: 14px;
  font-weight: 600;

  opacity: 0;

  animation: fadeUp 1s ease forwards;
}

.hero-content h1 {
  font-size:clamp(3rem, 5vw, 6rem);

  line-height:0.9;

  font-weight:900;

  margin-bottom:24px;

  max-width:700px;

  opacity: 0;

  animation: fadeUp 1s ease forwards;
  animation-delay: 0.2s;
}

.hero-content h1 span {
  color: var(--accent-red);
}

.hero-description {
  font-size: 1.15rem;

  line-height: 1.8;

  color: rgba(255,255,255,0.75);

  max-width: 560px;

  margin-bottom: 45px;

  opacity: 0;

  animation: fadeUp 1s ease forwards;
  animation-delay: 0.4s;
}
body.light-theme .hero-description {
  color: rgba(0,0,0,0.72);
}

.hero-buttons {
  display: flex;
  gap: 20px;

  opacity: 0;

  animation: fadeUp 1s ease forwards;
  animation-delay: 0.6s;
}

.primary-btn,
.secondary-btn {
  padding: 18px 34px;

  border: none;

  font-weight: 700;

  cursor: pointer;

  transition: 0.35s ease;
}

.primary-btn {
  background: var(--accent-red);
  color: white;
}

.primary-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(234,29,37,0.35);
}

.secondary-btn {
  background: transparent;

  border: 1px solid var(--secondary-btn-border);

  color: white;
}

.secondary-btn:hover {
  background: rgba(255,255,255,0.08);
}

.hero-stats {
  position: absolute;

  right: 5%;
  bottom: 7%;

  z-index: 5;

  display: flex;
  gap: 16px;
  flex-wrap:wrap;

  justify-content:flex-end;

  max-width:580px;
}

.stat-box {
  width: 160px;

  padding: 24px;

  background: var(--card-bg);
  border: 1px solid var(--card-border);

  backdrop-filter: blur(18px);

  transition: 0.4s ease;
}

.stat-box:hover {
  transform: translateY(-10px);

  border-color: rgba(234,29,37,0.5);
}

.stat-box h2 {
  color: var(--accent-red);

  font-size: 2.6rem;

  margin-bottom: 10px;
}
.stat-box p {
  color: rgba(255,255,255,0.75);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 5;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 10px;
}

.mouse {
  width: 28px;
  height: 48px;

  border: 2px solid white;
  border-radius: 30px;

  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;

  width: 4px;
  height: 10px;

  transform: translateX(-50%);

  background: white;
  border-radius: 10px;

  animation: scrollAnim 1.5s infinite;
}
.scroll-indicator p{
  font-size: 12px;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.7);
}
.primary-btn,
.secondary-btn {
  position: relative;
  overflow: hidden;
}

.primary-btn::before,
.secondary-btn::before {

  content:'';
  position:absolute;

  top:0;
  left:-100%;

  width:100%;
  height:100%;

  background:rgba(255,255,255,0.15);

  transition:0.5s ease;
}

.primary-btn:hover::before,
.secondary-btn:hover::before{
  left:100%;
}
html{
  scroll-behavior:smooth;
}

.hero-slider{
  position:absolute;
  inset:0;
  z-index:1;
  overflow:hidden;
}

.slide{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;

  opacity:0;

  transform:scale(1);

  animation: cinematicZoom 18s infinite;

  transition: opacity 2s ease;
}

.slide.active{
  opacity:1;
}



.hero-stats{
  z-index:5;
}

.scroll-indicator{
  z-index:5;
}
.company-title{

  font-size:14px;
  letter-spacing:6px;

  color: rgba(255,255,255,0.75);

  margin-bottom:18px;

  font-weight:700;
}
body.light-theme .company-title {
  color: rgba(0,0,0,0.65);
}

/* ===================== */
/* LIGHT THEME FIXES */
/* ===================== */

/* Our Services button text */
body.light-theme .secondary-btn {
  color: #111111;
  border-color: rgba(0,0,0,0.18);
}

body.light-theme .secondary-btn:hover {
  background: rgba(0,0,0,0.06);
}

/* Stats card text */
body.light-theme .stat-box p {
  color: rgba(0,0,0,0.72);
}

/* Scroll text */
body.light-theme .scroll-indicator p {
  color: rgba(0,0,0,0.6);
}

/* Mouse outline in light mode */
body.light-theme .mouse {
  border-color: rgba(0,0,0,0.7);
}

body.light-theme .mouse::before {
  background: rgba(0,0,0,0.7);
}