@font-face {
    font-family: 'Ganh';
    src: url('../fonts/Ganh Type - Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Ganh';
    src: url('../fonts/Ganh Type - RegularItalic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'Ganh';
    src: url('../fonts/Ganh Type - Thin.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Ganh';
    src: url('../fonts/Ganh Type - ThinItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}

/* --- Variables --- */
:root {
    --primary-color: #163929; /* Dark green */
    --primary-light: #1A4733; 
    --secondary-color: #D4AF37; /* Gold */
    --bg-light: #F6F3EC; /* Very light beige */
    --bg-card: #FAF8F2; /* Even lighter beige for page */
    --text-main: #163929; /* Dark green for text in hero */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    
    --font-heading: 'Ganh', serif;
    --font-body: 'Ganh', sans-serif;
    
    --transition: all 0.3s ease;
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-card); /* The whole page is beige */
    line-height: 1.6;
    letter-spacing: 0.03em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-light);
}

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

.btn-outline-dark:hover {
    background-color: rgba(22, 57, 41, 0.05);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background-color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--white);
}

.btn-light:hover {
    background-color: transparent;
    color: var(--white);
}

.btn-outline-light-green {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light-green:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 2px;
}

.btn-link:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header.center {
    text-align: center;
    margin-bottom: 50px;
}

.divider {
    display: flex;
    justify-content: center;
}

/* --- Top Green Background Area --- */
.top-green-bg {
    position: relative;
    /* The dark green background covers the header and stops 300px down the hero */
    background: linear-gradient(to bottom, var(--primary-color) 0%, var(--primary-color) 400px, transparent 400px);
    padding-bottom: 40px; /* Space before about section */
}

/* --- Navbar --- */
.navbar {
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    color: var(--white);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
}

.logo-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    opacity: 0.9;
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--white);
    font-size: 15px;
    font-weight: 400;
    opacity: 0.9;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--secondary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}


/* --- Hero Section --- */
.hero {
    position: relative;
    max-width: 1360px;
    margin: 20px auto 0;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--bg-light); /* This is the beige gradient color */
    height: 600px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); /* Optional: add subtle shadow so it pops from background */
}

.hero-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient from beige to transparent to blend with the left side */
    background: linear-gradient(90deg, var(--bg-light) 0%, rgba(246, 243, 236, 0.8) 20%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-main);
    max-width: 550px;
    padding: 80px 0 80px 80px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(90deg, var(--bg-light) 70%, transparent 100%);
}

.badge {
    display: inline-block;
    padding: 6px 15px;
    border: 1px solid rgba(22, 57, 41, 0.3);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 25px;
    width: fit-content;
    color: var(--text-main);
}

.hero-title {
    font-size: 54px;
    margin-bottom: 25px;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 16px;
    color: var(--text-main);
    opacity: 0.8;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    border: 1px solid rgba(22, 57, 41, 0.4);
}

