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

:root {
  --bg-color: #0f172a;
  --text-color: #f8fafc;
  --text-muted: #94a3b8;
  --card-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --primary: #3b82f6;
  --secondary: #8b5cf6;
  --accent: #10b981;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 40%),
                    radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.15), transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

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

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: padding 0.3s ease;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

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

.nav-links a {
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}

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

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

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

/* Hero Section */
header {
  padding: 150px 20px 80px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  color: #60a5fa;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease;
}

header h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.gradient-text {
  background: linear-gradient(to right, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 4px;
  bottom: -10px;
  left: 0;
  background: var(--secondary);
  border-radius: 2px;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

/* Article Card */
.card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(96, 165, 250, 0.4);
}

.card-img {
  width: 100%;
  height: 220px;
  background-color: #1e293b;
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.category {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.card-excerpt {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.read-more:hover {
  color: #60a5fa;
  gap: 10px;
}

/* Article Page specific */
.article-header {
  padding: 150px 20px 60px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.article-content {
  max-width: 800px;
  margin: 0 auto 80px;
  background: var(--card-bg);
  padding: 50px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.article-content h2 {
  font-size: 2rem;
  margin: 40px 0 20px;
  color: #fff;
}

.article-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #cbd5e1;
}

.article-content ul {
  margin-bottom: 25px;
  padding-left: 20px;
  color: #cbd5e1;
  font-size: 1.15rem;
}

.article-content li {
  margin-bottom: 10px;
}

/* Ads Placeholder */
.ad-space {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  text-align: center;
  padding: 30px;
  margin: 40px 0;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: #0b1120;
  padding: 60px 20px 20px;
  border-top: 1px solid var(--glass-border);
  margin-top: 60px;
}

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

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 15px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
}

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

.copyright {
  text-align: center;
  color: var(--text-muted);
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

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

/* Responsive */
@media (max-width: 768px) {
  header h1 { font-size: 2.5rem; }
  .nav-links { display: none; } /* Add hamburger for real app */
  nav { padding: 20px; }
  .article-content { padding: 30px 20px; }
}

/* Slider Styles */
.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 120px auto 40px; /* Top margin to account for fixed navbar */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    height: 450px;
    border: 1px solid var(--glass-border);
}
.slider {
    width: 100%;
    height: 100%;
    position: relative;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}
.slide.active {
    opacity: 1;
    z-index: 1;
    visibility: visible;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35); /* Darken image to make text pop */
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
.slide-content {
    text-align: center;
    padding: 20px;
    max-width: 800px;
    z-index: 2;
}
.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    background: none;
    -webkit-text-fill-color: white;
}
.slide-content p {
    font-size: 1.2rem;
    color: #e2e8f0;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    line-height: 1.6;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 20px;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.slider-btn:hover {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    border-color: var(--primary);
}
.prev-btn { left: 20px; }
.next-btn { right: 20px; }
.slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}
.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot:hover {
    background-color: rgba(255,255,255,0.8);
}
.dot.active {
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .slider-container { height: 350px; margin: 100px 10px 30px; border-radius: 12px; }
    .slide-content h1 { font-size: 2.2rem; }
    .slide-content p { font-size: 1rem; }
    .slider-btn { padding: 10px 15px; font-size: 16px; }
}
