/* =====================
   GLOBAL RESET & BASE
===================== */
img {
    max-width: 100%;
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #f4a300;
    --dark: #1e1e1e;
    --light: #ffffff;
    --gray: #f5f5f5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--dark);
    background: linear-gradient(
        -45deg,
        #0a0a0a,
        #ececec,
        #ffffff,
        #f3f3f3
    );
    background-size: 400% 400%;
    animation: bgMove 15s ease infinite;
}

/* Dynamic background animation */
@keyframes bgMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =====================
   HEADER & NAVIGATION
===================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8%;
}

.logo img {
    width: 140px;
    padding: 12px 8%;
    border-radius: 60%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--light);
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a:hover::after {
    width: 100%;
}

/* =====================
   HERO SECTION
===================== */
.hero {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%);
}

.hero-video{
  position:relative;
  width:100%;
  height:100vh;
  overflow:hidden;
}

.video-container{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
}

.video-container iframe{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-overlay{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: white;
}

.cta {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    margin-top: 100px;
}

.cta h1 {
    color: var(--light);
    font-size: clamp(2rem, 5vw, 3.5rem);
    max-width: 900px;
    margin-bottom: 25px;
    animation: fadeUp 1.2s ease forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn {
    background: #fcfafa9c;
    color: var(--dark);
    padding: 14px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #ffb30056;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.103);
}

/* =====================
   SERVICES SECTION
===================== */
.services-overview {
    padding: 80px 8%;
    text-align: center;
}

.services-overview h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service {
    background: var(--light);
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.15);
}

.service h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.service p {
    color: #555;
    line-height: 1.6;
}

/* =====================
   PROJECTS SECTION
===================== */
.projects {
    padding: 80px 8%;
    background: var(--gray);
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project {
    background: var(--light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project:hover {
    transform: scale(1.03);
}

.project img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project h3 {
    padding: 15px 20px 5px;
}

.project p {
    padding: 0 20px 20px;
    color: #666;
}

/* =====================
   FOOTER
===================== */
footer {
    background: var(--dark);
    color: var(--light);
    text-align: center;
    padding: 25px 15px;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    text-decoration: underline;
}

/* =====================
   RESPONSIVE NAV
===================== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero {
        height: 70vh;
    }
}

@media (max-width: 480px) {
    .cta h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 24px;
    }
}


/* =====================
   MOBILE HAMBURGER MENU
===================== */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

.dark-toggle {
    margin-left: 15px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
}

/* Mobile Nav */
@media (max-width: 768px) {
    nav ul {
        display: table-column;
        flex-direction: column;
        background: rgba(30, 30, 30, 0.836);
        position: absolute;
        top: 270px;
        left: 10px;
        right: 20px;
        width: 90%;
        padding: 20px 40px 60px;
        padding-top: 60px;
        grid-template-columns: repeat(6, 2fr);
        gap: 10px;
        box-shadow: 0 30px 60px rgb(26, 1, 255);
        border-radius: 20px;
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/* =====================
   DARK MODE
===================== */
body.dark {
    background: #121212;
    color: #eaeaea;
}

body.dark header,
body.dark footer {
    background: #000;
}

body.dark .service,
body.dark .project {
    background: #1e1e1e;
    color: #eaeaea;
}

body.dark .projects {
    background: #181818;
}

body.dark a {
    color: var(--primary);
}

/* =====================
   SCROLL ANIMATIONS
===================== */
.project,
.service {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s ease;
}

.project.show,
.service.show {
    opacity: 1;
    transform: translateY(0);
}





/* =====================
   WHATSAPP FLOAT BUTTON
===================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    font-size: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 999;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.call-float {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    font-size: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 999;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
    70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Dark mode compatibility */
body.dark .whatsapp-float {
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}





/* =====================
   FUNCTIONAL MENU BAR
===================== */
nav ul {
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Active link highlight */
nav ul li a.active {
    color: var(--primary);
}

nav ul li a.active::after {
    width: 100%;
}

/* Mobile animation */
@media (max-width: 768px) {
    nav ul {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
    }

    nav ul.active {
        max-height: 400px;
        opacity: 1;
    }
}






/* =====================
   STICKY SHRINK NAVBAR
===================== */
header.shrink {
    padding: 6px 8%;
    transition: all 0.3s ease;
}

header.shrink .logo img {
    width: 110px;
}

/* =====================
   MEGA MENU
===================== */
.has-mega {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    width: 200px;
    padding: 30px;
    display: none;
    grid-template-columns: repeat(1, 2fr);
    gap: 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    border-radius: 12px;
    z-index: 999;
}

.has-mega:hover .mega-menu {
    display: grid;
}

.mega-column h4 {
    margin-bottom: 12px;
    color: var(--primary);
}

.mega-column a {
    display: block;
    text-decoration: none;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.mega-column a:hover {
    color: var(--primary);
}

/* Hide mega menu on mobile */
@media (max-width: 768px) {
    .mega-menu {
        display: none !important;
    }
}

/* =====================
   DROPDOWN (MOBILE)
===================== */
@media (max-width: 768px) {
    .has-mega > a::after {
        content: " ▾";
    }
}

/* =====================
   ROLE BASED MENU
===================== */
.admin-only,
.client-only {
    display: none;
}

/* =====================
   DARK MODE MEGA MENU
===================== */
body.dark .mega-menu {
    background: #1e1e1e;
}

body.dark .mega-column a {
    color: #eaeaea;
}




/* =====================
   MOBILE SERVICES DROPDOWN
===================== */
.mobile-dropdown {
    display: none;
    flex-direction: column;
    background: #111;
    padding-left: 15px;
}

.mobile-dropdown a {
    color: #f5c542;
    padding: 10px 0;
    font-size: 14px;
}

/* Show ONLY on mobile */
@media (min-width: 769px) {
    .mobile-dropdown {
        display: none !important;
    }
}

/* Hide mega menu on mobile */
@media (max-width: 768px) {
    .mega-menu {
        display: none !important;
    }
}
.mobile-dropdown.open {
    display: flex;
}





/* HERO VIDEO BACKGROUND */
.hero-video {
  position: relative;
  height: 100vh; /* Full viewport height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero-video video#hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  transform: translate(-50%, -50%);
  object-fit: cover; /* Ensures video fills container */
}

.hero-video .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay */
  z-index: 2;
}

.hero-video .hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 20px;
}


