/* CSS Variables */
:root {
    /* Colors */
    --color-primary: #d38c37;
    --color-primary-darker: #b6752f;
    --color-background: #1f1f1f;
    --color-component-bg: #252525;
    --color-text-light: #a0a0a0;
    --color-text-white: #fff;
    --color-text-muted: #888;

    /* Border Radius */
    --radius-sm: 15px;
    --radius-md: 30px;

    /* Typography */
    --font-size-base: 0.8rem;
    --font-size-h1: 3.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.2rem;
    --font-size-large: 1.4rem;
    --font-size-normal: 1rem;
    --font-size-small: 0.9rem;
    --font-size-xs: 0.7rem;
    --letter-spacing-base: 0.5;
    --letter-spacing-large: 2px;
    --letter-spacing-medium: 1px;
    --letter-spacing-small: 0.7px;
    --line-height-base: 1.4;
    --line-height-large: 1.6;
    --line-height-xl: 1.7;
    --font-family-base: Roboto Condensed, Arial, sans-serif;

    /* Spacing */
    --gap-base: 2rem;
    --gap-large: 40px;
    --gap-xl: 70px;
    --gap-small: 1rem;
    --padding-base: 30px;
    --padding-large: 40px;
    --padding-xl: 50px;
    --padding-small: 15px;
    --padding-xs: 10px;
    --margin-base: 20px;
    --margin-large: 50px;
    --margin-xl: 100px;
    --margin-small: 10px;

    /* Layout */
    --header-height: 120px;
    --logo-width: 100px;
    --logo-divider-width: 250%;
    --nav-gap: 2rem;
    --nav-item-gap: 3rem;
    --breadcrumb-gap: 1rem;
    --breadcrumb-margin-top: 0.7rem;

    /* Button & Form */
    --button-padding: 0.8rem 2.5rem;
    --button-padding-large: 20px 30px;
    --button-padding-small: 15px 30px;
    --form-input-padding: 18px 20px;
    --form-group-margin: 20px;
    --radio-margin: 10px;
    --radio-input-margin: 12px;

    /* Call Button */
    --call-button-size: 50px;
    --call-button-bottom: 20px;
    --call-button-right: 20px;
    --call-button-font-size: 24px;

    /* Popup */
    --popup-max-width: 500px;
    --popup-padding: 2rem;
    --popup-body-gap: 1.5rem;
    --popup-body-padding: 1rem;
    --qr-image-size: 150px;
    --whatsapp-button-padding: 0.8rem 1.5rem;
    --whatsapp-button-max-height: 40px;
    --whatsapp-button-gap: 0.5rem;
    --whatsapp-icon-size: 1.2rem;

    /* Footer */
    --footer-padding: 15px 30px;
    --footer-wrapper-gap: 70px;
    --footer-wrapper-margin: 20px;
    --footer-column-margin: 15px;
    --footer-h4-margin: 8px;
    --footer-p-margin: 20px;
    --footer-social-gap: 10px;
    --footer-social-margin: 20px 0 15px 0;
    --footer-social-size: 30px;
    --footer-social-icon-size: 16px;
    --footer-brand-h2-size: 30px;
    --footer-brand-h2-margin: 8px;

    /* Z-index */
    --z-header: 99;
    --z-dropdown: 1000;
    --z-call-button: 1000;
    --z-popup: 2000;
    --z-popup-overlay: 1999;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    font-family: var(--font-family-base);
    color: var(--color-text-white);
    background-color: var(--color-background);
}

/* Global font-family inheritance */
* {
    font-family: inherit;
}

/* Common Utility Classes */
.highlight {
    color: var(--color-primary);
}

/* NAVIGATION & HEADER */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: var(--z-header);
    height: var(--header-height);
    max-height: var(--header-height);
    background-color: rgba(25, 25, 25, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform var(--transition-slow);
}

.main-header.is-hidden {
    transform: translateY(-100%);
}

