/**
 * IKS Conference 2026 — Master Stylesheet (Apple-Style Glass & Single-Line Navigation)
 * Poornaprajna Institute of Management (PIM), Udupi
 * 
 * STRICT COLOR PRESERVATION:
 * --ink: #4d1718;
 * --deep: #260a0d;
 * --cream: #f5ead1;
 * --paper: #fffaf0;
 * --saffron: #b43b20;
 * --gold: #c99438;
 * --muted: #6f594b;
 */

:root {
  --ink: #4d1718;
  --deep: #260a0d;
  --cream: #f5ead1;
  --paper: #fffaf0;
  --saffron: #b43b20;
  --gold: #c99438;
  --muted: #6f594b;
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body, button, input, textarea, select {
  font-family: "Times New Roman", Times, Georgia, serif !important;
}

body {
  background: var(--paper);
  color: var(--ink);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(201, 148, 56, 0.06), transparent 18%),
    radial-gradient(circle at 85% 65%, rgba(180, 59, 32, 0.05), transparent 20%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* ==========================================================================
   HEADER & NAVBAR (Single-Line Desktop & Apple-Style Translucent Glass)
   ========================================================================== */

.site-header {
  min-height: 84px;
  background: rgba(33, 7, 9, 0.88);
  color: #f7e6bb;
  padding: 0 3.5vw;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(201, 148, 56, 0.4);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  animation: headerSlideDown 0.6s var(--ease-apple) forwards;
}

@keyframes headerSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.8vw, 28px);
}

/* Brand Identity */
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-apple);
}

.identity:hover {
  transform: translateY(-1px);
}

/* Header Logo with Clean White Background */
.header-logo-container {
  width: 58px;
  height: 58px;
  background: #ffffff !important;
  border-radius: 50%;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(201, 148, 56, 0.45);
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple);
  flex-shrink: 0;
}

.identity:hover .header-logo-container {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(201, 148, 56, 0.4), 0 0 0 2.5px rgba(201, 148, 56, 0.7);
}

.header-logo-container .pim-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  display: block !important;
  box-shadow: none !important;
  filter: none !important;
}

.identity-text {
  display: flex;
  flex-direction: column;
}

.identity-text > b {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(13px, 1.05vw, 15.5px);
  letter-spacing: 0.04em;
  color: #f7e6bb;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.identity:hover .identity-text > b {
  color: #ffd96f;
}

.identity-text > small {
  display: block;
  color: #c7b58f;
  font-size: 7.5px;
  letter-spacing: 0.18em;
  margin-top: 3px;
  white-space: nowrap;
}

.pim-logo {
  width: 68px;
  height: 68px;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  display: block !important;
  object-fit: contain;
  box-shadow: none !important;
  flex: 0 0 auto;
}

/* Navigation Links Container */
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(4px, 0.55vw, 10px);
  flex-shrink: 0;
}

/* Single-Line Nav Links (Never Wrap) */
.nav-link,
.site-header nav a,
.site-header nav button {
  border: 0;
  background: transparent;
  color: #e3d5b4;
  padding: 8px clamp(8px, 0.75vw, 13px);
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.2;
  cursor: pointer;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
  transition: all 0.25s var(--ease-apple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap !important; /* CRITICAL: Never wrap text */
  flex-shrink: 0;
}

.nav-link:hover,
.site-header nav a:hover,
.site-header nav button:hover {
  color: #ffd36d;
  background: rgba(201, 148, 56, 0.14);
  transform: translateY(-1px);
}

.nav-link.active,
.site-header nav a.active,
.site-header nav button.active {
  color: #ffd36d;
  border-bottom-color: #d7a33d;
  background: rgba(201, 148, 56, 0.18);
  font-weight: bold;
}

/* Modern Animated Hamburger Toggle Button */
.menu-toggle {
  display: none;
  background: rgba(201, 148, 56, 0.15);
  border: 1px solid rgba(201, 148, 56, 0.4);
  border-radius: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.25s var(--ease-apple);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.menu-toggle:hover {
  background: rgba(201, 148, 56, 0.28);
  border-color: var(--gold);
}

.hamburger-bar {
  width: 20px;
  height: 2px;
  background: #ffd36d;
  border-radius: 2px;
  transition: all 0.3s var(--ease-apple);
  display: block;
}

/* Hamburger to ✕ Transformation */
.menu-toggle.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HOME HERO SECTION
   ========================================================================== */

.home-hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  align-items: center;
  gap: 3vw;
  padding: 44px 7vw 65px;
  background: 
    radial-gradient(circle at 78% 40%, rgba(202, 148, 56, 0.22), transparent 26%),
    linear-gradient(135deg, #f8eccd, #e9c27d);
  position: relative;
  border: none;
  overflow: hidden;
}

/* Soft, seamless gradient transition from Hero into Content section below */
.hero-transition-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
  z-index: 3;
}

.home-hero:after {
  content: "ॐ   ज्ञानम्   धर्मः   प्रज्ञा   सत्यम्   योगः";
  position: absolute;
  left: 2%;
  bottom: 7%;
  font-size: 34px;
  letter-spacing: 0.28em;
  color: rgba(120, 47, 22, 0.08);
  transform: rotate(-7deg);
  white-space: nowrap;
  pointer-events: none;
}

.hero-copy {
  z-index: 2;
}

.hero-copy .eyebrow {
  color: var(--saffron);
  font-size: 11px;
  letter-spacing: 0.25em;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0;
}

.hero-copy h1 {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(44px, 5.2vw, 78px);
  font-weight: 400;
  line-height: 0.96;
  color: var(--deep);
  margin: 13px 0;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.4);
}

