:root {
  /* Logo-Inspired Vibrant Colors */
  --primary-color: #6366F1;
  --primary-hover: #4F46E5;
  --accent-red: #EF4444;
  --accent-green: #22C55E;
  --accent-orange: #F97316;
  --accent-yellow: #FACC15;
  --accent-blue: #3B82F6;
  --accent-pink: #EC4899;
  --accent-purple: #A855F7;
  --background-color: #F0F9FF;
  --surface-color: #FFFFFF;
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-light: #94A3B8;
  --border-color: #E0E7FF;
  --input-bg: #FFFFFF;
  --danger-color: #EF4444;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(99, 102, 241, 0.1);
  --shadow-md: 0 4px 16px rgba(99, 102, 241, 0.15);
  --shadow-lg: 0 8px 32px rgba(99, 102, 241, 0.2);

  /* Typography */
  --font-family-base: 'Quicksand', sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
}

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

body {
  font-family: var(--font-family-base);
  background: linear-gradient(135deg, #F0F9FF 0%, #E0E7FF 100%);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Playful background shapes */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 25s ease-in-out infinite reverse;
  z-index: -1;
}

/* Floating Math Symbols */
.math-symbol {
  position: fixed;
  font-size: 3rem;
  font-weight: 700;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
  font-family: 'Times New Roman', serif;
}

/* Math Symbol positioning handled by JS */

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: var(--font-size-4xl);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Navbar */
/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

/* Add a scrolled state style if we had JS, but for now just the base style */
.navbar:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.navbar-brand img {
  height: 48px;
  width: auto;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.navbar-brand:hover img {
  transform: scale(1.08) rotate(-2deg);
}

.main-menu ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu a {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.main-menu a:not(.btn-highlight)::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-menu a:not(.btn-highlight):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-menu a:hover {
  color: var(--text-primary);
}

.btn-highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
  color: white !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem !important;
  border-radius: 9999px;
  /* Pill shape */
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
  transition: all 0.3s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.23);
  filter: brightness(1.1);
}

.btn-highlight:active {
  transform: translateY(0);
}

.hamburger,
.close-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}


/* Mobile Menu */
@media (max-width: 768px) {

  /* Padding for ALL content except navbar */
  body {
    padding: 0;
  }

  .container,
  .hero-section,
  .social-grid,
  .cta-group,
  .section-divider,
  footer .footer-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-orange), var(--accent-yellow), var(--accent-green), var(--accent-blue));
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger:hover {
    transform: scale(1.1);
  }

  /* Animated hamburger to X */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

  .main-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    z-index: 999;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }

  .main-menu.active {
    max-height: calc(100vh - 70px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
  }

  .main-menu ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .main-menu li {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.3s ease;
  }

  .main-menu.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .main-menu.active li:nth-child(1) {
    transition-delay: 0.05s;
  }

  .main-menu.active li:nth-child(2) {
    transition-delay: 0.1s;
  }

  .main-menu.active li:nth-child(3) {
    transition-delay: 0.15s;
  }

  .main-menu.active li:nth-child(4) {
    transition-delay: 0.2s;
  }

  .main-menu.active li:nth-child(5) {
    transition-delay: 0.25s;
  }

  .main-menu a {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    position: relative;
  }

  .main-menu a::after {
    content: '→';
    font-size: 1.25rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
  }

  .main-menu a:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
    border-left-color: var(--primary-color);
    padding-left: 2.5rem;
    color: var(--primary-color);
  }

  .main-menu a:hover::after {
    opacity: 1;
    transform: translateX(0);
  }

  .main-menu a::before {
    display: none;
  }

  .btn-highlight {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%) !important;
    border-left-color: var(--accent-green) !important;
    color: var(--accent-green) !important;
    font-weight: 700 !important;
  }

  .btn-highlight::after {
    content: '✨';
  }

  .close-btn {
    display: none;
  }

  /* Add colorful indicator dots */
  .main-menu li:nth-child(1) a::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    position: absolute;
    left: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .main-menu li:nth-child(2) a::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-orange);
    border-radius: 50%;
    position: absolute;
    left: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .main-menu li:nth-child(3) a::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    position: absolute;
    left: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .main-menu li:nth-child(4) a::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    position: absolute;
    left: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .main-menu li:nth-child(5) a::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 50%;
    position: absolute;
    left: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .main-menu a:hover::before {
    opacity: 1 !important;
    display: block !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--font-size-base);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
  width: 1000px;
  height: 1000px;
  transition: width 1.5s, height 1.5s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent-green) 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