/* Header Left Section */
.header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Logo */
.logo-image {
    width: var(--logo-width);
    height: auto;
    object-fit: contain;
}

/* Logo Divider */
.logo-divider {
    width: var(--logo-divider-width);
    height: 1px;
    background: linear-gradient(to right, var(--color-text-white) 0%, var(--color-text-white) 30%, transparent 100%);
    margin-left: 0;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--breadcrumb-gap);
    margin-top: var(--breadcrumb-margin-top);
}

.breadcrumb a {
    color: var(--color-text-white);
    text-decoration: none;
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-small);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-text-muted);
}

.breadcrumb .divider {
    color: var(--color-text-white);
    font-size: var(--font-size-base);
}

.breadcrumb .current {
    color: var(--color-primary);
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-small);
    font-weight: 500;
}

/* Navigation Menu */
.navigation-menu {
    display: flex;
    align-items: center;
    gap: var(--nav-gap);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--nav-item-gap);
}

.main-nav a {
    color: var(--color-text-white);
    text-decoration: none;
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-small);
    transition: color var(--transition-fast);
    position: relative;
    padding-bottom: 5px;
}

.main-nav a.active {
    color: var(--color-text-white);
}

/* Navigation Hover Effect */
.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text-white);
    transition: width var(--transition-fast);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Contact Button */
.cta-button {
    background-color: var(--color-primary);
    color: var(--color-text-white);
    padding: var(--button-padding);
    border-radius: var(--radius-md);
    text-transform: uppercase;
    font-size: var(--font-size-base);
    letter-spacing: var(--letter-spacing-medium);
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.cta-button:hover {
    background-color: var(--color-primary-darker);
}

/* Contact Dropdown Container */
.contact-dropdown {
    position: relative;
    display: inline-block;
}

/* Contact Dropdown Menu */
.contact-dropdown-menu {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: transparent;
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-bounce);
    z-index: var(--z-dropdown);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-dropdown.active .contact-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Contact Dropdown Items */
.contact-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.5rem;
    background: #252525cc;
    backdrop-filter: blur(5px);
    color: var(--color-text-white);
    text-decoration: none;
    font-size: var(--font-size-base);
    font-weight: 500;
    letter-spacing: var(--letter-spacing-base);
    transition: all var(--transition-slow);
    border-radius: var(--radius-md);
    text-transform: uppercase;
}

.contact-dropdown-item:hover {
    color: var(--color-primary);
    transform: translateY(-5px);
}

.contact-dropdown-item i {
    font-size: var(--whatsapp-icon-size);
    text-align: center;
}

.contact-dropdown-item span {
    flex: 1;
    align-items: center;
    justify-content: center;
}

/* Language Switcher */
.divider {
    display: inline-block;
    width: 0.7px;
    height: 15px;
    background: var(--color-text-white);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--nav-gap);
}

.lang-switcher a {
    color: var(--color-text-white);
    text-decoration: none;
    font-size: var(--font-size-base);
}



/* ===== SECTION 1 - COMPACT ===== */
.first-section {
    height: 50px;
    padding: 20px 0;
}

/* ===== SECTION 2 - SERVICES ===== */
.services-section {
    background-color: var(--color-background);
    padding-top: var(--margin-xl);
    margin-bottom: 80px;
}

.services-content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--gap-large);
}

.services-title {
    font-size: var(--font-size-h1);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-large);
    text-align: left;
    padding-left: var(--padding-base);
}

.services-image {
    width: 100%;
    padding: var(--padding-base);
    overflow: hidden;
}

.services-image img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: var(--radius-md);
    object-fit: contain;
    transition: transform var(--transition-fast);
}

/* ===== SECTION 3 - TEXT CONTENT ===== */
.text-content-section {
    margin-bottom: var(--margin-xl);
}

.text-content-wrapper {
    display: flex;
    gap: var(--gap-large);
    padding: 0 var(--padding-base);
    margin: 0 auto;
}

