:root {
    --primary-color: #0B1E3F;
    /* Midnight Blue */
    --gold-start: #DFBD69;
    --gold-end: #926F34;
    --text-dark: #333333;
    --text-light: #ffffff;
    --font-heading: 'Phetsarath OT', 'Noto Sans Lao', sans-serif;
    --font-body: 'Noto Sans Lao', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

section {
    padding: 100px 0;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Premium Gradients & Effects */
.text-gold {
    background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.bg-gold {
    background: linear-gradient(135deg, #BF953F 0%, #B38728 100%);
    color: #fff;
}

.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #BF953F, #FBF5B7, #B38728);
    background-size: 200% auto;
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary-color);
}

/* Header */
header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(11, 30, 63, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition);
}

header.scrolled .navbar {
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    color: #BF953F;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links li a {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #BF953F;
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: #fff;
    padding: 10px;
    /* Increase Touch Area */
    z-index: 1002;
    /* Ensure it is above other elements */
}

/* Mobile Menu Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hide off-screen by default */
    width: 280px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.4s ease;
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    padding-top: 80px;
}

/* CSS Checkbox Hack Logic */
#nav-toggle:checked~.mobile-nav {
    right: 0;
}

#nav-toggle:checked~.overlay {
    display: block;
}

/* Ensure mobile-nav is displayed as flex when visible on mobile */
@media (max-width: 900px) {
    .mobile-nav {
        display: flex;
    }
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
}

.mobile-nav li {
    text-align: left;
    border-bottom: 1px solid #eee;
}

.mobile-nav a {
    display: block;
    padding: 20px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    /* Hidden by default */
}

.overlay.active {
    display: block;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: #BF953F;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(11, 30, 63, 0.85), rgba(11, 30, 63, 0.7)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    padding: 0;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

/* Wave Divider */
.custom-shape-divider-bottom-1680000000 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom-1680000000 svg {
    position: relative;
    display: block;
    width: calc(157% + 1.3px);
    height: 100px;
}

.custom-shape-divider-bottom-1680000000 .shape-fill {
    fill: #f8f9fa;
}

/* Services Section */
.services {
    background-color: #f8f9fa;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #BF953F;
    margin: 10px auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #BF953F, #B38728);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #BF953F 0%, #B38728 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    font-size: 1.05rem;
}

/* Featured Software Card */
.service-card.highlight {
    background: linear-gradient(145deg, #ffffff, #fffdf5);
    border: 2px solid #BF953F;
    position: relative;
}

.service-card.highlight::after {
    content: 'Hot';
    position: absolute;
    top: 20px;
    right: -30px;
    background: #BF953F;
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
    background-color: #fff;
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    z-index: 1;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid #BF953F;
    border-radius: 20px;
    opacity: 0.3;
    z-index: 0;
}

.feature-list li {
    font-size: 1.1rem;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    transition: var(--transition);
}

.feature-list li:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateX(10px);
}

.feature-list i {
    color: #BF953F;
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    background-color: var(--primary-color);
    color: #fff;
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    background: linear-gradient(to right, #BF953F, #FCF6BA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-item {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #BF953F;
}

.contact-item a {
    font-size: 1.1rem;
    color: #e0e0e0;
}

.contact-item a:hover {
    color: #BF953F;
}

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.fab.whatsapp {
    background: #25D366;
}

.fab.phone {
    background: #BF953F;
    animation: pulse 2s infinite;
}

.fab:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(191, 149, 63, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(191, 149, 63, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(191, 149, 63, 0);
    }
}

/* Media Queries */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .mobile-nav {
        display: flex;
        /* Enable mobile menu on small screens */
    }
}