/* ============ RESET & ROOT ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --accent: #00d4ff;
    --accent-2: #00ffa3;
    --dark: #0a1628;
    --dark-2: #12233d;
    --text: #e6f1ff;
    --text-muted: #8ba3c7;
    --gradient: linear-gradient(135deg, #00d4ff 0%, #00ffa3 100%);
    --shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-y: none;
}

body.locked { overflow: hidden; }
body.modal-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

a { -webkit-tap-highlight-color: transparent; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ WELCOME SCREEN ============ */
#welcomeScreen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: radial-gradient(circle at 50% 40%, #12233d 0%, #0a1628 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    padding-top: max(30px, env(safe-area-inset-top));
    padding-bottom: max(30px, env(safe-area-inset-bottom));
}

#welcomeScreen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#welcomeScreen:active .welcome-logo {
    transform: scale(0.95);
}

.welcome-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.25) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.15); }
}

.welcome-content {
    position: relative;
    text-align: center;
    max-width: 600px;
    width: 100%;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.welcome-logo {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--accent);
    background: rgba(0, 212, 255, 0.08);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: heartbeat 2s infinite;
    transition: transform 0.3s;
}

.welcome-logo > i { position: relative; z-index: 2; }

.pulse-ring {
    position: absolute;
    inset: -10px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite;
}

.pulse-ring.delay { animation-delay: 1s; }

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.08); }
    50% { transform: scale(1); }
    75% { transform: scale(1.05); }
}

.welcome-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 5.5vw, 2.3rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 18px;
}

.welcome-title span { display: block; }

.welcome-sub {
    color: var(--text-muted);
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    margin-bottom: 40px;
    padding: 0 10px;
    animation: pulseText 2s ease-in-out infinite;
}

@keyframes pulseText {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.play-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 38px;
    background: transparent;
    border: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: clamp(0.85rem, 2.8vw, 1rem);
    letter-spacing: 1.5px;
    color: var(--dark);
    overflow: hidden;
    pointer-events: none;
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.35);
    animation: buttonPulse 2.5s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 15px 40px rgba(0, 212, 255, 0.35); }
    50% { box-shadow: 0 15px 55px rgba(0, 212, 255, 0.7); }
}

.play-btn-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient);
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
    z-index: 0;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.play-btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.play-btn i {
    font-size: 1.1em;
    animation: playPulse 1.5s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

.welcome-footer {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 8px 18px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 50px;
}

.welcome-footer i { color: var(--accent); }

/* ============ MUSIC TOGGLE ============ */
.music-toggle {
    position: fixed;
    bottom: calc(90px + env(safe-area-inset-bottom));
    right: calc(20px + env(safe-area-inset-right));
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(10, 22, 40, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: var(--accent);
    font-size: 1rem;
    cursor: pointer;
    z-index: 998;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
}

.music-toggle.show { display: flex; }
.music-toggle.muted { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.4); }
.music-toggle:active { transform: scale(0.9); }

/* ============ PARTICLES ============ */
#particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

#particles.show { opacity: 1; }

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.4s;
    padding-top: max(18px, env(safe-area-inset-top));
    transform: translateZ(0);
    will-change: background, padding;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 1.6rem;
    text-decoration: none;
    transition: transform 0.3s;
}

.logo:active { transform: scale(0.96); }

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-weight: 800; font-size: 1rem; letter-spacing: 2px; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-sub { font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.5px; font-weight: 400; }

.nav-menu { display: flex; list-style: none; gap: 30px; }
.nav-link { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.9rem; position: relative; transition: color 0.3s; padding: 5px 0; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gradient); transition: width 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
    z-index: 1001;
}

.hamburger span { width: 26px; height: 3px; background: var(--accent); border-radius: 3px; transition: 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ============ HERO ============ */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 110px 20px 60px;
    padding-top: calc(110px + env(safe-area-inset-top));
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 255, 163, 0.1) 0%, transparent 50%),
        var(--dark);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('images/hero-bg.jpg') center/cover;
    opacity: 0.08;
    z-index: 0;
}

