:root {
    --color-primary: #0A192F;
    --color-primary-light: #112240;
    --color-accent: #D4AF37;
    --color-accent-hover: #F3E5AB;
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-bg-light: #FAFAFA;
    --color-bg-white: #FFFFFF;
    --color-border: #E0E0E0;
    --color-nav-scrolled: rgba(255, 255, 255, 0.95);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --shadow-soft: 0 10px 30px -10px rgba(10, 25, 47, 0.1);
    --shadow-hover: 0 20px 40px -10px rgba(10, 25, 47, 0.2);
    --shadow-float: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition-standard: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);

    --nav-height: 90px;
    --section-padding: 120px;
}

[data-theme="dark"] {
    --color-primary: #FFFFFF;
    --color-primary-light: #E0E0E0;
    --color-accent: #D4AF37;
    --color-text-main: #E0E0E0;
    --color-text-muted: #A0AAB5;
    --color-bg-light: #112240;
    --color-bg-white: #0A192F;
    --color-border: #233554;
    --color-nav-scrolled: rgba(10, 25, 47, 0.95);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
    --shadow-float: 0 10px 25px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    transition: color 0.5s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: var(--section-padding) 0;
}

.bg-light {
    background-color: var(--color-bg-light);
    transition: background-color 0.5s ease;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0A192F;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-brand {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-accent);
    letter-spacing: 5px;
    margin-bottom: 20px;
    animation: pulse 2s infinite ease-in-out;
}

.loader-bar-container {
    width: 150px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar {
    width: 100%;
    height: 100%;
    background-color: var(--color-accent);
    animation: loadingBar 1.5s infinite ease-in-out;
    transform-origin: left;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes loadingBar {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.section-heading {
    margin-bottom: 3rem;
}

.section-eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
}

.heading-line {
    width: 80px;
    height: 3px;
    background-color: var(--color-accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
    gap: 10px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #0A192F !important;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-accent) !important;
}

.btn-outline {
    background-color: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}

.btn-outline:hover {
    background-color: #FFFFFF;
    color: #0A192F;
}

.btn-full {
    width: 100%;
}

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(5px);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0);
    z-index: 1000;
    transition: var(--transition-standard);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background-color: var(--color-nav-scrolled);
    backdrop-filter: blur(10px);
    height: 80px;
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid transparent;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFFFFF;
    transition: var(--transition-standard);
}

.navbar.scrolled .brand-name {
    color: var(--color-primary);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFFFFF;
    position: relative;
}

.navbar.scrolled .nav-link {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-standard);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-nav {
    border: 1px solid var(--color-accent);
    padding: 10px 24px;
    color: var(--color-accent) !important;
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    background-color: var(--color-accent);
    color: #0A192F !important;
}

.theme-toggle {
    background: none;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-standard);
}

.navbar.scrolled .theme-toggle {
    color: var(--color-primary);
}

.theme-toggle:hover {
    color: var(--color-accent);
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: #FFFFFF;
    transition: var(--transition-standard);
}

.navbar.scrolled .bar {
    background-color: var(--color-primary);
}

.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.hero-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    color: #FFFFFF;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #FFFFFF;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-hover);
}

.image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-accent);
    z-index: 1;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: var(--color-bg-white);
    padding: 50px 40px;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-standard);
    border-bottom: 3px solid transparent;
    border: 1px solid var(--color-border);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--color-accent);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--color-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: var(--transition-standard);
    border: 1px solid var(--color-border);
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--color-primary);
    border-color: transparent;
}

