/* Preloader Implementation */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #030303;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-logo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
}

.loader-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3));
}

/* Sparking Animation for Infinity Symbol */
.spark-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 10%);
    background-size: 20px 20px;
    background-repeat: no-repeat;
    mix-blend-mode: overlay;
    animation: spark-move 3s infinite linear;
    opacity: 0;
}

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    filter: blur(1px) drop-shadow(0 0 5px #fff);
    opacity: 0;
}

.s1 { top: 40%; left: 30%; animation: sparkle 1.5s infinite 0.2s; }
.s2 { top: 50%; left: 50%; animation: sparkle 2s infinite 0.5s; }
.s3 { top: 45%; left: 70%; animation: sparkle 1.8s infinite 0.8s; }

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.5); }
}

@keyframes spark-move {
    0% {
        background-position: 20% 40%;
        opacity: 0;
        transform: scale(0.5);
    }
    10% {
        opacity: 1;
        transform: scale(1.2);
    }
    20% {
        background-position: 40% 30%;
        opacity: 0;
        transform: scale(0.5);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
        background-position: 60% 45%;
    }
    40% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
        background-position: 50% 50%; /* Center of infinity */
    }
    60% {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        opacity: 1;
        transform: scale(1.2);
        background-position: 30% 60%;
    }
    80% {
        opacity: 0;
        transform: scale(0.5);
    }
    90% {
        opacity: 1;
        transform: scale(1.2);
        background-position: 70% 35%;
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Shimmering effect on the logo itself */
.loader-logo-wrapper::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(
        45deg,
        transparent 45%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 55%
    );
    animation: shimmer 2.5s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.loader-bar {
    width: 150px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    position: absolute;
    left: -100%;
    animation: progress-move 2s infinite ease-in-out;
}

@keyframes progress-move {
    0% { left: -100%; width: 30%; }
    50% { left: 0%; width: 60%; }
    100% { left: 100%; width: 30%; }
}

body.preloader-active {
    overflow: hidden;
}

/* ZOS Chatbot Styles */
#zos-chatbot-container {
    position: fixed;
    bottom: 110px; /* Positioned above WhatsApp */
    right: 30px;
    z-index: 1000;
    font-family: 'Space Grotesk', sans-serif;
}

#zos-floating-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: zos-float 3s infinite ease-in-out;
}

@keyframes zos-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

#zos-floating-icon:hover {
    transform: scale(1.1);
}

.zos-icon-inner {
    position: relative;
    width: 45px;
    height: 45px;
}

.zos-icon-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Make logo white */
}

.zos-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
}

#zos-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 420px; /* Wider like ChatGPT */
    height: 600px; /* Taller */
    background: #0d1117; /* GitHub/ChatGPT Dark mode */
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

#zos-chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.zos-header {
    background: #161b22;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e6edf3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.zos-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.zos-header-info img {
    width: 32px;
    height: 32px;
    filter: none; /* Show real logo colors for professional look */
}

.zos-header-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.zos-header-info p {
    margin: 0;
    font-size: 0.7rem;
    color: #10b981; /* Green status color */
    font-weight: 500;
}

#zos-chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #0d1117;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.zos-message {
    max-width: 90%;
    padding: 12px 18px;
    font-size: 0.95rem;
    line-height: 1.6;
    word-wrap: break-word;
    border-radius: 8px;
}

.zos-message.bot {
    align-self: flex-start;
    background: transparent;
    color: #e6edf3;
    border: none;
    padding-left: 0;
    width: 100%;
    max-width: 100%;
}

.zos-message.user {
    align-self: flex-end;
    background: #21262d;
    color: #e6edf3;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Markdown styling in messages */
.zos-message p { margin-bottom: 12px; }
.zos-message p:last-child { margin-bottom: 0; }
.zos-message code {
    background: #161b22;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.85em;
}
.zos-message pre {
    background: #161b22;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.zos-message pre code {
    background: transparent;
    padding: 0;
}
.zos-message ul, .zos-message ol {
    margin-left: 20px;
    margin-bottom: 12px;
}
.zos-message strong {
    color: #58a6ff;
}

.zos-input-area {
    padding: 20px;
    background: #0d1117;
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#zos-user-input {
    flex: 1;
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    color: #e6edf3;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

#zos-user-input:focus {
    border-color: #58a6ff;
}

#zos-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #238636; /* ChatGPT Green button */
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

#zos-send-btn:hover {
    background: #2ea043;
}

#zos-send-btn:active {
    transform: scale(0.95);
}

/* Adjust WhatsApp button position */
.whatsapp-btn {
    bottom: 30px !important; /* Base position at the bottom */
    right: 30px !important;
}

