:root {
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --secondary: #2563eb;
  --secondary-dark: #1d4ed8;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #111827;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f3f4f6;
  --bg-dark: #e5e7eb;
  --header-height: 5rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
  --primary: #ef4444;
  --primary-dark: #dc2626;
  --secondary: #3b82f6;
  --secondary-dark: #2563eb;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --text: #f9fafb;
  --text-light: #d1d5db;
  --bg: #111827;
  --bg-alt: #1f2937;
  --bg-dark: #374151;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  transition: var(--transition);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  color: var(--secondary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background-color: var(--bg-alt);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--text);
}

.logo-icon {
  background-color: var(--primary);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  font-weight: bold;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--primary);
}

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

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  transition: var(--transition);
}

.theme-toggle:hover {
  background-color: var(--bg-dark);
}

.moon-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon {
  display: block;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
  top: 30%;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 50%;
}

.mobile-menu-toggle span:nth-child(3) {
  top: 70%;
}

/* Social Sidebar */
.social-sidebar {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--bg-alt);
  color: var(--text);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.social-link:hover {
  background-color: var(--secondary);
  color: white;
  transform: translateY(-3px);
}

.social-link.twitter:hover {
  background-color: #1DA1F2;
}

.social-link.tiktok:hover {
  background-color: #000000;
}

.social-link.youtube:hover {
  background-color: #FF0000;
}

/* Main Content */
main {
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Section Styles */
section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  background-color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background-color: var(--bg-alt);
  border-radius: 1rem;
  margin-bottom: 4rem;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.profile-image {
  flex: 0 0 300px;
  position: relative;
}

.profile-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.hero-text h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.hero-description {
  line-height: 1.6;
}

.hero-description p {
  margin-bottom: 1rem;
}

blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-light);
}

/* Manga Section */
.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.manga-card {
  background-color: var(--bg-alt);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.manga-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.manga-image {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.manga-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.manga-card:hover .manga-image img {
  transform: scale(1.05);
}

.manga-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.manga-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.author {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.author-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 0.75rem;
  border: 2px solid var(--primary);
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author p {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Articles Section */
.articles-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.articles-grid::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.article-card {
  flex: 0 0 400px;
  scroll-snap-align: start;
  background-color: var(--bg-alt);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.article-image {
  position: relative;
  aspect-ratio: 210 / 297; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

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

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  padding: 1.5rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.article-meta span {
  font-size: 0.875rem;
  color: var(--text-light);
}

.article-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

/* Events Section */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.event-card {
  background-color: var(--bg-alt);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.event-image {
  position: relative;
  aspect-ratio: 210 / 297; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.event-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

.event-info {
  padding: 1.5rem;
}

.event-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.event-date {
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.btn-red {
  display: inline-block;
  background-color: #e63946;
  color: white;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-red:hover,
.btn-red:focus,
.btn-red:active {
  background-color: #d62828;
  color: white;
  text-decoration: none;
}

/* Footer */
footer {
  background-color: var(--bg-alt);
  padding: 3rem 0 1rem;
  color: var(--text);
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: var(--text);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-social .social-links {
  flex-direction: row;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-dark);
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Inkama tab styles */
.inkama-tab {
  position: fixed;
  right: -40px;
  top: 50%;
  transform: rotate(-90deg);
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem 0.5rem 0 0;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow);
}

.inkama-tab:hover {
  right: -35px;
  background-color: var(--primary-dark);
}

/* Coming Soon section styles */
.coming-soon {
  background-color: var(--bg-alt);
  padding: 2rem;
  margin-top: 2rem;
  border-radius: 1rem;
  text-align: center;
}

.coming-soon h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.coming-soon-card {
  background-color: var(--bg);
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.coming-soon-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-image {
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-alt);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: var(--shadow);
  }
  
  .main-nav.active {
    max-height: 300px;
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: 1rem;
  }
  
  .social-sidebar {
    display: none;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
  }
  
  .articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 480px) {
  .manga-grid,
  .events-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text h2 {
    font-size: 1.25rem;
  }
  
  .profile-image {
    flex: 0 0 250px;
  }
  
  .profile-image img {
    height: 250px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

section {
  animation: fadeIn 0.8s ease-in-out;
}

.manga-card, .article-card, .event-card {
  animation: slideInUp 0.6s ease-in-out;
}

.manga-card:nth-child(2),
.article-card:nth-child(2),
.event-card:nth-child(2) {
  animation-delay: 0.2s;
}

.manga-card:nth-child(3),
.article-card:nth-child(3),
.event-card:nth-child(3) {
  animation-delay: 0.4s;
}

.manga-card:nth-child(4),
.article-card:nth-child(4),
.event-card:nth-child(4) {
  animation-delay: 0.6s;
}