
:root {
  --color-bg-light: #FAFAFA;
  --color-text-light: #333333;
  --color-bg-dark: #111827;
  --color-text-dark: #E5E7EB;
  --color-bg: var(--color-bg-light);
  --color-text: var(--color-text-light);
}
[data-theme="dark"] {
  --color-bg: var(--color-bg-dark);
  --color-text: var(--color-text-dark);
}
/* Apply theme colors */
body {
  background-color: var(--color-bg) !important;
  color: var(--color-text) !important;
}

/* Theme switch styling */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}
.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
.theme-switch input:checked + .slider {
  background-color: var(--color-primary);
}
.theme-switch input:checked + .slider:before {
  transform: translateX(26px);
}



[data-theme="dark"] {
  --color-bg: var(--color-bg-dark);
  --color-text: var(--color-text-dark);
}


@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

:root {
  /* Color Palette */
  --color-bg-light: #f4f7fa;
  --color-bg-card: #ffffff;
  --color-text: #232946;
  --color-primary: #1864ab;
  --color-accent: #56ccf2;
  --color-accent-light: #e0f4ff;
  --color-bg: var(--color-bg-light);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background-color: var(--color-bg);
  color: var(--color-text);

  font-family: 'Montserrat', Arial, sans-serif;
  
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Header */
header {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-accent) 100%);
  text-align: center;
  box-shadow: 0 2px 20px rgba(24, 100, 171, 0.15);
  padding: 3rem 1rem;
}
.header-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 4px solid #fff;
  background: var(--color-accent-light);
  transition: transform 0.3s ease;
}
.profile-photo:hover {
  transform: scale(1.05);
}
.header-profile h1 {
  font-size: 2.4rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.tagline {
  font-size: 1.1rem;
  font-weight: 400;
  color: #e0f4ff;
  margin-top: 0.25rem;
}

/* Call to Action */
.cta-btn {
  display: inline-block;
  margin: 1rem 0.5rem 0 0.5rem;
  padding: 0.7rem 1.4rem;
  background-color: #fff;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(24, 100, 171, 0.1);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.cta-btn:hover {
  background-color: var(--color-accent-light);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Navigation */
nav {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
nav a {
  position: relative;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  transition: background 0.3s ease, color 0.3s ease;
}
nav a:hover, nav a.active {
  background-color: #fff;
  color: var(--color-primary);
}

/* Main Content */
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}
section {
  margin-bottom: 2.5rem;
  background-color: var(--color-bg-card);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(24, 100, 171, 0.08);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
section:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(24, 100, 171, 0.12);
}
h2 {
  border-left: 5px solid var(--color-accent);
  padding-left: 0.7rem;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 2rem 1rem;
  }
  .header-profile h1 {
    font-size: 2rem;
  }
  .profile-photo {
    width: 100px;
    height: 100px;
  }
  nav a {
    padding: 0.5rem 1rem;
  }
}


/* Fluid images */
img {
  max-width: 100%;
  height: auto;
}

/* Mobile responsive tweaks */



/* Secondary font for headings */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&display=swap');
h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
}

/* Gradient accent */
:root {
  --color-gradient: linear-gradient(135deg, #4F46E5, #3B82F6);
}

/* Section heading gradient text */
.section-heading-gradient {
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Button hover micro-interaction */
button, .cta-btn {
  border-radius: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}
button:hover, .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Card layout for main content */
main > * {
  background: var(--color-card-bg);
  border-radius: 1rem;
  box-shadow: 0 2px 8px var(--color-card-shadow);
  margin-bottom: 2rem;
  padding: 2rem;
}

/* Parallax header */
header.parallax-header {
  background-image: url('header-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  color: #fff;
}
header.parallax-header .header-profile {
  position: relative;
  z-index: 1;
}
header.parallax-header .parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}

/* Dark mode */
[data-theme="dark"] {
  --color-bg: #111827;
  --color-text: #E5E7EB;
  --color-primary: #3B82F6;
  --color-accent: #10B981;
  --color-muted: #9CA3AF;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}
footer .footer-nav a {
  color: var(--color-muted);
  margin: 0 0.5rem;
  text-decoration: none;
}
footer .footer-nav a:hover {
  color: var(--color-primary);
}
footer .social a {
  margin: 0 0.5rem;
  font-size: 1.25rem;
  color: var(--color-text);
}
footer .social a:hover {
  color: var(--color-accent);
}

/* Back-to-top button */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: none;
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1000;
  transition: opacity var(--transition);
}
#back-to-top.show {
  display: block;
  opacity: 0.75;
}
#back-to-top:hover {
  opacity: 1;
}


/* Card background variables */
:root {
  --color-card-bg: #ffffff;
  --color-card-shadow: rgba(0,0,0,0.05);
}
[data-theme="dark"] {
  --color-card-bg: #1F2937;
  --color-card-shadow: rgba(0,0,0,0.2);
}



}



}


/* Metrics banner visibility in day mode */
.metrics-banner {
  background-color: var(--color-primary);
  color: #ffffff;
}


/* Metrics banner styling */
.metrics-banner {
  display: flex;
  justify-content: center;
  gap: 2rem;
  background: var(--color-primary);
  color: white;
  padding: 1rem 0;
}


/* Testimonials: ensure visibility in both light and dark modes */
#testimonials blockquote,
section .testimonial {
  background-color: var(--color-card-bg);
  color: var(--color-text);
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--color-primary);
  margin-bottom: 1rem;
}



  nav a {
    flex: 0 0 auto;                         /* prevent shrinking */
    white-space: nowrap;                    /* prevent text wrap */
    margin: 0;                              /* reset margin */
    padding: 0.75rem 0.5rem;                /* increase tap area */
  }
}



  nav a {
    flex: 1 1 auto;                        /* allow shrinking */
    text-align: center;                    
    white-space: nowrap;                   
    padding: 0.5rem 0;                     /* vertical padding */
    font-size: 0.85rem;                    /* slightly smaller font */
  }
}


/* Mobile: shrink nav tabs to fit on one line without scroll */



/* Mobile: shrink nav tabs to fit on one line without scroll */

  header nav a {
    flex: 1 1 auto !important;
    text-align: center !important;
    white-space: nowrap !important;
    padding: 0.5rem 0 !important;
    font-size: 0.85rem !important;
    margin: 0 !important;
  }
}


/* Mobile Navigation: single horizontal row with shrink */
@media (max-width: 600px) {
  header nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 0.5rem !important;
  }
  header nav a {
    flex: 1 1 auto !important;
    text-align: center !important;
    white-space: nowrap !important;
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    font-size: 0.85rem !important;
  }
}
