/* Prasha Infotech - Global Stylesheet (styles.css) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

:root {
  /* Theme Tokens - Dark Theme (Default) */
  --bg-primary: #0A0A09;
  --bg-secondary: #131311;
  --bg-tertiary: #1C1C1A;
  --bg-glass: rgba(19, 19, 17, 0.75);
  --primary: #C59B27;
  --primary-rgb: 197, 155, 39;
  --accent: #E6C65D;
  --accent-rgb: 230, 198, 93;
  --dark-gold: #967215;
  --text-primary: #F4F4F2;
  --text-muted: #A2A29D;
  --border-color: rgba(197, 155, 39, 0.15);
  --border-glow: rgba(197, 155, 39, 0.3);
  --shadow-sm: rgba(0, 0, 0, 0.3);
  --shadow-md: rgba(0, 0, 0, 0.5);
  --shadow-lg: rgba(0, 0, 0, 0.7);
  --shadow-gold: rgba(197, 155, 39, 0.1);
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-width: 1280px;
}

[data-theme="light"] {
  /* Theme Tokens - Light Theme Override */
  --bg-primary: #FCFCFA;
  --bg-secondary: #F5F5F0;
  --bg-tertiary: #EBEBE3;
  --bg-glass: rgba(252, 252, 250, 0.85);
  --primary: #A37E1C;
  --primary-rgb: 163, 126, 28;
  --accent: #C59B27;
  --accent-rgb: 197, 155, 39;
  --dark-gold: #73570F;
  --text-primary: #1C1C19;
  --text-muted: #6E6E66;
  --border-color: rgba(163, 126, 28, 0.15);
  --border-glow: rgba(163, 126, 28, 0.3);
  --shadow-sm: rgba(0, 0, 0, 0.05);
  --shadow-md: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.12);
  --shadow-gold: rgba(163, 126, 28, 0.05);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding: 0.4rem 1.25rem;
  background: rgba(var(--primary-rgb), 0.03);
  border: 1.2px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tag-star {
  font-size: 0.65rem;
  color: var(--primary);
  animation: starSparkle 3s ease-in-out infinite;
}

@keyframes starSparkle {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2) rotate(45deg); }
}

.section-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  margin-bottom: 1rem;
}

.section-title-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(to var(--line-dir, right), transparent, color-mix(in srgb, var(--primary) 50%, transparent) 80%, transparent);
  position: relative;
  max-width: 120px;
}

.line-left {
  --line-dir: left;
}

.line-right {
  --line-dir: right;
}

.section-title-line::after {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--primary);
}

.section-title-line::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0;
  letter-spacing: -0.02em;
  display: inline-block;
}

.gold-text {
  color: var(--primary);
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 70%, var(--dark-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.125rem;
  max-width: 650px;
  margin: 1rem auto 3rem auto;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

header.sticky {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition);
}

header.sticky .nav-container {
  height: 70px;
}

/* Logo Design */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.logo-symbol {
  width: 38px;
  height: 38px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
  position: relative;
  box-shadow: 0 0 10px var(--shadow-gold);
}

.logo-text {
  text-transform: uppercase;
  line-height: 1;
}

.logo-text span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  color: var(--primary);
  margin-top: 0.15rem;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-menu li.active .nav-link {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 99px;
  transform: translateX(-50%);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 60%;
}

.nav-menu li.active .nav-link::after {
  width: 20px;
  height: 2px;
  background-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

/* Mega Menu Structure */
.has-megamenu {
  position: static;
}

.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.has-megamenu:hover .megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.megamenu-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 3rem;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.megamenu-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.megamenu-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: var(--transition);
}

.megamenu-item:hover {
  background: rgba(var(--primary-rgb), 0.05);
}

.megamenu-item svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.megamenu-item-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.megamenu-item-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.megamenu-featured {
  background: rgba(var(--primary-rgb), 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.megamenu-featured-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.megamenu-featured-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Nav Actions (Search, Theme Toggle, CTA) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  background: transparent;
  transition: var(--transition);
}

.nav-icon-btn:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
  color: var(--primary);
}

.nav-icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Hamburger menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition);
}

