/* style.css - Shared styles for Dr. Rahul Murada Site */
@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');


:root {
  --lavender: #E6E6FA;
  --lavender-glass: rgba(230,230,250,0.85);
  --indigo: #4B0082;
  --indigo-light: #7c3aed;
  --indigo-gradient: linear-gradient(135deg, #4B0082 0%, #7c3aed 50%, #9f7aea 100%);
  --indigo-hover: linear-gradient(135deg, #7c3aed 0%, #9f7aea 50%, #b794f6 100%);
  --text: #222;
  --footer-bg: #f5f5fa;
  --shadow: 0 8px 32px 0 rgba(75,0,130,0.18);
  --border-glass: 1.5px solid rgba(75,0,130,0.13);
  --glow: 0 0 20px rgba(75, 0, 130, 0.15);
  --animated-bg: linear-gradient(-45deg, #E6E6FA, #f8f9ff, #e8e9f5, #ddd6fe);
}

html {
  box-sizing: border-box;
  font-size: clamp(14px, 2.5vw, 16px);
  overflow-x: hidden;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
  background: var(--animated-bg);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-attachment: fixed;
  transition: all 0.5s ease;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body.menu-open {
  height: 100vh;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(75, 0, 130, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(159, 122, 234, 0.05) 0%, transparent 50%);
  z-index: -2;
  pointer-events: none;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(75, 0, 130, 0.12), 
              0 2px 15px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(75, 0, 130, 0.08);
  transition: all 0.3s ease;
  overflow: visible;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(0.5rem, 2vw, 1rem) clamp(1rem, 4vw, 2rem);
  min-height: clamp(60px, 10vw, 72px);
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 0.8rem);
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 800;
  color: var(--indigo);
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}
.navbar-logo:hover {
  color: var(--indigo-light);
  transform: translateY(-1px);
}
.logo-img {
  height: clamp(40px, 8vw, 60px);
  width: clamp(40px, 8vw, 60px);
  min-width: clamp(40px, 8vw, 60px);
  min-height: clamp(40px, 8vw, 60px);
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(75, 0, 130, 0.3), 
              0 4px 12px rgba(124, 58, 237, 0.2);
  background: none;
  object-fit: cover;
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 8px rgba(75, 0, 130, 0.15));
  position: relative;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(1deg); }
}

.logo-img:hover {
  box-shadow: 0 15px 40px rgba(75, 0, 130, 0.4), 
              0 8px 20px rgba(124, 58, 237, 0.3);
  transform: scale(1.05) translateY(-2px) rotate(2deg);
  filter: drop-shadow(0 6px 12px rgba(75, 0, 130, 0.2)) brightness(1.05);
}
.large-logo {
  height: clamp(45px, 9vw, 65px) !important;
  width: clamp(45px, 9vw, 65px) !important;
  min-width: clamp(45px, 9vw, 65px) !important;
  min-height: clamp(45px, 9vw, 65px) !important;
}
.logo-text {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 3.5vw, 1.4rem);
  letter-spacing: 0.5px;
  background: var(--indigo-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientText 4s ease infinite;
  transition: all 0.3s ease;
}

@keyframes gradientText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.navbar-logo:hover .logo-text {
  transform: scale(1.02);
  text-shadow: 0 0 10px rgba(75, 0, 130, 0.3);
}

.navbar-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}
.navbar-links a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  padding: clamp(0.5rem, 2vw, 0.8rem) clamp(0.8rem, 3vw, 1.5rem);
  border-radius: 50px;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.navbar-links a:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--indigo-gradient);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
.navbar-links a:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  z-index: 1;
}
.navbar-links a:hover:before,
.navbar-links a.active:before {
  left: 0;
}
.navbar-links a:hover:after {
  width: 100px;
  height: 100px;
}
.navbar-links a:hover,
.navbar-links a.active {
  color: #fff;
  box-shadow: 0 8px 25px rgba(75, 0, 130, 0.3), 
              0 4px 15px rgba(124, 58, 237, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}
.navbar-links a::after {
  display: none;
}
/* HAMBURGER MENU STYLES */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(75, 0, 130, 0.7);
    transform: translateY(-50%) scale(1);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(75, 0, 130, 0);
    transform: translateY(-50%) scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(75, 0, 130, 0);
    transform: translateY(-50%) scale(1);
  }
}

