:root {
    --bg-dark: #050505;
    --bg-darker: #000000;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #d4af37;
    /* Gold */
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section-padding {
    padding: 6rem 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    display: inline-block;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

/* Animate to X when open */
.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(14px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav.open {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.mobile-nav a {
    font-size: 1.6rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    transition: color 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a:active {
    color: var(--accent);
}

.mobile-nav .btn-contact {
    border: 1px solid var(--accent);
    padding: 0.6rem 2rem;
    border-radius: 30px;
    color: var(--accent);
}

.mobile-nav .btn-contact:hover {
    background: var(--accent);
    color: #000;
}

.mobile-nav .lang-toggle {
    font-size: 1rem;
    margin-top: 0.5rem;
}

.btn-contact {
    border: 1px solid var(--accent);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: var(--accent);
    color: #000000;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    background: #b8962e;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

.tagline {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* Philosophy */
.philosophy-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-text {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.philosophy-text.emphasis {
    font-size: 2.2rem;
    color: #fff;
}

.philosophy-text.small {
    font-size: 1.4rem;
    color: var(--accent);
    margin-top: 2rem;
    font-weight: 400;
}

.divider {
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 3rem auto;
}

/* Services */
.services-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.srv-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 300px;
}

.srv-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.srv-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.srv-overlay h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #fff;
}

.srv-image:hover img {
    transform: scale(1.05);
}

/* Works */
.project-block {
    margin-bottom: 6rem;
}

.project-header {
    margin-bottom: 2rem;
}

.project-header h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.project-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.project-header .accent {
    color: #fff;
    font-size: 1.2rem;
}

.project-gallery {
    display: grid;
    gap: 1rem;
}

.col-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.col-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.col-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-layout {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.seven-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.project-gallery img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}

.project-gallery img:hover {
    transform: scale(1.02);
    z-index: 10;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* Clients */
.client-logos {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.client-logos img {
    width: 180px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    background: #ffffff;
    /* padding: 12px; */
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logos img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    animation: zoom 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

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

@keyframes zoom {
    from {
        transform: scale(0.8)
    }

    to {
        transform: scale(1)
    }
}

/* Why Us */
.why-intro {
    font-size: 1.8rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.why-item h4 {
    font-size: 1.3rem;
    font-weight: 400;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent);
    border-radius: 8px;
}

/* Footer */
.footer {
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.cta-sub {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 12px;
    display: inline-block;
    min-width: 400px;
}

.contact-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.contact-card p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.contact-card a:hover {
    color: var(--accent);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 1000px) {
    .philosophy-text {
        font-size: 1.5rem;
    }

    .philosophy-text.emphasis {
        font-size: 1.7rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.4rem;
    }

    .navbar {
        padding: 1rem 2rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .project-header h3 {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .contact-card {
        min-width: 100%;
        padding: 2rem 1rem;
    }
}

@media (max-width: 600px) {

    .col-2,
    .col-3,
    .col-4 {
        grid-template-columns: 1fr;
    }

    br {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* ── Download Portfolio Button ── */
.btn-download {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2rem;
    background: transparent;
    border: 1.5px solid #d4a96a;
    color: #d4a96a;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-download:hover {
    background: #d4a96a;
    color: #0a0a0a;
}

/* ── Floating Action Buttons (FAB) ── */
@keyframes fab-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes fab-pulse-zalo {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.55);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(0, 104, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 104, 255, 0);
    }
}

@keyframes fab-wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(12deg);
    }

    45% {
        transform: rotate(-10deg);
    }

    60% {
        transform: rotate(7deg);
    }

    75% {
        transform: rotate(-4deg);
    }
}

@keyframes fab-bounce-in {
    0% {
        opacity: 0;
        transform: scale(0) translateY(30px);
    }

    60% {
        transform: scale(1.15) translateY(-4px);
    }

    80% {
        transform: scale(0.95) translateY(2px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.fab-container {
    position: fixed;
    bottom: 28px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease, filter 0.2s ease;
    animation: fab-bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Slight entrance delay so second button pops in after first */
.fab-phone {
    animation-delay: 0.1s;
}

.fab-zalo {
    animation-delay: 0.25s;
}

.fab:hover {
    transform: scale(1.15) translateY(-3px);
    filter: brightness(1.15);
}

/* Phone — green with continuous pulse + periodic wiggle */
.fab-phone {
    background: #25d366;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
    animation: fab-bounce-in 0.6s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) both,
        fab-pulse 2s 1.5s ease-out infinite,
        fab-wiggle 4s 2s ease-in-out infinite;
}

/* Zalo — white background to match official logo */
.fab-zalo {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 104, 255, 0.4);
    /* border-radius: 18px; */
    width: 56px;
    height: 56px;
    animation: fab-bounce-in 0.6s 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both,
        fab-pulse-zalo 2s 2s ease-out infinite, fab-wiggle 4s 2s ease-in-out infinite;
}

.fab-zalo img {
    border-radius: 50%;
}