.hero-content { position: relative; z-index: 2; max-width: 1000px; width: 100%; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.8rem;
    margin-bottom: 25px;
    text-decoration: none;
    animation: fadeInDown 1s;
    transition: transform 0.3s, background 0.3s;
}

.hero-badge:active { transform: scale(0.95); }

@media (hover: hover) {
    .hero-badge:hover { background: rgba(0, 212, 255, 0.2); transform: translateY(-2px); }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title .line { display: block; animation: fadeInUp 1s backwards; }
.hero-title .line:nth-child(1) { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) { animation-delay: 0.4s; }
.hero-title .line:nth-child(3) { animation-delay: 0.6s; }

.hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 35px;
    animation: fadeIn 1s 0.8s backwards;
    padding: 0 5px;
}

.hero-subtitle strong { color: var(--accent); }

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    animation: fadeIn 1s 1s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn:active { transform: scale(0.96); }

.btn-primary { background: var(--gradient); color: var(--dark); box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid rgba(0, 212, 255, 0.4); }
.btn-large { padding: 16px 40px; font-size: 1rem; }

@media (hover: hover) {
    .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5); }
    .btn-outline:hover { background: rgba(0, 212, 255, 0.1); border-color: var(--accent); transform: translateY(-3px); }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    animation: fadeIn 1s 1.2s backwards;
}

.stat-item {
    text-align: center;
    min-width: 80px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
    padding: 10px;
    border-radius: 12px;
}

.stat-item:active { transform: scale(0.95); }

@media (hover: hover) {
    .stat-item:hover { transform: translateY(-3px); }
}

.stat-number { display: block; font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-family: 'Playfair Display', serif; line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); display: block; margin-top: 6px; }

.scroll-indicator { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--accent); text-align: center; font-size: 0.75rem; letter-spacing: 2px; animation: bounce 2s infinite; opacity: 0.7; }
.scroll-indicator i { display: block; margin-top: 6px; }

@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============ CONTAINER & SECTION ============ */
.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; position: relative; z-index: 2; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-tag { display: inline-block; color: var(--accent); font-size: 0.75rem; letter-spacing: 3px; font-weight: 600; margin-bottom: 12px; padding: 6px 16px; border: 1px solid rgba(0, 212, 255, 0.3); border-radius: 50px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 5vw, 3rem); font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.section-desc { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 0.95rem; }

/* ============ ABOUT ============ */
.about { background: var(--dark-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.image-frame { position: relative; border-radius: 20px; }
.image-frame img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }

.floating-card {
    position: absolute;
    background: rgba(10, 22, 40, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 12px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    animation: float 4s ease-in-out infinite;
    z-index: 2;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.3s;
}

.floating-card:active { transform: scale(0.95); }

.floating-card i { color: var(--accent); font-size: 1.1rem; }
.card-1 { top: 15px; left: -10px; }
.card-2 { bottom: 15px; right: -10px; animation-delay: 2s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.about-text h3 { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 18px; line-height: 1.3; }
.about-text p { color: var(--text-muted); margin-bottom: 15px; font-size: 0.95rem; }
.about-text strong { color: var(--accent); }

.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 25px 0; }

/* FEATURE ITEM sebagai tombol popup gambar */
.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.3s;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
}

.feature-item:active { transform: scale(0.97); }
.feature-item i { color: var(--accent-2); flex-shrink: 0; }

@media (hover: hover) {
    .feature-item:hover { 
        background: rgba(0, 212, 255, 0.08); 
        border-color: rgba(0, 212, 255, 0.2);
        transform: translateX(4px); 
    }
}

/* ============ SERVICES ============ */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }

.service-card {
    background: linear-gradient(145deg, rgba(18, 35, 61, 0.8), rgba(10, 22, 40, 0.8));
    border: 1px solid rgba(0, 212, 255, 0.1);
    padding: 32px 26px;
    border-radius: 20px;
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--gradient); transform: scaleX(1); transform-origin: left; }

