/* Theme Variables & Color Scheme */
:root {
  /* Light Mode Colors */
  --primary-light: #3a86ff;
  --primary-dark-light: #2563eb;
  --dark-light: #1e293b;
  --darker-light: #0f172a;
  --light-light: #f8fafc;
  --accent-light: #10b981;
  --accent2-light: #ec4899;
  --muted-light: #64748b;
  --card-bg-light: #ffffff;
  --card-hover-light: #f1f5f9;
  --text-light: #1e293b;
  --text-muted-light: #64748b;
  --bg-light: #f8fafc;

  /* Dark Mode Colors */
  --primary-dark: #3a86ff;
  --primary-dark-dark: #60a5fa;
  --dark-dark: #0f172a;
  --darker-dark: #020617;
  --light-dark: #f8fafc;
  --accent-dark: #10b981;
  --accent2-dark: #ec4899;
  --muted-dark: #94a3b8;
  --card-bg-dark: #1e293b;
  --card-hover-dark: #334155;
  --text-dark: #e2e8f0;
  --text-muted-dark: #94a3b8;
  --bg-dark: #0f172a;

  /* Default to dark theme */
  --primary: var(--primary-dark);
  --primary-dark: var(--primary-dark-dark);
  --dark: var(--dark-dark);
  --darker: var(--darker-dark);
  --light: var(--light-dark);
  --accent: var(--accent-dark);
  --accent2: var(--accent2-dark);
  --muted: var(--muted-dark);
  --card-bg: var(--card-bg-dark);
  --card-hover: var(--card-hover-dark);
  --text: var(--text-dark);
  --text-muted: var(--text-muted-dark);
  --bg: var(--bg-dark);

  /* Spacing & Layout */
  --container-max-width: 1200px;
  --section-spacing: 6rem;
  --element-spacing: 1.5rem;
  --card-spacing: 2rem;

  /* Typography */
  --h1-size: clamp(2.5rem, 5vw, 3.75rem);
  --h2-size: clamp(2rem, 4vw, 2.5rem);
  --h3-size: clamp(1.25rem, 3vw, 1.5rem);
  --body-size: clamp(1rem, 2vw, 1.125rem);
  --small-size: clamp(0.875rem, 1.5vw, 1rem);

  /* Animations */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --theme-transition: 0.3s ease;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --blur-effect: blur(10px);

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

  /* RGB Color Variables for CSS functions - Dark theme */
  --primary-rgb: 58, 134, 255;
  --accent-rgb: 16, 185, 129;
  --text-rgb: 226, 232, 240;
  --card-bg-rgb: 30, 41, 59;
  --bg-rgb: 15, 23, 42;
}

/* Light Theme Class */
.light-theme {
  --primary: var(--primary-light);
  --primary-dark: var(--primary-dark-light);
  --dark: var(--dark-light);
  --darker: var(--darker-light);
  --light: var(--light-light);
  --accent: var(--accent-light);
  --accent2: var(--accent2-light);
  --muted: var(--muted-light);
  --card-bg: var(--card-bg-light);
  --card-hover: var(--card-hover-light);
  --text: var(--text-light);
  --text-muted: var(--text-muted-light);
  --bg: var(--bg-light);

  /* RGB Color Variables for CSS functions - Light theme */
  --primary-rgb: 58, 134, 255;
  --accent-rgb: 16, 185, 129;
  --text-rgb: 30, 41, 59;
  --card-bg-rgb: 255, 255, 255;
  --bg-rgb: 248, 250, 252;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Dynamic scroll padding for mobile */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 100px;
  }
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: var(--body-size);
  transition: background-color var(--theme-transition),
    color var(--theme-transition);
  overflow-x: hidden;
}

/* Theme transition class for smooth switching */
.theme-transitioning * {
  transition: background-color var(--theme-transition),
    color var(--theme-transition),
    border-color var(--theme-transition),
    box-shadow var(--theme-transition) !important;
}

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

a {
  text-decoration: none;
  color: var(--primary);
  transition: all var(--transition-normal);
}

button {
  cursor: pointer;
  font-family: inherit;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Layout & Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}


/* Header & Navigation */
header {
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  background-color: rgba(var(--bg-rgb), 0.95);
  backdrop-filter: var(--blur-effect);
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

header.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  padding: 0.5rem;
  z-index: 101;
}

nav {
  transition: all var(--transition-normal);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition-normal);
  position: relative;
  padding: 0.5rem 0;
}

nav a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width var(--transition-normal);
  border-radius: var(--radius-full);
}

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

nav a:hover:after,
nav a.active:after {
  width: 100%;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(var(--text-rgb), 0.05);
  transition: all var(--transition-normal);
}

.theme-toggle:hover {
  background-color: rgba(var(--text-rgb), 0.1);
  transform: translateY(-2px);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
}

