/* --- THEME & VARIABLE DEFINITIONS --- */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

:root {
    --primary-color: #1e3a8a; /* Blue */
    --secondary-color: #06b6d4; /* Cyan */
    --accent-color: #f59e0b; /* Amber */
    --text-color-light: #ffffff;
    --text-color-dark: #1f2937;
    --bg-light: linear-gradient(135deg, #f8fafc, #e2e8f0);
    --bg-dark: linear-gradient(135deg, #0f172a, #1e293b);
    --card-bg-light: rgba(255, 255, 255, 0.9);
    --card-bg-dark: rgba(30, 41, 59, 0.9);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --border-light: rgba(0, 0, 0, 0.1);
    --border-dark: rgba(255, 255, 255, 0.1);
    --neon-glow: 0 0 10px #06b6d4, 0 0 20px #06b6d4, 0 0 30px #06b6d4;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* --- GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    background: var(--bg-light);
    color: var(--text-color-dark);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    perspective: 1000px; /* Enable 3D perspective */
}

body[data-theme='dark'] {
    --bg-light: var(--bg-dark);
    --text-color-dark: var(--text-color-light);
    --card-bg-light: var(--card-bg-dark);
    --shadow-light: var(--shadow-dark);
    --border-light: var(--border-dark);
}

section {
    padding: 48px 0;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

h1, h2, h3 {
    font-weight: 700;
}

h1 {
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.15;
}

h2 {
    text-align: center;
    font-size: clamp(22px, 4vw, 32px);
    margin-bottom: 1.5rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto 0;
    border-radius: 2px;
}

p, li {
    font-size: clamp(14px, 2.8vw, 18px);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- NAVIGATION --- */
/* Header keeps your old look, adds mobile behavior */
nav.site-header{background:#fff;border-bottom:1px solid #eef2f7;position:sticky;top:0;z-index:1003;background:transparent;transition:background .25s ease,box-shadow .25s ease}
nav.site-header.is-solid{background:#ffffff;box-shadow:0 4px 14px rgba(2,6,23,.06)}
.nav-container{max-width:1120px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.logo{display:inline-flex;align-items:center;gap:10px;position:relative;z-index:1002}
.logo-img{height:34px;width:auto;display:block}
.logo-text{font-weight:800;color:#0f172a;font-size:18px;letter-spacing:.2px;white-space:nowrap}
.nav-links{display:flex;gap:16px;align-items:center}
.nav-links a{padding:10px 8px;border-radius:8px;color:#0f172a;text-decoration:none}
.nav-links a.active,.nav-links a:hover{background:#f1f5f9}

.hamburger{display:none;background:transparent;border:0;font-size:28px;line-height:1;padding:6px;border-radius:8px;cursor:pointer}

/* Mobile menu – keeps visual style, just slides down */
@media (max-width:900px){
  body { overflow-x: hidden; }
  .hamburger { display:block; position: relative; z-index: 1001; }
  .nav-links {
    position:fixed; left:0; right:0; top:56px; background:#fff;
    border-bottom:1px solid #eef2f7;
    display:flex; flex-direction:column; gap:8px; padding:12px 16px;
    transform:translateX(100%); transition:transform .25s ease; z-index:1000;
  }
  .nav-links.active { transform:translateX(0); }
}

/* Badge behind the logo so it stays readable on any background */
.logo-badge,
.logo::before {
  content: "";
  position: absolute;
  inset: -6px -10px; /* padding around logo */
  background: rgba(255,255,255,0.92);       /* light badge */
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 12px;
  filter: drop-shadow(0 2px 10px rgba(2,6,23,.08));
  z-index: -1;
}

/* Smaller, tighter on mobile */
@media (max-width: 640px){
  .logo-img { height: 28px; }
  .logo::before { inset: -4px -8px; border-radius: 10px; }
  .logo-text { font-size: 16px; }
}

/* Base hero */
.hero{ position:relative; display:grid; place-items:center; min-height:55vh; overflow:hidden; color:#fff; text-align:center; }

/* Image behaves like a background layer */
.hero .hero-bg{
  position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none;
  object-fit: cover;   /* desktop: immersive */
  object-position: center;
  filter: brightness(0.85); /* overlay-ish for text contrast */
}

/* Mobile: show full image (contain) */
@media (max-width:767px){
  .hero{ min-height:auto; padding:88px 16px 56px; background: linear-gradient(135deg,#1e3a8a,#3b82f6); }
  .hero .hero-bg{
    object-fit: contain;          /* show full image */
    object-position: top center;  /* show from the top */
    background: transparent;      /* gradient shows behind letterboxing */
  }
}

/* Keep text above image/canvas */
.hero-content{ position:relative; z-index:2; max-width:800px; padding:16px; }

/* Headline styling */
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Subtext */
.hero-content p {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: white;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* CTA Button */
.cta-btn {
  margin-top: 1.5rem;
  background: #0ea5e9;
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.cta-btn:hover {
  background: #0284c7;
  transform: translateY(-2px);
}

/* Simple fade-up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-hero .parallax-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.about-hero::before {
    background: rgba(0, 0, 0, 0.5);
}

.services-hero .parallax-bg {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* --- GLASSMORPHISM CARDS --- */
.feature-card, .testimonial, .faq-item, .service-card, .package-card, .mission-card, .blog-post {
    background: var(--card-bg-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 32px 0 var(--shadow-light);
    color: black;
}

/* --- ABOUT SECTION --- */
.about {
    position: relative;
}

.about .container {
    position: relative;
    z-index: 2;
}

/* --- SERVICES SECTION --- */
.services {
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 2;
}

/* --- FEATURES SECTION --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card { text-align: center; }
.feature-card .icon { font-size: 2rem; margin-bottom: 1rem; display: inline-block; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.feature-card h3 { margin-bottom: 1rem; font-size: 1.5rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card { text-align: center; }
.service-card .icon { width: 100%; max-width: 200px; height: auto; margin: 0 auto 1rem; display: block; }
.service-card h3 { margin-bottom: 1rem; font-size: 1.5rem; }

/* --- TESTIMONIALS --- */
.testimonial-slider { position: relative; max-width: 800px; margin: 4rem auto 0; overflow: hidden; height: 350px; }
.testimonial { position: absolute; width: 100%; text-align: center; opacity: 0; transition: opacity 0.5s ease-in-out; }
.testimonial.active { opacity: 1; }
.testimonial img { width: 90px; height: 90px; border-radius: 50%; margin-bottom: 1.5rem; border: 4px solid var(--secondary-color); object-fit: cover; }
.testimonial p { font-size: 1.1rem; font-style: italic; margin-bottom: 1rem; }
.testimonial cite { font-weight: 600; color: var(--primary-color); }
.slider-nav { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; transform: translateY(-50%); z-index: 10; }
.prev-btn, .next-btn { background: var(--card-bg-light); color: var(--text-color-dark); border: 1px solid var(--border-light); padding: 0.5rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; transition: background 0.3s, transform 0.3s; position: absolute; top: 50%; transform: translateY(-50%); }
.prev-btn { left: -60px; }
.next-btn { right: -60px; }
.prev-btn:hover, .next-btn:hover { background: var(--secondary-color); color: var(--text-color-light); }

/* --- CONTACT FORM --- */
.contact-form { max-width: 700px; margin: 4rem auto 0; display: grid; gap: 1.5rem; }
.contact-form label { font-weight: 600; font-size: 0.9rem; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--card-bg-light);
    color: var(--text-color-dark);
    transition: box-shadow 0.3s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--secondary-color);
}
.contact-form button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color-light);
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    margin: 0 auto;
}
.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-light);
}

/* --- FOOTER --- */
footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-light);
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 3rem 1rem;
}

.social-links { margin-bottom: 1.5rem; }
.social-links a { margin: 0 1rem; font-size: 1.5rem; transition: color 0.3s, transform 0.3s; display: inline-block; }
.social-links a:hover { transform: translateY(-5px); }

/* Social Media Original Colors */
.social-links a[aria-label="Facebook"] { color: #1877F2; }
.social-links a[aria-label="Instagram"] { color: #E4405F; }
.social-links a[aria-label="Twitter"] { color: #1DA1F2; }
.social-links a[aria-label="LinkedIn"] { color: #0077B5; }
.footer-links { margin-bottom: 1.5rem; }
.footer-links a { color: var(--text-color-light); text-decoration: none; margin: 0 0.75rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent-color); }

/* --- ADVANCED FUTURISTIC STYLES --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.neon-text {
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes neon-pulse {
    from { text-shadow: var(--neon-glow); }
    to { text-shadow: 0 0 20px #87ceeb, 0 0 40px #87ceeb, 0 0 60px #87ceeb; }
}

.floating {
    display: block;
    margin: 0 auto;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateY(0deg); }
}

.review-card {
    background: linear-gradient(135deg, var(--glass-bg), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-10px);
}

.step-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.package {
    background: var(--glass-bg);
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 0 20px var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package h3 {
    font-size: 2.5rem;
    text-align: center;
    font-weight: 700;
}

.package ul {
    margin-bottom: 2rem;
}

.package .cta-btn {
    margin-top: 1rem;
    display: block;
    text-align: center;
}

.package:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px var(--secondary-color);
}

.testimonial-3d {
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.3s ease;
    text-align: center;
}

.testimonial-3d:hover {
    transform: perspective(1000px) rotateX(-5deg) translateY(-5px);
}

.footer-3d {
    background: linear-gradient(135deg, var(--text-color-dark), #333);
    color: var(--text-color-light);
    text-align: center;
    padding: 3rem 1rem;
    transform: perspective(1000px) rotateX(0deg);
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1); /* Make logo white for dark footer */
}

/* --- PARALLAX SCROLLING --- */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 55vh;
    transform: translateZ(0);
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
}

/* --- FLOATING PARTICLES --- */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--secondary-color);
    border-radius: 50%;
    opacity: 0.7;
    animation: particle-float 10s linear infinite;
}

@keyframes particle-float {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

/* --- 3D CARD FLIPS --- */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    width: 300px;
    height: 200px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* --- INTERACTIVE ANIMATIONS --- */
.interactive-element {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interactive-element:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* --- STATS SECTION --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px 0 var(--shadow-light);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color-dark);
}

/* --- UNIFORM SECTION STYLES --- */
.uniform-section {
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.uniform-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(30, 58, 138, 0.1), rgba(6, 182, 212, 0.1));
    z-index: -1;
}

/* 3D layer behind everything and not clickable */
.hero .particles, .hero .particles canvas{position:absolute;inset:0;pointer-events:none;z-index:-2}
.hero .hero-content{position:relative;z-index:1}
.hero .particle { animation: none; } /* Disable 3D particle animation on home page hero */
nav, .nav-container, .hamburger{position:relative;z-index:1001}

/* Kill side-scrolling and make images fit */
html, body { max-width:100%; overflow-x:hidden; }
img, video, canvas { max-width:100%; height:auto; display:block; }

/* Better alignment for logo text + image */
.logo{display:flex;align-items:center;gap:10px;color:#0f172a;font-weight:800}
.logo-img{height:34px;width:auto;display:block}
.logo-text{font-size:18px;white-space:nowrap}
@media (max-width:768px){ .logo-text{font-size:16px} }

/* Footer simple alignment */
.footer-3d .social-links{display:flex;gap:14px;justify-content:center;margin-bottom:10px}
.footer-3d .footer-links{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.footer-3d p{margin:8px 0;text-align:center}

/* Vertical passage shown in mobile fix */
.parallax{position:relative;overflow:hidden}
.parallax .parallax-bg{position:absolute;inset:0;will-change:transform}
.uniform-section{padding:48px 0}
@media (max-width:600px){ .uniform-section{padding:28px 0} }

/* Mobile & responsive styles */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .short-hero h1 { font-size: 1.8rem; }
    .short-hero { height: 35vh !important; min-height: 35vh !important; }
    .hero .particles { display: none; } /* Hide particles on mobile to prevent white screen overlay */
    h2 { font-size: 2.2rem; }
    .features-grid, .faq-grid, .services-grid, .about-content, .mission-grid, .packages-grid, .blogs-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    .prev-btn { left: -10px; }
    .next-btn { right: -10px; }

    /* Improve mobile button alignment */
    .cta-btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .package .cta-btn {
        margin-top: 1rem;
    }

    .contact-form button.cta-btn {
        width: 100%;
        padding: 1.2rem;
    }
}



/* Make review counter clearly visible */
#reviewCounter {
    color: white; /* White text for neon effect */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* Neon glow */
    padding: 0.5rem 1rem;
    border-radius: 10px;
    display: inline-block;
    font-weight: 600;
}



/* ===============================
   GLOBAL HERO HEIGHT FIX (ALL PAGES)
   =============================== */

/* Default (desktop + large screens) */
section.hero,
section.hero.parallax,
.hero,
.page-hero,
.blog-hero,
.services-hero,
.banner {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 60px 20px !important;     /* reduce top/bottom space */
  height: 55vh !important;           /* was 100vh, now shorter */
  min-height: 55vh !important;
  overflow: hidden;
}

/* Tablet view */
@media (max-width: 1024px) {
  section.hero,
  section.hero.parallax,
  .hero,
  .page-hero,
  .blog-hero,
  .services-hero,
  .banner {
    height: 50vh !important;
    min-height: 50vh !important;
    padding: 50px 16px !important;
  }
}

/* Mobile view */
@media (max-width: 768px) {
  section.hero,
  section.hero.parallax,
  .hero,
  .page-hero,
  .blog-hero,
  .services-hero,
  .banner {
    height: 45vh !important;         /* smaller for phones */
    min-height: 45vh !important;
    padding: 40px 16px !important;
  }
}


