/* Global Styles & Variables */
:root {
    --primary-color: #0d47a1;
    /* Deep Blue */
    --primary-light: #5472d3;
    --primary-dark: #002171;
    --accent-color: #fdd835;
    /* Gold/Yellow */
    --accent-hover: #c6a700;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --gradient-bg: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 15px 40px rgba(13, 71, 161, 0.15);
    --font-lao: 'Inter', 'Times New Roman', 'Arial', 'Arial Narrow', 'Ropa Sans', 'DM Sans', 'Roboto', 'Source Sans 3', 'Poppins', 'Noto Sans Lao Looped', 'Phetsarath_OT', 'Phetsarath OT', 'Saysettha OT', 'Saysettha', sans-serif;
    --font-pop: 'Inter', 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-lao);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-lao);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-lao);
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(253, 216, 53, 0.4);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: var(--accent-color);
    color: var(--text-dark);
    transform: scale(1.05);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 70px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-pop);
}

.logo i {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-contact {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 4px;
}

.btn-contact:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-contact::after {
    display: none;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px auto;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: var(--gradient-bg);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 70px;
    /* offset navbar */
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: var(--white);
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text .highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

/* Floating Cards for Hero Image Placeholder */
.hero-image {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
    top: 20%;
    right: 10%;
    min-width: 250px;
}

.floating-card.bottom {
    top: 60%;
    left: 10%;
    right: auto;
    animation-delay: 3s;
    background: var(--white);
    color: var(--primary-color);
}

.icon-lg {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.floating-card.bottom .icon-lg {
    color: var(--primary-color);
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-info span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.card-info strong {
    font-size: 1.1rem;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Services Section */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-bottom: 4px solid var(--accent-color);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(13, 71, 161, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--primary-color);
}

.icon-box i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .icon-box i {
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-list {
    text-align: left;
    margin-top: 15px;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.service-list li i {
    color: var(--accent-color);
    /* Gold color for bullets */
    margin-top: 4px;
    /* Align with text */
    flex-shrink: 0;
}

.service-note {
    background: #fff8e1;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-top: 40px;
    text-align: center;
    border-left: 4px solid #ffca28;
}

/* About/Why Us Section */
.why-us {
    background-color: var(--light-bg);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.abstract-box {
    width: 100%;
    height: 400px;
    background: var(--gradient-bg);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: var(--card-shadow);
}

.abstract-box i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.2);
}

.abstract-box::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    border-radius: 50%;
    top: -50px;
    left: -50px;
    z-index: -1;
    opacity: 0.2;
}

.feature-list {
    margin-top: 30px;
}

.feature-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.feature-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.feature-list h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.feature-list p {
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    background: var(--primary-dark);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
    /* Generic desk bg provided as placeholder, overlay covers mostly */
    background-size: cover;
    background-attachment: fixed;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: var(--white);
    box-shadow: var(--card-shadow);
    border-radius: 20px;
    overflow: hidden;
}

.contact-info {
    padding: 50px;
    background: var(--primary-color);
    color: var(--white);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.contact-item .details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.contact-item .details p,
.contact-item .details a {
    color: var(--white);
    font-size: 1rem;
    opacity: 0.8;
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
}

.map-container {
    min-height: 400px;
}

/* Footer */
footer {
    background: #001036;
    color: rgba(255, 255, 255, 0.6);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media screen and (max-width: 960px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-content,
    .why-us-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-image {
        display: none;
        /* Hide abstract visual on tablets to save space */
    }

    .image-stack {
        display: none;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(13, 71, 161, 0.95);
        /* Deep Blue with opacity */
        backdrop-filter: blur(15px);
        width: 100%;
        height: 100vh;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: none;
        gap: 40px;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: var(--white);
        font-size: 1.5rem;
        font-weight: 600;
    }

    .nav-link::after {
        background: var(--accent-color);
        height: 3px;
        bottom: -8px;
    }

    .btn-contact {
        background: var(--accent-color);
        color: var(--primary-dark) !important;
        padding: 15px 40px;
        font-size: 1.2rem;
        border-radius: 50px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .btn-contact:hover {
        background: var(--white);
        transform: scale(1.05);
    }

    /* Change toggle color to white when active/on dark bg */
    .menu-toggle.active .bar {
        background-color: var(--white);
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .contact-info {
        padding: 30px 20px;
    }
}

/* Animations Classes */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}