.dot.active {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* Sections Backgrounds below Hero */
.about, .services, .projects, .experience, .fengshui, .contact {
    background-color: transparent; /* They sit on the body's beige background */
}

/* About Section */
.about {
    padding: 60px 0 100px;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.about-text {
    margin-bottom: 30px;
    color: var(--text-light);
    font-size: 16px;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

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

/* --- Services Section --- */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background-color: #FFFFFF;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.service-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-desc {
    font-size: 14px;
    color: var(--text-light);
}

/* --- Projects Section --- */
.projects {
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.project-title {
    font-size: 24px;
    margin-bottom: 5px;
}

.project-meta {
    font-size: 13px;
    opacity: 0.8;
}

.projects-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.project-overlay.simple {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.project-title-small {
    font-size: 18px;
    margin-bottom: 4px;
}

.project-meta-small {
    font-size: 12px;
    opacity: 0.8;
}

/* --- Experience Section --- */
.experience {
    padding: 80px 0;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.exp-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.exp-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.exp-icon.dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.exp-number {
    font-size: 32px;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.exp-label {
    font-size: 16px;
    margin-bottom: 10px;
    font-family: var(--font-body);
}

.exp-desc {
    font-size: 14px;
    color: var(--text-light);
}

/* --- Feng Shui Section --- */
.fengshui {
    padding: 100px 0;
}

.fengshui-container {
    display: flex;
    background-color: var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transform: translateZ(0); /* Fix for Safari overflow hidden with border-radius */
}

.fengshui-content {
    width: 50%;
    flex: 0 0 50%;
    padding: 60px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.fengshui-content::after {
    content: '';
    position: absolute;
    top: 0;
    right: -15%;
    width: 15.5%;
    height: 100%;
    background-color: var(--primary-color);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 1;
}

.fengshui-title {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 20px;
}

.fengshui-desc {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.fengshui-actions {
    display: flex;
    gap: 15px;
}

.fengshui-image {
    flex: 1;
    position: relative;
}

.fengshui-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fengshui-floating-card {
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    max-width: 280px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 3;
}

.fengshui-floating-card h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.fengshui-floating-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* --- Contact Section --- */
.contact {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.contact-info-card {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px 40px;
    border-radius: 8px;
}

.contact-card-title {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-list li:last-child {
    margin-bottom: 0;
}

.contact-list li i {
    color: var(--secondary-color);
    font-size: 18px;
    margin-top: 4px;
}

.contact-list li span {
    font-size: 14px;
    opacity: 0.9;
}

.contact-map {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.contact-map img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.pin-icon {
    color: var(--primary-color);
    font-size: 20px;
}

.pin-text {
    display: flex;
    flex-direction: column;
}

.pin-text strong {
    color: var(--primary-color);
    font-size: 14px;
}

.pin-text span {
    color: var(--text-light);
    font-size: 10px;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-slogan {
    font-size: 15px;
    opacity: 0.8;
    text-align: center;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    font-size: 13px;
    opacity: 0.7;
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.sep {
    font-size: 12px;
    opacity: 0.5;
}

/* --- Overlay for Mobile Menu --- */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
body.menu-open {
    overflow: hidden;
}
body.menu-open::after {
    opacity: 1;
    visibility: visible;
}

/* --- Hamburger Menu Styles --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001; /* Above mobile menu */
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* White hamburger on transparent navbar if at top */
.navbar:not(.scrolled) .hamburger span {
    background-color: var(--white);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--primary-color); /* Force color when open if menu background is light */
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--primary-color);
}

/* Responsive (Tablet & Mobile) */
@media (max-width: 1024px) {
    /* Hero */
    .hero { margin: 20px; }
    .hero-content {
        padding: 40px;
        max-width: 100%;
        background: linear-gradient(90deg, var(--bg-light) 40%, rgba(246, 243, 236, 0.9) 70%, transparent 100%);
    }
    
    /* Grids */
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .experience-grid { grid-template-columns: repeat(1, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
    
    /* Fengshui */
    .fengshui-container { flex-direction: column; }
    .fengshui-image {
        clip-path: none;
        height: 300px;
    }
    
    /* Contact */
    .contact-grid { grid-template-columns: 1fr; }
    .contact-map { height: 300px; }
}

@media (max-width: 992px) {
    /* Hamburger */
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 100%;
        height: 100vh;
        background-color: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links a {
        color: var(--primary-color) !important; /* Force dark color in dropdown */
        font-size: 20px;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }
    .nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active a:nth-child(5) { transition-delay: 0.5s; }
}

@media (max-width: 768px) {
    /* Padding Reductions */
    .services, .experience, .projects, .fengshui {
        padding: 60px 0;
    }
    
    /* Typography */
    .hero-title { font-size: 36px; }
    .section-title { font-size: 28px; }
    
    /* Grids */
    .services-grid { grid-template-columns: 1fr; }
    .projects-subgrid { grid-template-columns: 1fr; }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-logo { justify-content: center; }
    .footer-social { justify-content: center; }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Hero Tweaks */
    .hero {
        height: auto;
        margin: 0;
    }
    .hero-bg {
        position: relative;
        width: 100%;
        height: 300px;
    }
    .hero-content {
        padding: 30px;
        background: var(--bg-light);
    }
    .about-container { flex-direction: column; }
}

/* --- Decorative Patterns --- */
/* 1. Architectural Grid Pattern */
.pattern-grid {
    position: relative;
}
.pattern-grid::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}
.pattern-grid > * {
    position: relative;
}

/* 2. Watermark Logo Pattern */
.pattern-watermark {
    position: relative;
    overflow: hidden;
}
.pattern-watermark::after {
    content: 'GP';
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: 45vw;
    line-height: 1;
    color: rgba(22, 57, 41, 0.025);
    z-index: 0;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}
.pattern-watermark > * {
    position: relative;
}

/* 3. Fengshui Motif */
.pattern-fengshui {
    position: relative;
}
.pattern-fengshui::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L80 40L40 80L0 40L40 0z' fill='none' stroke='%23D4AF37' stroke-width='0.5' stroke-opacity='0.15'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    background-position: center;
    z-index: 0;
    pointer-events: none;
}
.pattern-fengshui > * {
    position: relative;
}
