﻿/* ========================================
   STUDENT TOOLS PLATFORM - PREMIUM DESIGN
   Modern, Aesthetic & Cool UI/UX
   ======================================== */

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

:root {
  /* Premium Color Palette */
  --bg-primary: #0f0f13;
  --bg-secondary: #18181f;
  --bg-card: #1e1e28;
  --bg-card-hover: #262630;
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --accent-glow: rgba(99, 102, 241, 0.4);
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(99, 102, 241, 0.3);
  --success: #10b981;
  --error: #ef4444;
  --glass-bg: rgba(30, 30, 40, 0.7);
  --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--accent-glow);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================
   HEADER - Glassmorphism Navigation
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  box-shadow: var(--shadow-glow);
}

.brand-text h1 {
  font-family: 'Sora', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f4f4f5 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.quick-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 10px;
  transition: all 0.25s ease;
  position: relative;
}

.quick-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.quick-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: translateX(-50%);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.quick-nav a:hover::after {
  width: 60%;
}

.menu-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.625rem 1rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-menu a:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  padding: 8rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-left {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
}

.eyebrow::before {
  content: '⚡';
}

.hero h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #e4e4e7 50%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.cta-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.cta-ghost:hover {
  background: var(--bg-card);
  border-color: var(--border-accent);
}

.stats-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Hero Card */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.hero-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-card h3::before {
  content: '💰';
}

.hero-card > p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.hero-card ul {
  list-style: none;
  margin-bottom: 1rem;
}

.hero-card li {
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 0.375rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-card li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

.tiny-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.625rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 8px;
}

/* ========================================
   AD ZONES
   ======================================== */
.ad-zone {
  margin-bottom: 2rem;
}

.ad-card {
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
}

.ad-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
  padding: 2rem 0;
}

.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.panel h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.375rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  margin: 0 auto 1rem;
}

.step-card h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ========================================
   TOOLS SECTION
   ======================================== */
.tools-section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h3 {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.tool-card > p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

/* Tool Icons */
#pdf-converter h3::before { content: '📄'; }
#resume-builder h3::before { content: '📝'; }
#notes-to-pdf h3::before { content: '📚'; }
#attendance-calculator h3::before { content: '📊'; }
#cgpa-calculator h3::before { content: '🎯'; }
#assignment-formatter h3::before { content: '📋'; }

/* Form Elements */
.tool-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

input, textarea, select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.inline-fields label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--accent-glow);
}

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

.btn-ghost:hover {
  background: var(--bg-secondary);
  border-color: var(--border-accent);
}

.btn-small {
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  border-radius: 10px;
}

/* Status Messages */
.status {
  font-size: 0.875rem;
  padding: 0.75rem;
  border-radius: 10px;
  margin-top: 0.5rem;
  min-height: 44px;
}

.status-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ========================================
   SIDE AD & SIDEBAR
   ======================================== */
.side-ad-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  margin: 2rem 0;
}

.sidebar-ad {
  position: sticky;
  top: 100px;
  height: fit-content;
}

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

.faq details {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq details[open] {
  border-color: var(--border-accent);
}

.faq summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent-primary);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  background: var(--bg-card-hover);
}

.faq p {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}

.footer-brand h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.footer-brand > p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

.footer-ad {
  justify-self: end;
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* ========================================
   CONSENT BAR
   ======================================== */
.consent-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 94vw);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-premium);
  z-index: 1000;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.consent-bar p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex: 1;
}

.consent-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* PWA Banner */
.pwa-banner {
  position: fixed;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(500px, 94vw);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  box-shadow: var(--shadow-glow);
  z-index: 999;
  animation: slideUp 0.4s ease;
}

.pwa-icon {
  font-size: 2rem;
}

.pwa-text {
  flex: 1;
}

.pwa-text strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}

.pwa-text span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.pwa-actions {
  display: flex;
  gap: 0.5rem;
}

.pwa-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.125rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.pwa-dismiss:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Update Banner */
.update-banner {
  position: fixed;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(500px, 94vw);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  padding: 1rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem;
  box-shadow: var(--shadow-glow);
  z-index: 999;
  animation: slideUp 0.4s ease;
}

.update-banner span {
  font-size: 0.9375rem;
  color: var(--text-primary);
  flex: 1;
}

.update-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .side-ad-wrap {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-nav {
    display: none;
  }
  
  .menu-btn {
    display: block;
  }
  
  .mobile-menu.active {
    display: flex;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 6rem;
  }
  
  .hero h2 {
    font-size: 1.75rem;
  }
  
  .stats-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .inline-fields {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .cta {
    width: 100%;
    justify-content: center;
  }
  
  .consent-bar {
    flex-direction: column;
    text-align: center;
  }
  
  .pwa-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .pwa-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
