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

:root {
  --bg-color: #0b0c10;
  --bg-secondary: #1f2833;
  --accent-neon: #66fcf1;
  --accent-gold: #c5a059;
  --text-main: #c5c6c7;
  --text-light: #ffffff;
  --glass-bg: rgba(31, 40, 51, 0.4);
  --glass-border: rgba(102, 252, 241, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-light);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Glassmorphism Classes */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
}

/* Base Layout & Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}

header.scrolled, 
body.internal-page header {
  background: rgba(11, 12, 16, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-light);
  letter-spacing: 2px;
}

.logo span {
  color: var(--accent-neon);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: 600;
  position: relative;
}

nav a:hover {
  color: var(--accent-neon);
}

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

nav a:hover::after {
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--accent-neon);
  color: #000;
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 0 25px rgba(102, 252, 241, 0.8);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-neon);
  border: 2px solid var(--accent-neon);
}

.btn-outline:hover {
  background: var(--accent-neon);
  color: #000;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0 2rem;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--text-light), var(--accent-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 1s ease forwards;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeUp 1s ease 0.4s forwards;
  opacity: 0;
}

/* Abstract Background Shapes */
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: rgba(102, 252, 241, 0.15);
  top: -100px;
  left: -100px;
}

.shape-2 {
  width: 600px;
  height: 600px;
  background: rgba(197, 160, 89, 0.1);
  bottom: -200px;
  right: -100px;
}

/* Sections */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 4rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--accent-neon);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Cards */
.card {
  padding: 2rem;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  border-color: var(--accent-gold);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

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

.card ul {
  list-style: none;
  margin-block: 1rem;
  flex-grow: 1;
}

.card ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-neon);
}

/* Internal Pages Layout */
.page-header {
  padding-top: 150px;
  padding-bottom: 50px;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-color));
}

.page-header h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 1rem;
  color: var(--accent-neon);
}

.content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-block: 4rem;
}

.content-section.reverse {
  direction: rtl;
}

.content-section.reverse > * {
  direction: ltr;
}

.content-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}

.content-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-neon);
}

.content-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* FAQ Styles */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: none;
  border-radius: 8px;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
  background: var(--bg-color);
  border-left: 2px solid var(--accent-neon);
  margin-left: 1rem;
  margin-top: 0.5rem;
}

.faq-answer.active {
  max-height: 300px;
  padding: 1rem 1.5rem;
}

/* Footer */
footer {
  background: #050608;
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--bg-secondary);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-neon);
}

.footer-col p, .footer-col a {
  display: block;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.footer-col a:hover {
  color: var(--accent-neon);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--bg-secondary);
}


/* Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 600;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-neon);
    background: rgba(255, 255, 255, 0.1);
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-light);
}

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

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

.animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Floating WhatsApp Button */
#whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: waPulse 2.5s infinite;
}

#whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.8);
  animation: none;
}

@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Resource Hub Styles */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.resource-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    background: var(--bg-secondary);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.resource-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent-neon);
    box-shadow: 0 20px 40px rgba(102, 252, 241, 0.15);
}

.resource-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(102, 252, 241, 0.1);
    color: var(--accent-neon);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.resource-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Article Reading Styles */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.article-header {
    text-align: center;
    margin-bottom: 0;
}

.article-header h1 {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--accent-neon);
}

.article-meta {
    color: var(--accent-neon);
    font-weight: 600;
    margin-bottom: 2rem;
    display: block;
}

.article-body {
    font-size: 1.2rem;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 2rem;
}

.article-body h2 {
    margin: 3rem 0 1.5rem;
    font-size: 2.2rem;
    color: var(--accent-neon);
}

.article-body ul {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.article-body ul li {
    margin-bottom: 1rem;
}

.technical-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
}

.technical-table th, .technical-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.technical-table th {
    background: rgba(102, 252, 241, 0.1);
    color: var(--accent-neon);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
  
  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 2rem;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  nav ul.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .content-section.reverse {
    direction: ltr;
  }
}
