/* ===================================
   SparkHotel - Custom CSS
   =================================== */

/* ===== ROOT VARIABLES ===== */
:root {
    /* Colors */
    --primary-navy: #1a2332;
    --primary-dark: #0f1419;
    --accent-red: #ff3b3b;
    --accent-red-dark: #e63946;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #212529;
    --text-light: #6c757d;
    --text-white: #ffffff;

    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ===== DARK MODE VARIABLES ===== */
[data-theme="dark"] {
    /* Dark Mode Colors */
    --primary-navy: #0f1419;
    --primary-dark: #000000;
    --bg-light: #1a1f2e;
    --bg-white: #0f1419;
    --text-dark: #e0e0e0;
    --text-light: #a0a0a0;

    /* Adjusted shadows for dark mode */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 100px 0;
}

/* ===== NAVIGATION ===== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.navbar-brand .logo {
    height: 50px;
    transition: var(--transition-fast);
    background: white;
    padding: 5px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .navbar-brand .logo {
    background: white;
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.1);
}

.navbar-brand:hover .logo {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--text-white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    position: relative;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .btn-cta {
    background: var(--accent-red);
    color: var(--text-white) !important;
    border-radius: 50px;
    padding: 0.5rem 1.5rem !important;
    margin-left: 1rem;
}

.navbar-nav .btn-cta::after {
    display: none;
}

.navbar-nav .btn-cta:hover {
    background: var(--accent-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 59, 59, 0.4);
}

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    margin: 0 0.5rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-red);
    transform: rotate(15deg) scale(1.1);
}

.theme-toggle i {
    font-size: 1rem;
    transition: var(--transition-fast);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 59, 59, 0.1);
    border-color: var(--accent-red);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
    background-image: url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(15, 20, 25, 0.9) 100%);
}

[data-theme="dark"] .hero-overlay {
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.97) 0%, rgba(0, 0, 0, 0.95) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hero-title {
    font-size: 3.5rem;
    color: var(--text-white);
    font-weight: 800;
    margin: 1rem 0;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--accent-red);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.hero-buttons .btn-primary {
    background: var(--accent-red);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 59, 59, 0.3);
}

.hero-buttons .btn-primary:hover {
    background: var(--accent-red-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 59, 59, 0.5);
}

.hero-buttons .btn-outline-light {
    border: 2px solid var(--text-white);
}

.hero-buttons .btn-outline-light:hover {
    background: var(--text-white);
    color: var(--primary-navy);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    color: var(--accent-red);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border: 3px solid rgba(255, 255, 255, 0.1);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.floating-card {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: var(--bg-white);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInLeft 1s ease;
}

.floating-card i {
    font-size: 2rem;
}

.floating-card span {
    font-weight: 600;
    color: var(--text-dark);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator a {
    color: var(--text-white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ===== SECTION HEADER ===== */
.section-badge {
    display: inline-block;
    background: rgba(255, 59, 59, 0.1);
    color: var(--accent-red);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

[data-theme="dark"] .section-badge {
    background: rgba(255, 59, 59, 0.15);
    border: 1px solid rgba(255, 59, 59, 0.3);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

[data-theme="dark"] .section-title {
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background: var(--bg-light);
    transition: background-color 0.3s ease;
}

.feature-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth), background-color 0.3s ease, border-color 0.3s ease;
    height: 100%;
    border: 1px solid transparent;
}

[data-theme="dark"] .feature-card {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(26, 31, 46, 0.6);
}

[data-theme="dark"] .feature-card:hover {
    border-color: rgba(255, 59, 59, 0.3);
    box-shadow: 0 8px 32px rgba(255, 59, 59, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-image img {
    transform: scale(1.1);
}

.feature-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--accent-red);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.feature-content {
    padding: 2rem;
}

.feature-title {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

[data-theme="dark"] .feature-title {
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list li i {
    color: var(--accent-red);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--bg-white);
    transition: background-color 0.3s ease;
}

.about-image {
    position: relative;
}

.about-image img {
    border: 3px solid var(--bg-light);
}

.about-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--accent-red);
    color: var(--text-white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-badge i {
    font-size: 2.5rem;
}

.about-badge h4 {
    margin: 0;
    font-size: 1rem;
}

.about-badge p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.9;
}

.about-content {
    padding-left: 2rem;
}

.about-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-features {
    margin-top: 2rem;
}

.about-feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about-feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 59, 59, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.about-feature-content h4 {
    font-size: 1.2rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

[data-theme="dark"] .about-feature-content h4 {
    color: var(--text-dark);
}

.about-feature-content p {
    color: var(--text-light);
    margin: 0;
}

/* ===== WHY US SECTION ===== */
.why-us-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
    color: var(--text-white);
}

.why-us-section .section-badge {
    background: rgba(255, 59, 59, 0.2);
}

.why-us-section .section-title {
    color: var(--text-white);
}

.why-us-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.why-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    height: 100%;
}

[data-theme="dark"] .why-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .why-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 59, 59, 0.4);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    border-color: var(--accent-red);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-red);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.why-card:hover .why-icon {
    transform: rotateY(360deg);
}

.why-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.why-card p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--bg-light);
    transition: background-color 0.3s ease;
}

.contact-info {
    background: var(--primary-navy);
    color: var(--text-white);
    padding: 3rem;
    border-radius: 20px;
    height: 100%;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info>p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-details a,
.contact-details p {
    color: var(--text-white);
    font-weight: 500;
    margin: 0;
}

.contact-details a:hover {
    color: var(--accent-red);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-red);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

[data-theme="dark"] .contact-form-wrapper {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(26, 31, 46, 0.6);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: var(--font-secondary);
    transition: var(--transition-fast);
    background-color: var(--bg-white);
    color: var(--text-dark);
}

[data-theme="dark"] .form-control {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .form-control:focus {
    border-color: var(--accent-red);
    background-color: rgba(0, 0, 0, 0.4);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.1);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid~.invalid-feedback {
    display: block;
}

.contact-form .btn-primary {
    background: var(--accent-red);
    border: none;
    border-radius: 10px;
    padding: 1rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.contact-form .btn-primary:hover {
    background: var(--accent-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 59, 59, 0.4);
}

.form-message {
    padding: 1rem;
    border-radius: 10px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 4rem 0 2rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
    background: white;
    padding: 5px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .footer-logo {
    background: white;
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.15);
}

.footer-widget h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-red);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--accent-red);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-red);
    transform: translateY(-3px);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-red);
    color: var(--text-white);
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-red-dark);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        padding-left: 0;
        margin-top: 2rem;
    }

    .footer-social {
        justify-content: flex-start;
        margin-top: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .floating-card {
        left: 0;
        bottom: 10px;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 575px) {
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
}