:root {
    --primary: #00509d;       
    --primary-dark: #00296b;
    --secondary: #001524;     
    --accent: #00b4d8;        
    --text-body: #475569;
    --text-dark: #1e293b; 
    --bg-light: #f8fafc;
    --white: #ffffff;
    
    /* UI Elements */
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --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: var(--bg-light);
    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;
}

.logo img { 
    height: 45px; 
    width: auto; 
}

nav ul { 
    display: flex; 
    gap: 2.5rem; 
    align-items: center;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--white); 
    opacity: 0.9;
    position: relative;
    padding: 5px 0;
}

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); }

/* Added transition for the menu icon to spin smoothly */
.menu-toggle i { transition: transform 0.3s ease; }
.menu-toggle i.fa-xmark { transform: rotate(90deg); }

/* --- DROPDOWN MENU STYLES --- */
.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;
}

.hero {
    position: relative;
    height: 85vh; 
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center; 
    text-align: center;      
    background: linear-gradient(135deg, rgba(0, 21, 36, 0.5) 0%, rgba(0, 0, 0, 0.4) 50%),
                url('lagunalake.jpeg') center/cover;
    color: var(--white);
    margin-top: 0;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
    margin-bottom: 3rem; 
}

.hero-photo-credit {
    font-size: 0.65rem;            
    color: rgba(255, 255, 255, 0.400);
    margin-top: 1.5rem;           
    text-align: center;          
    font-weight: 300;              
}

.hero-photo-credit a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.hero-photo-credit a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero-photo-credit {
        font-size: 0.6rem;
        margin-top: 1rem;
    }
}

.hero h1 {
    font-size: 3.4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    color: #00b4d8;
    display: inline-block;
    position: relative;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 0;
    opacity: 0.9;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services { padding: 6rem 0; text-align: center; }

.section-header { margin-bottom: 4rem; padding: 0 1rem; }
.section-header h2 { font-size: 2.5rem; color: var(--secondary); margin-bottom: 1rem; }
.section-header p { color: var(--text-body); max-width: 600px; margin: 0 auto; }

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Forces exactly 4 columns on one line */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    text-align: left;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 180, 216, 0.2);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 80, 157, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #00b4d8;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card:hover .icon-box { background: #00b4d8; color: var(--white); }

.card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; color: var(--secondary); font-weight: 600; }
.card p { color: var(--text-body); font-size: 0.95rem; line-height: 1.6; }

/* =========================================
   4. PARTNERSHIP SECTION
   ========================================= */
.partnership-section { padding: 6rem 0; background-color: var(--white); }
.partnership-header { text-align: center; max-width: 800px; margin: 0 auto 4rem; }
.partnership-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }

.partner-card {
    padding: 3rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: var(--transition);
}

.partner-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.partner-badge {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(0, 80, 157, 0.1); 
    color: #00b4d8;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
}

.partner-icon {
    width: 60px; height: 60px;
    background: rgba(0, 180, 216, 0.1);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #00b4d8;
    margin-bottom: 1.5rem;
}

.partner-sub {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.partner-list { 
    border-top: 1px solid #f1f5f9; 
    padding-top: 1.5rem; 
}

.partner-list li { 
    margin-bottom: 1rem; 
    display: flex; 
    gap: 12px; 
    font-size: 0.95rem; 
    align-items: flex-start;
    line-height: 1.5;
}

.partner-list i { 
    color: var(--accent); 
    margin-top: 4px;
    flex-shrink: 0;
}

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);
}

.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;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    /* Target only the main nav-links list to prevent hiding the dropdown */
    nav > ul.nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: stretch; /* Forces children to take up full width */
        padding: 0;
        gap: 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid #eee;
        
        /* Animation properties */
        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%; 
    }

    /* Target only the main nav-links list when active */
    nav > ul.nav-links.active { 
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        visibility: visible;
    }
    
    nav a { 
        color: var(--secondary); 
        padding: 1rem 2rem;
        display: block;
        width: 100%;
        text-align: center; 
    }
    
    nav a:hover { background: #f1f5f9; color: var(--primary-dark); }
    nav a::after { display: none; }
    
    nav a.active {
        color: var(--primary);
        background: rgba(0, 80, 157, 0.05); 
        font-weight: 700;
        border-left: 4px solid var(--primary); 
    }
    
    /* --------------------------------------
       Mobile Flatten Menu Fixes 
       -------------------------------------- */
    /* 1. Hide the "Overview" button on mobile */
    .dropdown > a.dropbtn {
        display: none; 
    }
    
    /* 2. Remove flex row formatting from the li container */
    .dropdown {
        width: 100%;
        display: block; 
    }
    
    /* 3. Extract the dropdown content so it flows normally */
    .dropdown-content {
        display: flex;
        flex-direction: column;
        position: static; /* removes absolute positioning */
        box-shadow: none;
        background-color: transparent; /* Match the main mobile background */
        width: 100%;
        border-radius: 0;
        padding: 0;
        visibility: visible;
        clip-path: none;
    }
    
    /* 4. Match the styling of the new links to the rest of the mobile menu */
    .dropdown-content a {
        padding: 1rem 2rem; 
        font-size: 0.95rem;
        text-align: center;
    }
    
    .hero h1 { font-size: 2.5rem; }
    .hero { clip-path: none; height: auto; padding: 8rem 0 4rem; }
    .hero-content { padding: 0 1.5rem; text-align: center; }
    
    /* Updated Mobile Grid */
    .grid { 
        grid-template-columns: 1fr; /* Forces exactly 1 column on mobile screens */
        padding: 0 1rem; 
        gap: 1.5rem; /* Slightly smaller gap for mobile */
    }

    /* Mobile adjustments for Partnership Section */
    .partnership-section { 
        padding: 4rem 0; 
    }

    .partnership-grid { 
        grid-template-columns: 1fr; 
        gap: 1.5rem; 
    }

    .partner-card {
        padding: 2.5rem 1.5rem 1.5rem; 
    }

    .partner-badge {
        top: 15px; 
        right: 15px;
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .partner-icon {
        width: 50px; 
        height: 50px;
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .partner-card h3 {
        font-size: 1.25rem;
    }

    .partner-sub {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .partner-list {
        padding-top: 1.25rem;
    }

    .partner-list li {
        font-size: 0.9rem;
        gap: 10px;
        margin-bottom: 0.85rem;
    }

}
