/* Theme files are loaded directly in HTML for better performance */

/* Test to make sure light theme works */
[data-theme="light"] body {
  background: var(--primary-bg) !important;
  color: var(--text) !important;
}

/* Ensure all text elements use theme variables */
* {
  color: inherit;
}

h1, h2, h3, h4, h5, h6, p, span, div, a, li, td, th {
  color: var(--text);
}

/* Inline style replacements */
.calendar-fallback {
  text-align: center;
  margin-top: 0.75rem;
}

.form-status {
  margin-top: 0.75rem;
}

.hero-subtitle {
  margin-bottom: 0.75rem;
  text-align: center;
}

.mission-title,
.values-title {
  margin-top: 1.25rem;
}

/* Theme Selector Styles */
.theme-selector {
  position: relative;
  display: inline-block;
}

.theme-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--glass-b);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  min-width: 200px;
  box-shadow: 0 8px 32px var(--shadow);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.theme-menu-header h4 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.theme-menu-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-menu-close:hover {
  color: var(--text);
}

.theme-group {
  margin-bottom: 1rem;
}

.theme-group:last-child {
  margin-bottom: 0;
}

.theme-group h5 {
  margin: 0 0 0.5rem 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem;
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}

.theme-option:hover {
  background: var(--glass);
  border-color: var(--border);
}

.theme-option.active {
  background: var(--glass-b);
  border-color: var(--accent);
}

.theme-preview {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.theme-preview.elegant {
  background: #1a1a1a;
}

.theme-preview.warm {
  background: #1c1b1a;
}

.theme-preview.cool {
  background: #0f1419;
}

.theme-preview.neutral {
  background: #181818;
}

.theme-preview.harsh {
  background: #0a0a0a;
}

.theme-preview.light {
  background: #ffffff;
}

.theme-preview.light-elegant {
  background: #fefefe;
}

.theme-preview.light-warm {
  background: #fefdfb;
}

.theme-preview.light-cool {
  background: #fafbfc;
}

.theme-preview.light-neutral {
  background: #ffffff;
}

.theme-preview.light-minimal {
  background: #ffffff;
}

.theme-name {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

/* Mobile theme selector */
@media (max-width: 768px) {
  .theme-menu {
    right: -1rem;
    min-width: 180px;
  }
}

*{
  box-sizing:border-box
}

html,body{
  margin:0;
  padding:0;
  background:var(--primary-bg);
  color:var(--text);
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.6
}

body{
  padding-top:0;
}

.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 1.25rem
}

/* Mobile-first responsive container */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
}

/* Old header container styles removed - using new .header system */


header{
  margin:0;
}

/* Old header container scrolled styles removed - using new .header system */

nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1rem 2rem;
  min-height:70px;
  position:relative;
}

.logo{
  display:flex;
  align-items:center;
  font-weight:700;
  text-decoration:none;
  color:var(--text);
  gap:0.5rem;
  font-size:1.4rem;
  letter-spacing:-0.02em;
  transition:all 0.3s ease;
  flex-shrink:0;
}

.logo:hover {
  transform:scale(1.05);
}

.logo-mark{
  font-size:28px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2),var(--accent-3));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 12px var(--accent-glow));
  transition:all 0.3s ease;
}

.logo:hover .logo-mark {
  filter:drop-shadow(0 0 16px var(--accent-glow-strong));
}

.nav{
  display:flex;
  gap:2.5rem;
  align-items:center;
  flex-shrink:0;
}

.nav a{
  color:var(--muted);
  text-decoration:none;
  font-weight:500;
  font-size:1rem;
  transition:all 0.3s ease;
  position:relative;
  padding:0.75rem 1.25rem;
  border-radius:12px;
  background:transparent;
}

.nav a::before {
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  border-radius:12px;
  opacity:0;
  transition:opacity 0.3s ease;
  z-index:-1;
}

.nav a:hover {
  color:var(--text);
  transform:translateY(-2px);
  background:var(--glass);
}

.nav a:hover::before {
  opacity:0.1;
}

.nav-link{
  display:flex;
  align-items:center;
  gap:0.5rem;
  padding:0.75rem 1rem;
}

.nav-icon{
  width:18px;
  height:18px;
  transition:all 0.3s ease;
  opacity:0.7;
}

.nav-link:hover .nav-icon{
  opacity:1;
  transform:scale(1.1);
  filter:drop-shadow(0 0 8px var(--accent-shadow-strong));
}

.nav-link span{
  font-size:0.9rem;
  font-weight:500;
}