.service-card:active { transform: scale(0.98); }

.service-icon {
    width: 60px; height: 60px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 20px;
    transition: transform 0.4s;
}

.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 700; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.card-link i { transition: transform 0.3s; }

@media (hover: hover) {
    .service-card:hover { transform: translateY(-8px); border-color: rgba(0, 212, 255, 0.4); box-shadow: 0 25px 50px rgba(0, 212, 255, 0.15); }
    .service-card:hover .service-icon { transform: rotate(-10deg) scale(1.1); }
    .service-card:hover .card-link i { transform: translateX(5px); }
}

/* ============ FACILITIES ============ */
.facilities { background: var(--dark-2); }
.facilities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.facility-item {
    background: rgba(10, 22, 40, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.1);
    padding: 24px 16px;
    border-radius: 14px;
    text-align: center;
    transition: transform 0.4s, background 0.4s, border-color 0.4s, box-shadow 0.4s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.facility-item .card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 4px 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.facility-item .card-link i {
    font-size: 0.7rem;
    margin: 0;
}

.facility-item:active {
    transform: scale(0.96);
}

@media (hover: hover) {
    .facility-item:hover {
        background: rgba(0, 212, 255, 0.08);
        border-color: var(--accent);
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    }

    .facility-item:hover .card-link {
        background: rgba(0, 212, 255, 0.25);
        border-color: var(--accent);
    }
}

.facility-item:active { transform: scale(0.96); }
.facility-item i { font-size: 1.8rem; color: var(--accent); margin-bottom: 12px; display: block; }
.facility-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.facility-item p { font-size: 0.78rem; color: var(--text-muted); }
.facility-item.big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 163, 0.05)); }
.facility-item.big i { font-size: 3rem; }
.facility-item.big h4 { font-size: 1.3rem; }

@media (hover: hover) {
    .facility-item:hover { background: rgba(0, 212, 255, 0.08); border-color: var(--accent); transform: translateY(-5px); }
}

/* ============ TEAM ============ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }

.team-card {
    background: rgba(18, 35, 61, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.1);
    padding: 30px 18px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.team-card:active { transform: scale(0.97); }
.team-avatar { width: 80px; height: 80px; margin: 0 auto 18px; background: var(--gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--dark); transition: transform 0.4s; }
.team-card h4 { font-size: 1rem; margin-bottom: 6px; }
.team-card p { font-size: 0.82rem; color: var(--text-muted); }

@media (hover: hover) {
    .team-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
    .team-card:hover .team-avatar { transform: scale(1.1) rotate(5deg); }
    .team-card:hover .card-link i { transform: translateX(5px); }
}

/* ============ CTA ============ */
.cta { background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 163, 0.05)), var(--dark); text-align: center; border-top: 1px solid rgba(0, 212, 255, 0.1); border-bottom: 1px solid rgba(0, 212, 255, 0.1); }
.cta-content h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.4rem, 4.5vw, 2.4rem); margin-bottom: 15px; line-height: 1.3; }
.cta-content p { color: var(--text-muted); max-width: 600px; margin: 0 auto 30px; font-size: 0.95rem; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.3s, transform 0.3s;
}

.info-item:active { transform: scale(0.98); }
.info-item i { width: 46px; height: 46px; background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.3); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.1rem; flex-shrink: 0; transition: background 0.3s; }
.info-item h4 { margin-bottom: 4px; font-size: 0.95rem; transition: color 0.3s; }
.info-item p { color: var(--text-muted); font-size: 0.88rem; }

@media (hover: hover) {
    .info-item:hover { background: rgba(0, 212, 255, 0.06); transform: translateX(6px); }
    .info-item:hover i { background: rgba(0, 212, 255, 0.2); }
    .info-item:hover h4 { color: var(--accent); }
}

