/* includes/style.css — VividTamil ULTRA PREMIUM 2025 Dark Glassmorphism Design */

:root {
  --bg: #050509;
  --bg-alt: #0f0f14;
  --glass: rgba(18, 18, 30, 0.78);
  --glass-soft: rgba(24, 24, 40, 0.9);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #e8e8ed;
  --text-muted: #a0a0b8;
  --accent: #ff8c38;
  --accent-soft: rgba(255, 140, 56, 0.16);
  --accent-glow: #ff6b00;
  --danger: #ff4b6a;
  --card-shadow: 0 26px 80px rgba(0, 0, 0, 0.75);
  --radius-lg: 22px;
  --radius-xl: 28px;
  --transition-fast: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  /* Layered background (neon + subtle noise) */
  background-image:
    radial-gradient(circle at 0% 0%, rgba(255, 140, 56, 0.15) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(255, 107, 0, 0.12) 0, transparent 60%),
    linear-gradient(135deg, #050509 0%, #0b0b12 40%, #050509 100%),
    url('/assets/noise.png');
  background-repeat: repeat;
  background-attachment: fixed;
}

/* TYPOGRAPHY ---------------------------------------------------- */

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: #ffffff;
  line-height: 1.2;
  margin-top: 0;
}

p {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
}

strong {
  color: #ffffff;
}

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

a:hover {
  color: var(--accent-glow);
  text-shadow: 0 0 16px rgba(255, 140, 0, 0.6);
}

/* LAYOUT WRAPPERS ----------------------------------------------- */

.site-main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 5.5rem 1.5rem;
}

