/*
 * Insight Unlimited - Modern Professional Design
 * Redesigned with contemporary aesthetics and refined typography
 */

/* Colour palette variables */
:root {
  --prussian-blue: #0F172A;
  --jet-black: #1F2937;
  --slate-grey: #64748B;
  --platinum: #E5E7EB;
  --ocean-mist: #14B8A6;
  --white: #ffffff;
  --light-grey: #F8FAFC;
  --accent-glow: rgba(20, 184, 166, 0.15);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
}

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

body {
  font-family: 'Noto Sans', sans-serif; /* Changed from Iansui */
  line-height: 1.7;
  color: var(--jet-black);
  background-color: var(--light-grey);
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: var(--ocean-mist);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--prussian-blue);
}

/* Navbar - Left [Logo] | Center [Menu] | Right [Social Icons] */
header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  color: var(--white);
  gap: 1rem;
}

.logo {
  flex: 1; /* Pushes to the left */
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--white) 0%, var(--ocean-mist) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  flex: 2; /* Keeps the menu centered */
}

.nav-links li a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-links li a:hover {
  background-color: rgba(20, 184, 166, 0.15);
  color: var(--ocean-mist);
  transform: translateY(-1px);
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex: 1; /* Pushes to the right */
}

.nav-social-icons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-right: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-social-icons a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
}

.nav-social-icons a:hover {
  color: var(--ocean-mist);
  background-color: rgba(20, 184, 166, 0.15);
  transform: translateY(-2px);
}

#lang-toggle {
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: var(--ocean-mist);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

#lang-toggle:hover {
  background: var(--ocean-mist);
  color: var(--prussian-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0F172A 0%, #1e3a5f 50%, #0F172A 100%);
  color: var(--white);
  text-align: center;
  padding: 8rem 2rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-weight: 300;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--ocean-mist) 0%, #0d9488 100%);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(20, 184, 166, 0.4);
  color: var(--white);
}

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

.section h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
  color: var(--prussian-blue);
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 1rem;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--ocean-mist), transparent);
  border-radius: 2px;
}

.section p {
  margin-bottom: 1.5rem;
  color: var(--slate-grey);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
}

.alt-bg {
  background-color: var(--white);
  border-top: 1px solid rgba(100, 116, 139, 0.1);
  border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

/* Daily Tips Section */
.tips-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

#type-select {
  padding: 0.75rem 1rem;
  border: 2px solid rgba(100, 116, 139, 0.2);
  border-radius: 10px;
  background-color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

#type-select:focus {
  outline: none;
  border-color: var(--ocean-mist);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.tip-display {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--white) 0%, #f1f5f9 100%);
  border-left: 4px solid var(--ocean-mist);
  border-radius: 12px;
  color: var(--jet-black);
  min-height: 4rem;
  font-size: 1.1rem;
  line-height: 1.8;
  box-shadow: var(--shadow-sm);
  font-style: italic;
}

/* Updates Section */
.updates-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.update-item {
  background-color: var(--white);
  border: 1px solid rgba(100, 116, 139, 0.12);
  padding: 1.75rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.update-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(20, 184, 166, 0.2);
}

/* Contact and Social Links */
.contact-details p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--slate-grey);
}

.social-links {
  margin-top: 2rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  background: linear-gradient(135deg, var(--ocean-mist) 0%, #0d9488 100%);
  color: var(--white);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.social-links a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #0F172A 0%, #1e3a5f 100%);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive and Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 992px) {
  .logo, .nav-right {
    flex: initial;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    padding: 1rem 0;
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    width: 100%;
    display: block;
    padding: 1rem 1.5rem;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .section { padding: 4rem 1.5rem; }
  .nav-social-icons { display: none; } /* Hide icons on very small screens to save space */
}