.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea {
    background: rgba(18, 35, 61, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.15);
    padding: 14px 18px;
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 20px rgba(0, 212, 255, 0.2); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form button { align-self: flex-start; }

/* ============ FOOTER ============ */
.footer { background: #060e1a; padding: 45px 0 25px; border-top: 1px solid rgba(0, 212, 255, 0.1); position: relative; z-index: 2; padding-bottom: calc(25px + env(safe-area-inset-bottom)); }
.footer-content { text-align: center; }

.footer-brand {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.footer-brand:active { transform: scale(0.97); }
.footer-brand i { font-size: 2.2rem; color: var(--accent); margin-bottom: 12px; display: block; }
.footer-brand h3 { font-family: 'Playfair Display', serif; margin-bottom: 4px; font-size: 1.2rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 18px; }

.footer-social { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.2); display: flex; align-items: center; justify-content: center; color: var(--accent); text-decoration: none; transition: all 0.3s; -webkit-tap-highlight-color: transparent; }
.footer-social a:active { transform: scale(0.9); }

@media (hover: hover) {
    .footer-social a:hover { background: var(--gradient); color: var(--dark); transform: translateY(-5px); }
}

/* ============ BACK TO TOP ============ */
#backToTop {
    position: fixed;
    bottom: calc(25px + env(safe-area-inset-bottom));
    right: calc(20px + env(safe-area-inset-right));
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    color: var(--dark);
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
    -webkit-tap-highlight-color: transparent;
}
#backToTop.show { opacity: 1; visibility: visible; }
#backToTop:active { transform: scale(0.9); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ============ IMAGE MODAL ============ */
.image-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.image-modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 14, 26, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    background: linear-gradient(145deg, rgba(18, 35, 61, 0.98), rgba(10, 22, 40, 0.98));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 212, 255, 0.25);
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.image-modal.open .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    padding: 18px 60px 14px 24px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    flex-shrink: 0;
}

.modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--accent);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 3;
    -webkit-tap-highlight-color: transparent;
}

.modal-close:active { transform: scale(0.9); }

@media (hover: hover) {
    .modal-close:hover {
        background: rgba(0, 212, 255, 0.25);
        transform: rotate(90deg);
    }
}

.modal-image-wrap {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 200px;
    max-height: calc(90vh - 80px);
    overflow: hidden;
    background: #0a1628;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-wrap img {
    width: 100%;
    height: 100%;
    max-height: calc(90vh - 80px);
    object-fit: contain;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-image-wrap img.loaded { opacity: 1; }

.modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--accent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-loader.show { opacity: 1; }

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 35px; }
    .facilities-grid { grid-template-columns: repeat(2, 1fr); }
    .facility-item.big { grid-column: span 2; grid-row: span 1; padding: 30px 20px; }
    .facility-item.big i { font-size: 2.5rem; }
    .facility-item.big h4 { font-size: 1.1rem; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: rgba(10, 22, 40, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        gap: 28px;
        border-left: 1px solid rgba(0, 212, 255, 0.15);
        padding-top: env(safe-area-inset-top);
    }
    .nav-menu.active { right: 0; }
    .nav-link { font-size: 1.05rem; }
    .hamburger { display: flex; }

    .image-frame { padding: 0 15px; }
    .card-1 { left: 0; }
    .card-2 { right: 0; }
}

