:root {
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --glass-shadow-hover: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
  --teal: #3A9CA5; --green: #7DC96F; --brown: #5E3503;
  --red: #EF3E36; --orange: #F57C3E; --yellow: #F5A623;
}

body { background-color: #f4f7fb; color: #0f172a; font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: #0f172a; }

*:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.glass-card { background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); border-radius: 24px; transition: box-shadow 0.3s ease, background 0.3s ease; }
.glass-card:hover { box-shadow: var(--glass-shadow-hover); background: rgba(255, 255, 255, 0.75); }
.glass-nav { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); }

.btn-primary { background-color: var(--teal); color: white; border-radius: 9999px; padding: 0.75rem 1.75rem; font-weight: 500; font-size: 0.875rem; transition: background-color 0.2s ease, box-shadow 0.2s ease; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--teal); box-shadow: 0 4px 14px 0 rgba(58, 156, 165, 0.39); position: relative; overflow: hidden; }
.btn-primary:hover { background-color: #2c8088; box-shadow: 0 6px 20px 0 rgba(58, 156, 165, 0.5); }
.btn-secondary { background-color: rgba(255, 255, 255, 0.6); backdrop-filter: blur(8px); border: 1px solid var(--glass-border); color: #0f172a; border-radius: 9999px; padding: 0.75rem 1.75rem; font-weight: 500; font-size: 0.875rem; transition: background-color 0.2s ease; display: inline-flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.9); }
.btn-accent { background-color: var(--orange); color: white; border-radius: 9999px; padding: 0.75rem 1.75rem; font-weight: 600; font-size: 0.875rem; transition: background-color 0.2s ease, box-shadow 0.2s ease; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--orange); box-shadow: 0 4px 14px 0 rgba(245, 124, 62, 0.4); position: relative; overflow: hidden; }
.btn-accent:hover { background-color: #e06a2e; }

.hero-carousel-container, .gallery-carousel-container { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--glass-border); background: var(--glass-bg); backdrop-filter: blur(16px); padding: 0.75rem; box-shadow: var(--glass-shadow); }
.hero-carousel-track, .gallery-carousel-track { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.hero-carousel-slide { flex: 0 0 100%; }
.hero-carousel-slide img { width: 100%; height: 340px; object-fit: cover; border-radius: 16px; }
.gallery-carousel-slide { flex: 0 0 100%; padding: 0 6px; box-sizing: border-box; }
.gallery-carousel-slide img { width: 100%; height: 260px; object-fit: cover; border-radius: 16px; }
@media (min-width: 768px) { .gallery-carousel-slide { flex: 0 0 50%; } }
@media (min-width: 1024px) { .gallery-carousel-slide { flex: 0 0 33.333%; } }

.hero-carousel-btn, .gallery-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(8px); color: #0f172a; border: 1px solid var(--glass-border); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: background 0.2s; }
.hero-carousel-btn:hover, .gallery-carousel-btn:hover { background: white; }
.hero-carousel-prev, .gallery-carousel-prev { left: 16px; }
.hero-carousel-next, .gallery-carousel-next { right: 16px; }

.hero-carousel-dots, .gallery-carousel-dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 10; }
.hero-carousel-dot, .gallery-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.hero-carousel-dot.active, .gallery-carousel-dot.active { background: var(--teal); width: 24px; border-radius: 4px; }

.partner-carousel-container { overflow: hidden; width: 100%; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.partner-carousel-track { display: flex; align-items: center; gap: 3rem; width: max-content; will-change: transform; }
.partner-carousel-slide { flex: 0 0 auto; width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; }
.partner-logo { width: 80px; height: 80px; object-fit: contain; filter: grayscale(100%); opacity: 0.5; transition: filter 0.3s, opacity 0.3s; }
.partner-logo:hover { filter: grayscale(0%); opacity: 1; }

.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-track { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.testimonial-slide { flex: 0 0 100%; padding: 0 12px; box-sizing: border-box; }
@media (min-width: 768px) { .testimonial-slide { flex: 0 0 50%; } }

.process-steps { display: grid; gap: 2rem; position: relative; }
@media (min-width: 768px) { .process-steps { grid-template-columns: repeat(4, 1fr); } }
.process-step { position: relative; text-align: center; }
.process-step::before { content: ''; position: absolute; top: 40px; left: calc(50% + 40px); right: calc(-50% + 40px); height: 2px; background: var(--teal); display: none; }
@media (min-width: 768px) { .process-step::before { display: block; } }
.process-step:last-child::before { display: none; }
.process-num { width: 80px; height: 80px; border-radius: 50%; background: var(--teal); color: white; font-size: 1.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; box-shadow: 0 8px 24px rgba(58, 156, 165, 0.3); position: relative; z-index: 1; }

.bento-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .bento-grid { grid-template-columns: repeat(4, 1fr); } .bento-large { grid-column: span 2; grid-row: span 2; } }

.case-metric-value { font-size: 2rem; font-weight: 800; color: var(--teal); line-height: 1; }
.case-metric-label { font-size: 0.8rem; color: #475569; font-weight: 500; }
.resource-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.25rem 0.75rem; border-radius: 999px; background: #E0F2F1; color: var(--teal); margin-bottom: 0.75rem; }

.floating-actions { position: fixed; bottom: 24px; right: 24px; z-index: 95; display: flex; flex-direction: column; gap: 12px; }
.float-btn { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; box-shadow: 0 6px 20px rgba(0,0,0,0.15); transition: box-shadow 0.3s ease; }
.float-btn:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.float-whatsapp { background: #25D366; }
.float-book { background: var(--teal); font-size: 1.2rem; }
@media (max-width: 640px) { .floating-actions { bottom: 16px; right: 16px; } .float-btn { width: 48px; height: 48px; font-size: 1.2rem; } }

.newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.newsletter-input { flex: 1; min-width: 200px; padding: 0.75rem 1.25rem; border-radius: 9999px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.7); font-size: 0.875rem; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.newsletter-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(58,156,165,0.15); }

.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 1000; visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0.2s; }
.modal-overlay.active { visibility: visible; opacity: 1; }
.modal-container { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto; border-radius: 24px; padding: 2rem; border: 1px solid var(--glass-border); box-shadow: 0 24px 64px rgba(0,0,0,0.15); }

.admin-form-group input, .admin-form-group textarea, .admin-form-group select { width: 100%; padding: 0.75rem 1rem; border: 1px solid rgba(0,0,0,0.1); border-radius: 12px; background: rgba(255,255,255,0.8); transition: all 0.2s; font-size: 0.875rem; }
.admin-form-group input:focus, .admin-form-group textarea:focus, .admin-form-group select:focus { outline: none; border-color: var(--teal); background: white; box-shadow: 0 0 0 3px rgba(58, 156, 165, 0.15); }

.blog-content { line-height: 1.8; color: #475569; font-size: 1.05rem; }
.blog-content img { max-width: 100%; height: auto; border-radius: 16px; margin: 2rem 0; box-shadow: var(--glass-shadow); }
.blog-content h2 { font-size: 1.5rem; color: #0f172a; margin-top: 2.5rem; margin-bottom: 1rem; }
.blog-content h3 { font-size: 1.25rem; color: #0f172a; margin-top: 2rem; margin-bottom: 0.75rem; }
.blog-content p { margin-bottom: 1.25rem; }
.blog-content a { color: var(--teal); text-decoration: underline; font-weight: 500; }

.ql-editor { min-height: 350px; font-size: 1rem; line-height: 1.6; }
.ql-toolbar.ql-snow { border: 1px solid var(--glass-border); border-radius: 12px 12px 0 0; background: rgba(255,255,255,0.5); }
.ql-container.ql-snow { border: 1px solid var(--glass-border); border-top: none; border-radius: 0 0 12px 12px; background: rgba(255,255,255,0.8); }

.reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 0; }
.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.92); }

/* GSAP fallback — if JS fails, show content */
.no-js .reveal, .no-js .reveal-left, .no-js .reveal-right, .no-js .reveal-scale { opacity: 1; transform: none; }

.back-to-top { position: fixed; bottom: 100px; right: 30px; width: 44px; height: 44px; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(8px); border: 1px solid var(--glass-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s, background 0.2s; z-index: 90; box-shadow: var(--glass-shadow); color: #0f172a; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: white; }

.resize-handle { position: absolute; width: 12px; height: 12px; background: white; border: 2px solid var(--teal); border-radius: 2px; z-index: 1001; }
.image-manipulation-overlay { position: fixed; z-index: 10000; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(8px); border-radius: 8px; padding: 6px; display: flex; gap: 8px; }
.image-manipulation-overlay button { background: white; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 600; color: #0f172a; }
.crop-modal { position: fixed; inset: 0; background: rgba(15,23,42,0.8); backdrop-filter: blur(8px); z-index: 20000; display: flex; align-items: center; justify-content: center; visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0.2s; }
.crop-modal.active { visibility: visible; opacity: 1; }
.crop-modal-content { background: white; max-width: 90vw; max-height: 90vh; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.2); }

#preloader { position: fixed; inset: 0; z-index: 99999; background: #f4f7fb; display: flex; align-items: center; justify-content: center; transition: opacity 0.6s ease, visibility 0.6s ease; }
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo { height: 80px; margin-bottom: 24px; }
.preloader-bar { width: 180px; height: 3px; border-radius: 3px; background: rgba(58, 156, 165, 0.15); overflow: hidden; margin: 0 auto; }
.preloader-bar span { display: block; height: 100%; width: 40%; background: var(--teal); border-radius: 3px; animation: preloaderSlide 1.2s ease-in-out infinite; }
@keyframes preloaderSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(400%); } }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--teal); z-index: 99999; width: 0%; transition: width 0.1s linear; }
.reading-progress { position: fixed; top: 80px; left: 0; height: 2px; background: var(--green); z-index: 40; width: 0%; transition: width 0.1s linear; }

