:root {
    --primary: #00509d;       
    --primary-dark: #00296b;
    --secondary: #001524;     
    --accent: #00b4d8;        
    --text-body: #475569;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    background-color: #f8fafc;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary);
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { display: block; max-width: 100%; }

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0); 
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}
header.scrolled {
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none; 
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
.logo img { 
    height: 45px; 
    width: auto; 
    flex-shrink: 0;
}
nav ul { 
    display: flex; 
    gap: 1.5rem; 
    align-items: center;
    flex-wrap: nowrap;
}
nav a {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--white); 
    opacity: 0.9;
    position: relative;
    padding: 5px 2px;
    white-space: nowrap;
}
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #00b4d8;
    transition: var(--transition);
}
nav a:hover::after, nav a.active::after { width: 100%; }
nav a:hover, nav a.active { opacity: 1; color: #00b4d8; }
header.scrolled nav a { color: var(--secondary); }
header.scrolled nav a:hover, header.scrolled nav a.active { color: var(--primary-dark); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--white); }
header.scrolled .menu-toggle { color: var(--secondary); }
.menu-toggle i { transition: transform 0.3s ease; }
.menu-toggle i.fa-xmark { transform: rotate(90deg); }
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem 0;
    flex-direction: column;
    gap: 0; 
    z-index: 1001;
}
.dropdown:hover .dropdown-content {
    display: flex;
}
.dropdown-content li {
    width: 100%;
}
.dropdown-content a {
    color: var(--secondary) !important; 
    padding: 12px 20px;
    display: block;
    font-size: 0.9rem;
    opacity: 1;
}
.dropdown-content a::after {
    display: none; 
}
.dropdown-content a:hover {
    background-color: #f8fafc;
    color: var(--primary) !important;
}

/* Modern Language Switch Button */
.global-lang-toggle {
    display: flex;
    align-items: center;
}

.lang-toggle-checkbox {
    display: none; 
}

.lang-toggle-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 74px;
    height: 34px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0 4px;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

header.scrolled .lang-toggle-label,
header.menu-open .lang-toggle-label {
    background-color: #e2e8f0; 
    border-color: #cbd5e1;
}

.lang-toggle-label span:not(.lang-slider) {
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 700;
    width: 50%;
    text-align: center;
    transition: var(--transition);
    user-select: none;
}

.lang-toggle-label span:not(.lang-slider) {
    color: var(--white);
}

header.scrolled .lang-toggle-label span:not(.lang-slider),
header.menu-open .lang-toggle-label span:not(.lang-slider) {
    color: var(--text-light);
}

.lang-toggle-checkbox:not(:checked) + .lang-toggle-label .lang-en,
.lang-toggle-checkbox:checked + .lang-toggle-label .lang-fil {
    color: var(--white) !important; 
}

.lang-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 32px;
    height: 28px;
    background-color: var(--accent);
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.lang-toggle-checkbox:checked + .lang-toggle-label .lang-slider {
    transform: translateX(32px); 
}

/* Fade-in Animation for Text Changing */
.fade-text {
    animation: fadeInText 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInText {
    0% { opacity: 0; transform: translateY(3px); }
    100% { opacity: 1; transform: translateY(0); }
}

.page-header {
    background: linear-gradient(135deg, rgba(0, 21, 36, 0.5) 0%, rgba(1, 1, 1, 0.4) 50%),
                url('../images/lagunalake.jpeg') center/cover;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white);
}

