/* Root Variables - Brand Identity */
:root {
    --primary-orange: #F39C12;
    --accent-orange: #FF7A00;
    --dark: #2C2C2C;
    --gray: #6B6B6B;
    --light-gray: #F4F6F8;
    --white: #FFFFFF;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-nav: 0 2px 10px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Typography & Language Support */
body {
    font-family: 'Ubuntu', sans-serif;
    line-height: 1.7;
    color: var(--gray);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Khmer Font Override */
body.lang-kh {
    font-family: 'Battambang', cursive;
}

body.lang-kh h1, 
body.lang-kh h2, 
body.lang-kh h3, 
body.lang-kh h4,
body.lang-kh .nav-links a {
    font-weight: 700;
    line-height: 1.5;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 4rem;
    color: var(--dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-orange);
    margin: 15px auto;
    border-radius: 2px;
}

.bg-light {
    background-color: var(--light-gray);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Specific 4-column layout for Services */
.services-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--dark);
    font-weight: 700;
}

p {
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    border: 2px solid var(--primary-orange);
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-orange);
}

.btn-secondary:hover {
    background-color: var(--primary-orange);
    color: var(--white);
    transform: translateY(-2px);
}

/* Header & Navbar */
header {
    background-color: var(--white);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 18px 0;
    box-shadow: var(--shadow-nav);
}

header.sticky {
    padding: 12px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    transition: var(--transition);
}

header.sticky .logo img {
    height: 50px;
}

.footer-brand .logo img {
    height: 70px;
    filter: none; /* Show original logo colors on light footer */
}

.logo span {
    color: var(--primary-orange);
}

.nav-container {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 18px;
}

.nav-links a {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark);
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--primary-orange);
}

.nav-links a.active {
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Language Switcher Styling */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-left: 30px;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
}

.lang-btn {
    cursor: pointer;
    transition: var(--transition);
    padding: 0 5px;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--primary-orange);
}

.lang-switcher .separator {
    margin: 0 5px;
    color: #ddd;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--dark);
    margin: 6px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1581578731548-c64695cc6958?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding-top: 90px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Cards */
.card, .service-card {
    background: var(--white);
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
}

.card:hover, .service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-icon, .icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    display: block;
    color: var(--primary-orange);
}

/* Highlights Section Re-design */
.highlights-grid {
    grid-template-columns: 3fr 7fr; /* 30% video, 70% slider ratio */
    gap: 1.5rem;
    align-items: stretch;
}

.highlights-video {
    height: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 550px; /* Exact fixed height to match slider */
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #000;
}

.highlight-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 5;
}

.video-badge {
    background: var(--primary-orange);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.highlights-slider {
    height: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 550px; /* Exact fixed height to match video */
    overflow: hidden;
    border-radius: 40px;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 992px) {
    .highlights-grid {
        grid-template-columns: 1fr; /* Stack on smaller screens */
        gap: 3rem;
    }
    .video-wrapper, .slider-container {
        min-height: 400px;
        height: 450px;
    }
}

@media (max-width: 576px) {
    .video-wrapper, .slider-container {
        min-height: 300px;
        height: 350px;
    }
}

/* Highlights Slideshow (Old styles - keeping structure but container changed) */
.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active { opacity: 1; }

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--dark);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary-orange);
    color: var(--white);
}

.slider-btn.prev { left: 25px; }
.slider-btn.next { right: 25px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-orange);
    width: 30px;
    border-radius: 10px;
}

/* Clients */
.client-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.client-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
    font-weight: 700;
    color: #888;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    color: var(--primary-orange);
}

@media (max-width: 992px) {
    .client-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .client-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Contact Section */
.contact-layout {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-side .description {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.contact-details {
    margin-bottom: 3rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.detail-icon {
    color: var(--primary-orange);
    font-size: 1.3rem;
}

.social-icons-row {
    display: flex;
    gap: 15px;
    margin-bottom: 3rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-orange);
    transform: translateY(-3px);
}

.map-container {
    height: 260px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.form-card {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid #eee;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    border-bottom-color: var(--primary-orange);
}

.btn-send {
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    width: 100%;
}

.btn-send:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

#form-status {
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #b0b0b0;
    padding: 6rem 0 2rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
    display: block;
}

.footer-brand .logo img {
    height: 70px;
    filter: invert(1) hue-rotate(180deg); /* Turn black to white while keeping orange */
}

.footer-brand p {
    margin-bottom: 2rem;
    max-width: 320px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--primary-orange);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.footer-links h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 600;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: var(--primary-orange);
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 1.2rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-list li a {
    color: #b0b0b0;
    transition: var(--transition);
}

.footer-list li a:hover {
    color: var(--primary-orange);
    transform: translateX(5px);
    display: inline-block;
}

.footer-icon {
    color: var(--primary-orange);
    font-size: 1.1rem;
    min-width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive Footer Adjustments */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem 2rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer {
        padding: 4rem 0 2rem;
    }
}

/* Floating Buttons */
.floating-btns {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.float-btn {
    width: 55px;
    height: 55px;
    background: var(--white);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    font-weight: 700;
    border: 2px solid var(--primary-orange);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.float-btn:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: scale(1.1);
}

.float-btn.telegram { background: #0088cc; color: #fff; border: none; }
.float-btn.call { background: #4CAF50; color: #fff; border: none; }
.float-btn.top { background: var(--dark); color: #fff; display: none; border: none; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: 30px; right: 40px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links li {
        margin: 0 10px;
    }
    .nav-links a {
        font-size: 16px;
    }
    .lang-switcher {
        margin-left: 15px;
    }
    .contact-layout { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    .nav-container {
        display: none;
    }
    
    .nav-container.mobile-active {
        display: flex;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        z-index: 999;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 22px;
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 30px;
        font-size: 20px;
    }
    
    .hamburger { 
        display: block; 
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .slider-container { height: 350px; }
    .form-card { padding: 2rem; }
}