.hero-copy h1 em {
  color: #b53820;
  font-weight: 400;
  font-style: normal;
}

.hero-copy h2 {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(17px, 1.65vw, 24px);
  font-weight: 400;
  line-height: 1.28;
  color: #63302a;
  max-width: 700px;
  margin: 0;
}

.home-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}

.home-highlights > div {
  background: rgba(255, 250, 235, 0.75);
  border-left: 4px solid var(--saffron);
  padding: 16px 18px;
  box-shadow: 0 4px 16px rgba(77, 23, 24, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0 6px 6px 0;
  transition: transform 0.3s var(--ease-apple), box-shadow 0.3s var(--ease-apple);
}

.home-highlights > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77, 23, 24, 0.1);
}

.home-highlights span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #95631d;
  text-transform: uppercase;
  font-weight: bold;
}

.home-highlights strong {
  font-family: Georgia, serif;
  font-size: 16px;
  display: block;
  margin-top: 6px;
  color: var(--deep);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero-symbol {
  z-index: 2;
  display: grid;
  justify-items: center;
}

.mandala-container {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Continuously Rotating Outer Mandala (Calm, Premium 35s Rotation) */
.mandala-rotating {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(121, 44, 22, 0.5) 0 1deg, transparent 1deg 10deg);
  animation: mandalaRotate 35s linear infinite;
  will-change: transform;
  pointer-events: none;
  z-index: 1;
}

.mandala-rotating:before {
  content: "";
  position: absolute;
  inset: 31px;
  border-radius: 50%;
  background: #f3d994;
  border: 5px double #b77929;
}

@keyframes mandalaRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Perfectly Stationary & Upright Center Logo (Never Rotates) */
.logo-static {
  position: relative;
  z-index: 2;
  width: 145px;
  height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none !important; /* STRICTLY PREVENTS ANY ROTATION */
}

.logo-static .pim-logo {
  width: 145px;
  height: 145px;
  background: #ffffff !important;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 4px 18px rgba(38, 10, 13, 0.22) !important;
  transition: transform 0.35s var(--ease-apple);
  object-fit: contain;
  display: block;
}

.mandala-container:hover .logo-static .pim-logo {
  transform: scale(1.04);
}

/* Reduced Motion: Mandala remains completely static */
@media (prefers-reduced-motion: reduce) {
  .mandala-rotating {
    animation: none !important;
  }
}

/* Glassmorphic Dark Date Plaque */
.date-plaque {
  margin-top: -22px;
  width: min(410px, 100%);
  background: rgba(49, 9, 13, 0.92);
  color: #f8e5b6;
  padding: 20px 28px;
  border: 2px solid var(--gold);
  border-radius: 6px;
  z-index: 3;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 16px 40px rgba(100, 40, 15, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple);
}

.date-plaque:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(100, 40, 15, 0.32);
}

.date-plaque > b {
  font-family: Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  color: #f5d58d;
}