@media (max-width: 500px) {
    #zos-chat-window {
        width: calc(100vw - 40px);
        height: 500px;
        bottom: 70px;
    }
}

/* Cursor & Torch Implementation */
body.demo-active { cursor: none !important; }
.torch-cursor-img {
    position: fixed;
    width: 45px;
    height: 45px;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    background-image: url('assets/images/torch%20cursor.png');
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.8)) drop-shadow(0 0 30px rgba(168, 85, 247, 0.4)); /* Reduced glow for better visibility */
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
    display: none; /* Hidden by default, shown via media query */
}

/* Only show on devices with a fine pointer (Desktop/Laptop) */
@media (pointer: fine) {
    .torch-cursor-img {
        display: block;
    }
    body {
        cursor: none !important;
    }
}

/* Ensure mobile feels natural */
@media (pointer: coarse) {
    body, a, button, .btn, .service-card, .project-card, .nav-link {
        cursor: auto !important;
    }
}

/* Premium Hover State: No Hands */
.torch-cursor-img.torch-hovering {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 25px rgba(99, 102, 241, 0.6)); /* Further toned down hover glow */
}

/* Unique Interaction Indicator (Instead of hand) */
.torch-cursor-img::after {
    content: "VIEW";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 8px; /* Slightly smaller */
    font-weight: 800;
    letter-spacing: 1px;
    opacity: 0;
    transition: all 0.3s ease;
    background: rgba(99, 102, 241, 0.4); /* Much more transparent */
    backdrop-filter: blur(4px); /* Glass effect instead of solid color */
    padding: 3px 6px;
    border-radius: 4px;
    pointer-events: none;
}

.torch-cursor-img.torch-hovering::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

#aurora-canvas.masked {
  /* Increased ambient visibility (0.2) and much larger spotlight (800px) so other contents are visible */
  -webkit-mask-image: radial-gradient(800px circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.2) 100%);
  mask-image: radial-gradient(800px circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.2) 100%);
  opacity: 1;
}

:root {
  --bg-color: #030303; /* Deeper black for better contrast */
  --surface-color: #0a0a0a;
  --primary-color: #6366f1; /* Indigo */
  --secondary-color: #a855f7; /* Purple */
  --accent-color: #ec4899; /* Pink */
  --text-color: #f3f4f6;
  --text-muted: #e5e7eb; /* Much lighter gray for readability */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Outfit", sans-serif;
  --max-width: 1200px;
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --torch-size: 320px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================================================================
   1M+ AURA CORE (Aurora Shader & Torch Mask)
   ========================================================================= */
#aurora-canvas {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -2; pointer-events: none;
}



.noise-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; z-index: 9998; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  animation: noiseScramble 0.3s steps(2) infinite;
}
@keyframes noiseScramble { 0% { transform: translate(0,0) } 50% { transform: translate(10px,10px) } 100% { transform: translate(-10px,-10px) } }

/* =========================================================================
   LUXURY FADE UP SCROLL ANIMATIONS
   ========================================================================= */
.fade-up-element {
  opacity: 0;
  transform: translateY(80px) scale(0.95);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fade-up-element.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}


a, button, .btn, .service-card, .project-card, .nav-link, .logo, .footer-links a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  cursor: none !important; /* Remove the hand icon */
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Helps text pop against the shader */
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: none !important;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--text-muted);
  color: var(--text-color);
  margin-left: 1rem;
}

.btn-secondary:hover {
  border-color: var(--text-color);
  background: rgba(255, 255, 255, 0.05);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(3, 3, 3, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800; /* Increased from 700 */
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-shadow: 0 2px 10px rgba(99, 102, 241, 0.3); /* Added subtle glow to text */
}

.logo-img {
  height: 65px; /* Increased size */
  width: auto;
  object-fit: contain; /* Changed from cover to contain for logos */
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.5)) contrast(1.1) brightness(1.1); /* Increased visibility and contrast */
}

.logo .highlight {
  color: var(--primary-color);
}

.nav-list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 1rem;
}

.nav-link:hover {
  color: var(--primary-color);
}

/* Dropdown Styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 0;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(255, 255, 255, 0.1);
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    padding-left: 25px;
}

.arrow {
    font-size: 0.8rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-item.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: none !important;
  gap: 6px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 65px; 
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Default to side-by-side */
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* If hero-container is grid, ensure text takes up space */
.hero-content {
  max-width: 600px; /* Optional, good for readability */
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #ffffff; /* Brighter for visibility */
  opacity: 1;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.circle-gradient {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    var(--secondary-color),
    var(--primary-color)
  );
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: pulse-glow 6s ease-in-out infinite;
  z-index: 0;
}

