:root {
    --primary: #1a3a5c;
    --primary-light: #1e5a8a;
    --accent: #c41e3a;
    --accent-light: #e8455b;
    --gold: #c8962e;
    --gold-light: #e0b44c;
    --bg: #f8f9fb;
    --surface: #ffffff;
    --surface-alt: #f0f2f7;
    --text: #1a1d28;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 32px 64px rgba(0, 0, 0, 0.12);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    transition: all var(--transition);
    height: 76px;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: var(--shadow-sm);
    height: 64px;
}

.nav-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    transition: color var(--transition);
    z-index: 1001;
}
.navbar.scrolled .nav-brand {
    color: var(--primary);
}

.nav-logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: -1px;
    transition: all var(--transition);
    flex-shrink: 0;
    overflow: visible;
    padding: 0;
}
.nav-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.navbar.scrolled .nav-logo-icon {
    background: transparent;
}

.nav-brand-text {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    line-height: 1.2;
}
.nav-brand-text .comelec-gold {
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.8px;
}
.navbar.scrolled .nav-brand-text .comelec-gold {
    color: #c8962e;
}
.nav-brand-text span {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 50px;
    transition: all var(--transition-fast);
    position: relative;
    letter-spacing: 0.2px;
}
.navbar.scrolled .nav-links a {
    color: var(--text-secondary);
}
.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.navbar.scrolled .nav-links a:hover {
    background: rgba(26, 58, 92, 0.06);
    color: var(--primary);
}
.nav-links a.active-link {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
}
.navbar.scrolled .nav-links a.active-link {
    background: var(--primary);
    color: #fff;
}

.nav-elections-btn {
    background: var(--accent) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    transition: all var(--transition) !important;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.35);
}
.nav-elections-btn:hover {
    background: var(--accent-light) !important;
    box-shadow: 0 6px 24px rgba(196, 30, 58, 0.5) !important;
    transform: translateY(-2px);
}
.nav-elections-btn.active-link {
    background: var(--accent-light) !important;
    box-shadow: 0 6px 24px rgba(196, 30, 58, 0.55) !important;
}
.navbar.scrolled .nav-elections-btn.active-link {
    background: var(--accent-light) !important;
    color: #fff !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    color: #fff;
    transition: color var(--transition);
}
.navbar.scrolled .mobile-toggle {
    color: var(--primary);
}
.mobile-toggle svg {
    width: 26px;
    height: 26px;
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    background: linear-gradient(160deg, #0d1f35 0%, #132a4a 25%, #1a3a5c 50%, #0f2840 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 2rem 80px;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: floatUp var(--dur) var(--delay) infinite ease-in-out;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}
@keyframes floatUp {
    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-110vh) scale(0.3);
        opacity: 0;
    }
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(180px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.hero-glow.g1 {
    background: #3b82f6;
    top: -200px;
    left: -150px;
    animation: glowPulse 8s infinite ease-in-out;
}
.hero-glow.g2 {
    background: #c41e3a;
    bottom: -250px;
    right: -150px;
    animation: glowPulse 10s 2s infinite ease-in-out;
}
@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.55;
        transform: scale(1.25);
    }
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    color: #fff;
}

/* ========== HERO LOGO ========== */
.hero-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out both;
}
.hero-logo {
    width: 180px;
    height: 180px;
    position: relative;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.4));
    transition: all var(--transition-slow);
    animation: logoFloat 6s ease-in-out infinite;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    padding: 0;
}
.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-4px);
    }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s 0.15s ease-out both;
}
.hero h1 .accent-text {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 550px;
    margin: 0 auto 36px;
    animation: fadeInUp 0.8s 0.25s ease-out both;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s 0.4s ease-out both;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.btn-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounceDown 2s infinite;
    cursor: pointer;
}
.scroll-indicator svg {
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.6);
}
@keyframes bounceDown {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(14px);
    }
}

/* ========== SECTIONS ========== */
.section {
    padding: 100px 2rem;
}
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    color: var(--primary);
}
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 48px;
}

/* ========== ABOUT CARDS ========== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.about-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    cursor: default;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}
.about-card:hover::before {
    transform: scaleX(1);
}
.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.about-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: all var(--transition);
}
.about-card-icon.red {
    background: #fef2f2;
    color: #ef4444;
}
.about-card-icon.gold {
    background: #fffbeb;
    color: #f59e0b;
}
.about-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== GUIDING PRINCIPLES ========== */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 48px;
}
.principle-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.principle-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.principle-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    border-radius: 50%;
    margin-bottom: 4px;
    transition: all var(--transition);
}
.principle-card:hover .principle-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}
.principle-card h4 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--primary);
    letter-spacing: 0.3px;
}
.principle-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ========== SERVICES ========== */
.services-section {
    background: var(--surface-alt);
    border-radius: var(--radius-xl);
    margin: 0 2rem;
    padding: 80px 3rem;
    position: relative;
    overflow: hidden;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.service-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px 24px;
    border: 1px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
    text-align: center;
}
.service-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}
.service-card .svc-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    display: block;
    transition: transform var(--transition);
}
.service-card:hover .svc-icon {
    transform: scale(1.15);
}
.service-card h4 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
}
.service-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========== TIMELINE ========== */
.timeline {
    position: relative;
    padding-left: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-light), var(--accent), var(--gold));
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 36px;
    padding: 20px 24px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.timeline-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(6px);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 28px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--accent-light);
    z-index: 2;
}
.timeline-item:nth-child(even)::before {
    background: var(--primary-light);
    box-shadow: 0 0 0 3px #60a5fa;
}
.timeline-date {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 6px;
}
.timeline-item h4 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.timeline-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 2rem;
    text-align: center;
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* ========== MOBILE NAV ========== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(13, 31, 53, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}
.mobile-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all var(--transition-fast);
}
.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
}
.mobile-menu .mobile-elections-btn {
    background: var(--accent);
    margin-top: 8px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .services-section {
        margin: 0 1rem;
        padding: 50px 1.5rem;
        border-radius: var(--radius-lg);
    }
    .section {
        padding: 60px 1.2rem;
    }
    .hero {
        padding: 100px 1.2rem 60px;
    }
    .hero-logo {
        width: 130px;
        height: 130px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .timeline {
        padding-left: 30px;
    }
    .timeline::before {
        left: 12px;
    }
    .timeline-item::before {
        left: -24px;
        width: 11px;
        height: 11px;
        top: 24px;
    }
}
@media (max-width: 500px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .btn {
        justify-content: center;
    }
    .hero-logo {
        width: 100px;
        height: 100px;
    }
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 {
    transition-delay: 0.1s;
}
.reveal-delay-2 {
    transition-delay: 0.2s;
}
.reveal-delay-3 {
    transition-delay: 0.3s;
}
.reveal-delay-4 {
    transition-delay: 0.4s;
}