.light-theme .theme-toggle .moon {
  display: block;
}

.light-theme .theme-toggle .sun {
  display: none;
}

.dark-theme .theme-toggle .moon {
  display: none;
}

.dark-theme .theme-toggle .sun {
  display: block;
}

/* Hero Section */
.hero {
  padding: var(--section-spacing) 0 calc(var(--section-spacing) / 1.5);
  display: flex;
  align-items: center;
  gap: 4rem;
  min-height: calc(100vh - 80px);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-slow);
}

.hero-image-wrapper:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.2),
    0 15px 15px -5px rgba(0, 0, 0, 0.1);
}

.hero-image-backdrop {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 100%;
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.3;
}

h1 {
  font-size: var(--h1-size);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.subtitle {
  font-size: calc(var(--body-size) * 1.2);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

/* Section Styling */
section {
  padding: var(--section-spacing) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 600;
  font-size: var(--small-size);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: block;
}

h2 {
  font-size: var(--h2-size);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  color: var(--text);
}

h3 {
  font-size: var(--h3-size);
  margin-bottom: 1rem;
  line-height: 1.4;
  color: var(--text);
}

.section-intro {
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

.divider {
  height: 4px;
  width: 80px;
  background: var(--primary);
  margin: 1.5rem auto 3rem;
  border-radius: var(--radius-full);
}

/* Featured Media Section */
.featured-in {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 2rem;
}

.featured-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: all var(--transition-normal);
  height: 40px;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 1rem;
  filter: grayscale(1);
}

.featured-logo:hover {
  opacity: 1;
  transform: scale(1.1);
  color: var(--text);
  filter: grayscale(0);
}

/* About Section */
.about-content {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  position: relative;
  z-index: 1;
}

.about-image:before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  z-index: 0;
  transition: all var(--transition-normal);
}

.about-image:hover img {
  transform: translate(10px, 10px);
}

.about-image:hover:before {
  transform: translate(-10px, -10px);
}

.companies {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.company-tag {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--small-size);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.company-tag:hover {
  background: rgba(var(--accent-rgb), 0.25);
  transform: translateY(-2px);
}

.interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.interest-tag {
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--small-size);
  transition: all var(--transition-normal);
}

.interest-tag:hover {
  background: rgba(var(--primary-rgb), 0.25);
  transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
  padding: 4rem 0;
  background-color: rgba(var(--primary-rgb), 0.05);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  transition: all var(--transition-normal);
  border-radius: var(--radius-md);
}

.stat-item:hover {
  background-color: rgba(var(--card-bg-rgb), 0.5);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 500;
}

/* Content Section */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--card-spacing);
}

.content-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.content-card-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

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

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

.card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.card-footer {
  margin-top: auto;
  padding-top: 1.5rem;
}

.tag {
  display: inline-block;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* Testimonials Section */
.testimonials-slider {
  position: relative;
  padding: 3rem 0;
  overflow: hidden;
}

.testimonial-container {
  display: flex;
  transition: transform var(--transition-slow);
}

.testimonial {
  flex: 0 0 100%;
  padding: 0 1rem;
  transition: opacity var(--transition-normal);
}

.testimonial-inner {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 3px solid var(--primary);
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-text:before,
.testimonial-text:after {
  content: '"';
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  line-height: 1;
}

.testimonial-text:before {
  top: -1rem;
  left: -1rem;
}

.testimonial-text:after {
  bottom: -2rem;
  right: -1rem;
  transform: rotate(180deg);
}

.testimonial-author {
  font-weight: 600;
  color: var(--text);
}

.testimonial-role {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.testimonial-logos {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--muted);
  opacity: 0.5;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.slider-dot.active {
  opacity: 1;
  background: var(--primary);
  transform: scale(1.2);
}

.slider-dot:hover {
  opacity: 0.8;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--card-bg);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.slider-arrow:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 0;
}

.slider-next {
  right: 0;
}

/* Resources Section */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--card-spacing);
}

.resource-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(var(--text-rgb), 0.1);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.resource-icon {
  width: 50px;
  height: 50px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: all var(--transition-normal);
}

.resource-card:hover .resource-icon {
  background: var(--primary);
  color: white;
}

.resource-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.resource-description {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  flex-grow: 1;
}


/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--card-spacing);
}

.contact-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

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

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all var(--transition-normal);
}

.contact-card:hover .contact-icon {
  background: var(--primary);
  color: white;
}

.contact-type {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-value {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}


.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.social-link {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: all var(--transition-normal);
  position: relative;
  text-decoration: none;
  width: 50px;
  height: 50px;
  background: rgba(var(--text-rgb), 0.05);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  color: var(--primary);
  transform: translateY(-3px);
  background: rgba(var(--primary-rgb), 0.1);
}



/* Buttons & CTAs */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(var(--primary-rgb), 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.3);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}