.hero-logo {
  width: 450px; /* Increased size from 350px */
  height: 450px;
  object-fit: contain; /* Changed from cover to contain */
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 35px rgba(99, 102, 241, 0.6)) contrast(1.1) brightness(1.2); /* Enhanced visibility, contrast and brightness */
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.6; }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.section-subtitle {
  color: #ffffff;
  margin-top: -1rem;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

.text-center { text-align: center; }

/* Family Tree Section */
.family-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 2rem 0;
}

.tree-level {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 60px; /* Added gap between leaders */
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.tree-card {
  width: 250px; /* Consistent width for tree nodes */
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.tree-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  background: rgba(0, 0, 0, 0.5);
}

.team-image {
  height: 280px;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tree-card:hover .team-image img {
  transform: scale(1.05);
}

.team-info {
  padding: 1.5rem;
  text-align: center;
}

.team-info h3 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.team-info .role {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-info .sub-role {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  font-weight: 400;
  line-height: 1.4;
}

.tree-connector.vertical {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  position: relative;
}

.branch-level {
  position: relative;
}

.tree-branches {
  display: flex;
  gap: 80px; /* Reduced gap to accommodate more branches */
  position: relative;
}

/* Horizontal connector for branches */
.tree-branches::before {
  content: "";
  position: absolute;
  top: -30px; /* Halfway up the vertical connector space */
  left: 125px; /* Middle of the first card */
  right: 125px; /* Middle of the last card */
  height: 2px;
  background: var(--secondary-color);
  z-index: 1;
}

/* Vertical stubs for branches */
.tree-branches .tree-card::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  width: 2px;
  height: 30px;
  background: var(--secondary-color);
  z-index: 1;
}

/* Mobile responsive tree */
@media (max-width: 800px) {
  .tree-level {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .tree-branches {
    flex-direction: column;
    gap: 40px;
  }
  
  .tree-branches::before {
    display: none; /* Hide horizontal line on mobile */
  }
  
  .tree-branches .tree-card::before {
    height: 40px;
    top: -40px;
  }

  .tree-connector.vertical {
    height: 40px;
  }
}

/* Services Section */
.section {
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(0, 0, 0, 0.4); /* Darker background */
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Internal Flashlight Effect inside Glass Cards */
.service-card::before, .project-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(
    1000px circle at var(--card-mouse-x, 50%) var(--card-mouse-y, 50%), 
    rgba(255, 255, 255, 0.15), 
    transparent 40%
  );
}

.service-card:hover::before, .project-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  cursor: none !important;
}

.icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.3));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  display: inline-block;
}

