:root {
    /* Premium Gold Palette */
    --gold-primary: #D4AF37;
    /* Metallic Gold */
    --gold-highlight: #F9E29C;
    /* Light reflection */
    --gold-shadow: #AA771C;
    /* Darker shading */

    /* Backgrounds */
    --black-bg: #050505;
    /* Deep rich black */
    --black-card: #0F0F0F;
    /* Subtle contrast */

    /* Text */
    --text-color: #F0F0F0;
    --text-muted: #A3A3A3;

    /* Gradients */
    --gradient-gold-metallic: linear-gradient(135deg, #bf953f 0%, #fcf6ba 40%, #b38728 60%, #fbf5b7 100%);
    --gradient-gold-text: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7);
    --gradient-dark-glow: radial-gradient(circle at center, rgba(212, 175, 55, 0.15), transparent 70%);

    --font-heading: 'Kanit', sans-serif;
    --font-body: 'Kanit', sans-serif;
}

/* Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle texture overlay */
    background-image: radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05), transparent 40%);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography & Gold Effects */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 700;
}

.text-gold {
    background: var(--gradient-gold-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: goldShine 4s linear infinite;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

@keyframes goldShine {
    to {
        background-position: 200% center;
    }
}

/* Premium Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-gold-metallic);
    color: #000;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-highlight);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    border-color: var(--gold-highlight);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(5, 5, 5, 0.95);
    /* More opaque for mobile readability */
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: 0.3s;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.logo span {
    background: var(--gradient-gold-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: var(--gold-primary);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.hamburger {
    display: none;
    color: var(--gold-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    /* More top padding for transparent nav */
    position: relative;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Hero Glow Background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    /* Ensure buttons wrap on small screens */
}

.hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: 20px;
    /* Gold Border Effect */
    padding: 2px;
    background: var(--gradient-gold-metallic);
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.8);
}

.hero-image img {
    display: block;
    width: 100%;
    border-radius: 18px;
    /* Slightly less than container */
    background: #000;
}

/* Features */
.features {
    padding: 100px 0;
    background: #080808;
    /* Slightly lighter than hero */
    position: relative;
    /* Subtle top border */
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Premium Glowing Separator */
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.8), transparent);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    z-index: 2;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--black-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Equal height */
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-gold-metallic);
    transform: scaleX(0);
    transition: 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
    border-color: rgba(212, 175, 55, 0.2);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient-gold-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Showcases */
.gallery {
    padding: 100px 0;
    background: #050505;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.5), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: 0.5s;
    opacity: 0.8;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* Contact */
.contact {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    padding: 60px 40px;
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.c-item {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.c-item:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
}

.c-item i {
    color: var(--gold-primary);
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.c-item a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
    word-break: break-all;
    /* Ensure long emails don't overflow */
}

.c-item a:hover {
    color: var(--gold-primary);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #111;
    color: #555;
    background: #020202;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */

/* Tablet & Smaller Laptops */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }

    .hero-text h1 {
        font-size: 3rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {

    /* Navbar */
    .nav-menu {
        position: fixed;
        top: 60px;
        /* Below navbar */
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 20px;
        transform: translateY(-150%);
        opacity: 0;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 900;
        border-bottom: 1px solid var(--gold-primary);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .hamburger {
        display: block;
    }

    /* Hero */
    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-flex {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
    }

    /* Features */
    .features {
        padding: 60px 0;
    }

    /* Gallery */
    .gallery {
        padding: 60px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Stack vertically */

    /* Contact */
    .contact {
        padding: 60px 0;
    }

    .contact-box {
        padding: 40px 20px;
    }

    .contact-info {
        flex-direction: column;
    }

    .c-item {
        width: 100%;
        min-width: auto;
    }
}

/* Image Modal */
#imageModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--gold-primary);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }

    /* Full width buttons */
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .contact-box h2 {
        font-size: 1.8rem;
    }
}