/* Mobile navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.mobile-menu-toggle:hover {
  color: var(--accent);
  background: var(--white-overlay);
  transform: scale(1.05);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  /* Old header container mobile styles removed - using new .header system */
  
  body {
    padding-top: 0;
  }
  
  /* Old header container position styles removed - using new .header system */
  
  header {
    position: relative;
  }
  
  nav {
    padding: 0.75rem 1rem;
    min-height: 60px;
    position: relative;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .nav {
    position: absolute;
    top: 100%;
    left: 0.5rem;
    right: 0.5rem;
    background: var(--primary-bg);
    backdrop-filter: blur(24px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--white-overlay-border);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 32px var(--shadow);
    z-index: 999;
  }
  
  .nav-link {
    padding: 1rem 1.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    -webkit-tap-highlight-color: transparent;
  }
  
  .nav-icon {
    width: 16px;
    height: 16px;
  }
  
  .nav-link span {
    font-size: 0.85rem;
  }
  
  .logo-mark {
    font-size: 24px;
  }
  
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    top: 100%;
  }
  
  .nav a {
    padding: 1rem 1.25rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--white-overlay);
    border-radius: 0;
  }
  
  .nav a:last-child {
    border-bottom: none;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: var(--white-overlay-strong);
    border: 1px solid var(--white-overlay-border-strong);
  }
}

.hero{
  min-height:90vh;
  display:grid;
  place-items:center;
  background:radial-gradient(60% 60% at 20% 30%, rgba(99,102,241,.10), transparent 60%),radial-gradient(60% 60% at 80% 10%, rgba(139,92,246,.12), transparent 60%),linear-gradient(180deg,var(--primary-bg),var(--secondary-bg));
  padding: 2rem 0;
}

.hero h1{
  font-size:clamp(2.5rem,8vw,5.5rem);
  line-height:1.05;
  margin:0 0 1rem;
  background:linear-gradient(135deg,var(--text),var(--muted));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-align: center;
}

/* Mobile hero adjustments */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding: 1.5rem 0;
  }
  
  .hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 70vh;
    padding: 1rem 0;
  }
  
  .hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.1;
  }
}

.gradient{
  background:linear-gradient(135deg,var(--accent),var(--accent-2),var(--accent-3));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent
}

.lead{
  color:var(--muted);
  font-size:1.125rem;
  max-width:720px;
  text-align: center;
  margin: 0 auto;
}

.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:.8rem;
  margin-top:1.5rem;
  justify-content: center;
}

/* Mobile lead and CTA adjustments */
@media (max-width: 768px) {
  .lead {
    font-size: 1rem;
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .cta-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .lead {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .cta-row {
    width: 100%;
    padding: 0 1rem;
  }
}

.btn{
  border-radius:999px;
  padding:.9rem 1.25rem;
  font-weight:700;
  border:1px solid var(--glass-b);
  background:var(--glass);
  color:var(--text);
  text-decoration:none;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
  min-width: 140px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-shadow);
}

.btn.primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  border-radius: 6px;
  padding: 1rem 2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px var(--accent-shadow);
}

.btn.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--white-overlay-strong), transparent);
  transition: left 0.5s ease;
}

.btn.primary:hover::before {
  left: 100%;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-shadow-strong);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

/* Modern Secondary Buttons (Learn More, Open Booking) */
.btn:not(.primary) {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:not(.primary)::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--white-overlay), transparent);
  transition: left 0.5s ease;
}

.btn:not(.primary):hover::before {
  left: 100%;
}

.btn:not(.primary):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow);
  background: var(--glass-b);
  border-color: var(--accent);
}

/* Mobile button adjustments */
@media (max-width: 480px) {
  .btn {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }
}

section{
  padding:5rem 0
}

h2.section-title{
  font-size:2.25rem;
  margin:0 0 2rem;
  background:linear-gradient(135deg,var(--text),var(--muted));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-align:center;
  line-height: 1.2;
}

/* Mobile section adjustments */
@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
  
  h2.section-title {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  section {
    padding: 2rem 0;
  }
  
  h2.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.25rem
}

.card{
  background:var(--glass);
  border:1px solid var(--glass-b);
  border-radius:20px;
  padding:1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow);
}

.card h3{
  margin:.25rem 0 .5rem;
  line-height: 1.3;
}

/* Mobile grid and card adjustments */
@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .card {
    padding: 1.25rem;
  }
  
  .card h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .grid-3 {
    gap: 0.75rem;
  }
  
  .card {
    padding: 1rem;
    border-radius: 16px;
  }
  
  .card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }
}

.muted{
  color:var(--muted)
}

.suites .card h3{
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent
}

.suites .card h3 .icon {
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-text-fill-color: initial !important;
  background: none !important;
}

ul.clean{
  margin:0;
  padding-left:1.1rem
}

