@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Sora:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #080312;
  --bg-secondary: #110822;
  --bg-tertiary: #190e30;
  --primary: #9d4edd;
  --primary-light: #c77dff;
  --accent: #e0aaff;
  --text-main: #f8f9fa;
  --text-muted: #b5a8c9;
  --border-color: rgba(157, 78, 221, 0.2);
  --shadow-color: rgba(13, 3, 29, 0.6);
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 300px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Layout Structure */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1000;
  overflow-y: auto;
}

.main-content {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  padding: 4rem 5%;
  position: relative;
}

/* Header & Logo */
.brand {
  margin-bottom: 3rem;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
  text-decoration: none;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  letter-spacing: -0.5px;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Nav Menu */
.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.9rem 1.2rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--border-radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
}

.nav-link svg {
  margin-right: 0.75rem;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.legal-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  transition: var(--transition);
}

.legal-link:hover {
  color: var(--primary-light);
}

/* Mobile Toggle Header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0 1.5rem;
  align-items: center;
  justify-content: space-between;
  z-index: 1100;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
}

/* Sections & Typography */
section {
  margin-bottom: 5rem;
}

section:last-of-type {
  margin-bottom: 2rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

h1 {
  font-size: 3rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
}

h3 {
  font-size: 1.4rem;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

p strong {
  color: var(--text-main);
}

/* Visual Highlights / Decorative Elements */
.intro-gradient-box {
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}

.intro-gradient-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.25) 0%, rgba(0,0,0,0) 70%);
  z-index: 0;
  pointer-events: none;
}

.intro-gradient-box * {
  position: relative;
  z-index: 1;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.blog-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.blog-card-tag {
  display: inline-block;
  background-color: var(--bg-tertiary);
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(199, 125, 255, 0.15);
}

.blog-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.blog-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(157, 78, 221, 0.1);
  box-shadow: none;
}

/* Contact Section & Form */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary-light);
  fill: none;
  stroke-width: 2;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-item p {
  margin: 0;
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 600;
}

.form-input, .form-textarea {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 0.9rem 1.1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(199, 125, 255, 0.2);
}

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

/* Footer (Legal / Default) */
.page-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.page-footer p {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.disclaimer-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.2rem;
  font-size: 0.8rem;
  text-align: left;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Legal Page Content Styling */
.legal-container {
  max-width: 850px;
  margin: 0 auto;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.legal-section h2::after {
  display: none;
}

.legal-section h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.8rem;
  color: var(--text-main);
}

.legal-section ul {
  list-style-type: square;
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.legal-section li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Responsive Styles */
@media (max-width: 900px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    border-right: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transition: left 0.3s ease;
    padding: 2rem 1.5rem;
  }

  .sidebar.open {
    left: 0;
  }

  .mobile-header {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 6rem 1.5rem 3rem 1.5rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem;
  }
}
