@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #FF6B35;
    --primary-dark: #E85D2C;
    --secondary: #2D3436;
    --bg-light: #F8F9FA;
    --text-dark: #1A1A1A;
    --text-muted: #636E72;
    --white: #FFFFFF;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Liquid Glass Variables */
    --glass-bg: rgba(255, 255, 255, 0.35);
    --glass-border: rgba(255, 255, 255, 0.45);
    --glass-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
    --glass-blur: 16px;
    --liquid-gradient: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    --liquid-glow: 0 0 20px rgba(255, 107, 53, 0.2);

    --nav-bg: rgba(255, 255, 255, 0.35);
    --nav-scrolled-bg: rgba(255, 255, 255, 0.5);
    --nav-collapse-bg: rgba(255, 255, 255, 0.9);
    --card-bg: rgba(255, 255, 255, 0.6);
    --card-bg-hover: rgba(255, 255, 255, 0.8);
    --whatsapp-bg: rgba(255, 255, 255, 0.8);
    --chat-bg: #f0f2f5;
    --chat-bubble-bg: #ffffff;
    --chat-bubble-text: #333333;
    --chat-footer-bg: #ffffff;
    --input-bg: #f0f2f5;
    --input-text: #333333;
}

[data-theme="dark"] {
    --bg-light: #121212;
    --text-dark: #F8F9FA;
    --text-muted: #A0AAB2;
    --white: #1E1E1E;
    --secondary: #1A1A1A;

    --glass-bg: rgba(30, 30, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    --liquid-gradient: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(30, 30, 30, 0.2) 100%);

    --nav-bg: rgba(30, 30, 30, 0.45);
    --nav-scrolled-bg: rgba(30, 30, 30, 0.65);
    --nav-collapse-bg: rgba(30, 30, 30, 0.95);
    --card-bg: rgba(30, 30, 30, 0.7);
    --card-bg-hover: rgba(30, 30, 30, 0.85);
    --whatsapp-bg: rgba(30, 30, 30, 0.85);
    --chat-bg: #1a1a1a;
    --chat-bubble-bg: #2d2d2d;
    --chat-bubble-text: #f0f2f5;
    --chat-footer-bg: #222222;
    --input-bg: #333333;
    --input-text: #ffffff;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    background-image: radial-gradient(at 0% 0%, rgba(255, 107, 53, 0.12) 0, transparent 50%),
    radial-gradient(at 50% 0%, rgba(255, 107, 53, 0.06) 0, transparent 50%),
    radial-gradient(at 100% 0%, rgba(255, 107, 53, 0.12) 0, transparent 50%);
    background-attachment: fixed;
    animation: liquidBackground 25s ease infinite alternate;
}

@keyframes liquidBackground {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Glassmorphism Utility */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Navbar Modernization */
.navbar {
    background: var(--nav-bg) !important;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    padding: 0.7rem 1.8rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 20px auto;
    border-radius: 100px;
    width: 92%;
    max-width: 1200px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

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

.navbar.scrolled {
    margin-top: 12px;
    padding: 0.5rem 1.8rem;
    background: var(--nav-scrolled-bg) !important;
    width: 88%;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991px) {
    .navbar {
        border-radius: 25px;
        margin: 10px auto;
        width: 95%;
        padding: 0.5rem 1rem;
    }

    .navbar-collapse {
        background: var(--nav-collapse-bg);
        backdrop-filter: blur(20px);
        margin-top: 15px;
        border-radius: 20px;
        padding: 1rem;
        border: 1px solid var(--glass-border);
    }
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary) !important;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin: 0 12px;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 20px;
}

.nav-link:hover {
    color: var(--primary) !important;
    transform: translateY(-1px);
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* --- New: Modern Modal Styling --- */
.modern-modal {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent backdrop */
}

.modern-modal .modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    color: var(--text-dark);
}

.modern-modal .modal-header {
    border-bottom: 1px solid var(--glass-border);
    color: var(--primary);
    font-weight: 700;
}

.modern-modal .modal-body label {
    color: var(--text-muted);
}

.modern-modal .form-control {
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-dark);
    border-radius: 8px;
}

.modern-modal .form-control:focus {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.modern-modal .md-form label {
    color: var(--text-muted);
}

.modern-modal .md-form input {
    color: var(--text-dark);
}

.modern-modal .close {
    color: var(--text-dark);
    text-shadow: none;
}

.modern-modal .close:hover {
    color: var(--primary);
}

.btn-primary-modern:disabled {
    background: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
}


/* Hero Section */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
    margin-bottom: 4rem;
}

.carousel-item img {
    height: 85vh;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 10s linear;
}

.carousel-item.active img {
    transform: scale(1);
}

.carousel-caption {
    bottom: 35%;
    text-align: left;
    left: 10%;
    right: 10%;
    z-index: 10;
}

.carousel-caption h3 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.carousel-caption p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 16px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary-modern:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.4);
    color: var(--white);
}

/* Cards Modernization - Liquid Glass Style */
.card {
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    background: var(--card-bg-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
}

.card-img-top {
    transition: transform 0.8s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Section Titles */
.section-title {
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 4rem;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

/* WhatsApp Chat Box Styles */
.whatsapp-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-chat-box {
    width: 320px;
    background: var(--whatsapp-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    overflow: hidden;
    display: none; /* Hidden by default */
    flex-direction: column;
    transform-origin: bottom right;
    animation: slideUpGlass 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
}

@keyframes slideUpGlass {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.whatsapp-header {
    background: #25d366;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-header i {
    font-size: 24px;
}

.whatsapp-header .status {
    font-size: 12px;
    opacity: 0.9;
}

.whatsapp-body {
    padding: 20px;
    background: var(--chat-bg);
    min-height: 100px;
}

.chat-bubble {
    background: var(--chat-bubble-bg);
    padding: 10px 15px;
    border-radius: 0 15px 15px 15px;
    font-size: 14px;
    color: var(--chat-bubble-text);
    max-width: 85%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.whatsapp-footer {
    padding: 15px;
    background: var(--chat-footer-bg);
    display: flex;
    gap: 10px;
}

.whatsapp-footer input {
    flex: 1;
    border: 1px solid var(--glass-border);
    background: var(--input-bg);
    color: var(--input-text);
    border-radius: 25px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
}

.whatsapp-footer button {
    background: #25d366;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.whatsapp-footer button:hover {
    transform: scale(1.1);
}

.whatsapp-float {
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

/* Footer Modernization */
footer {
    background-color: var(--secondary) !important;
    color: var(--white) !important;
    padding: 6rem 0 3rem;
    border-radius: 50px 50px 0 0;
}

footer h6 {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

footer p, footer a {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

footer a:hover {
    color: var(--primary) !important;
    text-decoration: none;
    padding-left: 5px;
}

.footer-copyright {
    background-color: rgba(0, 0, 0, 0.2) !important;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .carousel-caption h3 {
        font-size: 2.5rem;
    }

    .hero-section {
        height: 70vh;
        border-radius: 0 0 30px 30px;
    }

    .section-title {
        font-size: 2rem;
    }

    .whatsapp-container {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-chat-box {
        width: 280px;
    }
}