.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--text);
  padding: 5rem 0 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  background: rgba(var(--text-rgb), 0.1);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.footer-social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-nav-title {
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--light);
}

.footer-nav-links {
  list-style: none;
}

.footer-nav-link {
  margin-bottom: 0.75rem;
}

.footer-nav-link a {
  color: var(--text-muted);
  transition: all var(--transition-normal);
  display: inline-block;
}

.footer-nav-link a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-subscribe {
  margin-top: 1.5rem;
}

.footer-form {
  display: flex;
  gap: 0.5rem;
}

.footer-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(var(--text-rgb), 0.1);
  border: none;
  border-radius: var(--radius-md);
  color: var(--text);
}

.footer-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

.footer-submit {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.footer-submit:hover {
  background: var(--primary-dark);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(var(--text-rgb), 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.footer-secondary-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition-normal);
}

.footer-secondary-link:hover {
  color: var(--primary);
}

/* Scroll To Top Button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 100;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Background Elements - Simplified for better performance */
.bg-accent {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.05;
  z-index: -1;
  will-change: transform;
}

.bg-accent-1 {
  top: 10%;
  left: -10%;
  width: 30vw;
  height: 30vw;
  background: var(--primary);
}

.bg-accent-2 {
  bottom: 15%;
  right: -15%;
  width: 25vw;
  height: 25vw;
  background: var(--accent);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}



/* Responsive Styles */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 2rem;
  }
}

@media (max-width: 992px) {
  :root {
    --section-spacing: 4rem;
    --element-spacing: 1.25rem;
    --card-spacing: 1.5rem;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .companies,
  .interests {
    justify-content: center;
  }

  .cta-buttons {
    justify-content: center;
  }

  .testimonial-inner {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --h1-size: clamp(2.25rem, 4vw, 3rem);
    --h2-size: clamp(1.75rem, 3vw, 2.25rem);
  }

  .mobile-menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background-color: var(--bg);
    padding: 6rem 2rem 2rem;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
  }

  nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  nav a {
    font-size: 1.25rem;
  }

  .featured-in {
    gap: 2rem;
  }

  .slider-arrow {
    display: none;
  }

  .footer-content {
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-secondary-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .logo {
    font-size: 1.5rem;
  }

  .header-container {
    padding: 0.5rem 0;
  }

  .content-grid,
  .resources-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .social-links {
    flex-wrap: wrap;
  }

  .testimonial-inner {
    padding: 1.5rem;
  }

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

  .stat-number {
    font-size: 2.5rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }


  .hero {
    padding-top: 2rem;
    min-height: auto;
  }

  /* Mobile positioning for scroll-to-top button */
  .scroll-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 576px) {
  :root {
    --section-spacing: 3rem;
    --card-spacing: 1.25rem;
    --h1-size: clamp(2rem, 3.5vw, 2.5rem);
    --h2-size: clamp(1.5rem, 2.5vw, 2rem);
    --h3-size: clamp(1.125rem, 2vw, 1.375rem);
  }

  .container {
    padding: 0 1.25rem;
  }


  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.25rem;
  }


  .blog-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .featured-logo {
    height: 24px;
    font-size: 0.875rem;
  }

  .social-links {
    gap: 0.75rem;
  }

  .featured-in {
    gap: 1.25rem;
  }

  .btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .about-image:before {
    display: none;
  }

  .checkbox-group {
    flex-direction: column;
    align-items: flex-start;
  }


  .footer-social {
    justify-content: center;
  }

  .nav-wrapper {
    gap: 1rem;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .hero-image-backdrop {
    display: none;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .testimonial-text:before,
  .testimonial-text:after {
    font-size: 2rem;
  }

  /* Smaller scroll-to-top button for mobile phones */
  .scroll-top {
    bottom: 0.75rem;
    right: 0.75rem;
    width: 42px;
    height: 42px;
  }

}

@media (max-width: 360px) {
  :root {
    --section-spacing: 2.5rem;
    --card-spacing: 1rem;
  }

  .container {
    padding: 0 1rem;
  }


  .logo {
    font-size: 1.25rem;
    gap: 0.5rem;
  }

  .mobile-menu-toggle {
    font-size: 1.25rem;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
  }

  .contact-icon,
  .resource-icon {
    width: 45px;
    height: 45px;
  }

  .footer-nav-title {
    margin-bottom: 1rem;
  }

  .contact-card,
  .resource-card {
    padding: 1.5rem;
  }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.skip-to-content {
  position: absolute;
  top: -9999px;
  left: -9999px;
  background: var(--primary);
  color: white;
  padding: 1rem;
  z-index: 1000;
  border-radius: var(--radius-md);
}

.skip-to-content:focus {
  top: 10px;
  left: 10px;
}
