/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --bg-dark: #1a0a00;
  --bg-medium: #3d1a00;
  --gold-primary: #d4af37;
  --gold-dark: #8b6914;
  --cream: #f5e6d3;
  --brown: #5c3d2e;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cormorant Garamond', serif;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
  color: var(--cream);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Animated Background Pattern */
.background-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 35px, var(--gold-primary) 35px, var(--gold-primary) 36px),
    repeating-linear-gradient(-45deg, transparent, transparent 35px, var(--gold-primary) 35px, var(--gold-primary) 36px);
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

/* Mandala Decorations */
.mandala {
  position: fixed;
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
  animation: rotateMandala 60s linear infinite;
}

.mandala-top {
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
}

.mandala-bottom {
  bottom: -250px;
  left: -250px;
  width: 700px;
  height: 700px;
}

.mandala-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  opacity: 0.04;
}

@keyframes rotateMandala {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateMandalaCenter {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.mandala-center {
  animation: rotateMandalaCenter 60s linear infinite;
}

/* Ornamental Corner Borders */
.corner-ornament {
  position: fixed;
  width: 120px;
  height: 120px;
  z-index: 10;
  pointer-events: none;
}

.corner-top-left {
  top: 0;
  left: 0;
  border-top: 3px solid var(--gold-primary);
  border-left: 3px solid var(--gold-primary);
  border-top-left-radius: 10px;
}

.corner-top-right {
  top: 0;
  right: 0;
  border-top: 3px solid var(--gold-primary);
  border-right: 3px solid var(--gold-primary);
  border-top-right-radius: 10px;
}

.corner-bottom-left {
  bottom: 0;
  left: 0;
  border-bottom: 3px solid var(--gold-primary);
  border-left: 3px solid var(--gold-primary);
  border-bottom-left-radius: 10px;
}

.corner-bottom-right {
  bottom: 0;
  right: 0;
  border-bottom: 3px solid var(--gold-primary);
  border-right: 3px solid var(--gold-primary);
  border-bottom-right-radius: 10px;
}

/* Main Container */
.container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 30px;
}

/* Header Section */
.header-section {
  text-align: center;
  margin-bottom: 80px;
  padding: 40px 20px;
}

.main-title {
  font-family: 'Cinzel', serif;
  font-size: 5rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-shadow:
    0 0 20px var(--gold-primary),
    0 0 40px rgba(212, 175, 55, 0.5),
    0 0 60px rgba(212, 175, 55, 0.3);
  margin-bottom: 20px;
  letter-spacing: 8px;
  position: relative;
  height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-word {
  position: absolute;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: all 1s ease-in-out;
  animation: textGlow 3s ease-in-out infinite;
}

.title-word.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes textGlow {

  0%,
  100% {
    text-shadow:
      0 0 20px var(--gold-primary),
      0 0 40px rgba(212, 175, 55, 0.5),
      0 0 60px rgba(212, 175, 55, 0.3);
  }

  50% {
    text-shadow:
      0 0 30px var(--gold-primary),
      0 0 60px rgba(212, 175, 55, 0.7),
      0 0 90px rgba(212, 175, 55, 0.5);
  }
}

.subtitle {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--cream);
  letter-spacing: 4px;
  opacity: 0.9;
}

.decorative-divider {
  margin: 30px auto;
  font-size: 1.5rem;
  color: var(--gold-primary);
  letter-spacing: 20px;
}

/* Main Content Grid */
.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.board-container {
  position: relative;
  perspective: 1000px;
}

.chess-board {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  transform: rotateX(20deg) rotateZ(-5deg);
  transition: transform 0.6s ease;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
}

.chess-board:hover {
  transform: rotateX(15deg) rotateZ(0deg) scale(1.05);
}

.board-frame {
  padding: 20px;
  background: linear-gradient(135deg, #8b6914, #d4af37, #8b6914);
  border-radius: 10px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  background: #2a1810;
  border: 3px solid #d4af37;
}

.square {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  transition: all 0.3s ease;
}

.square.light {
  background: linear-gradient(135deg, #f4dba6, #fffac7fd);
}

.square.dark {
  background: linear-gradient(135deg, #8b4513, #6b3410);
}

.square:hover {
  filter: brightness(1.2);
  transform: scale(0.95);
}


/* Content Section */
.content-section {
  padding: 20px;
}

.description {
  font-size: 1.3rem;
  line-height: 2;
  text-align: justify;
  color: var(--cream);
  margin-bottom: 40px;
  position: relative;
}

.description::first-letter {
  font-family: 'Cinzel', serif;
  font-size: 4rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin-right: 10px;
  color: var(--gold-primary);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.cta-button {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--bg-medium), var(--bg-dark));
  color: var(--gold-primary);
  border: none;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease;
  letter-spacing: 2px;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--gold-primary), var(--gold-dark), var(--gold-primary));
  background-size: 200% 200%;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  z-index: -1;
  animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.cta-button::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: linear-gradient(135deg, var(--bg-medium), var(--bg-dark));
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  z-index: -1;
}

.button-texture {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(212, 175, 55, 0.1) 2px, rgba(212, 175, 55, 0.1) 4px),
    repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(212, 175, 55, 0.1) 2px, rgba(212, 175, 55, 0.1) 4px);
  pointer-events: none;
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

.cta-button:active {
  transform: translateY(-2px);
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.5);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Feature Cards Section */
.features-section {
  margin-top: 100px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  text-align: center;
  color: var(--gold-primary);
  margin-bottom: 60px;
  letter-spacing: 4px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: rgba(61, 26, 0, 0.6);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.feature-card:hover::before {
  width: 500px;
  height: 500px;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold-primary);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(212, 175, 55, 0.3);
}

.feature-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.feature-title {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--gold-primary);
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.feature-description {
  font-size: 1.1rem;
  color: var(--cream);
  line-height: 1.8;
  opacity: 0.9;
}

/* Responsive Design */
/* @media (max-width: 1200px) {
  .main-title {
    font-size: 4rem;
  }

  .chess-board {
    grid-template-columns: repeat(8, 45px);
    grid-template-rows: repeat(8, 45px);
  }

  .square {
    width: 45px;
    height: 45px;
    font-size: 28px;
  }
} */

@media (max-width: 968px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .main-title {
    font-size: 3.5rem;
  }

  .subtitle {
    font-size: 1.5rem;
  }

  .chess-board {
    transform: none;
  }

  .chess-board:hover {
    transform: scale(1.05);
  }

  .square {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .mandala-top,
  .mandala-bottom {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 40px 20px;
  }

  .main-title {
    font-size: 2.5rem;
    letter-spacing: 4px;
  }

  .subtitle {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }

  .header-section {
    margin-bottom: 50px;
    padding: 20px 10px;
  }

  .chess-board {
    grid-template-columns: repeat(8, 35px);
    grid-template-rows: repeat(8, 35px);
  }

  .square {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .chess-board-frame {
    padding: 20px;
  }

  .description {
    font-size: 1.1rem;
    line-height: 1.8;
  }

  .description::first-letter {
    font-size: 3rem;
  }

  .cta-button {
    font-size: 1rem;
    padding: 15px 30px;
  }

  .section-title {
    font-size: 2rem;
  }

  .feature-title {
    font-size: 1.5rem;
  }

  .corner-ornament {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .chess-board {
    grid-template-columns: repeat(8, 30px);
    grid-template-rows: repeat(8, 30px);
  }

  .square {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .chess-board-frame {
    padding: 15px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .mandala-top,
  .mandala-bottom,
  .mandala-center {
    display: none;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}