.hamburger {
  display: none;
  width: 80px;
  height: 80px;
  cursor: pointer;
  background-color: var(--indigo);
  border: 4px solid white;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10000;
  position: fixed;
  top: 50%;
  right: 25px;
  transform: translateY(-50%);
  box-shadow: 0 0 30px rgba(75, 0, 130, 0.7);
  animation: pulse 2s infinite;
}

/* Default hamburger lines - always visible when not active */
.hamburger:not(.active) {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
}

.hamburger:hover {
  background-color: var(--indigo-light);
  transform: translateY(-50%) scale(1.1);
}

.hamburger span {
  display: none;
}

/* Active state - X icon */
.hamburger.active {
  background-color: white;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(75, 0, 130, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='4' d='M6 6l18 18M24 6L6 24'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
}

.hamburger.active span {
  display: none;
}

@media (max-width: 800px) {
  .navbar {
    padding: clamp(0.5rem, 2vw, 0.8rem) clamp(0.8rem, 3vw, 1rem);
    position: static;
  }
  
  .hamburger {
    display: flex;
  }
  
  .navbar-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-light) 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 9999;
    padding: 2rem;
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
  }
  
  .navbar-links.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  
  /* No separate close button - using hamburger as toggle */
  
  /* Mobile logo styling */
  .mobile-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    animation: fadeInDown 0.5s ease 0.2s forwards;
  }
  
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .mobile-logo-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.5);
    background: white;
  }
  
  .mobile-logo-text {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  
  /* Mobile navigation links */
  .navbar-links a {
    color: white;
    text-decoration: none;
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-weight: 700;
    padding: clamp(0.8rem, 3vw, 1.2rem) clamp(2rem, 5vw, 3rem);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
    min-width: 250px;
    text-align: center;
    display: block;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideInRight 0.5s ease forwards;
    animation-delay: calc(0.1s * var(--index, 0));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(-50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .navbar-links a:nth-child(2) {
    --index: 1;
  }
  
  .navbar-links a:nth-child(3) {
    --index: 2;
  }
  
  .navbar-links a:nth-child(4) {
    --index: 3;
  }
  
  .navbar-links a:nth-child(5) {
    --index: 4;
  }
  
  .navbar-links a:hover,
  .navbar-links a:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }
}

/* Ensure mobile logo is NEVER visible on desktop */
@media (min-width: 801px) {
  .mobile-logo {
    display: none !important;
  }
  
  .hamburger {
    display: none !important;
  }

  main {
    position: relative;
    z-index: 1;
  }
}

.footer-btn {
  display: inline-block;
  background: var(--indigo-gradient);
  color: #fff;
  border: none;
  border-radius: clamp(18px, 4vw, 22px);
  padding: clamp(0.4rem, 2vw, 0.5rem) clamp(1rem, 3vw, 1.2rem);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 600;
  margin: clamp(0.1rem, 0.5vw, 0.2rem) 0;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(75, 0, 130, 0.2), 0 2px 8px rgba(124, 58, 237, 0.15);
  letter-spacing: 0.5px;
  white-space: nowrap;
  max-width: 90vw;
}
.footer-btn:hover {
  background: var(--indigo-light);
  color: #fff;
  box-shadow: 0 8px 25px rgba(75, 0, 130, 0.3), 0 4px 15px rgba(124, 58, 237, 0.25);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .navbar {
    padding: clamp(0.4rem, 1.5vw, 0.6rem) clamp(0.6rem, 2.5vw, 0.8rem);
  }
  main {
    padding: clamp(1rem, 3vw, 1.5rem);
    border-radius: clamp(12px, 2.5vw, 16px);
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-sizing: border-box;
    display: block;
    position: relative;
    margin: 16px auto;
    transform: none;
    z-index: 1;
    left: 0 !important;
    right: 0 !important;
  }
  
  .hamburger {
    width: 70px;
    height: 70px;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
  }
  
  .footer-inline {
    flex-direction: column;
    gap: clamp(0.3rem, 1vw, 0.5rem);
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    text-align: center;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
  }
  .footer-link {
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    padding: clamp(0.2rem, 0.8vw, 0.4rem);
  }
  
  h1 {
    font-size: clamp(1.8rem, 6vw, 2.2rem) !important;
  }
  
  h2 {
    font-size: clamp(1.3rem, 4.5vw, 1.6rem) !important;
  }
  
  h3 {
    font-size: clamp(1.1rem, 3.5vw, 1.3rem) !important;
  }
  
  p {
    font-size: clamp(0.95rem, 3vw, 1.05rem) !important;
    line-height: 1.6 !important;
  }
}

@media (max-width: 360px) {
  .navbar-logo {
    gap: clamp(0.4rem, 1.5vw, 0.6rem);
  }
  .hamburger {
    width: clamp(24px, 5vw, 28px) !important;
    height: clamp(24px, 5vw, 28px) !important;
  }
  .hamburger span {
    width: clamp(16px, 4vw, 20px) !important;
    height: clamp(2px, 0.5vw, 2.5px) !important;
    margin: clamp(2px, 0.6vw, 3px) 0 !important;
  }
}

h1, h2, h3 {
  color: var(--indigo);
  margin-top: 0;
  letter-spacing: 0.5px;
}
h1 {
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 0.7rem;
  text-shadow: 0 4px 15px rgba(75, 0, 130, 0.1), 0 2px 8px rgba(124, 58, 237, 0.08);
  line-height: 1.2;
}
h2 {
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}
h3 {
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  font-weight: 600;
  line-height: 1.4;
}

main {
  flex: 1 0 auto;
  max-width: 900px;
  width: min(900px, 86vw);
  margin: clamp(1rem, 3vw, 2rem) auto clamp(2rem, 4vw, 3rem) auto;
  padding: clamp(1.2rem, 3vw, 2.5rem) clamp(0.8rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.95);
  border-radius: clamp(16px, 3vw, 24px);
  box-shadow: 0 15px 60px rgba(75, 0, 130, 0.15), 
              0 8px 30px rgba(0, 0, 0, 0.08),
              0 4px 15px rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
}

main:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(3px, 1vw, 4px);
  background: var(--indigo-gradient);
  border-radius: clamp(16px, 3vw, 24px) clamp(16px, 3vw, 24px) 0 0;
  box-shadow: 0 2px 8px rgba(75, 0, 130, 0.3);
}
p, li {
  color: var(--text);
  font-size: clamp(1rem, 2.5vw, 1.08rem);
  line-height: 1.7;
  margin-bottom: 1rem;
}
@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(40px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}
h1, h2, h3 {
  color: var(--indigo);
  margin-top: 0;
}
h1 {
  font-size: 2.1rem;
  font-weight: 700;
}
h2 {
  font-size: 1.4rem;
  font-weight: 600;
}
p, li {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.7;
}

