/* Platinum Edge Group - Main Styles */

:root {
  --platinum: #c8d0d8;
  --platinum-light: #e8ecf0;
  --platinum-dark: #8a959f;
  --gold-accent: #c9a84c;
  --bg-dark: #0a0c0e;
  --bg-panel: #161b1ff2;
  --text-muted: #6b7c87;
  --text-body: #a0acb5;
}

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

html, body {
  width: 100%;
  height: 100%;
  /* Removed overflow: hidden to allow scrolling for full website */
  overflow-x: hidden;
  background: var(--bg-dark);
}

body {
  color: var(--text-body);
  font-family: 'Rajdhani', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Cormorant Garamond', serif;
  color: var(--platinum-light);
  font-weight: 600;
}

a {
  color: var(--platinum);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--gold-accent);
}

/* Base App Container */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.sparks-canvas {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    #0000 0 3px,
    #00000014 3px 4px
  );
}

#app {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Corner Decorations */
.corner {
  position: fixed;
  width: 60px;
  height: 60px;
  z-index: 20;
  pointer-events: none;
}

.corner--tl {
  top: 52px;
  left: 24px;
  border-top: 2px solid var(--platinum-dark);
  border-left: 2px solid var(--platinum-dark);
}

.corner--tr {
  top: 52px;
  right: 24px;
  border-top: 2px solid var(--platinum-dark);
  border-right: 2px solid var(--platinum-dark);
}

.corner--bl {
  bottom: 60px;
  left: 24px;
  border-bottom: 2px solid var(--platinum-dark);
  border-left: 2px solid var(--platinum-dark);
}

.corner--br {
  bottom: 60px;
  right: 24px;
  border-bottom: 2px solid var(--platinum-dark);
  border-right: 2px solid var(--platinum-dark);
}

/* Ticker Bars */
.ticker-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: #0a0c0eeb;
  border-bottom: 1px solid #c8d0d81f;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 30;
}

.ticker-inner {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
}

.ticker-item {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--platinum-dark);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-accent);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: #0a0c0eeb;
  border-top: 1px solid #c8d0d814;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 30;
}

.bottom-ticker-inner {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
}

.bottom-item {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bottom-item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--platinum-dark);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 36px; /* below top ticker */
  width: 100%;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 40;
  background: linear-gradient(to bottom, #0a0c0ef0, #0a0c0e00);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--platinum-dark);
}

.nav-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--platinum-light);
}

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

.nav-link {
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--platinum);
  position: relative;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--gold-accent);
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--gold-accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--platinum);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Page Layout Wrappers */
.main-content {
  flex: 1;
  padding: 4rem 4rem 8rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  animation: fade-up 1s forwards 0.5s;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.1em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  text-shadow: 0 0 40px #c8d0d84d;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  max-width: 800px;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s, color 0.3s;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background: #c9a84c1a;
  border: 1px solid var(--gold-accent);
  color: var(--gold-accent);
}

.btn-primary:hover {
  background: var(--gold-accent);
  color: var(--bg-dark);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 5px 25px #c9a84c80;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--platinum-dark);
  color: var(--platinum);
}

.btn-secondary:hover {
  background: var(--platinum-dark);
  color: var(--bg-dark);
}

/* Reusable UI Components */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold-accent);
  margin: 1rem auto 0;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid #c8d0d81a;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px #000c, inset 0 1px #c9a84c26;
  border-color: var(--gold-accent);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--platinum-light);
  letter-spacing: 0.05em;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-corner {
  position: absolute;
  width: 12px;
  height: 12px;
}
.card-corner--tl { top: -1px; left: -1px; border-top: 1px solid var(--platinum); border-left: 1px solid var(--platinum); }
.card-corner--tr { top: -1px; right: -1px; border-top: 1px solid var(--platinum); border-right: 1px solid var(--platinum); }
.card-corner--bl { bottom: -1px; left: -1px; border-bottom: 1px solid var(--platinum); border-left: 1px solid var(--platinum); }
.card-corner--br { bottom: -1px; right: -1px; border-bottom: 1px solid var(--platinum); border-right: 1px solid var(--platinum); }

/* Stats Row */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: #c8d0d80f;
  margin: 4rem 0;
}

.stat-box {
  background: #0a0c0e99;
  padding: 2.5rem 1rem;
  text-align: center;
}

.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--gold-accent);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--platinum-dark);
}

/* Projects Filter */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: transparent;
  border: 1px solid var(--platinum-dark);
  color: var(--platinum);
  padding: 0.5rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-tab.active, .filter-tab:hover {
  background: var(--platinum-dark);
  color: var(--bg-dark);
}

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

