@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:wght@100..900&display=swap');

:root {
    --primary-brand: #C490FF;
    --bg-black: #000000;
    --bg-dark-gray: #0A0A0A;
    --text-white: #FFFFFF;
    --text-gray: #C2C2C2;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-radius-lg: 30px;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 0.9;
}

.text-brand {
    color: var(--primary-brand);
}

.bg-brand {
    background-color: var(--primary-brand);
}

.border-brand {
    border-color: var(--primary-brand);
}

/* New Utilities */
.bg-bg-black {
    background-color: var(--bg-black);
}

.bg-bg-dark-gray {
    background-color: var(--bg-dark-gray);
}

.stroke-text {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    color: transparent;
}

.text-outline-brand {
    -webkit-text-stroke: 1px var(--primary-brand);
    color: transparent;
}

/* Animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-spin-slow {
    animation: spin 8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-black);
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
    border: 2px solid var(--bg-black);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-brand);
}

/* Navigation Refinement */
/* Navigation Refinement */
nav {
    transition: var(--transition-smooth);
}

nav.scrolled .glass-header {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    border-top: none;
    border-bottom: none;
}

.nav-link {
    position: relative;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition-fast);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-brand);
}

.nav-link::after {
    display: none;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-brand);
    color: var(--bg-black);
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--primary-brand);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-brand);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(196, 144, 255, 0.1);
}

.btn-primary-dark {
    background-color: var(--bg-black);
    color: var(--primary-brand);
    padding: 18px 48px;
    border-radius: 100px;
    font-weight: 800;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

.btn-primary-dark:hover {
    background-color: white;
    color: black;
    transform: scale(1.05);
}

.btn-outline {
    padding: 14px 32px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--primary-brand);
    color: var(--primary-brand);
    transform: translateY(-2px);
}

/* Section Header */
.section-subtitle {
    color: var(--primary-brand);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 1rem;
}

/* Card Styles */
.creza-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    transition: var(--transition-smooth);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.creza-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-brand);
    transform: translateY(-10px);
}

.glass-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(196, 144, 255, 0.3);
    box-shadow: 0 0 30px rgba(196, 144, 255, 0.1);
}

/* Image Hover Zoom */
.img-zoom-container {
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.img-zoom {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.img-zoom-container:hover .img-zoom {
    transform: scale(1.1);
}

/* Icons */
.icon-container {
    width: 70px;
    height: 70px;
    background: var(--primary-brand);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-black);
    font-size: 1.75rem;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.creza-card:hover .icon-container {
    transform: rotate(10deg);
}

/* Process Steps */
.process-step {
    position: relative;
    padding-bottom: 2rem;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -20%;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    display: none;
}

@media (min-width: 768px) {
    .process-step:not(:last-child)::after {
        display: block;
    }
}

/* AOS Setup */
[data-aos] {
    transition-duration: 1000ms !important;
}

/* Hero Section Specific */
.hero-img-mask {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

/* Footer Styling */
footer h3 {
    position: relative;
    padding-bottom: 15px;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-brand);
}

/* Newsletter Input */
#newsletterForm input {
    transition: var(--transition-fast);
}

#newsletterForm input:focus {
    box-shadow: 0 0 0 2px rgba(196, 144, 255, 0.2);
}

/* Smooth Entrance for Content */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal Animations */
[data-aos="reveal-right"] {
    clip-path: inset(0 100% 0 0);
    transition-property: clip-path;
}

[data-aos="reveal-right"].aos-animate {
    clip-path: inset(0 0 0 0);
}

[data-aos="reveal-left"] {
    clip-path: inset(0 0 0 100%);
    transition-property: clip-path;
}

[data-aos="reveal-left"].aos-animate {
    clip-path: inset(0 0 0 0);
}

/* Brand accent utility */
.text-brand-shadow {
    text-shadow: 0 0 20px rgba(196, 144, 255, 0.3);
}

.bg-card-dark {
    background: #0A0A0A;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* GOLD WRAP */
.why-choose-wrap {
    background: radial-gradient(1200px 500px at 10% 10%, rgba(255, 199, 88, .22), transparent 60%),
        linear-gradient(135deg, rgba(255, 199, 88, .18), rgba(0, 0, 0, .55));
    border: 1px solid rgba(255, 199, 88, .18);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

/* MINI TITLE */
.why-mini-title {
    color: rgba(255, 199, 88, 0.95);
    font-weight: 800;
    letter-spacing: .22em;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* BIG TITLE */
.why-big-title {
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.05;
    font-size: clamp(28px, 3.2vw, 54px);
}

.why-big-title span {
    display: block;
}

/* LEFT IMAGE GLASS */
.why-left-img-wrap {
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.why-left-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transform: scale(1);
    transition: transform .7s ease;
    clip-path: inset(0 0 0 0);
}

.why-left-img-wrap:hover .why-left-img {
    transform: scale(1.06);
}

/* TEXT */
.why-para {
    color: rgba(255, 255, 255, .70);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 18px;
}

/* LIST */
.why-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.why-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: rgba(255, 255, 255, .88);
    font-weight: 700;
    line-height: 1.5;
}

.why-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 199, 88, .14);
    border: 1px solid rgba(255, 199, 88, .22);
    color: rgba(255, 199, 88, .95);
    flex: 0 0 auto;
    margin-top: 2px;
}

/* DECOR IMAGE + BLUR PANEL */
.why-decor-img {
    position: absolute;
    right: -40px;
    bottom: -50px;
    width: min(520px, 55vw);
    opacity: .95;
    pointer-events: none;
    z-index: 1;
}

.why-decor-blur {
    position: absolute;
    right: 40px;
    bottom: 35px;
    width: min(560px, 60vw);
    height: 260px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 0;
    pointer-events: none;
}

/* CHAT WIDGET & FLOATING ICONS */
.floating-icons-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
}

.float-btn:hover {
    transform: scale(1.1);
}

.btn-whatsapp {
    background: #25D366;
}

.btn-chat {
    background: var(--primary-brand);
    color: #000;
}

/* Chat Popup */
.chat-widget {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.chat-widget.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    background: var(--primary-brand);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
}

.chat-body {
    height: 400px;
    display: flex;
    flex-direction: column;
    background: #0A0A0A;
}

/* Login Form */
.chat-login-form {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.chat-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.chat-input:focus {
    border-color: var(--primary-brand);
    background: rgba(255, 255, 255, 0.08);
}

/* Conversation Area */
.chat-conversation {
    flex: 1;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    min-height: 0;
    /* Crucial for nested flex scrolling */
}

.chat-messages {
    flex: 1 1 auto;
    /* Allow shrinking/growing */
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    /* Crucial for nested flex scrolling */
    scroll-behavior: smooth;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
}

/* Messages */
.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.sent {
    background: var(--primary-brand);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.message.received {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
    display: block;
}

/* Scrollbar for chat */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    border: 2px solid #0A0A0A;
    /* Matches bg for padding effect */
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--primary-brand);
}