.text-column-left {
    flex: 60%;
    font-size: var(--font-size-h2);
    line-height: var(--line-height-large);
}

.text-column-right {
    flex: 40%;
    color: var(--color-text-light);
    font-size: var(--font-size-h3);
    line-height: var(--line-height-large);
}

/* .text-column-left p, .text-column-right p margin: 0 inherited from universal selector */

/* ===== SECTION 4 - ARCHITECTURAL DESIGN ===== */
.architectural-section {
    background-color: var(--color-background);
    margin-bottom: var(--padding-large);
}

.architectural-wrapper {
    background-color: #1a1a1a;
    border-radius: var(--radius-md);
    width: 96%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.architectural-content {
    padding: var(--padding-base);
    flex: 30%;
    color: var(--color-text-white);
}

.architectural-title {
    font-size: var(--font-size-h2);
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-text-white);
    margin-bottom: var(--padding-xl);
    letter-spacing: var(--letter-spacing-medium);
}

.architectural-description {
    font-size: var(--font-size-large);
    line-height: var(--line-height-xl);
    color: var(--color-text-light);
    margin-bottom: var(--margin-base);
}

.architectural-button {
    background-color: var(--color-primary);
    color: var(--color-text-white);
    border: none;
    padding: var(--button-padding-large);
    font-size: var(--font-size-small);
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
}

.architectural-image {
    height: 100%;
    flex: 70%;
}

.architectural-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* ===== CONTACT FORM STYLES ===== */
.contact-form {
    margin-top: 25px;
}

.form-group {
    margin-bottom: var(--form-group-margin);
}

.radio-label {
    display: block;
    margin-bottom: var(--radio-margin);
    cursor: pointer;
    color: var(--color-text-white);
    font-size: var(--font-size-normal);
}

.radio-label input[type="radio"] {
    margin-right: var(--radio-input-margin);
    accent-color: var(--color-primary);
}

.radio-text {
    color: var(--color-text-white);
    font-size: var(--font-size-normal);
}

.form-input {
    width: 100%;
    padding: var(--form-input-padding);
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 5px;
    color: var(--color-text-white);
    font-size: var(--font-size-normal);
}

.form-input::placeholder {
    color: var(--color-text-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-button {
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-text-white);
    border: none;
    padding: var(--button-padding-small);
    font-size: var(--font-size-normal);
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
}


/* ===== CONTACT SECTION SPECIFIC STYLES ===== */
.contact-content {
    padding: var(--padding-large);
    flex: 30%;
    color: var(--color-text-white);
}

.contact-title {
    font-size: var(--font-size-h2);
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-text-white);
    margin-bottom: var(--padding-xs);
    letter-spacing: var(--letter-spacing-medium);
}

.contact-description {
    font-size: var(--font-size-normal);
    line-height: var(--line-height-base);
    color: var(--color-text-light);
}

/* Call Button Fixed*/
.fixed-call-button {
    position: fixed;
    bottom: var(--call-button-bottom);
    right: var(--call-button-right);
    width: var(--call-button-size);
    height: var(--call-button-size);
    background-color: var(--color-primary);
    color: var(--color-text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--call-button-font-size);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: var(--z-call-button);
    transition: transform var(--transition-fast);
}

/* Hiệu ứng nổi lên khi hover */
.fixed-call-button:hover {
    transform: scale(1.2);
}

/* Hiệu ứng vòng tròn tỏa ra */
.fixed-call-button::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 50%;
    /* Gọi animation đã định nghĩa ở dưới */
    animation: pulse-effect 2s infinite ease-out;
}