.page-header h1 { 
    font-size: 3.5rem; 
    color: var(--white); 
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.page-header h1 span { color: #48cae4; }

.breadcrumb { 
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.history-section { 
    padding: 6rem 0; 
    background: #f8fafc; 
}

.history-header {
    text-align: center;
    margin-bottom: 3rem;
}

.history-header h2 {
    font-size: 2.2rem;
    color: var(--secondary);
}

.title-line-center {
    width: 60px; 
    height: 4px; 
    background: var(--accent); 
    margin: 12px auto 0;
    border-radius: 2px;
}

.history-split {
    display: grid;
    grid-template-columns: 1.3fr 1fr; 
    gap: 3rem;
    align-items: stretch; 
}

.pdf-viewer-card {
    width: 100%;
    background: var(--secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 600px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 180, 216, 0.3);
}

.pdf-header {
    background: #1e293b;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    flex-shrink: 0;
    border-bottom: 2px solid var(--accent);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.browser-title {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-left: 10px;
    font-family: monospace;
}

.pdf-viewer-card iframe {
    width: 100%;
    flex-grow: 1;
    border: none;
    background: #fff;
}

.history-image {
    width: 100%;
    height: 100%;
}

.history-image img { 
    width: 100%;
    height: 100%;
    max-height: 600px; 
    object-fit: cover; 
    border-radius: 16px; 
    box-shadow: var(--shadow-lg); 
    transition: var(--transition);
}

.history-image img:hover {
    transform: scale(1.02);
}

.mv-section { padding: 6rem 0; background: var(--white); }
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.mv-card { padding: 3rem; border-radius: 16px; text-align: center; border: 1px solid rgba(0,0,0,0.05); box-shadow: var(--shadow-sm); transition: var(--transition); }
.mv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.mv-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 1.5rem; background: rgba(0, 180, 216, 0.05); width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }

.combined-info-section { padding: 6rem 0; background: #f8fafc; }
.combined-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }

.section-title-left h2 { font-size: 2rem; color: var(--secondary); margin-bottom: 0.5rem; }
.title-line { width: 50px; height: 4px; background: var(--accent); margin-bottom: 2.5rem; border-radius: 2px; }

.values-compact-list { display: flex; flex-direction: column; gap: 1rem; }
.value-row {
    display: flex; align-items: center; gap: 1.5rem;
    background: var(--white); padding: 1rem 1.5rem;
    border-radius: 12px; box-shadow: var(--shadow-sm);
    transition: var(--transition); border-left: 4px solid #00b4d8;
}
.value-row:hover { transform: translateX(10px); border-left-color: var(--accent); }
.value-letter { font-size: 1.8rem; font-weight: 800; color: #00b4d8; }

.service-intro { margin-bottom: 2rem; color: var(--text-light); }
.scope-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.scope-tag {
    background: var(--white); padding: 1rem; border-radius: 10px;
    font-weight: 600; color: var(--secondary);
    box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 10px;
}
.scope-tag:hover { border: 1px solid var(--accent); color: var(--primary); transform: translateY(-3px); }

footer {
    background: var(--secondary);
    color: var(--white);
    padding: 5rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-left: 15px;
}

.footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 18px;
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-col a, .footer-col p {
    color: #94a3b8;
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col a:hover { color: var(--accent); transform: translateX(5px); }

.socials { display: flex; gap: 12px; margin-top: 1.5rem; }

.socials a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 0;
}

.socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--secondary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #64748b;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; z-index: 1001; }
    
    nav > ul.nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: stretch; 
        padding: 0;
        gap: 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid #eee;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        visibility: hidden;
        transition: clip-path 0.3s ease-in-out, visibility 0.3s;
    }

    nav li {
        width: 100%; 
    }
    
    nav > ul.nav-links.active { 
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        visibility: visible;
    }
    
    nav a { 
        color: var(--secondary) !important; 
        padding: 1.2rem 2rem;
        display: block;
        width: 100%;
        text-align: center; 
        border-bottom: 1px solid #f8fafc;
    }
    
    nav a:hover { 
        background: #f1f5f9; 
        color: var(--primary-dark) !important; 
    }
    
    nav a::after { display: none; }

    nav a.active {
        color: var(--primary) !important;
        background: rgba(0, 80, 157, 0.05); 
        font-weight: 700;
        border-left: 4px solid var(--primary); 
    }

    .dropdown > a.dropbtn {
        display: none; 
    }
    
    .dropdown {
        width: 100%;
        display: block; 
    }
    
    .dropdown-content {
        display: flex;
        flex-direction: column;
        position: static; 
        box-shadow: none;
        background-color: transparent; 
        width: 100%;
        border-radius: 0;
        padding: 0;
        visibility: visible;
        clip-path: none;
    }
    
    .dropdown-content a {
        padding: 1.2rem 2rem; 
        font-size: 0.95rem;
        text-align: center;
        border-bottom: 1px solid #f8fafc;
    }
    
    header.menu-open {
        background: var(--white);
        box-shadow: var(--shadow-sm);
    }
    
    header.menu-open .menu-toggle i {
        color: var(--primary-dark);
    }
    
    .page-header h1 { font-size: 2.2rem; }
    .page-header { height: auto; padding: 7rem 1.5rem 4rem; }
    
    .combined-grid, .scope-grid, .partnership-grid, .mv-grid, .history-split { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
    }

    .history-image img {
        min-height: 300px; 
        max-height: 400px;
    }

    .pdf-viewer-card {
        height: 500px; 
    }
    
    .partnership-section, .mv-section, .combined-info-section, .history-section { 
        padding: 4rem 0; 
    }

    .partner-card, .mv-card {
        padding: 2rem 1.5rem;
    }
}