.service-card:hover .icon {
  transform: scale(1.15) rotate(8deg);
  filter: drop-shadow(0 0 25px rgba(99, 102, 241, 0.6));
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ffffff; /* Brighter headings */
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.service-card p {
  color: #ffffff; /* Maximum visibility */
  opacity: 0.95;
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 30px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 80px rgba(255,255,255,0.05);
}

.project-image {
  height: 200px;
  width: 100%;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* About Section */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.stats {
  margin-top: 2rem;
  display: flex;
  gap: 3rem;
}

.stats li {
  display: flex;
  flex-direction: column;
}

.stats strong {
  font-size: 2rem;
  color: var(--primary-color);
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--surface-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border-radius: 8px;
  font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.map-wrapper {
  margin-top: 4rem;
  padding-bottom: 2rem;
}

.map-card {
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  position: relative; /* For overlay */
}

.map-overlay {
  position: absolute;
  top: 1rem; left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  z-index: 5;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  pointer-events: auto;
}

.map-card:hover .map-overlay {
  opacity: 1;
}

.map-card.active .map-overlay {
  display: none;
}

.map-overlay span {
  background: var(--primary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.map-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.map-card iframe {
  border-radius: 16px;
  filter: grayscale(1) invert(0.9) opacity(0.8) contrast(1.2); /* Premium dark map look */
  transition: var(--transition);
  pointer-events: none; /* Allows torch cursor to work over the map */
}

.map-card.active iframe {
  pointer-events: auto; /* Re-enable interaction when active */
}

.map-card:hover iframe {
  filter: grayscale(0.5) invert(0.9) opacity(1);
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 4rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

/* Responsive */
/* Responsive */
@media (max-width: 900px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 800px) {
  /* Tablet/Mobile Layout */
  .section {
    padding: 3rem 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    flex-direction: column-reverse; /* Ensure logical tab order if we used flex, but grid is fine */
    gap: 3rem;
  }

  /* Make hero visual visible but smaller */
  .hero-visual {
    display: flex;
    margin-bottom: 2rem;
    order: -1; /* visual on top in the grid stack */
  }

  .circle-gradient {
    width: 300px;
    height: 300px;
  }

  .hero-logo {
    width: 280px; /* Increased from 200px */
    height: 280px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .btn-secondary {
    margin-left: 0;
  }

  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  /* Grids: Adjust min-width for smaller screens */
  .services-grid, .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Mobile Navigation */
  .menu-toggle {
    display: flex;
    z-index: 1001; /* Above the nav list */
  }

  .nav-list {
    position: fixed; /* Fixed to cover screen */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

  .nav-list.active {
    transform: translateY(0);
  }

  .nav-link {
    font-size: 1.5rem; /* Larger touch targets */
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  /* Small Mobile Adjustments */
  .container {
    padding: 0 1.25rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .btn {
    width: 100%; /* Full width buttons on small screens */
    text-align: center;
  }
  
  .logo {
    font-size: 1.4rem;
    font-weight: 800;
  }
  
  .logo-img {
    height: 60px; /* Increased from 50px */
  }
  
  .project-image {
    height: 180px;
  }
}

/* =========================================================================
   PREMIUM MODAL & PRICING PLANS
   ========================================================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-content.premium-modal {
    background: rgba(15, 15, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    border-radius: 40px;
    width: 100%;
    max-width: 1100px;
    padding: 3rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 2rem; right: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: none !important;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}

.modal-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.modal-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    border-radius: 100px;
    width: fit-content;
}

.tab-btn {
    padding: 0.8rem 2rem;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: none !important;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(
    1000px circle at var(--card-mouse-x, 50%) var(--card-mouse-y, 50%), 
    rgba(255, 255, 255, 0.12), 
    transparent 40%
  );
}

.plan-card:hover::before {
    opacity: 1;
}

.plan-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.plan-card.recommended {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.plan-badge {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-header h3 {
    font-size: 1.8rem;
    margin: 1rem 0;
}

.plan-icon {
    font-size: 2rem;
}

.plan-price {
    display: flex;
    align-items: flex-end;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.plan-price .amount {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.plan-price .currency {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.plan-price .period {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.billed-yearly {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.savings {
    font-size: 0.85rem;
    color: #4ade80; /* Success Green */
    font-weight: 600;
    margin-bottom: 2rem;
}

.plan-features {
    margin-bottom: 2rem;
}

.plan-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    gap: 0.5rem;
}

.plan-btn {
    width: 100%;
    text-align: center;
}

/* Developer Profile */
.developer-profile {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: center;
}

.dev-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.dev-info h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.dev-info p {
    color: var(--text-muted);
    margin: 1.5rem 0;
    line-height: 1.8;
}

.dev-stats {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
}

.dev-stat {
    display: flex;
    flex-direction: column;
}

.dev-stat strong {
    font-size: 2rem;
    color: var(--primary-color);
}

.dev-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
    .developer-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .dev-image {
        max-width: 300px;
        margin: 0 auto;
    }
    .dev-stats {
        justify-content: center;
    }
    .dev-skills {
        justify-content: center;
    }
    .modal-content.premium-modal {
        padding: 2rem;
    }
}
/* Sub-page Specific Layout */
.page-content {
  padding-top: 60px; 
}

.page-header {
  margin-bottom: 4rem;
  text-align: center;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}


/* =========================================================================
   FLOATING WIDGETS (WhatsApp & Visitor Counter)
   ========================================================================= */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
    background-color: #20ba5a;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.visitor-counter-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    padding: 10px 20px;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.visitor-counter-float:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.counter-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visitor-counter-float .counter-icon {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 7px;
    height: 7px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse-live 2s infinite;
    z-index: 1;
}

@keyframes pulse-live {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.visitor-counter-float .counter-value {
    color: var(--primary-color);
    font-weight: 700;
    font-family: var(--font-heading);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
    .visitor-counter-float {
        bottom: 20px;
        left: 20px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

/* =========================================================================
   FAQ & SERVICE AREAS (SEO EXPANSION)
   ========================================================================= */
.faq {
    background: rgba(255, 255, 255, 0.01);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.faq-item {
    background: rgba(0, 0, 0, 0.4); /* Darker background for better text contrast */
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.faq-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.faq-item h3 {
    color: #ffffff; /* Changed from primary to white for visibility */
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.faq-item p {
    color: rgba(255, 255, 255, 0.95); /* High contrast white */
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-areas-detail {
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05));
    padding: 6rem 0;
}

.service-areas-detail ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.service-areas-detail li {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.service-areas-detail li:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.footer-info {
    max-width: 600px;
}

.service-areas {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.service-areas strong {
    color: var(--primary-color);
}