.contact-info p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-info .icon {
  color: var(--gold-accent);
}

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

.form-group input, 
.form-group textarea {
  width: 100%;
  background: rgba(10, 12, 14, 0.8);
  border: 1px solid #c8d0d833;
  padding: 1rem;
  color: var(--platinum-light);
  font-family: inherit;
  border-radius: 2px;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-accent);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.1);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--platinum-dark), transparent);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-content {
  background: var(--bg-panel);
  border: 1px solid #c8d0d81a;
  padding: 1.5rem;
  width: 90%;
  position: relative;
}

.timeline-year {
  color: var(--gold-accent);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.timeline-dot {
  position: absolute;
  top: 1.5rem;
  right: -6px;
  width: 12px;
  height: 12px;
  background: var(--bg-dark);
  border: 2px solid var(--gold-accent);
  border-radius: 50%;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -6px;
  right: auto;
}


.form-group select {
  width: 100%;
  background: rgba(10, 12, 14, 0.8);
  border: 1px solid #c8d0d833;
  padding: 1rem;
  color: var(--platinum-light);
  font-family: inherit;
  border-radius: 2px;
  appearance: none;
}

.form-group select:focus {
  outline: none;
  border-color: var(--gold-accent);
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.1);
}

.bullet-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.bullet-list li::before {
  content: "•";
  color: var(--gold-accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Animations */
@keyframes ticker-scroll {
  0% { transform: translate(0); }
  to { transform: translate(-50%); }
}

@keyframes pulse-dot {
  0%, to { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Process Steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.process-card {
  background: rgba(10, 12, 14, 0.6);
  border: 1px solid rgba(200, 208, 216, 0.1);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.process-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-accent);
  opacity: 0.5;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gold-accent);
  color: var(--bg-dark);
  border-radius: 50%;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}


/* --- Global Animation System --- */

:root {
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Sticky Header Transitions */
.navbar {
  transition: padding 0.3s var(--ease-premium), background 0.3s var(--ease-premium), box-shadow 0.3s var(--ease-premium);
}
.navbar.scrolled {
  padding: 1rem 4rem;
  background: rgba(10, 12, 14, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .navbar.scrolled {
    padding: 0.5rem 2rem;
  }
}

/* Mobile Nav Transitions */
.nav-links {
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(-10px);
  opacity: 0;
  display: none;
}
.nav-links.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* WhatsApp Button */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
  transition: transform 0.3s var(--ease-premium);
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.05);
  color: white;
}
.wa-float:active {
  transform: scale(0.96);
}

@media (prefers-reduced-motion: no-preference) {
  .animate-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity var(--duration, 600ms) var(--ease-premium) var(--delay, 0ms), 
                transform var(--duration, 600ms) var(--ease-premium) var(--delay, 0ms);
  }

  /* Fade Up */
  .anim-fade-up { transform: translateY(35px); }
  /* Fade Right */
  .anim-fade-right { transform: translateX(-40px); }
  /* Fade Left */
  .anim-fade-left { transform: translateX(40px); }
  /* Fade Scale */
  .anim-fade-scale { transform: scale(0.85); }
  
  /* Timeline specific center line */
  .timeline::before {
    height: var(--line-height, 0%);
    transition: height 1s var(--ease-premium);
  }

  .timeline-dot {
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.6s var(--ease-premium) var(--delay, 0ms), 
                transform 0.6s var(--ease-premium) var(--delay, 0ms),
                box-shadow 0.3s ease;
  }
  .timeline-item.is-visible .timeline-dot {
    opacity: 1;
    transform: scale(1);
  }
  .timeline-dot:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 0 15px var(--gold-accent);
  }

  .animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
  }

  /* Prevent initial hero CSS animation if we are managing it in JS to avoid conflict */
  .hero {
    animation: none;
    opacity: 1; /* managed by children now */
  }
}


@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 2rem;
  }
  
  .nav-links {
    display: none; /* Hide for mobile initially */
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--platinum-dark);
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .main-content {
    padding: 2rem 1.5rem 6rem;
  }

  .corner { width: 40px; height: 40px; }
  .corner--tl { top: 40px; left: 12px; }
  .corner--tr { top: 40px; right: 12px; }
  .corner--bl { bottom: 48px; left: 12px; }
  .corner--br { bottom: 48px; right: 12px; }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item, .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 50px;
    padding-right: 0;
  }
  
  .timeline-content {
    width: 100%;
  }
  
  .timeline-dot {
    left: 14px;
    right: auto;
  }
  .timeline-item:nth-child(even) .timeline-dot {
    left: 14px;
  }
}
