/* ===== ROOT VARIABLES ===== */
:root {
  /* Color Palette - Tetrad Color Scheme */
  --primary: #0052cc;
  --primary-dark: #003d99;
  --primary-light: #4d8df5;
  --primary-transparent: rgba(0, 82, 204, 0.1);
  
  --secondary: #cc5200;
  --secondary-dark: #993d00;
  --secondary-light: #ff7733;
  --secondary-transparent: rgba(204, 82, 0, 0.1);
  
  --tertiary: #00cc85;
  --tertiary-dark: #009963;
  --tertiary-light: #33ffb1;
  --tertiary-transparent: rgba(0, 204, 133, 0.1);
  
  --quaternary: #9900cc;
  --quaternary-dark: #730099;
  --quaternary-light: #c44dff;
  --quaternary-transparent: rgba(153, 0, 204, 0.1);
  
  /* Neutral Colors */
  --dark: #1a1a2e;
  --dark-gray: #2d2d42;
  --medium-gray: #4a4a6a;
  --light-gray: #8a8aa0;
  --ultra-light: #f5f5fa;
  --white: #ffffff;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-light));
  --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  --gradient-tertiary: linear-gradient(135deg, var(--tertiary), var(--tertiary-light));
  --gradient-quaternary: linear-gradient(135deg, var(--quaternary), var(--quaternary-light));
  --gradient-dark: linear-gradient(135deg, var(--dark), var(--dark-gray));
  
  /* Typography */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Rubik', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-index layers */
  --z-negative: -1;
  --z-normal: 0;
  --z-tooltips: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* ===== RESET & GLOBALS ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 10px base for easy rem calculation */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.6rem;
  color: var(--dark);
}

h1 {
  font-size: 5.2rem;
}

h2 {
  font-size: 4rem;
  margin-bottom: 2.4rem;
}

h3 {
  font-size: 2.8rem;
  margin-bottom: 1.6rem;
}

h4 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

p {
  margin-bottom: 1.6rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 400;
  color: var(--medium-gray);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

/* ===== BUTTONS ===== */
.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.4rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  text-transform: none;
  letter-spacing: 0.5px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.button::after,
button::after,
input[type="submit"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transition: height var(--transition-normal);
}

.button:hover::after,
button:hover::after,
input[type="submit"]:hover::after {
  height: 100%;
}

.button.primary,
button.primary,
input[type="submit"].primary {
  background-color: var(--primary);
  color: var(--white);
}

.button.primary:hover,
button.primary:hover,
input[type="submit"].primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button.secondary,
button.secondary,
input[type="submit"].secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.button.secondary:hover,
button.secondary:hover,
input[type="submit"].secondary:hover {
  background-color: var(--primary-transparent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 8rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
}

.logo h1 {
  margin-bottom: 0;
  font-size: 2.4rem;
}

.logo span {
  color: var(--primary);
}

.desktop-nav ul {
  display: flex;
  gap: var(--spacing-md);
}

.desktop-nav a {
  color: var(--dark);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

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

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

.desktop-nav a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 2.4rem;
  height: 0.3rem;
  background-color: var(--dark);
  margin: 0.5rem 0;
  transition: all var(--transition-normal);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 8rem;
  left: 0;
  width: 100%;
  height: calc(100vh - 8rem);
  background-color: var(--white);
  padding: var(--spacing-lg) var(--spacing-md);
  z-index: var(--z-fixed);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.mobile-menu nav a {
  font-size: 2rem;
  font-weight: 500;
  color: var(--dark);
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ultra-light);
}

.mobile-menu nav a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .header-inner {
    height: 7rem;
  }
  
  .mobile-menu {
    top: 7rem;
    height: calc(100vh - 7rem);
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  padding: 14rem 0 8rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  z-index: var(--z-negative);
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 5.6rem;
  margin-bottom: 2rem;
  color: var(--white);
  line-height: 1.1;
}

.hero-content p {
  font-size: 2rem;
  margin-bottom: 3.2rem;
  color: var(--white);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    padding: 12rem 0 6rem;
  }
  
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .hero-content p {
    font-size: 1.8rem;
  }
}

/* ===== RESEARCH SECTION ===== */
.research {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
}

.toggle-container {
  margin-top: var(--spacing-lg);
}

.toggle-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.toggle-btn {
  background-color: transparent;
  color: var(--medium-gray);
  border: 2px solid var(--ultra-light);
  border-radius: var(--radius-full);
  padding: 1rem 2.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.toggle-btn.active,
.toggle-btn:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.toggle-content {
  display: none;
  animation: fadeIn var(--transition-normal);
}

.toggle-content.active {
  display: block;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.content-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transform: translateX(-2rem);
  opacity: 0;
  animation: slideInLeft 0.6s var(--transition-normal) forwards;
}

.content-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.content-text {
  transform: translateX(2rem);
  opacity: 0;
  animation: slideInRight 0.6s var(--transition-normal) forwards;
}

.content-text h3 {
  color: var(--dark);
  margin-bottom: var(--spacing-sm);
}

.content-text p {
  color: var(--medium-gray);
  margin-bottom: var(--spacing-md);
}

@keyframes slideInLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .content-image,
  .content-text {
    transform: translateX(0);
  }
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
  padding: var(--spacing-xl) 0;
  background-color: var(--ultra-light);
  position: relative;
  overflow: hidden;
}

.portfolio::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 40%;
  height: 70%;
  background-color: var(--primary-transparent);
  border-radius: 50%;
  z-index: 0;
  animation: float 10s infinite alternate ease-in-out;
}