#root { animation: pageEnter 0.5s cubic-bezier(0.2, 0.9, 0.4, 1); }
@keyframes pageEnter { from { opacity: 0; } to { opacity: 1; } }

img { opacity: 0; transition: opacity 0.6s ease; }
img.img-loaded { opacity: 1; }

[data-split-text] .word { display: inline-block; overflow: hidden; vertical-align: top; }
[data-split-text] .word-inner { display: inline-block; }

.faq-item { border-radius: 18px; overflow: hidden; background: rgba(255,255,255,0.55); border: 1px solid var(--glass-border); margin-bottom: 12px; transition: background 0.3s, box-shadow 0.3s; }
.faq-item.active { background: rgba(255,255,255,0.85); box-shadow: var(--glass-shadow); }
.faq-question { width: 100%; text-align: left; padding: 18px 24px; font-weight: 600; color: #0f172a; font-size: 0.95rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 16px; }
.faq-question::after { content: '\f067'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--teal); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.active .faq-question::after { content: '\f068'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; padding: 0 24px; color: #475569; font-size: 0.9rem; line-height: 1.7; }
.faq-item.active .faq-answer { max-height: 400px; padding: 0 24px 20px; }

.glass-nav a:not([href*="admin"]) { position: relative; }
.glass-nav a:not([href*="admin"])::after { content: ''; position: absolute; bottom: 4px; left: 50%; width: 0; height: 2px; background: var(--teal); border-radius: 2px; transition: width 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1); transform: translateX(-50%); }
.glass-nav a:not([href*="admin"]):hover::after { width: 50%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  img { opacity: 1 !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1 !important; transform: none !important; }
}