/* Button Loading State */
.btn.loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  top: 50%;
  left: 50%;
  margin-top: -0.75rem;
  margin-left: -0.75rem;
  border: 3px solid rgba(99, 102, 241, 0.2);
  /* Light primary */
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 0.8s linear infinite;
}

/* Spinner Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Inputs */
input,
textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  background-color: var(--input-bg);
  color: var(--text-primary);
  transition: all 0.3s ease;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

/* Cards */
.card {
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-orange), var(--accent-yellow), var(--accent-green), var(--accent-blue));
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Home Page Specifics */
.hero-section {
  text-align: center;
  padding: var(--spacing-xl) 0;
  max-width: 900px;
  margin: 0 auto;
}

.welcome-text {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.025em;
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.welcome-text span {
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub-welcome {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

.cta-group {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
}

.section-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: var(--spacing-xl) 0;
  text-align: center;
}

.section-divider p {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-secondary);
}

/* Social Media Grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) var(--spacing-sm);
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .social-grid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.social-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
}

.social-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-orange), var(--accent-yellow), var(--accent-green), var(--accent-blue));
}

.social-card:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

/* Better image handling */
.social-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.tweet-content img,
.insta-content img,
.fb-content img {
  max-height: 400px;
  /* Restrict height */
  width: auto;
  /* Allow width to adjust */
  max-width: 100%;
  /* Ensure it doesn't overflow container */
  margin: 0 auto;
  /* Center the image */
  object-fit: contain;
  /* Prevent cutting off */
  background: var(--surface-color);
}

/* Tweet/Instagram/Facebook Card Specifics */
.tweet-header,
.insta-header,
.fb-header {
  padding: 1rem;
  display: flex;
  align-items: center;
  background: rgba(248, 249, 255, 0.5);
}

.tweet-avatar,
.insta-avatar,
.fb-avatar {
  border-radius: 50%;
  margin-right: 12px;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
}

.social-card .tweet-avatar {
  width: 48px;
  height: 48px;
}

.social-card .insta-avatar {
  width: 32px;
  height: 32px;
}

.social-card .fb-avatar {
  width: 40px;
  height: 40px;
}

.tweet-user-info,
.fb-info {
  flex: 1;
  min-width: 0;
}

.tweet-name,
.fb-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tweet-handle {
  color: var(--text-light);
  font-size: 0.875rem;
}

.tweet-content,
.insta-content,
.fb-content {
  position: relative;
  background: var(--surface-color);
}

.tweet-footer,
.insta-actions,
.fb-actions {
  padding: 0.75rem 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--border-color);
  background: rgba(248, 249, 255, 0.3);
}

.tweet-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.tweet-action:hover {
  color: var(--primary-color);
}

.tweet-action i {
  font-size: 1.125rem;
}

.insta-actions {
  font-size: 1.5rem;
  padding: 0.875rem 1rem;
}

.insta-actions i {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.insta-actions i:hover {
  transform: scale(1.2);
}

.insta-username {
  font-weight: 600;
  flex: 1;
}

.insta-menu {
  margin-left: auto;
  cursor: pointer;
}

.insta-caption {
  padding: 0.75rem 1rem;
  background: var(--surface-color);
}

.insta-likes {
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.insta-text {
  font-size: 0.875rem;
  margin: 0;
  color: var(--text-primary);
}

.insta-username-bold {
  font-weight: 600;
}

.fb-meta {
  font-size: 0.75rem;
  color: #65676B;
  margin-top: 2px;
}

.fb-action {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.fb-action:hover {
  color: var(--primary-color);
}

.fb-action i {
  font-size: 1.125rem;
}

/* Footer */
footer {
  margin-top: auto;
  padding: var(--spacing-xl) 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-top: 2px solid rgba(99, 102, 241, 0.1);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.footer-socials {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-socials a {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  color: var(--primary-color);
  transform: translateY(-3px) scale(1.2);
}

.footer-links {
  display: flex;
  gap: var(--spacing-md);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  align-items: center;
}

/* Responsive Utilities */
@media (max-width: 640px) {
  :root {
    --font-size-4xl: 1.875rem;
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
    --font-size-xl: 1.125rem;
    --font-size-lg: 1rem;
    --spacing-xl: 1.5rem;
  }

  .welcome-text {
    font-size: 2rem;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

h1 {
  word-wrap: break-word;
}