/* ==========================================================================
   KRAKEN LAB - Futuristic Neon Blue Cyberpunk Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800;900&family=Rajdhani:wght@400;500;600;700&family=Space+Grotesk:wght@300;400;600;700&display=swap');

:root {
  --bg-deep: #040914;
  --bg-surface: #0a1124;
  --bg-card: rgba(10, 20, 42, 0.75);
  --bg-card-hover: rgba(15, 30, 60, 0.85);
  
  --neon-cyan: #00f0ff;
  --neon-blue: #0077ff;
  --neon-glow: rgba(0, 240, 255, 0.5);
  --neon-glow-strong: rgba(0, 240, 255, 0.8);
  --accent-yellow: #ffe600;
  
  --text-main: #e2f1ff;
  --text-muted: #8ab4f8;
  --text-bright: #ffffff;
  
  --border-neon: rgba(0, 240, 255, 0.25);
  --border-neon-bright: rgba(0, 240, 255, 0.7);
  
  --font-heading: 'Orbitron', sans-serif;
  --font-sub: 'Rajdhani', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Cyber Canvas Background Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 20%, rgba(0, 119, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(0, 240, 255, 0.1) 0%, transparent 45%),
    linear-gradient(rgba(4, 9, 20, 0.95), rgba(4, 9, 20, 0.95)),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 240, 255, 0.02) 3px, transparent 4px);
  z-index: -2;
  pointer-events: none;
}

/* Grid overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  z-index: -1;
  pointer-events: none;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--text-bright);
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* Headings - Centered by default for titles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-bright);
  text-align: center;
}

/* Justified Body Text for all Page Paragraphs */
p,
.section-text,
.card-text,
.post-text-content p,
.modal-content p {
  text-align: justify;
  text-justify: inter-word;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
header.cyber-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(4, 9, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-neon);
  box-shadow: 0 4px 30px rgba(0, 240, 255, 0.1);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: 1.8rem;
}

.logo-img {
  height: 55px;
  width: auto;
  filter: drop-shadow(0 0 8px var(--neon-glow));
  transition: var(--transition);
}

.logo-container:hover .logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px var(--neon-cyan));
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--text-bright);
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-text span {
  display: block;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
  text-align: center;
}

/* Navigation Links - Mathematically Centered Menu Items */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  list-style: none;
  flex: 1;
  text-align: center;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav-links li {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav-links a {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  height: 100%;
  transition: color 0.3s ease;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover {
  color: var(--text-bright);
}

.nav-links a.active {
  color: var(--neon-cyan);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-neon);
  border-radius: 20px;
  padding: 4px 10px;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.lang-btn {
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 12px;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--neon-cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 10px var(--neon-cyan);
}

/* Hamburger menu for mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--neon-cyan);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Buttons */
.btn-cyber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 28px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  border: 1px solid var(--neon-cyan);
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.btn-cyber::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
  transition: var(--transition);
}

.btn-cyber:hover::before {
  left: 100%;
  transition: 0.7s;
}

.btn-cyber:hover {
  background: var(--neon-cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 25px var(--neon-cyan);
  transform: translateY(-2px);
}

.btn-cyber-outline {
  background: transparent;
  color: var(--text-bright);
  border: 1px solid var(--border-neon);
}

.btn-cyber-outline:hover {
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
  box-shadow: 0 0 15px rgba(255, 230, 0, 0.4);
}

/* Hero Section - Centered */
.hero-section {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero-icon,
.page-icon,
.section-icon,
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: var(--neon-cyan);
  margin: 0 auto 1.2rem auto;
  text-align: center;
  filter: drop-shadow(0 0 12px var(--neon-cyan));
}

.hero-title,
.page-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, var(--neon-cyan) 50%, var(--neon-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.3));
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 2.5rem;
  font-family: var(--font-sub);
  font-weight: 500;
  text-align: center;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Header - Centered */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--text-bright);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.section-desc {
  color: var(--text-muted);
  font-family: var(--font-sub);
  font-size: 1.15rem;
  margin-top: 10px;
  text-align: center;
}

/* Cards & Grid Layouts */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.cyber-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-neon);
  border-radius: 8px;
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.cyber-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  opacity: 0.7;
  transition: var(--transition);
}

.cyber-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-neon-bright);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.cyber-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 18px var(--neon-cyan);
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-bright);
  text-align: center;
}

.card-text {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  text-align: justify;
  text-justify: inter-word;
}

/* Blog Specific Styles */
.blog-filter {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: rgba(10, 20, 42, 0.8);
  border: 1px solid var(--border-neon);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 20px;
  font-family: var(--font-sub);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--neon-cyan);
  color: var(--bg-deep);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sub);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  padding-bottom: 8px;
}

.blog-author {
  color: var(--accent-yellow);
  font-weight: 600;
}

.blog-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tag-badge {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  font-size: 0.75rem;
  font-family: var(--font-sub);
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

/* Modal for Blog Reader */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 9, 20, 0.9);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.25);
  border-radius: 12px;
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  color: var(--text-main);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--neon-cyan);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--accent-yellow);
  transform: rotate(90deg);
}

/* Social Share Bar */
.social-share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-neon);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-neon);
  color: var(--neon-cyan);
  font-size: 1.1rem;
  transition: var(--transition);
}

.share-btn:hover {
  background: var(--neon-cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 15px var(--neon-cyan);
}

/* Footer 3-Column Grid */
footer.cyber-footer {
  margin-top: auto;
  background: rgba(2, 5, 12, 0.95);
  border-top: 1px solid var(--border-neon);
  padding: 3.5rem 0 2rem;
  position: relative;
}

.footer-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-title {
  font-size: 1.15rem;
  color: var(--text-bright);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-neon);
  padding-bottom: 8px;
  margin-bottom: 0.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  height: 60px;
  width: auto;
  align-self: flex-start;
  filter: drop-shadow(0 0 10px var(--neon-glow));
}

.footer-address {
  font-style: normal;
  color: var(--text-muted);
  font-family: var(--font-sub);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-address p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  text-align: left;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-nav-list a {
  color: var(--text-muted);
  font-family: var(--font-sub);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-nav-list a:hover {
  color: var(--neon-cyan);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-sub);
  font-size: 0.9rem;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .footer-grid-3 {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(4, 9, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition);
    text-align: center;
  }

  .nav-links.open {
    left: 0;
  }

  .nav-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
