@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Montserrat:wght@700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap");

html {
  font-size: 80% !important;
}

/* === LIGHT MODE (default) === */
:root {
  --primary-color: #206d72;
  --text-color: #2c3e50;
  --bg-color: #ffffff;
  --header-bg: #ffffff;
  --hero-bg: #ececec;
  --accent-color: #206d72;
  --button-bg: #206d72;
  --button-hover: #1a5a5e;
  --font-main: "DM Sans", "Inter", sans-serif;
  --font-heading: "Outfit", "Montserrat", sans-serif;
  --logo-color: #1a1a1a;
  --nav-link-color: #334155;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --footer-bg: #f8fafc;
  --footer-text: #374151;
}

/* === DARK MODE variable overrides === */
[data-theme="dark"] {
  --primary-color: #2a9099;
  --text-color: #e6edf3;
  --bg-color: #0d1117;
  --header-bg: #161b22;
  --hero-bg: #0d1117;
  --accent-color: #4dbbc6;
  --button-bg: #2a9099;
  --button-hover: #22747f;
  --logo-color: #4dbbc6;
  --nav-link-color: #8b949e;
  --card-bg: #161b22;
  --card-border: #30363d;
  --footer-bg: #161b22;
  --footer-text: #8b949e;
  color-scheme: dark;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  transition: all 0.3s ease;
}

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

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .br-mobile-hide {
    display: none !important;
  }
}


/* --- Header & Navigation --- */
header {
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Very subtle separator */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  white-space: nowrap;
}

header.scrolled {
  padding: 0.8rem 5%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: var(--header-bg);
}

.logo-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo-container:hover {
  opacity: 0.8;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--logo-color);
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
  border-left: 6px solid var(--logo-color);
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-tagline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 2px solid var(--logo-color); /* Slightly thicker for character */
  padding-left: 15px;
  line-height: 1.1;
  color: var(--logo-color);
  margin-top: 2px; /* Small nudge for visual center */
}

.logo-name {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: -1px; /* Tighter vertical gap */
}

.logo-subtitle {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: lowercase;
  opacity: 0.7;
  letter-spacing: 0.12em; /* Wide tracking for tagline look */
}

@media (max-width: 768px) {
  .logo-tagline {
    display: none;
  }
}

/* Tablet refinements for tagline */
@media (min-width: 769px) and (max-width: 1024px) {
  .logo-name {
    font-size: 1rem;
  }
  .logo-subtitle {
    font-size: 0.65rem;
  }
}


nav {
  flex: 0 1 auto; /* Take only necessary space in center */
  display: flex;
  justify-content: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem; /* Increased space between links */
  margin: 0;
  padding: 0;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: var(--nav-link-color);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0.5rem 0;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%; /* Start at 0 for animation */
  height: 2px;
  background: var(--primary-color);
  border-radius: 5px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

nav ul li a:hover {
  color: var(--primary-color);
}

.mobile-only {
  display: none;
}

.header-actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

.header-theme-toggle {
  background: rgba(32, 109, 114, 0.05);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  color: var(--primary-color);
  padding: 0;
  outline: none;
  box-shadow: none;
}

.header-theme-toggle:hover {
  background: rgba(32, 109, 114, 0.15);
  box-shadow: none;
  transform: none;
}

.header-theme-toggle:active {
  background: rgba(32, 109, 114, 0.22);
  transform: none;
}

.header-theme-toggle svg {
  transition: none;
}

.header-theme-toggle:hover svg {
  transform: none;
}

.contact-card {
  background: white;
  padding: 1.5rem 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
  min-width: 250px;
}

.contact-card strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.header-actions a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #333;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
}

.header-actions a:hover {
  color: var(--primary-color);
}

.header-actions i {
  width: 20px;
  height: 20px;
}

