/* 
 * KMS HOTEL - Premium Landing Page Styles (v1.0)
 * Modern Corporate Aesthetic with Glassmorphism
 */

:root {
    --primary: #0f172a;        /* Deep Navy */
    --primary-light: #1e293b;
    --accent: #0284c7;         /* Professional Blue */
    --accent-vibrant: #06b6d4; /* Cyan */
    --secondary: #fbbf24;      /* Amber/Gold */
    --success: #10b981;        /* Emerald */
    --text-main: #f8fafc;      /* Off-white */
    --text-muted: #94a3b8;     /* Slate */
    --bg-light: #ffffff;
    --bg-slate: #f1f5f9;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Helpers */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-vibrant), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gold {
    color: var(--secondary);
}

/* Layout Containers */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--accent-vibrant);
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-vibrant);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--text-muted);
}

.btn-gold {
    background: var(--secondary);
    color: var(--primary);
}

.btn-gold:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: radial-gradient(circle at top right, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1), transparent 70%);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--glass-border);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: var(--transition);
}

.hero-image-wrapper:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Features Section */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-header p {
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: 3.5rem 2.8rem;
    border-radius: 32px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.03);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.8rem;
    overflow: visible; /* To allow glow effects if needed */
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(15, 23, 42, 0.15),
        0 0 25px rgba(6, 182, 212, 0.08);
    border-color: var(--accent-vibrant);
    background: #ffffff;
}

.feature-icon {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(2, 132, 199, 0.1));
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--accent);
    margin: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent-vibrant), var(--accent));
    opacity: 0;
    transform: scale(0.8);
    transition: inherit;
    z-index: -1;
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.2);
}

.feature-card:hover .feature-icon {
    color: white;
    transform: rotate(8deg) translateY(-5px);
}

.feature-card:hover .feature-icon::after {
    opacity: 1;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0;
    color: var(--primary);
    letter-spacing: -0.8px;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--accent);
}

.feature-card p {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

/* Stayview Highligher */
.stayview-section {
    background: var(--primary);
    color: var(--text-main);
    border-radius: 40px;
    padding: 80px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.stayview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.stayview-demo {
    background: var(--primary-light);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--glass-border);
}

.stayview-grid-mockup {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.room-node {
    height: 60px;
    border-radius: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.room-node.occupied { background: #ef4444; border-color: #fca5a5; }
.room-node.available { background: var(--success); border-color: #6ee7b7; color: white; }
.room-node.cleaning { background: var(--secondary); border-color: #fde68a; color: var(--primary); }

/* Footer */
footer {
    background: var(--primary);
    padding: 80px 0 40px;
    color: var(--text-main);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-vibrant);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-grid, .stayview-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .nav-links {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    .section {
        padding: 60px 0;
    }
    .hero-content h1 {
        font-size: 2.75rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .stayview-section {
        padding: 40px 20px;
    }
}