@media (max-width: 600px) {
    section { padding: 65px 0; }
    .container { padding: 0 18px; }
    .section-header { margin-bottom: 40px; }

    .hero { padding: 100px 18px 50px; padding-top: calc(100px + env(safe-area-inset-top)); }
    .hero-stats { gap: 25px; }
    .hero-buttons { gap: 12px; }

    .facilities-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .facility-item.big { grid-column: span 2; padding: 25px 15px; }
    .facility-item { padding: 20px 12px; }
    .facility-item i { font-size: 1.5rem; }
    .facility-item h4 { font-size: 0.85rem; }
    .facility-item p { font-size: 0.72rem; }

    .floating-card { font-size: 0.72rem; padding: 9px 13px; }
    .floating-card i { font-size: 0.95rem; }

    .about-features { grid-template-columns: 1fr; }

    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }

    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 26px 22px; }

    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .team-card { padding: 24px 14px; }
    .team-avatar { width: 65px; height: 65px; font-size: 1.5rem; margin-bottom: 14px; }
    .team-card h4 { font-size: 0.88rem; }
    .team-card p { font-size: 0.75rem; }

    .contact-form button { align-self: stretch; }

    .welcome-logo { width: 110px; height: 110px; font-size: 3rem; }
    .welcome-footer { font-size: 0.72rem; }
    .play-btn { padding: 16px 28px; font-size: 0.85rem; }

    /* Modal responsive */
    .image-modal { padding: 15px; }
    .modal-content { max-height: 85vh; border-radius: 16px; }
    .modal-header { padding: 14px 55px 12px 18px; }
    .modal-close { top: 10px; right: 10px; width: 34px; height: 34px; font-size: 0.9rem; }
    .modal-image-wrap { max-height: calc(85vh - 70px); }
    .modal-image-wrap img { max-height: calc(85vh - 70px); }
}

@media (max-width: 380px) {
    .team-grid { grid-template-columns: 1fr; }
    .facilities-grid { grid-template-columns: 1fr; }
    .facility-item.big { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@supports (-webkit-touch-callout: none) {
    .hero { min-height: -webkit-fill-available; }
    .nav-menu { height: -webkit-fill-available; }
}

/* ============ FACILITY WITH BACKGROUND IMAGE ============ */
.facility-item.big.facility-with-bg {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    cursor: pointer;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
    font-family: inherit;
    color: inherit;
    text-align: center;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-item.big.facility-with-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(10, 22, 40, 0.85) 0%, 
        rgba(0, 212, 255, 0.3) 100%);
    z-index: 1;
    transition: opacity 0.4s;
}

.facility-item.big.facility-with-bg .facility-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, 
        transparent 0%, 
        rgba(10, 22, 40, 0.6) 100%);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.4s;
}

.facility-item.big.facility-with-bg .facility-content {
    position: relative;
    z-index: 3;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.facility-item.big.facility-with-bg .facility-content i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(0, 212, 255, 0.8));
}

.facility-item.big.facility-with-bg .facility-content h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    letter-spacing: 0.5px;
}

.facility-item.big.facility-with-bg .facility-content p {
    font-size: 0.9rem;
    color: rgba(230, 241, 255, 0.9);
    margin-bottom: 12px;
}

.facility-item.big.facility-with-bg .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.5);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s, transform 0.3s;
}

.facility-item.big.facility-with-bg:active {
    transform: scale(0.97);
}

.facility-item.big.facility-with-bg:active::before {
    opacity: 0.7;
}

@media (hover: hover) {
    .facility-item.big.facility-with-bg:hover {
        transform: translateY(-6px);
        border-color: var(--accent);
        box-shadow: 0 25px 60px rgba(0, 212, 255, 0.35);
    }
    
    .facility-item.big.facility-with-bg:hover::before {
        opacity: 0.6;
    }
    
    .facility-item.big.facility-with-bg:hover .facility-content i {
        transform: scale(1.15) rotate(-5deg);
        transition: transform 0.4s;
    }
    
    .facility-item.big.facility-with-bg:hover .card-link {
        background: rgba(0, 212, 255, 0.4);
        transform: scale(1.05);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .facility-item.big.facility-with-bg {
        min-height: 240px;
    }
    .facility-item.big.facility-with-bg .facility-content i {
        font-size: 2.5rem;
    }
    .facility-item.big.facility-with-bg .facility-content h4 {
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    .facility-item.big.facility-with-bg {
        min-height: 200px;
    }
    .facility-item.big.facility-with-bg .facility-content {
        padding: 20px 15px;
    }
    .facility-item.big.facility-with-bg .facility-content i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    .facility-item.big.facility-with-bg .facility-content h4 {
        font-size: 1.1rem;
    }
    .facility-item.big.facility-with-bg .facility-content p {
        font-size: 0.78rem;
    }
    .facility-item.big.facility-with-bg .card-link {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
}