.sign-up-btn {
  background: linear-gradient(135deg, #22747f 0%, #1a5a63 100%) !important;
  color: #ffffff !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 0.8rem;
  box-shadow: 0 4px 12px rgba(34, 116, 127, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.sign-up-btn:hover {
  color: #ffffff !important;
}

[data-theme="dark"] .sign-up-btn {
  background: #2a9099 !important;
  box-shadow: 0 4px 20px rgba(42, 144, 153, 0.3);
  border-color: rgba(77, 187, 198, 0.4);
}

[data-theme="dark"] .sign-up-btn:hover {
  background: #33a8b2 !important;
}

.sign-up-btn i,
.sign-up-btn svg {
  color: #ffffff !important;
  width: 17px !important;
  height: 17px !important;
}

.profile-btn i {
  width: 24px;
  height: 24px;
  padding: 6px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  color: var(--primary-color);
  transition: all 0.3s;
}

.profile-btn:hover i {
  background: var(--primary-color);
  color: #fff;
}

.search-icon {
  color: #333;
  cursor: pointer;
  font-size: 1.2rem;
}

.btn-schedule {
  padding: 0.6rem 1.2rem;
  border: 2px solid #1a1a1a;
  border-radius: 10px;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.btn-schedule:hover {
  background: #1a1a1a;
  color: #fff;
}

.mobile-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--nav-link-color);
  background: none;
  border: none;
  padding: 12px;
  margin: -12px;
  line-height: 1;
  touch-action: manipulation;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.mobile-toggle * {
  pointer-events: none;
}

.mobile-toggle:active {
  opacity: 0.7;
}

/* Desktop toggle switch – visible in header-actions on desktop only */
.pureict-switch-home {
  display: none;
}

@media (min-width: 1025px) {
  .pureict-switch-home { display: inline-flex; }
}


/* --- Hero Section --- */
.hero {
  height: calc(100vh - 80px);
  background: var(--hero-bg);
  background-image:
    radial-gradient(at 0% 0%, rgba(32, 109, 114, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(32, 109, 114, 0.03) 0px, transparent 50%);
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23206d72' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  width: 55%;
  padding: 0 5%;
  color: var(--text-color);
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: rgba(32, 109, 114, 0.1);
  color: var(--primary-color);
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -1.5px;
}

.hero-content p {
  font-size: 1.2rem;
  color: #5c6770;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 1.2rem;
}

.btn-primary {
  background: var(--button-bg);
  border: 2px solid var(--button-bg);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--button-hover);
  border-color: var(--button-hover);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: #1a1a1a;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  border-color: #1a1a1a;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:active {
  opacity: 0.9;
}

/* WhatsApp Button */
.btn-whatsapp {
  background: #25d366 !important;
  border: 1px solid #25d366 !important;
  color: #fff !important;
  transition: all 0.3s ease !important;
}

.btn-whatsapp:hover {
  background: #20ba5a !important;
  border-color: #128c7e !important;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2) !important;
  color: #fff !important;
}

.hero-btns i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.hero-btns .fa-youtube {
  color: #ff0000;
}

/* --- Hero Image --- */
.hero-visual {
  width: 45%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-bg-shape {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(
    circle,
    rgba(32, 109, 114, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  bottom: 0px;
  z-index: -1;
}

.hero-visual img {
  width: 100%;
  height: 95%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.1));
  position: relative;
  z-index: 10;
}

/* --- PureICT Text Background on Left Side --- */
.text-background-left {
  position: absolute;
  font-family: var(--font-heading);
  font-weight: 900;
  color: rgba(32, 109, 114, 0.3);
  pointer-events: none;
  letter-spacing: 0.3rem;
  z-index: 1;
}

.text-left-1 {
  font-size: 4rem;
  top: 8%;
  left: 15%;
  opacity: 0.4;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.text-left-2 {
  font-size: 6rem;
  top: 15%;
  left: 5%;
  opacity: 0.35;
  writing-mode: horizontal-tb;
  transform: rotate(0deg);
}

.text-left-3 {
  font-size: 3rem;
  top: 35%;
  left: 10%;
  opacity: 0.45;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.text-left-4 {
  font-size: 7rem;
  top: 50%;
  left: 3%;
  opacity: 0.32;
  writing-mode: horizontal-tb;
  transform: rotate(0deg);
}

.text-left-5 {
  font-size: 5rem;
  top: 72%;
  left: 8%;
  opacity: 0.38;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Smaller text elements */
.text-left-6 {
  font-size: 1.5rem;
  top: 12%;
  left: 20%;
  opacity: 0.5;
  writing-mode: horizontal-tb;
  transform: rotate(0deg);
}

.text-left-7 {
  font-size: 2rem;
  top: 28%;
  left: 18%;
  opacity: 0.42;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.text-left-8 {
  font-size: 1.8rem;
  top: 42%;
  left: 2%;
  opacity: 0.48;
  writing-mode: horizontal-tb;
  transform: rotate(0deg);
}

.text-left-9 {
  font-size: 1.3rem;
  top: 58%;
  left: 14%;
  opacity: 0.45;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.text-left-10 {
  font-size: 2.2rem;
  top: 68%;
  left: 20%;
  opacity: 0.4;
  writing-mode: horizontal-tb;
  transform: rotate(0deg);
}

.text-left-11 {
  font-size: 1.6rem;
  top: 85%;
  left: 5%;
  opacity: 0.43;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.text-left-12 {
  font-size: 1.4rem;
  top: 22%;
  left: 12%;
  opacity: 0.47;
  writing-mode: horizontal-tb;
  transform: rotate(0deg);
}

/* Additional text elements for denser fill */
.text-left-13 {
  font-size: 8rem;
  top: 5%;
  left: -5%;
  opacity: 0.25;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.text-left-14 {
  font-size: 0.9rem;
  top: 45%;
  left: 22%;
  opacity: 0.55;
  writing-mode: horizontal-tb;
  transform: rotate(-90deg);
}

.text-left-15 {
  font-size: 2.8rem;
  top: 62%;
  left: -2%;
  opacity: 0.3;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.text-left-16 {
  font-size: 0.8rem;
  top: 18%;
  left: 25%;
  opacity: 0.5;
  writing-mode: horizontal-tb;
  transform: rotate(90deg);
}

.text-left-17 {
  font-size: 4.5rem;
  top: 80%;
  left: 0%;
  opacity: 0.28;
  writing-mode: horizontal-tb;
  transform: rotate(0deg);
}

.text-left-18 {
  font-size: 1.1rem;
  top: 38%;
  left: 24%;
  opacity: 0.52;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.text-left-19 {
  font-size: 3.2rem;
  top: 25%;
  left: -3%;
  opacity: 0.32;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.text-left-20 {
  font-size: 1rem;
  top: 92%;
  left: 18%;
  opacity: 0.45;
  writing-mode: horizontal-tb;
  transform: rotate(-90deg);
}

/* Extra fill text elements with varied sizes */
.text-left-21 {
  font-size: 10rem;
  top: 30%;
  left: -10%;
  opacity: 0.18;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.text-left-22 {
  font-size: 0.6rem;
  top: 55%;
  left: 28%;
  opacity: 0.6;
  writing-mode: horizontal-tb;
  transform: rotate(0deg);
}

.text-left-23 {
  font-size: 5.5rem;
  top: 88%;
  left: -8%;
  opacity: 0.22;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.text-left-24 {
  font-size: 0.7rem;
  top: 32%;
  left: 30%;
  opacity: 0.58;
  writing-mode: horizontal-tb;
  transform: rotate(-90deg);
}

.text-left-25 {
  font-size: 3.8rem;
  top: 12%;
  left: 0%;
  opacity: 0.26;
  writing-mode: horizontal-tb;
  transform: rotate(0deg);
}

.text-left-26 {
  font-size: 1.2rem;
  top: 78%;
  left: 26%;
  opacity: 0.48;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.text-left-27 {
  font-size: 6.5rem;
  top: 45%;
  left: -12%;
  opacity: 0.2;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.text-left-28 {
  font-size: 0.85rem;
  top: 65%;
  left: 32%;
  opacity: 0.53;
  writing-mode: horizontal-tb;
  transform: rotate(90deg);
}

.text-left-29 {
  font-size: 2.5rem;
  top: 3%;
  left: 8%;
  opacity: 0.35;
  writing-mode: horizontal-tb;
  transform: rotate(0deg);
}

.text-left-30 {
  font-size: 0.75rem;
  top: 48%;
  left: 35%;
  opacity: 0.55;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

@media (max-width: 1024px) {
  .mobile-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  nav.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 1rem !important;
    text-align: left;
    transition: background 0.2s;
  }

  nav ul li a:hover,
  nav ul li a.active {
    background: rgba(32, 109, 114, 0.08);
  }

  .mobile-only {
    display: block;
  }

  .header-theme-toggle {
    display: none;
  }

  .mobile-only a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .mobile-only i {
    width: 18px;
    height: 18px;
  }

  .liquid-btn {
    background: rgba(
      32,
      109,
      114,
      0.03
    ) !important; /* Reduced more opacity for background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(32, 109, 114, 0.08) !important;
    padding: 0.8rem 1.5rem !important; /* Increased padding as 'cellspadding' requested */
    border-radius: 12px;
    color: var(--primary-color) !important;
    opacity: 0.35; /* Reduced more opacity as requested */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.8rem;
    font-weight: 500;
  }

  .liquid-btn:hover {
    opacity: 1;
    background: rgba(32, 109, 114, 0.1) !important;
    border-color: rgba(32, 109, 114, 0.3) !important;
    transform: translateY(-2px);
    text-decoration: none !important;
  }

  .sign-in-btn {
    display: none !important;
  }

  /* sign-up-btn now uses global premium styles for better mobile visibility */

  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .hero-badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .text-left-1 {
    font-size: 2.5rem;
    left: 10%;
  }


  .text-left-2 {
    font-size: 4rem;
    left: 4%;
  }

  .text-left-3 {
    font-size: 2.5rem;
    left: 8%;
  }

  .text-left-4 {
    font-size: 5rem;
    left: 2%;
  }

  .text-left-5 {
    font-size: 3.5rem;
    left: 6%;
  }

  .text-left-6 {
    font-size: 1.2rem;
    left: 16%;
  }

  .text-left-7 {
    font-size: 1.5rem;
    left: 14%;
  }

  .text-left-8 {
    font-size: 1.4rem;
    left: 1.5%;
  }

  .text-left-9 {
    font-size: 1rem;
    left: 11%;
  }

  .text-left-10 {
    font-size: 1.7rem;
    left: 16%;
  }

  .text-left-11 {
    font-size: 1.2rem;
    left: 4%;
  }

  .text-left-12 {
    font-size: 1.1rem;
    left: 9%;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 5%;
  }
  .header-actions span {
    display: none;
  }
  .sign-up-btn span {
    display: block !important; /* Ensure Signup text stays visible */
  }
  .header-actions {
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
  }
  .hero {
    flex-direction: column-reverse; /* Moves photo to the top */
    height: auto;
    padding-top: 0;
    margin-top: -20px; /* Pulls hero section closer to header */
  }
  .hero-content {
    width: 100%;
    padding: 30px 5% 50px; /* Reduced top padding */
    text-align: center;
    margin-bottom: 0;
  }
  .hero-content p {
    margin: 0 auto 2.5rem;
  }
  .hero-btns {
    justify-content: center;
  }
  .hero-badge {
    font-size: 1rem;
    padding: 0.7rem 1.4rem;
  }
  .hero-visual {
    width: 100%;
    height: 400px; /* Reduced further for mobile devices */
    background-position: center top;
  }
  .hero-visual::before {
    background: linear-gradient(to top, var(--hero-bg) 0%, transparent 100%);
  }

  .text-left-1 {
    font-size: 2rem;
    top: 8%;
    left: 5%;
    writing-mode: vertical-rl;
  }

  .text-left-2 {
    font-size: 2.5rem;
    top: 20%;
    left: 60%;
    writing-mode: horizontal-tb;
  }

  .text-left-3 {
    font-size: 1.5rem;
    top: 40%;
    left: 10%;
    writing-mode: vertical-rl;
  }

  .text-left-4 {
    font-size: 3rem;
    top: 55%;
    left: 50%;
    writing-mode: horizontal-tb;
  }

  .text-left-5 {
    font-size: 2rem;
    top: 75%;
    left: 15%;
    writing-mode: vertical-rl;
  }

  .text-left-6 {
    font-size: 1rem;
    top: 10%;
    left: 70%;
    writing-mode: horizontal-tb;
  }

  .text-left-7 {
    font-size: 1.3rem;
    top: 30%;
    left: 65%;
    writing-mode: vertical-rl;
  }

  .text-left-8 {
    font-size: 1.2rem;
    top: 45%;
    left: 5%;
    writing-mode: horizontal-tb;
  }

  .text-left-9 {
    font-size: 0.9rem;
    top: 60%;
    left: 70%;
    writing-mode: vertical-rl;
  }

  .text-left-10 {
    font-size: 1.5rem;
    top: 70%;
    left: 60%;
    writing-mode: horizontal-tb;
  }

  .text-left-11 {
    font-size: 1.1rem;
    top: 85%;
    left: 8%;
    writing-mode: vertical-rl;
  }

  .text-left-12 {
    font-size: 0.9rem;
    top: 25%;
    left: 20%;
    writing-mode: horizontal-tb;
  }
}

/* --- Ultra Small Mobile Refinement --- */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
    padding: 0 10px;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  .hero-visual {
    height: 320px;
  }
  
  .text-background-left {
    opacity: 0.15 !important; /* Make background text even more subtle on tiny screens */
  }
}


/* --- Footer --- */
footer {
  background: #f8fafc;
  color: #64748b;
  padding: 8px 5px;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  border-top: 1px solid #e2e8f0;
}

footer p {
  margin: 0;
}

/* --- Home Header Profile Dropdown --- */
.home-profile-dropdown {
  position: relative;
}

.home-profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 5px;
  transition: background 0.2s;
}

.home-profile-trigger:hover {
  background: rgba(32, 109, 114, 0.08);
}

.home-user-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-right: 0.5rem;
  display: none; /* Hidden on mobile */
}

@media (min-width: 768px) {
  .home-user-name {
    display: inline-block;
  }
}

.home-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22747f, #2a9099);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  overflow: hidden;
  border: 2px solid var(--primary-color);
  flex-shrink: 0;
}

.home-avatar-caret {
  width: 16px;
  height: 16px;
  color: #555;
  transition: transform 0.2s;
  display: none; /* hidden on mobile */
}

@media (min-width: 768px) {
  .home-avatar-caret {
    display: block;
  }
}

/* Rotate caret when open */
.home-profile-dropdown .dropdown-menu.is-active ~ * .home-avatar-caret,
#profileTrigger[aria-expanded="true"] .home-avatar-caret {
  transform: rotate(180deg);
}

.home-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 200px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 2000;
}

.home-dropdown-menu.is-active {
  display: block;
  animation: homeDropFade 0.15s ease;
}

@keyframes homeDropFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-dropdown-inner {
  padding: 6px 0;
}

.home-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 8px 14px;
  font-size: 0.82rem !important;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font-main);
  line-height: 1.4;
}

.home-dropdown-item:hover {
  background: #f3f4f6;
  color: var(--primary-color);
}

.home-dropdown-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #6b7280;
}

.home-dropdown-item:hover .home-dropdown-icon {
  color: var(--primary-color);
}

.home-dropdown-divider {
  margin: 4px 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

.home-dropdown-danger {
  color: #dc2626;
}

.home-dropdown-danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.home-dropdown-danger .home-dropdown-icon {
  color: #dc2626;
}

/* Large Hero Headings */
.hero-title-large {
  font-size: 5.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  color: #1a1a1a;
}

@media (max-width: 1024px) {
  .hero-title-large {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  .hero-title-large {
    font-size: 3rem;
    letter-spacing: -1px;
  }
}

/* Large Hero Paragraphs */
.hero-text-large {
  font-size: 1.4rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: #5c6770;
}

@media (max-width: 768px) {
  .hero-text-large {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
}

/* ============================================================
   MODERN SCROLL REVEAL SYSTEM
   ============================================================ */
.reveal-on-scroll {
  opacity: 0;
  will-change: opacity, transform, filter;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reveal Variations */
.reveal-up {
  transform: translateY(50px);
}
.reveal-down {
  transform: translateY(-50px);
}
.reveal-left {
  transform: translateX(-50px);
}
.reveal-right {
  transform: translateX(50px);
}
.reveal-zoom {
  transform: scale(0.9);
}
.reveal-blur {
  filter: blur(10px);
}

/* Threshold classes */
.reveal-on-scroll.revealed {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
  filter: blur(0) !important;
}

/* Staggered Delays */
.delay-100 {
  transition-delay: 100ms;
}
.delay-200 {
  transition-delay: 200ms;
}
.delay-300 {
  transition-delay: 300ms;
}
.delay-400 {
  transition-delay: 400ms;
}
.delay-500 {
  transition-delay: 500ms;
}


/* ============================================================
   DARK MODE – Home Page Specific Overrides
   Applied when data-theme="dark" on <html>
   ============================================================ */

/* Smooth global transition */
body, header, nav, section, footer, .contact-card, .btn-secondary {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Hero */
[data-theme="dark"] .hero {
  background: var(--hero-bg);
  background-image:
    radial-gradient(at 0% 0%,   rgba(42,144,153,0.06) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(42,144,153,0.06) 0px, transparent 50%);
}
[data-theme="dark"] .hero-content h1 { color: #e6edf3; }
[data-theme="dark"] .hero-content p  { color: #8b949e; }
[data-theme="dark"] .text-background-left { color: rgba(77,187,198,0.15); }

/* Hero badge */
[data-theme="dark"] .hero-badge {
  background: rgba(42,144,153,0.15);
  color: #4dbbc6;
}

/* Buttons */
[data-theme="dark"] .btn-secondary {
  background: #1c2128;
  color: #e6edf3;
  border-color: #30363d;
}
[data-theme="dark"] .btn-secondary:hover {
  border-color: #4dbbc6;
  background: #21262d;
}

/* Header / Nav */
[data-theme="dark"] header {
  background: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
[data-theme="dark"] nav {
  background: var(--header-bg);
}
[data-theme="dark"] nav ul li a { color: var(--nav-link-color); }
[data-theme="dark"] nav ul li a:hover,
[data-theme="dark"] nav ul li a.active { color: var(--primary-color); }

/* Contact cards */
[data-theme="dark"] .contact-card {
  background: #161b22;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border: 1px solid #30363d;
}
[data-theme="dark"] .contact-card a { color: #4dbbc6; }

/* Footer */
[data-theme="dark"] footer,
[data-theme="dark"] .footer-section,
[data-theme="dark"] .site-footer {
  background: var(--footer-bg) !important;
  color: var(--footer-text) !important;
  border-color: #30363d !important;
}
[data-theme="dark"] .footer-section a,
[data-theme="dark"] .site-footer a  { color: #8b949e; }
[data-theme="dark"] .footer-section a:hover,
[data-theme="dark"] .site-footer a:hover { color: #4dbbc6; }

/* Profile dropdown on home page */
[data-theme="dark"] .home-dropdown-menu {
  background: #161b22 !important;
  border: 1px solid #30363d !important;
}
[data-theme="dark"] .home-dropdown-item { color: #e6edf3 !important; }
[data-theme="dark"] .home-dropdown-item:hover { background: #1c2128 !important; }
[data-theme="dark"] .home-dropdown-divider { border-color: #30363d !important; }
[data-theme="dark"] .home-user-name { color: #e6edf3; }

/* ============================================================
   PUREICT TOGGLE SWITCH STYLES (home.css copy for home page)
   ============================================================ */
/* --- Mobile Responsive Theme Switcher Enhancement --- */
.nav-theme-li {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .nav-theme-li {
  border-top-color: rgba(255,255,255,0.05);
}

.theme-label-group {
  display: flex;
  flex-direction: column;
}

.theme-label-group span {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-color);
}

.theme-label-group small {
  font-size: 0.75rem;
  color: #8b949e;
}

/* --- Theme Toggle Visibility Controls --- */
.desktop-theme-toggle {
  display: inline-flex !important;
}
.mobile-theme-toggle {
  display: flex !important;
}

@media (max-width: 768px) {
  .desktop-theme-toggle {
    display: none !important;
  }
}
@media (min-width: 769px) {
  .mobile-theme-toggle {
    display: none !important;
  }
}

.pureict-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  margin: 0;
  padding: 2px;
  vertical-align: middle;
}
.pureict-switch .pureict-theme-check {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.pureict-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 54px;
  height: 28px;
  border-radius: 99px;
  background: #e2e8f0;
  border: 1.5px solid #cbd5e1;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pureict-theme-check:checked + .pureict-track {
  background: #0d1117;
  border-color: #2a9099;
  box-shadow: 0 0 10px rgba(42,144,153,0.1);
}
.pureict-thumb {
  position: absolute;
  left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), background 0.3s ease;
  font-size: 11px; line-height: 1;
}
.pureict-theme-check:checked + .pureict-track .pureict-thumb {
  transform: translateX(26px);
  background: #21262d;
}
/* === SIMPLE THEME TOGGLE BUTTON === */
.theme-toggle-btn {
  background: rgba(32, 109, 114, 0.05);
  border: 1px solid rgba(32, 109, 114, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 12px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--primary-color);
  padding: 0;
}

.theme-toggle-btn:hover {
  background: rgba(32, 109, 114, 0.15);
  border-color: var(--primary-color);
}

.theme-toggle-btn .pureict-theme-icon {
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
}


/* === Fixed Footer for Home Page === */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--header-bg); /* Use header bg for consistent feel */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: background 0.4s ease, border-color 0.4s ease;
}

[data-theme="dark"] footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ensure hero content doesn't get covered by fixed footer on mobile */
@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: calc(100vh - 80px);
    padding-bottom: 60px; /* Space for fixed footer */
  }
  
  footer {
    padding: 8px 0;
  }
}
