:root {
    --sarg-surface: rgba(255, 255, 255, 0.72);
    --sarg-surface-dark: rgba(14, 20, 36, 0.62);
    --sarg-border: rgba(255, 255, 255, 0.2);
    --sarg-glow: rgba(0, 200, 83, 0.18);
}

body {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at top left, rgba(26, 115, 232, 0.08), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(0, 200, 83, 0.12), transparent 22%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 246, 250, 0.98));
}

.section,
.cta-section,
.footer,
.hero,
.page-header {
    overflow: clip;
}

.section::before,
.cta-section::before,
.footer::before,
.hero::before,
.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.2), transparent 18%),
        radial-gradient(circle at 82% 74%, rgba(26, 115, 232, 0.08), transparent 24%);
}

.sarg-section-cube {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sarg-section-cube canvas {
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

body > nav,
body > section,
body > footer,
body > header,
body > main,
body > .menu-overlay,
body > .scroll-top {
    position: relative;
    z-index: 1;
}

.hero,
.page-header,
.section,
.cta-section,
.footer {
    position: relative;
}

.hero::after,
.page-header::after {
    content: "";
    position: absolute;
    inset: auto auto -16% -10%;
    width: 40vw;
    height: 40vw;
    min-width: 260px;
    min-height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.2), transparent 65%);
    filter: blur(10px);
    pointer-events: none;
    z-index: -1;
}

.hero-container,
.page-header-content,
.section-header,
.cta-content {
    position: relative;
    z-index: 1;
}

.container,
.hero-container,
.page-header-content,
.footer-grid,
.footer-bottom {
    position: relative;
    z-index: 1;
}

.hero-badge,
.section-badge,
.offer-banner,
.floating-card,
.floating-badge,
.experience-badge,
.research-stats-badge,
.testing-certification,
.contact-info-card,
.contact-form-container,
.office-hours,
.plan-card,
.program-card,
.category-card,
.custom-project-card,
.faq-item,
.faq-card,
.social-card,
.inquiry-card,
.research-focus-card,
.wwd-card,
.vm-card,
.value-card,
.affiliation-card,
.internship-card,
.academic-card,
.duration-card,
.partnership-card,
.service-item,
.contact-detail-item,
.applicant-card {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-image-wrapper,
.about-intro-image img,
.research-intro-image img,
.programs-intro-image img,
.membership-intro-image img,
.contact-form-container,
.contact-info-card,
.research-focus-card,
.wwd-card,
.internship-card,
.academic-card,
.program-card,
.plan-card,
.social-card,
.faq-item {
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
}

.section-header,
.cta-content {
    text-wrap: balance;
}

.hero-title,
.page-header-content h1,
.section-title,
.cta-content h2 {
    text-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

#navbar.sarg-nav-scrolled {
    background: rgba(9, 15, 29, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

#navbar.sarg-nav-scrolled .nav-link,
#navbar.sarg-nav-scrolled .logo-text,
#navbar.sarg-nav-scrolled .logo-sub {
    color: #fff;
}

#navbar.sarg-nav-scrolled .mobile-toggle span {
    background: #fff;
}

.sarg-gsap-ready {
    opacity: 0;
    transform: translateY(28px);
}

@media (max-width: 992px) {
    .hero::after,
    .page-header::after {
        width: 58vw;
        height: 58vw;
    }
}

@media (max-width: 768px) {
    .sarg-section-cube canvas {
        opacity: 0.5;
    }

    .hero-title,
    .page-header-content h1,
    .section-title,
    .cta-content h2 {
        text-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sarg-gsap-ready {
        opacity: 1;
        transform: none;
    }

    .sarg-section-cube {
        display: none;
    }
}
