:root {
  --primary: #2563eb;
  --accent: #22c55e;
  --dark: #0b132b;
  --light: #f8faff;
  --muted: #6b7280;
  --radius: 20px;
  --shadow-soft: 0 15px 35px rgba(0,0,0,0.08);
  --shadow-hover: 0 25px 60px rgba(0,0,0,0.18);
}

html {
  scroll-behavior: smooth;
}


/* -------------------------------
   Global Styles
---------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
  color: #1f2933;
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-weight: 800;
  letter-spacing: -0.3px;
}

p {
  color: #4b5563;
  font-size: 1rem;
}

header {
  position: relative;
  z-index: 2000000;
}

.container {
  max-width: 1200px;
}

/* -------------------------------
   Navbar (Premium Glass)
---------------------------------*/
.navbar {
  background: rgba(255,255,255,0.88) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  position: relative;
  z-index: 999999;
}

.navbar-brand {
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 1.4rem;
}

.nav-link {
  font-weight: 600;
  position: relative;
  color: #1f2937 !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 50%;
  background: var(--primary);
  transition: 0.3s ease;
  transform: translateX(-50%);
  border-radius: 10px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 65%;
}

.navbar {
  position: relative;
  z-index: 999999;
}

.navbar-nav {
  position: relative;
  z-index: 5;
}

.navbar-nav .nav-link {
  position: relative;
  z-index: 10;
}

.navbar-nav button {
  position: relative;
  z-index: 1;
}

/* NAVBAR LOGO */
.nav-logo {
  height: 45px;
  width: auto;
  transition: all 0.3s ease;
}

/* Hover Animation */
.navbar-brand:hover .nav-logo {
  transform: scale(1.08) rotate(-2deg);
}

/* Dark Mode Logo Auto Switch */
body.dark .nav-logo {
  content: url("../images/pahadix_logo.png");
}

/* -------------------------------
   Buttons
---------------------------------*/
.btn-primary {
  border-radius: 60px;
  padding: 14px 38px;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 12px 30px rgba(37,99,235,0.4);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(37,99,235,0.5);
}

/* ===============================
   HERO (Ultra Premium)
=================================*/
.hero-section {
  position: relative;   /* ✅ ABSOLUTE CRITICAL FIX */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}


.hero-video {
  position: absolute; 
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(37,99,235,0.85), rgba(11,19,43,0.92));
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  padding: 40px 20px;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 1.05;
  color: #fff;
}

.hero-content p,
.hero-content span,
.hero-stats h2,
.hero-stats p {
  color: #fff;
}

.hero-stats div {
  background: rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 20px 32px;
  min-width: 170px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

/* -------------------------------
   Section Titles
---------------------------------*/
section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

section h2::after {
  content: "";
  width: 70px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 20px;
}

/* -------------------------------
   Cards Global
---------------------------------*/
.card,
.service-card,
.portfolio-card,
.choose-card,
.testimonial-card,
.about-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: 0.45s ease;
  border: none;
  background: #ffffff;
}

.card:hover,
.service-card:hover,
.portfolio-card:hover,
.choose-card:hover {
  transform: translateY(-12px) scale(1.015);
  box-shadow: var(--shadow-hover);
}

/* -------------------------------
   About Images
---------------------------------*/
#about img {
  border-radius: var(--radius);
}

/* -------------------------------
   Services Effects
---------------------------------*/
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), transparent 70%);
  opacity: 0;
  transition: 0.4s ease;
}

.service-card:hover::before {
  opacity: 0.08;
}

/* -------------------------------
   Portfolio
---------------------------------*/
.portfolio-card img {
  height: 240px;
  object-fit: cover;
}

/* -------------------------------
   Why Choose Us
---------------------------------*/
.choose-card {
  background: linear-gradient(135deg, #ffffff, #eef3ff);
  border: 1px solid rgba(0,0,0,0.03);
}

/* -------------------------------
   Forms
---------------------------------*/
form input,
form textarea {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
}

form input:focus,
form textarea:focus {
  box-shadow: 0 0 0 4px rgba(37,99,235,0.25);
  border-color: var(--primary);
}

/* -------------------------------
   Section Background Flow
---------------------------------*/
#services {
  background: linear-gradient(180deg, #ffffff, #f1f5ff);
}

#portfolio {
  background: linear-gradient(180deg, #f1f5ff, #ffffff);
}

#contact {
  background: linear-gradient(135deg, #2563eb, #0b132b);
  color: #fff;
}

#contact p,
#contact label {
  color: rgba(255,255,255,0.88);
}

#contact input,
#contact textarea {
  background: rgba(255,255,255,0.95);
}

/* ===============================
   Animations
================================*/
.reveal {
  opacity: 0;
  transform: translateY(70px);
  transition: 0.9s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.glow:hover {
  box-shadow: 0 0 35px rgba(37,99,235,0.65) !important;
}

/* ===============================
   Parallax Feel
================================*/
#hero {
  background-attachment: fixed;
}

/* ===============================
   Premium Footer
================================*/
footer {
  background: linear-gradient(135deg, #0b132b, #0d6efd);
  color: #fff;
  padding: 70px 0 30px;
}

footer h5 {
  font-weight: 700;
  margin-bottom: 15px;
}

footer a {
  color: rgba(255,255,255,0.8);
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
}

footer a:hover {
  color: #fff;
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
}

/* ===============================
   Footer - Light Mode Fix
================================*/
body:not(.dark) footer {
  background: linear-gradient(135deg, #f8faff, #e7efff);
  color: #0b132b;
}

body:not(.dark) footer h5 {
  color: #0b132b;
}

body:not(.dark) footer p,
body:not(.dark) footer a {
  color: #334155;
}

body:not(.dark) footer a:hover {
  color: var(--primary);
}

body:not(.dark) .footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.15);
  color: #475569;
}

/* ===============================
   Dark Mode
================================*/
body.dark {
  background: #0b132b;
  color: #ffffff;
}

body.dark section {
  background: #0b132b !important;
  color: #ffffff;
}

body.dark .navbar {
  background: rgba(15, 23, 42, 0.9) !important;
}

body.dark .nav-link {
  color: rgba(255,255,255,0.85) !important;
}
body.dark .navbar-brand {
  color: rgba(255,255,255,0.85) !important;
}


body.dark .nav-link.active {
  color: #60a5fa !important;
}

body.dark .card,
body.dark .service-card,
body.dark .portfolio-card,
body.dark .choose-card,
body.dark .testimonial-card,
body.dark .about-card {
  background: #121a36;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(0,0,0,0.6);
}

body.dark p {
  color: rgba(255,255,255,0.75);
}

body.dark footer {
  background: linear-gradient(135deg, #020617, #0b132b);
}

video,
.hero-video,
.hero-overlay {
  pointer-events: none !important;
}

/* ==============================
   Filter Buttons Styles
=================================*/
.btn-group {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn-group .btn {
  border-radius: 50px;
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: transparent;
}

.btn-group .btn:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}

.btn-group .btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
  border-color: transparent;
}

/* ==============================
   Project Grid Animations
=================================*/
/* Smooth slide-in/fade-in effect for project items */
.project-item {
  transition: all 0.5s ease, opacity 0.5s ease;
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.project-item.hide {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  height: 0;
  margin: 0;
  padding: 0;
}

.project-item.show {
  opacity: 1;
  transform: scale(1);
  height: auto;
  margin: initial;
  padding: initial;
  pointer-events: auto;
}