/* Scroll Animations Base classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Footer Styling */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem 0;
  font-family: var(--font-body);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col-info p {
  font-size: 0.9rem;
  margin: 1.5rem 0;
  max-width: 320px;
}

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

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  position: relative;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-col-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-newsletter-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.25rem;
  background: var(--bg-tertiary);
  transition: var(--transition);
}

.newsletter-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.1);
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-btn {
  background: var(--primary);
  color: #1C1C19;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-heading);
}

.newsletter-btn:hover {
  background: var(--accent);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .megamenu-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .megamenu-featured {
    display: none; /* Hide featured in tablet/mobile for simplification */
  }
  .megamenu-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
  .section-title {
    font-size: 2rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  /* Mobile Navigation overlay */
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 2rem;
    gap: 1.5rem;
    overflow-y: auto;
    transition: var(--transition);
  }
  
  .nav-menu.open {
    left: 0;
  }
  
  .has-megamenu {
    width: 100%;
  }
  
  .megamenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 1rem 0 0 1rem;
    display: none; /* Toggle via JS in mobile */
  }
  
  .has-megamenu.active .megamenu {
    display: block;
  }
  
  .megamenu-grid {
    padding: 0;
  }
  
  .megamenu-links {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .megamenu-item {
    padding: 0.5rem 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}

/* ==========================================================================
   PREMIUM PRELOADER & CURSOR & BACKDROP EFFECT STYLES
   ========================================================================== */

/* Preloader Screen */
.preloader-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #0A0A09;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 300px;
  width: 100%;
}

.preloader-logo {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo-symbol {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  z-index: 2;
  position: relative;
  text-shadow: 0 0 15px rgba(var(--primary-rgb), 0.6);
  animation: logoPulse 1.8s ease-in-out infinite;
}

.preloader-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.4) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(5px);
  z-index: 1;
  animation: glowExpand 1.8s ease-in-out infinite;
}

.preloader-progress-container {
  width: 160px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.preloader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--accent));
  box-shadow: 0 0 8px var(--primary);
}

.preloader-status {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.8;
  height: 20px;
  text-align: center;
  transition: opacity 0.3s ease;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.05); filter: brightness(1.2); }
}

@keyframes glowExpand {
  0%, 100% { width: 50px; height: 50px; opacity: 0.4; }
  50% { width: 75px; height: 75px; opacity: 0.7; }
}

/* Custom Cursor (Hide on touch devices/mobile) */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }
  a, button, [role="button"], input, select, textarea, .portfolio-card, .card-glass, .btn-premium {
    cursor: none;
  }
}

.custom-cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 999999;
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.8);
  display: none;
}

[data-theme="light"] .custom-cursor-dot {
  background-color: #000000 !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2) !important;
}

.custom-cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 999998;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, background-color 0.3s;
  display: none;
}

.custom-cursor-ring.active {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
  background-color: rgba(var(--primary-rgb), 0.05);
}

/* Background Noise and Subtle Ambient Blobs */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.ambient-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  mix-blend-mode: screen;
  will-change: transform;
}

.glow-blob-1 {
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.6) 0%, transparent 70%);
  top: -10%;
  right: -5%;
}

.glow-blob-2 {
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.4) 0%, transparent 70%);
  bottom: 10%;
  left: -5%;
}

.glow-blob-3 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.3) 0%, transparent 70%);
  top: 40%;
  right: 20%;
}

/* Page transitions curtain overlay */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #0A0A09;
  z-index: 99998;
  transform: translateY(100%);
  pointer-events: none;
}

/* Prefers Reduced Motion overrides */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .preloader-screen, .custom-cursor-dot, .custom-cursor-ring, .glow-blob, .hero-light-beam, .page-transition-overlay {
    display: none !important;
  }
}

/* Disable CSS transitions when GSAP is active to prevent conflicts */
.gsap-active .reveal,
.gsap-active .reveal-left,
.gsap-active .reveal-right,
.gsap-active .reveal-scale {
  transition: none !important;
}