footer {
  background: var(--lavender-glass);
  color: var(--text);
  text-align: center;
  padding: 1.2rem 0 0.7rem 0;
  margin-top: auto;
  box-shadow: 0 -2px 8px rgba(75,0,130,0.04);
  position: sticky;
  bottom: 0;
  width: 100%;
  border-top: var(--border-glass);
  backdrop-filter: blur(10px);
}
.footer-main {
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}
.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}
.footer-btn {
  display: inline-block;
  background: var(--indigo-gradient);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  margin: 0.2rem 0;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(75, 0, 130, 0.2), 0 2px 8px rgba(124, 58, 237, 0.15);
  letter-spacing: 0.5px;
}
.footer-btn:hover {
  background: var(--indigo-light);
  color: #fff;
  box-shadow: 0 8px 25px rgba(75, 0, 130, 0.3), 0 4px 15px rgba(124, 58, 237, 0.25);
  transform: translateY(-2px);
}
.footer-contact {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}
.footer-address {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}
.footer-maps a {
  color: var(--indigo);
  text-decoration: underline;
  font-size: 0.98rem;
}
@media (max-width: 600px) {
  main {
    padding: 0.7rem;
    margin: 1.2rem 0.2rem 1.2rem 0.2rem;
  }
  .footer-buttons {
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
  }
  .footer-btn {
    width: 90vw;
    max-width: 320px;
    text-align: center;
  }
  .navbar-logo .logo-img {
    height: 28px !important;
    width: 28px !important;
  }
  .navbar-logo .logo-text {
    font-size: 1rem;
  }
}
.footer-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.3rem, 1.5vw, 0.5rem);
  font-size: clamp(0.9rem, 2.3vw, 1.01rem);
  flex-direction: row;
  line-height: 1.4;
}
.footer-link {
  color: var(--indigo);
  text-decoration: underline;
  background: none;
  border: none;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.3vw, 1.01rem);
  padding: 0 clamp(0.1rem, 0.5vw, 0.2rem);
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}
.footer-link:hover {
  color: var(--indigo-light);
  text-decoration: underline;
}
footer {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  text-align: center;
  padding: clamp(1rem, 3vw, 1.5rem) 0 clamp(0.8rem, 2vw, 1rem) 0;
  margin-top: auto;
  box-shadow: 0 -8px 30px rgba(75, 0, 130, 0.12), 0 -4px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  bottom: 0;
  width: 100%;
  border-top: 1px solid rgba(75, 0, 130, 0.08);
  backdrop-filter: blur(20px);
}