.section--tight {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section-inner {
  max-width: 1360px;
  margin: 0 auto;
}

/* GLASSMORPHISM CARDS ------------------------------------------- */

.glass {
  background: var(--glass);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.glass::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(255, 140, 56, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.glass:hover {
  transform: translateY(-8px) translateZ(0);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.9);
}

.glass:hover::before {
  opacity: 1;
}

/* HEADER -------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  background: radial-gradient(circle at 0 0, rgba(255, 140, 56, 0.24), transparent 52%)
              , rgba(5, 5, 10, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 54px;
  width: auto;
  filter:
    drop-shadow(0 0 18px rgba(255, 140, 56, 0.65))
    drop-shadow(0 0 40px rgba(255, 140, 56, 0.35));
  transform-origin: center;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.brand-link:hover .brand-logo {
  transform: translateY(-2px) scale(1.02);
}

/* NAVIGATION ---------------------------------------------------- */

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: #f7f7ff;
  letter-spacing: 0.02em;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.78rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid transparent;
  background: radial-gradient(circle at 0 0, rgba(255, 140, 56, 0.38), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.main-nav a:hover {
  color: #ffffff;
  border-color: rgba(255, 140, 56, 0.7);
  box-shadow: 0 18px 45px rgba(255, 140, 56, 0.35);
  transform: translateY(-2px);
}

.main-nav a:hover::after {
  opacity: 1;
}

/* Mobile nav toggle --------------------------------------------- */

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: radial-gradient(circle at 30% 0, rgba(255, 140, 56, 0.3), rgba(8, 8, 15, 0.95));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8);
  padding: 0;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.nav-toggle .bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open .bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-open .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .bar:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* HERO ---------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 80vh;
  padding: 4.5rem 1.5rem 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 3.5rem;
  align-items: center;
  z-index: 2;
}

.hero-meta {
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(10, 10, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.hero-meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffb25f 0, #ff6b00 50%, #e63b00 100%);
  box-shadow:
    0 0 14px rgba(255, 140, 56, 0.9),
    0 0 40px rgba(255, 140, 56, 0.65);
}

.hero-title {
  font-size: clamp(3.1rem, 6vw, 4.8rem);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  background: linear-gradient(92deg, #ffffff 0%, #ffe7cc 30%, #ffb25f 60%, #fffae8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 620px;
  color: var(--text-muted);
}

.hero-subtitle em {
  color: #ffffff;
  font-style: normal;
}

.hero-cta-row {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* CTA BUTTONS --------------------------------------------------- */

.btn-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #ff8c38, #ff6b00);
  color: #111111;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.35), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 60px rgba(255, 140, 56, 0.5),
    0 0 32px rgba(255, 140, 56, 0.7);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(5, 5, 12, 0.95);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(255, 140, 56, 0.8);
  background: radial-gradient(circle at 0 0, rgba(255, 140, 56, 0.24), rgba(5, 5, 12, 0.98));
  color: #ffffff;
  transform: translateY(-3px);
}

/* HERO MEDIA COLUMN -------------------------------------------- */

.hero-media {
  position: relative;
  min-height: 260px;
}

.hero-card {
  position: relative;
  padding: 2rem 2.1rem;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 0 0, rgba(255, 140, 56, 0.25), transparent 55%),
              rgba(14, 14, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.hero-card-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffd8a6;
  margin-bottom: 0.55rem;
}

.hero-card-title {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: #fff5e5;
}

.hero-card-list {
  padding-left: 1.2rem;
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.hero-card-list li {
  margin-bottom: 0.4rem;
}

/* Floating hero image frame */

.hero-photo-frame {
  position: absolute;
  right: -3%;
  bottom: -10%;
  width: 220px;
  max-width: 45vw;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.95),
    0 0 42px rgba(255, 140, 56, 0.52);
  transform-origin: center;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PARTICLES LAYER ----------------------------------------------- */

#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* SPLIT LAYOUTS ------------------------------------------------- */

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.split-layout--reverse {
  grid-auto-flow: dense;
}

.split-layout--reverse > .split-media {
  order: -1;
}

.split-text h2 {
  font-size: 2.1rem;
  margin-bottom: 1.2rem;
}

.split-text p.lede {
  font-size: 1.05rem;
  color: #f3f3ff;
}

.split-text small {
  display: inline-block;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* Image frame */

.split-media {
  position: relative;
}

.split-img {
  border-radius: var(--radius-xl);
  width: 100%;
  height: 420px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.85);
}

.split-media::after {
  content: "";
  position: absolute;
  inset: 14% -12% -28% 35%;
  background: radial-gradient(circle at 100% 0, rgba(255, 140, 56, 0.3), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

/* HOME CARDS / GRID -------------------------------------------- */

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.home-card {
  padding: 1.7rem 1.6rem;
  background: var(--glass-soft);
}

.home-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.home-card p {
  font-size: 0.94rem;
}

/* REVEAL ANIMATION HOOKS ---------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(70px);
}

/* FOOTER (basic alignment with dark mode) ----------------------- */

.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 1.5rem 3rem;
  background: radial-gradient(circle at 0 0, rgba(255, 140, 56, 0.18), transparent 55%),
              rgba(3, 3, 7, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  font-size: 0.9rem;
}

.footer-heading {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.9rem;
  color: var(--text-muted);
}

.footer-small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* VISITOR TEXT that footer injects */
.footer-visitors {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* RESPONSIVE ---------------------------------------------------- */

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 2.6rem;
  }

  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .header-inner {
    padding-inline: 1.15rem;
  }

  .main-nav {
    position: fixed;
    inset: 64px 1rem auto 1rem;
    border-radius: 22px;
    background: rgba(9, 9, 16, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.95);
    padding: 0.75rem 0.6rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    transform-origin: top center;
    transform: scaleY(0.8) translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .main-nav.open {
    opacity: 1;
    transform: scaleY(1) translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    justify-content: flex-start;
    width: 100%;
    padding-inline: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    margin-top: 1.2rem;
  }

  .hero-photo-frame {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 1.4rem;
    width: 100%;
    max-width: 260px;
  }

  .split-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-media {
    order: -1;
  }

  .split-img {
    height: 320px;
  }

  .home-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .section {
    padding-inline: 1.1rem;
  }

  .hero-title {
    font-size: clamp(2.4rem, 8vw, 3rem);
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