ul.clean li{
  margin:.35rem 0
}

.icon{
  font-size:1.6rem;
  margin-right:.4rem;
  display: inline-block;
  transition: transform 0.3s ease;
  opacity: 1;
}

.icon.animate-icon {
  animation: iconPulse 2s ease-in-out infinite;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Icon animations when parent card is animated */
.animate-on-scroll.animate-visible .icon {
  animation: iconPulse 1.5s ease-in-out 0.5s;
}

/* Enhanced visual effects for animated sections */
.suites .card {
  transition: all 0.3s ease;
}

.suites .card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px var(--shadow);
}

.why .card {
  transition: all 0.3s ease;
}

.why .card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px var(--shadow);
}

.about .card {
  transition: all 0.3s ease;
}

.about .card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px var(--shadow);
}

.two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem
}

.contact{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.5rem
}

/* Mobile two-column and contact adjustments */
@media (max-width: 768px) {
  .two {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .two {
    gap: 1rem;
  }
  
  .contact {
    gap: 1rem;
  }
}

iframe{
  border:0;
  border-radius:16px;
  min-height:740px;
  width:100%;
  max-width: 100%;
}

/* Mobile iframe adjustments */
@media (max-width: 768px) {
  iframe {
    min-height: 600px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  iframe {
    min-height: 500px;
    border-radius: 8px;
  }
}

footer{
  border-top:1px solid var(--glass-b);
  padding:2.5rem 0;
  text-align:center;
  color:var(--muted)
}

/* Modern form styling */
form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

form input,
form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--glass-b);
  border-radius: 12px;
  background: var(--glass);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

form input::placeholder,
form textarea::placeholder {
  color: var(--muted);
  font-weight: 400;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-shadow);
  background: var(--white-overlay-light);
  transform: translateY(-2px);
}

form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Checkbox styling */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  margin-top: 0.1rem;
  flex-shrink: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 2px solid var(--border);
  border-radius: 4px;
  background-color: transparent;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-group input[type="checkbox"]:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

.checkbox-group input[type="checkbox"]:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.checkbox-group input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-group label {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-group a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.checkbox-group a:hover {
  color: var(--accent-2);
}

/* Form button styling */
form button {
  width: 100%;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-shadow);
}

/* Form elements mobile optimization */
@media (max-width: 768px) {
  form {
    gap: 1.25rem;
  }
  
  form input,
  form textarea {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }
  
  form textarea {
    min-height: 100px;
  }
  
  .checkbox-group {
    gap: 0.5rem;
  }
  
  .checkbox-group label {
    font-size: 0.85rem;
  }
}

