@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:wght@700&display=swap');

:root {
  --bg-color: #0d0d0d;
  --card-bg: #1a1a1a;
  --header-bg: #111;
  --text-color: #f5f5f5;
  --text-muted: #aaa;
  --primary: #00bfff;
  --primary-hover: #00d2ff;
  --accent: #ffae00;
  --border-color: #333;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 10px 40px rgba(0, 191, 255, 0.3);
  --border-radius: 12px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* Header & Nav */
header {
  background: var(--header-bg);
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

header .site-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

header .site-titles {
  display: flex;
  flex-direction: column;
}

header h1 {
  margin: 0;
  font-size: 70px;
  font-weight: 700;
  background: linear-gradient(270deg, #ff0000, #0000ff, #ff0000);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: waveMove 3s linear infinite;
  letter-spacing: -2px;
}

header p {
  margin: -10px 0 0 0;
  font-size: 1.2rem;
  font-weight: 600;
  background: linear-gradient(270deg, #ffff00, #ff8c00, #ffff00);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: waveMove 4s linear infinite;
  text-transform: none;
  letter-spacing: 0;
}

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

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav li {
  position: relative;
  margin-left: 15px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  padding: 5px 10px;
  background: linear-gradient(270deg, #ffff00, #ff8c00, #ffff00);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: waveMove 4s linear infinite;
}

/* Submenu Indicator */
.has-submenu::after {
  content: ' ▼';
  font-size: 0.7rem;
  margin-left: 5px;
  vertical-align: middle;
  display: inline-block;
  transition: transform 0.3s ease;
}

li:hover > a.has-submenu::after {
  transform: rotate(180deg);
}

/* Submenu (Dropdown) */
nav .submenu, nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  min-width: 200px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 10px 0;
  display: none;
  z-index: 1000;
  border: 1px solid var(--border-color);
}

nav li:hover > .submenu, nav li:hover > .sub-menu {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

nav .submenu li, nav .sub-menu li {
  margin: 0;
  width: 100%;
}

nav .submenu a, nav .sub-menu a {
  font-size: 0.95rem;
  padding: 10px 20px;
  background: linear-gradient(270deg, #00ff00, #008000, #00ff00);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: waveMove 3s linear infinite;
}

/* Real Fire Flame Effect */
nav a:hover {
  color: #fff;
  text-shadow: 
    0 0 5px #fff,
    0 -5px 10px #ff0,
    0 -10px 20px #ff8c00,
    0 -15px 40px #f00;
  animation: fireFlame 0.4s ease-in-out infinite alternate;
}

@keyframes fireFlame {
  0% { transform: scale(1) translateY(0) skewX(-2deg); }
  100% { transform: scale(1.05) translateY(-2px) skewX(2deg); }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 120px 20px;
  background: radial-gradient(circle at center, #1a1a1a 0%, #0d0d0d 100%);
  animation: fadeIn 1.5s ease-out;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Modern Cards */
.content-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.8s ease-out;
  min-height: 350px;
  display: flex;
  flex-direction: column;
}

.study-card {
  padding: 0;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 1;
}

.card-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.card:hover .card-img {
  transform: scale(1.1);
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 191, 255, 0.4);
}

.card h3 {
  margin-top: 0;
  color: #fff;
  font-size: 1.8rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.card p {
  color: #ddd;
  font-size: 1rem;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.read-more {
  color: var(--primary);
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact Form */
form {
  max-width: 500px;
  margin: 40px auto;
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

input, textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  background: #222;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  transition: var(--transition);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #2a2a2a;
}

button {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 191, 255, 0.4);
}

/* Footer */
footer {
  text-align: center;
  padding: 60px 20px;
  background: var(--header-bg);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* UI Helpers */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: #000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 2000;
}

.progress-bar {
  height: 100%;
  background: var(--primary);
  width: 0%;
}

/* Interactivity enhancement */
.card {
  position: relative;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 191, 255, 0.05) 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

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

/* Study Content Styling */
.study-content {
  max-width: 1000px;
  margin: 60px auto;
  background: var(--card-bg);
  padding: 60px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  line-height: 1.8;
  font-size: 1.15rem;
  color: #e0e0e0;
  box-shadow: 0 15px 50px rgba(0,0,0,0.5);
}

.study-content h2 {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 15px;
  margin-top: 50px;
  font-size: 2.5rem;
  text-align: center;
  background: linear-gradient(to right, var(--primary), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.study-content h3 {
  color: var(--accent);
  margin-top: 40px;
  font-size: 1.8rem;
  border-left: 5px solid var(--accent);
  padding-left: 20px;
}

.study-content h4 {
  color: #fff;
  margin-top: 30px;
  font-size: 1.4rem;
  font-family: 'Playfair Display', serif;
}

.study-content p {
  margin-bottom: 25px;
  text-align: justify;
}

.study-content ul, .study-content ol {
  margin-bottom: 30px;
  padding-left: 30px;
}

.study-content li {
  margin-bottom: 15px;
}

.study-content strong {
  color: var(--primary);
}

.bible-verse {
  background: rgba(0, 191, 255, 0.05);
  border-left: 4px solid var(--primary);
  border-right: 4px solid var(--primary);
  padding: 30px;
  font-style: italic;
  margin: 40px 0;
  color: #fff;
  text-align: center;
  font-size: 1.2rem;
  position: relative;
  border-radius: 8px;
}

.bible-verse::before, .bible-verse::after {
  content: '"';
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.3;
  position: absolute;
}

.bible-verse::before { top: -10px; left: 10px; }
.bible-verse::after { bottom: -40px; right: 10px; }

.theology-note {
  background: rgba(255, 174, 0, 0.1);
  border: 1px solid var(--accent);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 1rem;
}

.theology-note strong {
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.study-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.study-table th {
  background: var(--primary);
  color: #000;
  padding: 15px;
  text-align: left;
  font-weight: 700;
}

.study-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  color: #ccc;
}

.study-table tr:last-child td {
  border-bottom: none;
}

.study-table tr:hover td {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h2 { font-size: 2.5rem; }
  header h1 { font-size: 2rem; }
  nav a { margin: 0 8px; font-size: 0.85rem; }
}