.date-plaque > span {
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-left: 14px;
  text-transform: uppercase;
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.countdown div {
  border-top: 1px solid rgba(233, 187, 102, 0.3);
  padding-top: 9px;
  text-align: center;
}

.countdown strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 21px;
  color: #e9bb66;
}

.countdown span {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #bda98a;
  text-transform: uppercase;
}

/* ==========================================================================
   CONTENT SECTIONS & BROCHURE COPY
   ========================================================================== */

.content-section {
  padding: 90px 8vw;
  display: grid;
  gap: 35px;
}

.content-section.compact {
  padding-top: 0;
}

.brochure-copy {
  background: rgba(255, 252, 243, 0.86);
  border: 1px solid rgba(213, 186, 124, 0.5);
  border-radius: 8px;
  padding: 40px 4vw;
  box-shadow: 0 10px 30px rgba(77, 23, 24, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple);
}

.brochure-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(77, 23, 24, 0.08);
}

.brochure-copy h2,
.guidelines h2,
.dates-card h2 {
  font-family: Georgia, serif;
  font-size: 34px;
  color: var(--ink);
  margin: 0 0 24px;
  padding-bottom: 13px;
  border-bottom: 3px double var(--gold);
}

.brochure-copy p,
.brochure-copy li,
.publication-page p,
.publication-page li,
.track-note,
.announcement-grid p,
.placeholder-card > p,
.contact-card p,
.contact-card address,
details p {
  font-size: 18px;
  line-height: 1.8;
  color: #5e4739;
}

.credential-strip {
  margin: 28px -4vw -40px;
  padding: 17px 4vw;
  background: rgba(38, 10, 13, 0.95);
  color: #e9c66e;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0 0 7px 7px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.credential-strip i {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
  margin: 0 16px;
}

.objectives ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}

.objectives li {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: start;
  gap: 16px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.25s ease, transform 0.25s var(--ease-apple);
}

.objectives li:hover {
  background: rgba(201, 148, 56, 0.08);
  transform: translateX(4px);
}

.objectives li span {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--saffron);
  font-family: Georgia, serif;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.button {
  display: inline-block;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s var(--ease-apple);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.button.primary {
  background: var(--saffron);
  color: white;
  border: 1px solid var(--saffron);
}

.button.primary:hover {
  background: #8d2817;
  border-color: #8d2817;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(180, 59, 32, 0.32);
  filter: brightness(1.05);
}

.button.primary:active {
  transform: scale(0.97) translateY(0);
}

.button.ghost {
  border: 1px solid rgba(77, 23, 24, 0.45);
  background: rgba(255, 250, 240, 0.6);
  color: var(--ink);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.button.ghost:hover {
  background: rgba(255, 250, 240, 0.95);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(77, 23, 24, 0.12);
}

.button.ghost:active {
  transform: scale(0.97) translateY(0);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer,
.site-footer {
  background: #210709;
  color: white;
  padding: 65px 5vw 35px;
  border-top: 4px solid var(--gold);
  margin-top: auto;
  font-family: "Times New Roman", Times, serif !important;
  width: 100%;
  box-sizing: border-box;
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.5fr 0.55fr 0.75fr 1fr;
  gap: 4vw;
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
}

.footer-logo-wrap {
  flex-shrink: 0;
}

.footer-brand .footer-pim-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: #fff !important;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28) !important;
  display: block;
  transition: transform 0.3s var(--ease-apple);
}

.footer-brand:hover .footer-pim-logo {
  transform: scale(1.04);
}

.footer-brand-text b {
  font-family: Georgia, serif;
  font-size: 19px;
  color: #fff;
  display: block;
}

.footer-brand-text p {
  color: #c5b395;
  line-height: 1.7;
  margin-top: 6px;
  font-size: 14px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col > b {
  color: #e9bb66;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.2em;
}

footer a,
footer span,
footer button,
.footer-col a,
.footer-col span,
.footer-col button {
  color: #c5b395;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  background: none;
  border: 0;
  text-align: left;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

footer a:hover,
footer button:hover,
.footer-col a:hover,
.footer-col button:hover {
  color: #ffd36d;
  transform: translateX(2px);
}

.footer-note {
  justify-content: flex-end;
  text-align: right;
  color: #bfa886;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.15em;
}