/* Định nghĩa animation tỏa sáng */
@keyframes pulse-effect {
    0% {
        /* Bắt đầu từ kích thước gốc, độ mờ 70% */
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }

    100% {
        /* Kết thúc ở kích thước lớn hơn 2.5 lần, và mờ hẳn đi */
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* ===== PHONE POPUP ===== */
.phone-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-popup);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.phone-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: var(--color-background);
    border-radius: var(--radius-md);
    padding: var(--popup-padding);
    max-width: var(--popup-max-width);
    transform: scale(0.2);
    transition: transform var(--transition-fast);
}

.phone-popup.active .popup-content {
    transform: scale(1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.popup-header h3 {
    color: var(--color-text-white);
    font-size: var(--font-size-h4);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 1rem;
}

.popup-close {
    position: absolute;
    right: 10px;
    background: none;
    top: 10px;
    border: none;
    color: var(--color-text-white);
    font-size: 1.7rem;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: all var(--transition-medium);
}

.popup-body {
    display: flex;
    gap: var(--popup-body-gap);
    padding: var(--popup-body-padding);
    background-color: var(--color-component-bg);
    border-radius: var(--radius-md);
}

.whatsapp-section {
    display: flex;
    justify-content: center;
    /* căn giữa theo chiều ngang */
    align-items: center;
    /* căn giữa theo chiều dọc */
}

.whatsapp-button {
    background-color: #25D366;
    max-height: var(--whatsapp-button-max-height);
    color: var(--color-text-white);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--whatsapp-button-padding);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    gap: var(--whatsapp-button-gap);
}

.whatsapp-button:hover {
    background-color: #20b358;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-button i {
    font-size: var(--whatsapp-icon-size);
}

.qr-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.qr-section span {
    font-size: var(--font-size-small);
    font-weight: 500;
    margin-bottom: 0.7rem;
    color: var(--color-text-white);
}

.qr-image {
    width: var(--qr-image-size);
    height: var(--qr-image-size);
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Phone Popup Overlay */
.phone-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: var(--z-popup-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.phone-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* FOOTER */
.site-footer {
    background: #101010;
    color: var(--color-text-white);
    padding: var(--footer-padding);
    overflow-x: hidden;
}

.footer-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-top: var(--footer-wrapper-margin);
    gap: var(--footer-wrapper-gap);
    flex-wrap: wrap;
}

/* Footer Columns */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: var(--footer-column-margin);
}

.footer-column ul li a {
    color: var(--color-text-white);
    text-decoration: none;
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
    position: relative;
    padding-bottom: 5px;
    letter-spacing: var(--letter-spacing-base);
}

/* Footer Links Hover Effect */
.footer-column ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text-white);
    transition: width var(--transition-fast);
}

.footer-column ul li a:hover::after {
    width: 100%;
}

.footer-column h4 {
    font-size: var(--font-size-base);
    margin-bottom: var(--footer-h4-margin);
    font-weight: 500;
    color: var(--color-text-white);
    letter-spacing: var(--letter-spacing-base);
}

.footer-column p {
    font-size: var(--font-size-xs);
    color: #969696;
    margin-bottom: var(--footer-p-margin);
    letter-spacing: var(--letter-spacing-base);
}

/* Footer Brand */
.footer-brand h2 {
    font-size: var(--footer-brand-h2-size);
    font-weight: 500;
    margin-bottom: var(--footer-brand-h2-margin);
}

.footer-brand p {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
}

/* Footer Social Icons */
.footer-socials {
    display: flex;
    gap: var(--footer-social-gap);
    margin: var(--footer-social-margin);
    color: #969696;
}

.footer-socials a {
    color: #000;
    font-size: var(--footer-social-icon-size);
    transition: transform var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--footer-social-size);
    height: var(--footer-social-size);
    background-color: #fff;
    border-radius: 50%;
    margin: 0 6px;
}

.footer-socials a:hover {
    transform: scale(1.2);
}

/* CUSTOM SCROLLBAR */
/* Webkit-based browsers */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-button {
    display: none;
}

::-webkit-scrollbar-thumb {
    background-color: #d38c37;
    border-radius: 10px;
}