/* Advanced Particle Effect */
@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle-container::before,
.particle-container::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.6) 0%, transparent 60%);
  border-radius: 50%;
  animation: particleFloat 20s linear infinite;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

.particle-container::before {
  left: 15%;
  animation-delay: 0s;
}

.particle-container::after {
  left: 85%;
  animation-delay: -10s;
}

/* Advanced Text Effects */
@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 5px rgba(124, 58, 237, 0.3), 0 0 10px rgba(124, 58, 237, 0.2); }
  50% { text-shadow: 0 0 15px rgba(124, 58, 237, 0.6), 0 0 25px rgba(124, 58, 237, 0.4), 0 0 35px rgba(124, 58, 237, 0.2); }
}

.glow-text {
  animation: textGlow 4s ease-in-out infinite;
}

/* Advanced 3D Hover Effects */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-3d:hover {
  transform: perspective(1000px) rotateY(5deg) rotateX(5deg) translateZ(20px);
  box-shadow: 
    0 20px 40px rgba(75, 0, 130, 0.25),
    0 10px 20px rgba(124, 58, 237, 0.15),
    0 0 30px rgba(147, 51, 234, 0.1);
}

/* Advanced Morphing Buttons */
.morph-button {
  position: relative;
  overflow: hidden;
  transform-origin: center;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.morph-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
  z-index: 0;
}

.morph-button:hover::before {
  width: 300px;
  height: 300px;
}

.morph-button:hover {
  transform: scale(1.02) translateY(-2px);
  filter: brightness(1.05) saturate(1.1);
}

/* Floating Animation for Cards */
@keyframes cardFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(0.5deg); }
  50% { transform: translateY(-8px) rotate(0deg); }
  75% { transform: translateY(-3px) rotate(-0.5deg); }
}

.floating-card {
  animation: cardFloat 6s ease-in-out infinite;
  animation-delay: calc(var(--delay, 0) * 1s);
}

/* Advanced Border Gradients */
.gradient-border {
  position: relative;
  background: linear-gradient(white, white) padding-box,
              var(--indigo-gradient) border-box;
  border: 2px solid transparent;
}

.gradient-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--indigo-gradient);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.gradient-border:hover::before {
  opacity: 0.1;
}

/* MOBILE NAVIGATION STYLES - CLEANED UP */

/* Unified content centering safeguard (applies up to 900px) */
@media (max-width: 900px) {
  main {
    width: 92% !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    left: 0;
    right: 0;
    transform: none;
  }
}

/* Extra-small devices tightening */
@media (max-width: 400px) {
  main {
    width: 94% !important;
    max-width: 94% !important;
    padding: 0.9rem 0.85rem !important;
  }
  .hamburger {
    width: 60px !important;
    height: 60px !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
  }
}
