/* 
 * Main Stylesheet — Upgraded with 3D UI & Modern Animations
 * Turf & Tots Doda
 */

:root {
    --primary-bg: #ffffff;
    --accent-green: #10B981;
    --accent-blue: #3B82F6;
    --dark-text: #111827;
    --light-text: #4B5563;
    --border-color: #F3F4F6;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --glow-green: rgba(16, 185, 129, 0.15);
    --glow-blue: rgba(59, 130, 246, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    background-color: #fafbfc;
    padding-top: 76px; /* For fixed navbar */
    overflow-x: hidden;
}

/* Utilities */
.text-green { color: var(--accent-green) !important; }
.text-blue { color: var(--accent-blue) !important; }
.bg-green { background-color: var(--accent-green) !important; }
.bg-blue { background-color: var(--accent-blue) !important; }

/* 3D UI & Perspective Classes */
.perspective-1000 {
    perspective: 1000px;
}
.js-tilt-3d {
    transition: transform 0.15s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}
.inner-3d {
    transform: translateZ(30px);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}
.inner-3d-deep {
    transform: translateZ(50px);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* Animated Ambient Glow Blobs */
.glow-blob {
    position: absolute;
    width: clamp(250px, 40vw, 550px);
    height: clamp(250px, 40vw, 550px);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
    animation: floatGlow 20s infinite alternate ease-in-out;
}
.glow-blob-green {
    background: var(--accent-green);
    top: 5%;
    left: -10%;
}
.glow-blob-blue {
    background: var(--accent-blue);
    bottom: 10%;
    right: -10%;
    animation-delay: -7s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(50px, -40px) scale(1.15) rotate(120deg); }
    66% { transform: translate(-30px, 60px) scale(0.9) rotate(240deg); }
    100% { transform: translate(10px, -10px) scale(1.05) rotate(360deg); }
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}
.glass-card-dark {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(243, 244, 246, 0.8);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.navbar-brand img {
    height: 42px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-text) !important;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 1rem;
    background-color: var(--accent-green);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 2rem);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-green) !important;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    background: #090d16; /* Clean deep space background */
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 400;
    margin-bottom: 2.5rem;
    color: #9CA3AF;
    max-width: 650px;
    line-height: 1.6;
}

/* Modern Button Custom Effects */
.btn-primary {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: #059669;
    border-color: #059669;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-outline-light {
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 700;
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-outline-light:hover {
    background-color: #ffffff;
    color: var(--dark-text);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

/* Cards & Grid Items */
.facility-card {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(243, 244, 246, 0.6);
}

.facility-img-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 24px 24px 0 0;
}

.facility-card:hover .facility-img {
    transform: scale(1.08);
}

.facility-img {
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title {
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--dark-text);
    position: relative;
    display: inline-block;
    letter-spacing: -1px;
}

.section-title-wrapper {
    margin-bottom: 4rem;
}

.section-title-bar {
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, var(--accent-green), var(--accent-blue));
    border-radius: 10px;
    margin: 1.2rem auto 0;
}

.price-card {
    text-align: center;
    padding: 3.5rem 2.5rem;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(243, 244, 246, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
}

.price-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.08);
}

.price-card.popular {
    background: linear-gradient(to bottom, #ffffff, #f0fdf4);
    border: 2px solid var(--accent-green);
    transform: scale(1.04);
}

.price-card.popular:hover {
    transform: translateY(-8px) scale(1.04);
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 100;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover {
    color: white;
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

/* Footer */
.footer {
    background: #080c14;
    color: #9CA3AF;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.3s, transform 0.2s;
    font-weight: 500;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.social-icons a {
    color: #9CA3AF;
    font-size: 1.5rem;
    margin-right: 1.25rem;
    transition: all 0.3s;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--accent-green);
    transform: scale(1.2) translateY(-2px);
}

/* Floating animation for 3D elements */
@keyframes float3d {
    0% { transform: translateY(0px) rotateY(-8deg) rotateX(6deg); }
    50% { transform: translateY(-12px) rotateY(-6deg) rotateX(8deg); }
    100% { transform: translateY(0px) rotateY(-8deg) rotateX(6deg); }
}

.floating-3d-card {
    animation: float3d 6s infinite ease-in-out;
}

/* Mobile responsiveness adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
        min-height: auto;
        padding: 5rem 0 3rem;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .floating-3d-card {
        animation: none !important;
        transform: none !important;
    }
    .js-tilt-3d {
        transform: none !important;
        box-shadow: var(--card-shadow) !important;
    }
    .inner-3d, .inner-3d-deep {
        transform: none !important;
    }
}