.service-icon {
    width: 30px;
    height: 30px;
    color: var(--color-accent);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-desc {
    color: var(--color-text-muted);
}

.testimonials {
    position: relative;
    color: #FFFFFF;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.testimonials-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.9);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--color-accent);
    line-height: 1;
    height: 60px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    font-style: italic;
    color: #FFFFFF;
}

.author-name {
    font-size: 1.25rem;
    color: var(--color-accent);
    margin-bottom: 5px;
}

.author-role {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-desc {
    margin-bottom: 40px;
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.method-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.method-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    border: 1px solid var(--color-border);
}

.method-icon svg {
    width: 24px;
    height: 24px;
}

.method-text span {
    display: block;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.method-text a {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

.method-text a:hover {
    color: var(--color-accent);
}

.premium-form {
    background-color: var(--color-bg-white);
    padding: 50px;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 40px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-main);
    border: none;
    border-bottom: 1px solid var(--color-border);
    background-color: transparent;
    outline: none;
    resize: none;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 1rem;
    color: var(--color-text-muted);
    transition: var(--transition-standard);
    pointer-events: none;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-standard);
}

.input-group input:focus~.input-line,
.input-group textarea:focus~.input-line,
.input-group input:not(:placeholder-shown)~.input-line,
.input-group textarea:not(:placeholder-shown)~.input-line {
    width: 100%;
}

.input-group input:focus~label,
.input-group textarea:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -20px;
    font-size: 0.75rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.phone-group {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 40px;
}

.ddi-select {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 10px 5px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-standard);
    height: 45px;
    width: 110px;
}

.ddi-select:focus {
    border-bottom-color: var(--color-accent);
}

.phone-input-wrapper {
    flex: 1;
    margin-bottom: 0;
}

.footer {
    background-color: #0A192F;
    color: #FFFFFF;
    padding-top: 80px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
    color: #FFFFFF;
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.social-icon:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #0A192F;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: var(--shadow-float);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
    animation: none;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

@keyframes pulse-wa {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.ai-chat-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    font-family: var(--font-body);
}

.ai-chat-toggle {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-float);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-standard);
    outline: none;
}

.ai-chat-toggle:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.ai-chat-toggle svg {
    width: 30px;
    height: 30px;
}

.ai-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: var(--color-bg-white);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-hover);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition-standard);
}

.ai-chat-window.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ai-chat-header {
    background-color: var(--color-primary);
    color: #FFFFFF;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-accent);
}

.header-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-accent);
}

.header-status {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
}

.header-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #25d366;
    border-radius: 50%;
}

.ai-chat-close {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.ai-chat-close:hover {
    color: var(--color-accent);
}

.ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: var(--color-bg-light);
}

.message {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9375rem;
    line-height: 1.4;
    position: relative;
}

.bot-message {
    align-self: flex-start;
    background-color: var(--color-bg-white);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    border-bottom-left-radius: 2px;
}

.user-message {
    align-self: flex-end;
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-bottom-right-radius: 2px;
}

.bot-message p {
    margin-bottom: 8px;
}

.bot-message p:last-child {
    margin-bottom: 0;
}

.bot-message ul {
    padding-left: 20px;
    margin: 8px 0;
}

.bot-message li {
    margin-bottom: 4px;
    list-style-type: disc;
}

.chat-typing {
    display: flex;
    gap: 4px;
    padding: 10px 15px;
}

.chat-typing span {
    width: 6px;
    height: 6px;
    background-color: var(--color-text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite both;
}

.chat-typing span:nth-child(1) {
    animation-delay: 0s;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.ai-chat-input-area {
    display: flex;
    padding: 15px;
    background-color: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
    gap: 10px;
}

.ai-chat-input-area input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    transition: border-color 0.3s;
}

.ai-chat-input-area input:focus {
    border-color: var(--color-accent);
}

.ai-chat-input-area button {
    background-color: var(--color-primary);
    color: var(--color-accent);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

.ai-chat-input-area button:hover {
    transform: scale(1.05);
    background-color: var(--color-primary-light);
}

.ai-chat-input-area button svg {
    width: 20px;
    height: 20px;
    transform: rotate(90deg) translateX(2px);
}

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.custom-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-panel {
    position: relative;
    background-color: var(--color-bg-white);
    width: 90%;
    max-width: 480px;
    padding: 50px 40px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--color-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.custom-modal.is-open .modal-panel {
    transform: scale(1) translateY(0);
}

.modal-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px auto;
    transition: var(--transition-standard);
}

.modal-icon-wrapper.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.modal-icon-wrapper svg {
    width: 40px;
    height: 40px;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.modal-message {
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-size: 1.125rem;
}

.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.fade-up {
    transform: translateY(40px);
}

.slide-right {
    transform: translateX(-40px);
}

.slide-left {
    transform: translateX(40px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0);
}

@media (max-width: 992px) {

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--color-bg-white);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.5s;
        display: flex;
        justify-content: center;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav-link {
        color: var(--color-primary) !important;
        font-size: 1.5rem;
    }

    .form-row,
    .phone-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .ddi-select {
        width: 100%;
        margin-bottom: 20px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .testimonial-text {
        font-size: 1.5rem;
    }

    .premium-form {
        padding: 30px 20px;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

    .ai-chat-container {
        bottom: 20px;
        right: 20px;
    }

    .ai-chat-toggle {
        width: 50px;
        height: 50px;
    }

    .ai-chat-window {
        width: calc(100vw - 40px);
        right: 0;
        height: 450px;
    }
}