.portfolio::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 30%;
  height: 60%;
  background-color: var(--secondary-transparent);
  border-radius: 50%;
  z-index: 0;
  animation: float 12s infinite alternate-reverse ease-in-out;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(30px) rotate(5deg);
  }
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.card-content h3 {
  font-size: 2.2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--dark);
}

.card-content p {
  color: var(--medium-gray);
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: var(--spacing-md);
  justify-content: center;
}

.tags span {
  background-color: var(--primary-transparent);
  color: var(--primary);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  font-weight: 500;
}

/* ===== WEBINARS SECTION ===== */
.webinars {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
}

.webinar-carousel {
  margin-top: var(--spacing-lg);
  position: relative;
}

.carousel-container {
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.carousel-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.carousel-item {
  min-width: 100%;
  padding: 0 var(--spacing-sm);
}

.webinar-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.webinar-card .card-image {
  height: 300px;
  width: 100%;
}

.webinar-card .card-content {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.date {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  font-size: 1.4rem;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.prev-btn,
.next-btn {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-full);
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.prev-btn:hover,
.next-btn:hover {
  background-color: var(--primary);
  color: var(--white);
}

.prev-btn span,
.next-btn span {
  font-weight: 500;
  font-size: 1.4rem;
}

.upcoming-events {
  margin-top: var(--spacing-lg);
}

.upcoming-events h3 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.upcoming-events ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.upcoming-events li {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  background-color: var(--ultra-light);
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.upcoming-events li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.event-date {
  background-color: var(--primary);
  color: var(--white);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-align: center;
  min-width: 8rem;
  margin-right: var(--spacing-md);
}

.event-details {
  flex-grow: 1;
}

.event-details h4 {
  margin-bottom: 0.4rem;
  font-size: 1.8rem;
}

.event-details p {
  color: var(--medium-gray);
  margin-bottom: 0;
  font-size: 1.4rem;
}

.upcoming-events .button {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .upcoming-events li {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .event-date {
    margin-right: 0;
    margin-bottom: var(--spacing-sm);
  }
  
  .event-details {
    margin-bottom: var(--spacing-sm);
  }
}

/* ===== RESOURCES SECTION ===== */
.resources {
  padding: var(--spacing-xl) 0;
  background-color: var(--ultra-light);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.resource-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.resource-card h3 {
  color: var(--dark);
  font-size: 2rem;
  border-bottom: 2px solid var(--primary-transparent);
  padding-bottom: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.resource-card ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.resource-card li {
  position: relative;
  padding-left: 2rem;
}

.resource-card li::before {
  content: "→";
  color: var(--primary);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.resource-card a {
  color: var(--dark);
  transition: color var(--transition-normal);
  font-weight: 500;
}

.resource-card a:hover {
  color: var(--primary);
}

/* ===== ACCOLADES SECTION ===== */
.accolades {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.accolades::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: var(--primary-transparent);
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 30% 0);
  z-index: 0;
  opacity: 0.1;
}

.accolades-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.accolades-text p {
  color: var(--medium-gray);
  margin-bottom: var(--spacing-lg);
}

.awards-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.award-item {
  display: flex;
  align-items: center;
  background-color: var(--ultra-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.award-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

.award-icon {
  width: 6rem;
  height: 6rem;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  margin-right: var(--spacing-md);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.award-details h3 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.award-details p {
  color: var(--medium-gray);
  margin-bottom: 0;
  font-size: 1.4rem;
}

.testimonials {
  position: relative;
  padding: var(--spacing-md);
  background-color: var(--ultra-light);
  border-radius: var(--radius-md);
}

.testimonials h3 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.testimonial-carousel {
  position: relative;
  min-height: 250px;
}

.testimonial-item {
  display: none;
  animation: fadeIn var(--transition-normal);
}

.testimonial-item.active {
  display: block;
}

.testimonial-content {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  position: relative;
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.testimonial-content::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 2rem;
  width: 2rem;
  height: 2rem;
  background-color: var(--white);
  transform: rotate(45deg);
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.05);
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  padding-left: var(--spacing-md);
}

.testimonial-author img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  margin-right: var(--spacing-md);
}

.testimonial-author h4 {
  margin-bottom: 0.2rem;
  font-size: 1.8rem;
}

.testimonial-author p {
  color: var(--medium-gray);
  margin-bottom: 0;
  font-size: 1.4rem;
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--spacing-md);
}

.testimonial-dots {
  display: flex;
  gap: 0.8rem;
  margin: 0 var(--spacing-sm);
}

.dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--light-gray);
  cursor: pointer;
  transition: background-color var(--transition-normal);
}

.dot.active {
  background-color: var(--primary);
}

@media (max-width: 992px) {
  .accolades-content {
    grid-template-columns: 1fr;
  }
  
  .accolades-text {
    margin-bottom: var(--spacing-lg);
  }
}

/* ===== BLOG SECTION ===== */
.blog {
  padding: var(--spacing-xl) 0;
  background-color: var(--ultra-light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.blog .card-content {
  text-align: left;
}

.post-meta {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  font-size: 1.4rem;
}

.date {
  color: var(--medium-gray);
}

.category {
  color: var(--primary);
  font-weight: 500;
}

.read-more {
  color: var(--primary);
  font-weight: 500;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.read-more::after {
  content: "→";
  margin-left: 0.5rem;
  transition: transform var(--transition-normal);
}

.read-more:hover::after {
  transform: translateX(5px);
}

.blog-cta {
  background: var(--gradient-primary);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  color: var(--white);
  text-align: center;
}

.blog-cta h3 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: var(--spacing-sm);
}

.newsletter-form input {
  flex-grow: 1;
  padding: 1.2rem 1.6rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.6rem;
}

.newsletter-form .button {
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-info p {
  color: var(--medium-gray);
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.info-item {
  display: flex;
  gap: var(--spacing-md);
}

.info-item .icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--primary-transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item h4 {
  margin-bottom: 0.4rem;
}

.info-item p {
  margin-bottom: 0;
  color: var(--medium-gray);
}

.social-links h4 {
  margin-bottom: var(--spacing-sm);
}

.social-icons {
  display: flex;
  gap: var(--spacing-md);
}

.social-icons a {
  color: var(--primary);
  font-weight: 500;
  position: relative;
  display: inline-block;
  transition: transform var(--transition-normal);
  padding-bottom: 0.5rem;
}

.social-icons a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.social-icons a:hover {
  transform: translateY(-3px);
}

.social-icons a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-form-container {
  background-color: var(--ultra-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  margin-bottom: 0.8rem;
  font-weight: 500;
  font-size: 1.6rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1.2rem 1.6rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1.6rem;
  transition: border-color var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.4rem;
  color: var(--medium-gray);
}

.checkbox-container input[type="checkbox"] {
  margin-top: 0.3rem;
}

.contact-form button {
  grid-column: span 2;
  margin-top: var(--spacing-sm);
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    margin-bottom: var(--spacing-lg);
  }
}

@media (max-width: 576px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .contact-form button {
    grid-column: span 1;
  }
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark);
  color: var(--ultra-light);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.footer-logo {
  margin-bottom: var(--spacing-md);
}

.footer-logo h2 {
  color: var(--white);
  margin-bottom: var(--spacing-xs);
}

.footer-logo span {
  color: var(--primary-light);
}

.footer-logo p {
  color: var(--light-gray);
}

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

.footer-nav-column h3 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-size: 1.8rem;
}

.footer-nav-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-nav-column a {
  color: var(--light-gray);
  transition: color var(--transition-normal);
}

.footer-nav-column a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer .social-links {
  display: flex;
  gap: var(--spacing-md);
}

.footer .social-links a {
  color: var(--light-gray);
  transition: color var(--transition-normal);
}

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

.copyright p {
  color: var(--light-gray);
  margin-bottom: 0;
  font-size: 1.4rem;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .footer-nav {
    width: 100%;
    justify-content: space-between;
  }
  
  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
  }
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--spacing-lg);
  background-color: var(--ultra-light);
}

.success-icon {
  width: 10rem;
  height: 10rem;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.success-icon::before {
  content: "✓";
  color: var(--white);
  font-size: 5rem;
  font-weight: 700;
}

.success-content {
  max-width: 600px;
}

.success-content h1 {
  color: var(--dark);
  margin-bottom: var(--spacing-md);
}

.success-content p {
  color: var(--medium-gray);
  margin-bottom: var(--spacing-lg);
  font-size: 1.8rem;
}

.success-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== PRIVACY & TERMS PAGES ===== */
.page-content {
  padding: 100px 0 var(--spacing-xl);
}

.page-content .container {
  max-width: 800px;
}

.page-content h1 {
  margin-bottom: var(--spacing-lg);
}

.page-content h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  font-size: 2.8rem;
}

.page-content h3 {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  font-size: 2.2rem;
}

.page-content p {
  margin-bottom: var(--spacing-md);
}

.page-content ul,
.page-content ol {
  margin-bottom: var(--spacing-md);
  padding-left: 2rem;
}

.page-content ul {
  list-style-type: disc;
}

.page-content ol {
  list-style-type: decimal;
}

.page-content li {
  margin-bottom: var(--spacing-xs);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

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

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

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.pt-xs { padding-top: var(--spacing-xs); }
.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }
.pt-xl { padding-top: var(--spacing-xl); }

.pb-xs { padding-bottom: var(--spacing-xs); }
.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-xl { padding-bottom: var(--spacing-xl); }

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 1200px) {
  h1 {
    font-size: 4.8rem;
  }
  
  h2 {
    font-size: 3.6rem;
  }
  
  h3 {
    font-size: 2.6rem;
  }
  
  .hero-content h1 {
    font-size: 5rem;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 60%;
  }
  
  h1 {
    font-size: 4.4rem;
  }
  
  h2 {
    font-size: 3.2rem;
  }
  
  .hero-content h1 {
    font-size: 4.4rem;
  }
  
  .section-subtitle {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 58%;
  }
  
  h1 {
    font-size: 4rem;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  h3 {
    font-size: 2.4rem;
  }
  
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .toggle-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .toggle-btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .button {
    width: 100%;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 1s var(--transition-normal) forwards;
}

.fade-in-left {
  opacity: 0;
  animation: fadeInLeft 1s var(--transition-normal) forwards;
}

.fade-in-right {
  opacity: 0;
  animation: fadeInRight 1s var(--transition-normal) forwards;
}
.mobile-menu-toggle{
  display: none;
}