/* ============================================================
   DESIGN SYSTEM — P.V. Krishna Reddy Corporate Website
   Premium Corporate Identity | Creaa Think Designs
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* ── Root Variables ── */
:root {
  /* Core Palette */
  --navy-deep:       #050810;
  --navy-primary:    #0a0e1a;
  --navy-mid:        #0d1426;
  --navy-light:      #141c32;
  --charcoal:        #1a2035;
  --charcoal-light:  #222840;
  --steel:           #2d3654;
  --steel-light:     #3d4a6b;

  /* Gold System */
  --gold-deep:       #8b6914;
  --gold-primary:    #c9a84c;
  --gold-bright:     #e8c56a;
  --gold-pale:       #f5e4b0;
  --gold-glow:       rgba(201,168,76,0.15);

  /* Blue Accent */
  --blue-primary:    #1e6fff;
  --blue-light:      #4d8fff;
  --blue-pale:       #a8c8ff;
  --blue-glow:       rgba(30,111,255,0.12);

  /* Neutral */
  --white:           #ffffff;
  --off-white:       #f0f2f7;
  --grey-100:        #e8eaf2;
  --grey-200:        #c8cdd8;
  --grey-300:        #8892a4;
  --grey-400:        #5a6278;
  --grey-500:        #3a4055;

  /* Glass */
  --glass-bg:        rgba(255,255,255,0.03);
  --glass-border:    rgba(255,255,255,0.08);
  --glass-hover:     rgba(255,255,255,0.06);
  --glass-strong:    rgba(255,255,255,0.07);

  /* Typography */
  --font-display:    'Playfair Display', Georgia, serif;
  --font-body:       'Inter', -apple-system, sans-serif;
  --font-accent:     'Cormorant Garamond', Georgia, serif;

  /* Spacing */
  --section-pad:     120px;
  --section-pad-sm:  80px;
  --container-max:   1360px;
  --container-wide:  1560px;

  /* Radius */
  --radius-sm:       8px;
  --radius-md:       16px;
  --radius-lg:       24px;
  --radius-xl:       32px;
  --radius-pill:     100px;

  /* Shadows */
  --shadow-sm:       0 2px 20px rgba(0,0,0,0.3);
  --shadow-md:       0 8px 40px rgba(0,0,0,0.4);
  --shadow-lg:       0 20px 80px rgba(0,0,0,0.5);
  --shadow-gold:     0 8px 40px rgba(201,168,76,0.2);
  --shadow-blue:     0 8px 40px rgba(30,111,255,0.2);

  /* Transitions */
  --ease-smooth:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:        cubic-bezier(0, 0, 0.2, 1);
  --duration-fast:   200ms;
  --duration-mid:    400ms;
  --duration-slow:   700ms;
}

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

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

body {
  background: var(--navy-primary);
  color: var(--grey-100);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Typography Scale ── */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.display-2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.display-3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}
.heading-1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
}
.heading-2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
}
.body-lg { font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.8; }
.body-md { font-size: 1rem; line-height: 1.75; }
.body-sm { font-size: 0.875rem; line-height: 1.7; }
.caption  { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }

/* ── Color Utilities ── */
.text-gold    { color: var(--gold-primary); }
.text-blue    { color: var(--blue-light); }
.text-white   { color: var(--white); }
.text-muted   { color: var(--grey-300); }
.text-subtle  { color: var(--grey-400); }

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 768px) {
  .container, .container-wide { padding: 0 20px; }
}

/* ── Section Base ── */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section-sm {
  padding: var(--section-pad-sm) 0;
}

/* ── Section Label ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold-primary);
}

/* ── Glass Card ── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  transition: all var(--duration-mid) var(--ease-smooth);
}
.glass-card:hover {
  background: var(--glass-hover);
  border-color: rgba(201,168,76,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

/* ── Gold Divider ── */
.divider-gold {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), transparent);
  margin: 24px 0;
}
.divider-center {
  margin: 24px auto;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  width: 120px;
}

/* ── Gradient Text ── */
.gradient-gold {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-bright) 50%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-blue {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-light) 50%, var(--blue-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-primary));
  color: var(--navy-deep);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: all var(--duration-mid) var(--ease-smooth);
  box-shadow: 0 4px 24px rgba(201,168,76,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(201,168,76,0.45);
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-bright));
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--gold-primary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(201,168,76,0.4);
  transition: all var(--duration-mid) var(--ease-smooth);
}
.btn-outline:hover {
  background: var(--gold-glow);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--glass-bg);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  transition: all var(--duration-mid) var(--ease-smooth);
  backdrop-filter: blur(20px);
}
.btn-ghost:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all var(--duration-mid) var(--ease-smooth);
}
.site-nav.scrolled {
  background: rgba(5,8,16,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 40px;
  max-width: var(--container-wide);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}
.nav-logo-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-primary);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--grey-200);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-smooth);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: var(--glass-bg);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 1.5px;
  background: var(--gold-primary);
  border-radius: 2px;
}
.nav-cta {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-primary));
  color: var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: all var(--duration-mid) var(--ease-smooth);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration-mid) var(--ease-smooth);
}

/* ── Background Layers ── */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.bg-gradient-radial {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
}

/* ── Stat Block ── */
.stat-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}
.stat-number .counter { color: var(--white); }
.stat-suffix { color: var(--gold-primary); }
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-300);
}
.stat-line {
  width: 24px;
  height: 1.5px;
  background: var(--gold-primary);
  margin-top: 6px;
}

/* ── Tag / Pill ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-200);
}
.tag-gold {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.25);
  color: var(--gold-primary);
}
.tag-blue {
  background: rgba(30,111,255,0.08);
  border-color: rgba(30,111,255,0.25);
  color: var(--blue-light);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Footer ── */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 60px;
  padding: 80px 0 60px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 20px;
}
.footer-desc {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--grey-300);
  margin-bottom: 28px;
}
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 0.875rem;
  color: var(--grey-300);
  transition: color var(--duration-fast) var(--ease-smooth);
}
.footer-link:hover { color: var(--white); }

.footer-newsletter input {
  width: 100%;
  padding: 12px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.875rem;
  font-family: var(--font-body);
  margin-bottom: 10px;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-smooth);
}
.footer-newsletter input:focus {
  border-color: rgba(201,168,76,0.4);
}
.footer-newsletter input::placeholder { color: var(--grey-400); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--grey-400);
}
.footer-credit {
  font-size: 0.8rem;
  color: var(--grey-400);
}
.footer-credit a {
  color: var(--gold-primary);
  font-weight: 600;
  transition: color var(--duration-fast) var(--ease-smooth);
}
.footer-credit a:hover { color: var(--gold-bright); }

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--duration-mid) var(--ease-smooth);
  z-index: 900;
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.5);
}
.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: var(--navy-deep);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Page Hero Base ── */
.page-hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-content {
  position: relative;
  z-index: 2;
}

/* ── Horizontal Scroll Strip ── */
.ticker-wrap {
  overflow: hidden;
  padding: 18px 0;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-primary));
}
.ticker-inner {
  display: flex;
  gap: 60px;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-deep);
}
.ticker-dot {
  width: 4px;
  height: 4px;
  background: var(--navy-deep);
  border-radius: 50%;
  opacity: 0.5;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  :root { --section-pad: 80px; --section-pad-sm: 60px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
