/* Demon Net - Main CSS Stylesheet */

/* Global Variables */
:root {
  --dark-bg: #0a0c14;
  --darker-purple: #1a1026;
  --dark-purple: #2a1a3a;
  --med-purple: #3c2756;
  --light-purple: #574173;
  --electric-blue: #7DF9FF;
  --lightning-blue: #00C5FF;
  --text-light: #e6e6e6;
  --text-dark: #1a1a1a;
  --accent: #7737FF;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: linear-gradient(to bottom, rgba(10, 12, 20, 0.98), rgba(26, 16, 38, 0.95)), 
                    url('city-bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

a {
  color: var(--electric-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 8px var(--electric-blue);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: 'Cinzel', serif;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: 4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--electric-blue), transparent);
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1.5rem;
}

.text-glow {
  text-shadow: 0 0 10px var(--lightning-blue), 0 0 20px var(--lightning-blue);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(45deg, var(--dark-purple), var(--med-purple));
  color: var(--text-light);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
  z-index: -1;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: white;
}

.btn:hover::before {
  left: 100%;
}

/* Header and Navigation */
header {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100;
  transition: background 0.3s ease;
}

.navigation.scrolled {
  background-color: rgba(10, 12, 20, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
}

.logo span {
  color: var(--electric-blue);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--electric-blue);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('page-back.png');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 12, 20, 0.8), rgba(42, 26, 58, 0.8));
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/lightning-overlay.png');
  background-size: cover;
  opacity: 0.3;
  animation: lightning 20s infinite;
  z-index: 2;
}

@keyframes lightning {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.3; }
  55% { opacity: 0.5; }
  60% { opacity: 0.3; }
  65% { opacity: 0.6; }
  70% { opacity: 0.2; }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.book-title {
  font-size: 6rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  background: linear-gradient(to right, #fff, var(--electric-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(125, 249, 255, 0.5);
  animation: glow 3s infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 5px rgba(125, 249, 255, 0.5); }
  to { text-shadow: 0 0 20px var(--lightning-blue), 0 0 30px var(--lightning-blue); }
}

.book-subtitle {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #fff;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* About Book Section */
.about-book {
  padding: 100px 0;
  position: relative;
}

.about-book::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at center, rgba(60, 39, 86, 0.3) 0%, transparent 70%);
  z-index: -1;
}

.book-info {
  display: flex;
  align-items: center;
  gap: 50px;
}

.book-cover {
  flex: 0 0 350px;
  position: relative;
}

.book-cover img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.book-cover::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border: 2px solid var(--electric-blue);
  border-radius: 12px;
  opacity: 0;
  transition: all 0.3s ease;
}

.book-cover:hover::before {
  opacity: 0.5;
}

.book-cover:hover img {
  transform: scale(1.03);
}

.book-details {
  flex: 1;
}

.book-meta {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-title {
  font-size: 0.9rem;
  color: var(--lightning-blue);
  margin-bottom: 5px;
}

.meta-content {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Story Snippet Section */
.story-snippet {
  padding: 100px 0;
  background: linear-gradient(to bottom, var(--dark-bg), var(--darker-purple));
  position: relative;
  overflow: hidden;
}

.story-snippet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/city-silhouette.png');
  background-size: contain;
  background-position: bottom;
  background-repeat: repeat-x;
  opacity: 0.1;
  z-index: 0;
}

.snippet-container {
  position: relative;
  z-index: 1;
  background-color: rgba(26, 16, 38, 0.6);
  border-radius: 8px;
  padding: 40px;
  border-left: 3px solid var(--electric-blue);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.snippet-text {
  font-style: italic;
  line-height: 1.8;
  font-size: 1.1rem;
  text-align: justify;
}

.quote-mark {
  font-size: 4rem;
  line-height: 0;
  color: var(--electric-blue);
  opacity: 0.3;
  position: absolute;
}

.quote-mark.open {
  top: 30px;
  left: 20px;
}

.quote-mark.close {
  bottom: 30px;
  right: 20px;
}

/* Reviews Section */
.reviews {
  padding: 100px 0;
  position: relative;
}

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

.review-card {
  background: linear-gradient(to bottom right, var(--dark-purple), var(--darker-purple));
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--electric-blue), transparent);
}

.review-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.review-stars {
  color: var(--electric-blue);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.review-text {
  margin-bottom: 20px;
  font-style: italic;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 15px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--med-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-light);
}

.reviewer-info {
  display: flex;
  flex-direction: column;
}

.reviewer-name {
  font-weight: 600;
}

.reviewer-source {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Author Section */
.author {
  padding: 100px 0;
  background: linear-gradient(to right, var(--dark-bg), var(--dark-purple), var(--dark-bg));
}

.author-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.author-image {
  flex: 0 0 300px;
  position: relative;
  z-index: 1;
}

.author-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.author-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--electric-blue);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.6;
}

.author-bio {
  flex: 1;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--dark-purple);
  border-radius: 50%;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--electric-blue);
  color: var(--text-dark);
  transform: translateY(-3px);
}

/* Subscription Section */
.subscribe {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark-purple), var(--darker-purple));
  position: relative;
  overflow: hidden;
}

.subscribe::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/lightning-pattern.png');
  background-size: cover;
  opacity: 0.05;
}

.subscribe-container {
  position: relative;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.subscribe-form {
  display: flex;
  margin-top: 30px;
  position: relative;
}

.subscribe-input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 4px 0 0 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 16px;
}

.subscribe-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.subscribe-btn {
  padding: 0 25px;
  background-color: var(--electric-blue);
  color: var(--text-dark);
  border: none;
  border-radius: 0 4px 4px 0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-btn:hover {
  background-color: #5CFFFF;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at center, rgba(60, 39, 86, 0.2) 0%, transparent 70%);
  z-index: -1;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--dark-purple);
  border-radius: 50%;
  color: var(--electric-blue);
  font-size: 1.3rem;
}

.contact-text {
  flex: 1;
}

.contact-text h4 {
  margin-bottom: 5px;
}

.contact-form {
  background-color: rgba(26, 16, 38, 0.6);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(125, 249, 255, 0.2);
  border-radius: 4px;
  color: var(--text-light);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--electric-blue);
  background-color: rgba(255, 255, 255, 0.15);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  padding: 50px 0;
  background-color: rgba(10, 12, 20, 0.95);
  border-top: 1px solid rgba(125, 249, 255, 0.1);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--electric-blue);
}

/* Lightning Animation */
.lightning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  background: radial-gradient(circle at center, rgba(125, 249, 255, 0.1), transparent 70%);
}

.lightning.active {
  animation: flash 2s ease-out;
}

@keyframes flash {
  0% { opacity: 0; }
  5% { opacity: 0.1; }
  10% { opacity: 0.05; }
  15% { opacity: 0.4; }
  20% { opacity: 0; }
  25% { opacity: 0.3; }
  30% { opacity: 0.05; }
  35% { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .book-info, .author-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .book-cover, .author-image {
    margin-bottom: 30px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .book-title {
    font-size: 3.5rem;
  }
  
  .book-subtitle {
    font-size: 1.5rem;
  }
  
  .reviews-container {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .book-title {
    font-size: 2.5rem;
  }
  
  .book-subtitle {
    font-size: 1.2rem;
  }
  
  .snippet-container, .contact-form {
    padding: 20px;
  }
  
  .book-cover, .author-image {
    flex: 0 0 250px;
  }
  
  .subscribe-form {
    flex-direction: column;
  }
  
  .subscribe-input, .subscribe-btn {
    width: 100%;
    border-radius: 4px;
  }
  
  .subscribe-btn {
    margin-top: 10px;
  }
}