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

:root {
  --primary: #1DA1F2;      /* UniVerse Blue */
  --primary-hover: #0c8bd9;
  --accent: #00BA7C;       /* Green for success */
  --bg-dark: #0f172a;      /* Deep Slate Background */
  --bg-gradient: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 60%);
  --surface: rgba(30, 41, 59, 0.4); /* Glassy card background */
  --border: rgba(255, 255, 255, 0.1);
  --muted: #94a3b8;
  --text: #e2e8f0;
  --text-light: #f8fafc;
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --glass: blur(12px);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85); /* Transparent for glass effect */
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

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

.logo img {
  height: 32px; /* Sleek size */
  width: auto;
  display: block;
}

.menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.menu a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.menu a:hover, .menu a.active {
  color: var(--primary);
}

/* --- Hero Section (Split Layout) --- */
header.hero {
  padding: 80px 0 100px;
  display: flex;
  align-items: center;
  min-height: 80vh; /* Takes up most of the screen */
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Text gets slightly more space */
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 4rem; /* Big Headline */
  font-weight: 900;
  color: var(--text-light);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-content h1 span {
  color: var(--primary);
  display: block; /* Puts "Universe" on new line if needed, or inline */
}

/* --- CO-FOUNDER SECTION STYLING --- */

/* Ensures the grid container is responsive */
.co-founder-grid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 40px;
  margin-top: 32px;
}

/* Profile Image Hover Effect */
.co-founder-profile-img {
  width: 100px; 
  height: 100px; 
  border-radius: 50%; 
  object-fit: cover; 
  background: #334155; 
  margin-bottom: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.co-founder-profile-img:hover {
  transform: scale(1.1) rotate(2deg);
  cursor: pointer;
}

/* Styling for the Role Tags (Lead Developer / UI UX) */
.role-tag {
  font-size: 0.8rem; 
  color: var(--primary); 
  margin-bottom: 12px; 
  font-weight: 600; 
  text-transform: uppercase; 
  letter-spacing: 0.5px;
}

/* Container for each founder's text */
.founder-bio {
  font-size: 0.9rem; 
  color: var(--muted); 
  line-height: 1.5;
}

.hero-content .tagline {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 500px;
}

/* Button Group */
.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Hero Image (Phone Mockup) --- */
.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  width: 300px; /* Ideal phone width */
  border-radius: 40px; /* Matches phone curve */
  box-shadow: var(--shadow-lg);
  border: 4px solid #334155; /* Fake phone bezel */
  transform: rotate(-3deg); /* Professional tilt */
  transition: transform 0.5s ease;
}

.hero-image img:hover {
  transform: rotate(0deg) scale(1.02);
}

/* --- Zig-Zag Features Section --- */
.features-section {
  padding: 100px 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

/* Alternate order for every even row (Image Left, Text Right) */
.feature-row.reverse {
  direction: rtl; /* Simple trick to swap grid sides */
}

.feature-row.reverse > * {
  direction: ltr; /* Reset text direction inside */
}

.feature-text h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-light);
}

.feature-text p {
  font-size: 1.1rem;
  color: var(--muted);
}

.feature-img img {
  width: 100%;
  max-width: 350px;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

.feature-img {
  display: flex;
  justify-content: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(29, 161, 242, 0.39);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 161, 242, 0.23);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: default; /* Shows it's not clickable yet */
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

/* Small badge for "Coming Soon" */
.btn-secondary span {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 10px;
}

/* --- Footer & Misc --- */
.trust-badge {
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr; /* Stack vertically on mobile */
    text-align: center;
  }
  
  .hero-content h1 { font-size: 2.8rem; }
  
  .btn-group {
    justify-content: center;
  }
  
  .hero-image img { width: 240px; margin-top: 40px; }

  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr; /* Reset direction for mobile stacking */
    text-align: center;
    gap: 40px;
  }
  
  .feature-img { order: -1; } /* Always put image on top of text in mobile */

  /* Hamburger Menu (Your existing logic) */
  #hamburger { display: block; cursor: pointer; }
  #hamburger span { display: block; width: 25px; height: 3px; background: var(--text); margin: 5px 0; transition: 0.3s; }
  
  .menu {
    position: fixed;
    top: 0; left: -100%; width: 80%; height: 100vh;
    background: #0f172a;
    flex-direction: column;
    padding-top: 100px;
    transition: 0.3s;
    border-right: 1px solid var(--border);
  }
  .menu.active { left: 0; }
}

/* --- Toast Notification (Popup) --- */
#toast {
  visibility: hidden;
  min-width: 250px;
  background-color: rgba(15, 23, 42, 0.95); /* Dark background */
  color: #fff;
  text-align: center;
  border-radius: 50px; /* Pill shape */
  padding: 16px 24px;
  position: fixed;
  z-index: 2000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s ease-in-out;
}

#toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px; /* Moves up slightly when appearing */
}

/* --- BLOG SYSTEM --- */

/* Blog Grid (The List) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 60px 0;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.card-image {
  height: 200px;
  background: #1e293b;
  position: relative;
}

/* If you don't have images yet, this creates a nice gradient placeholder */
.card-image.placeholder {
  background: linear-gradient(135deg, var(--bg-dark), #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 3rem;
  font-weight: 700;
}

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

.post-meta {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
}

.card-content h3 {
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.3;
}

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

.read-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.read-link:hover { text-decoration: underline; }

/* Article Reading Page */
.article-container {
  max-width: 720px; /* Narrower for better reading experience */
  margin: 0 auto;
  padding: 40px 20px;
}

.article-header {
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 40px;
}

.article-header h1 {
  font-size: 2.5rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.2;
}

.article-body {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-body h2 { margin-top: 40px; margin-bottom: 16px; color: var(--text-light); }
.article-body h3 { margin-top: 30px; margin-bottom: 12px; color: var(--text-light); }
.article-body p { margin-bottom: 24px; }
.article-body ul { margin-bottom: 24px; padding-left: 20px; }
.article-body li { margin-bottom: 10px; }