/**
 * MASSAGRR.MY - Main Stylesheet
 * Luxury Wellness Brand - Black, Gold, White Theme with Glassmorphism
 */

/* ============================================
   Root Variables & Reset
   ============================================ */
:root {
    --primary-dark: #000000;
    --primary-gold: #d4af37;
    --primary-white: #ffffff;
    --secondary-dark: #1a1a1a;
    --secondary-light: #2a2a2a;
    --text-light: #e0e0e0;
    --border-color: rgba(212, 175, 55, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-white);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-gold) !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-light) !important;
    margin: 0 15px;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-gold) !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    border-radius: 25px;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), #e6c200);
    border: none;
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e6c200, var(--primary-gold));
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
}

.btn-outline-warning {
    color: var(--primary-gold) !important;
    border: 2px solid var(--primary-gold);
    transition: var(--transition);
}

.btn-outline-warning:hover {
    background: var(--primary-gold);
    color: var(--primary-dark) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transform: scale(1.05);
}

.btn-light {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-white);
}

.btn-light:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.8) 100%),
                url('../images/hero-bg.jpg') center/cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 10;
    animation: slideInUp 1s ease-out;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    animation: fadeInDown 1s ease-out;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* ============================================
   Cards & Glassmorphism
   ============================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
    transform: translateY(-10px);
}

.service-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(42, 42, 42, 0.6) 100%);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.service-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.25);
    transform: translateY(-15px);
}

.service-card .card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .card-image {
    transform: scale(1.05);
}

.service-card .card-content {
    padding: 1.5rem;
}

.service-card .card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-white);
}

.service-card .card-price {
    font-size: 1.5rem;
    color: var(--primary-gold);
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-card .card-rating {
    margin-bottom: 1rem;
}

.service-card .card-rating .fa-star {
    color: var(--primary-gold);
}

.service-card .card-rating .fa-star-half-alt {
    color: var(--primary-gold);
}

.service-card .card-rating .fa-star.far {
    color: rgba(212, 175, 55, 0.3);
}

/* ============================================
   Sections
   ============================================ */
section {
    padding: 5rem 0;
    position: relative;
}

section.dark-section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-top: 1px solid var(--border-color);
}

section.light-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

/* ============================================
   Grid & Flexbox Utilities
   ============================================ */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-auto {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes slideInUp {
    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 fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   Forms
   ============================================ */
.form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--primary-white);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    transition: var(--transition);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    color: var(--primary-white);
}

.form-control::placeholder {
    color: rgba(224, 224, 224, 0.6);
}

.form-label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ============================================
   Floating Buttons
   ============================================ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 1.8rem;
    line-height: 60px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

#backToTop {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, var(--primary-gold), #e6c200);
    color: var(--primary-dark);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: var(--transition);
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

#backToTop.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-section {
    animation: fadeInUp 1s ease-out;
}

.footer-title {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-gold);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.footer-divider {
    border-color: var(--border-color);
    margin: 2rem 0;
}

.footer-bottom {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-copyright {
    color: rgba(224, 224, 224, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .nav-link {
        margin: 0.5rem 0;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .whatsapp-float,
    #backToTop {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .grid-auto {
        gap: 1rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-gold {
    color: var(--primary-gold);
}

.text-white {
    color: var(--primary-white);
}

.text-light {
    color: var(--text-light);
}

.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pt-3 { padding-top: 3rem; }

.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }
.pb-3 { padding-bottom: 3rem; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