/* Additional mobile optimizations */
@media (max-width: 900px) {
  .grid-3, .two, .contact {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 3.5rem 0;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .nav a {
    padding: 1rem;
  }
  
  .card:hover {
    transform: none;
  }
}

/* Scroll Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Animation classes */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate-fadeInUp {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-on-scroll.animate-fadeInLeft {
  animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-on-scroll.animate-fadeInRight {
  animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-on-scroll.animate-fadeInScale {
  animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-on-scroll.animate-slideInFromBottom {
  animation: slideInFromBottom 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-on-scroll.animate-bounceIn {
  animation: bounceIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.animate-on-scroll.animate-slideInFromTop {
  animation: slideInFromTop 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-on-scroll.animate-rotateIn {
  animation: rotateIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Staggered animations for grid items */
.animate-on-scroll.animate-stagger-1 {
  animation-delay: 0.1s;
}

.animate-on-scroll.animate-stagger-2 {
  animation-delay: 0.2s;
}

.animate-on-scroll.animate-stagger-3 {
  animation-delay: 0.3s;
}

.animate-on-scroll.animate-stagger-4 {
  animation-delay: 0.4s;
}

.animate-on-scroll.animate-stagger-5 {
  animation-delay: 0.5s;
}

.animate-on-scroll.animate-stagger-6 {
  animation-delay: 0.6s;
}

/* Parallax effect for hero background */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(60% 60% at 20% 30%, var(--accent-glow), transparent 60%),radial-gradient(60% 60% at 80% 10%, var(--accent-glow-strong), transparent 60%),linear-gradient(180deg,var(--primary-bg),var(--secondary-bg));
  transform: translateZ(0);
  will-change: transform;
}

/* Apple-like smooth scroll behavior */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y proximity;
}

body {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

/* Enhanced mobile scrolling */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    touch-action: pan-y;
  }
  
  /* Smooth momentum scrolling */
  * {
    -webkit-overflow-scrolling: touch;
  }
}

/* Performance optimizations for animations */
.animate-on-scroll {
  will-change: transform, opacity;
}

.animate-on-scroll.animate-visible {
  will-change: auto;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .hero::before {
    transform: none !important;
  }
}

/* Mobile animation adjustments */
@media (max-width: 768px) {
  .animate-on-scroll {
    animation-duration: 0.6s;
  }
  
  .animate-stagger-1 { animation-delay: 0.05s; }
  .animate-stagger-2 { animation-delay: 0.1s; }
  .animate-stagger-3 { animation-delay: 0.15s; }
  .animate-stagger-4 { animation-delay: 0.2s; }
  .animate-stagger-5 { animation-delay: 0.25s; }
  .animate-stagger-6 { animation-delay: 0.3s; }
  
  /* Enhanced touch responsiveness */
  .btn, .card, .nav a {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  
  /* Optimize animations for mobile */
  .animate-on-scroll {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

/* Additional mobile-specific improvements */
@media (max-width: 480px) {
  /* Improve text readability on small screens */
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Better spacing for mobile */
  .muted {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* Optimize list spacing */
  ul.clean {
    padding-left: 1.25rem;
  }
  
  ul.clean li {
    margin: 0.5rem 0;
    line-height: 1.5;
  }
  
  /* Better icon spacing */
  .icon {
    font-size: 1.4rem;
    margin-right: 0.5rem;
  }
  
  /* Footer mobile optimization */
  footer {
    padding: 2rem 0;
    font-size: 0.9rem;
  }
  
  /* Logo mobile optimization */
  .logo {
    font-size: 1.1rem;
  }
  
  .logo-mark {
    font-size: 24px;
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 60vh;
    padding: 1rem 0;
  }
  
  .hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }
  
  section {
    padding: 2rem 0;
  }
}

/* ===== NEW HEADER STYLES ===== */
/* Header Styles */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(24px);
  background: var(--glass);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
}

.header.scrolled {
  background: var(--glass-b);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px var(--shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  min-height: 70px;
}

/* Logo */
.header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.header .logo:hover {
  color: var(--accent);
  transform: scale(1.05);
}

.logo-icon {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.logo-text {
  font-weight: 700;
  font-size: 1.8rem;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: nowrap;
}

.header .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: transparent;
  white-space: nowrap;
}

.header .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 1px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.header .nav-link:hover::before {
  width: 80%;
}

.header .nav-link:hover {
  color: var(--text);
  background: var(--white-overlay);
  transform: translateY(-2px);
}

.header .nav-icon {
  width: 18px;
  height: 18px;
  transition: all 0.3s ease;
}

.header .nav-link:hover .nav-icon {
  transform: scale(1.1);
  color: var(--accent);
}

/* Header Controls Container */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* Theme Toggle Icon */
.theme-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 6px;
}

.theme-toggle:hover {
  background: var(--glass);
}

.theme-toggle:active,
.theme-toggle:focus {
  background: none;
  outline: none;
}

/* Long press feedback */
.theme-toggle.long-pressing {
  transform: scale(0.95);
  background: var(--glass-b);
  transition: all 0.1s ease;
}

.theme-toggle.long-pressing .theme-icon {
  transform: scale(1.1);
  color: var(--accent-2);
}

.theme-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
  transition: all 0.3s ease;
}

.theme-toggle:hover .theme-icon {
  color: var(--accent-2);
}

/* Light theme - sun icon */
[data-theme="light"] .theme-icon {
  color: var(--accent-3);
}

[data-theme="light"] .theme-toggle:hover .theme-icon {
  color: var(--accent-2);
}

/* Mobile Toggle Button */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.mobile-toggle:hover {
  background: var(--glass);
  transform: scale(1.05);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 18px;
}

.line {
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.mobile-toggle.active .line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active .line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--glass-b);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px var(--shadow);
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border);
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-link:hover {
  color: var(--text);
  background: var(--glass);
}

.mobile-nav-link .nav-icon {
  width: 20px;
  height: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }
  
  .header-content {
    min-height: 60px;
    padding: 0.75rem 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  
  .header .logo {
    font-size: 1.4rem;
  }
  
  .logo-icon {
    font-size: 1.8rem;
  }
  
  .logo-text {
    font-size: 1.4rem;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .header-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
  }
  
  .theme-toggle {
    padding: 0.5rem;
  }
  
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-nav {
    display: block;
  }
}

/* Hide hamburger menu on iOS */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .mobile-toggle {
      display: none !important;
    }
    
    .mobile-nav {
      display: none !important;
    }
    
    .header-content {
      justify-content: center;
    }
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 0.75rem;
  }
  
  .logo-text {
    display: block;
    font-size: 1.2rem;
  }
  
  .logo-icon {
    font-size: 1.5rem;
  }
}
