/* ===== CSS Variables ===== */
:root {
    --primary-color: #D32029;
    --secondary-color: #F8C300;
    --accent-color: #1A5276;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --text-dark: #212529;
    --text-white: #FFFFFF;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rubik', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

@media (min-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 1.8rem;
    }
}

/* ===== Progress Indicator ===== */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(0,0,0,0.1);
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
}

/* ===== Header / Navigation ===== */
header {
    background-color: rgba(26, 82, 118, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

header .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-white) !important;
}

.navbar-nav .nav-link {
    color: var(--text-white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(211, 32, 41, 0.7), rgba(26, 82, 118, 0.7)), url('./main.jpg');
    background-size: cover;
    background-position: right center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: var(--text-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    color: var(--text-white);
    font-size: 1.25rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    animation: fadeInUp 1.2s ease;
}

@media (min-width: 992px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.social-buttons {
    animation: fadeInUp 1.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-social {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    vertical-align: middle;
    line-height: 1.5;
}

.btn-instagram {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-instagram:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-facebook {
    background-color: var(--accent-color);
    color: var(--text-white);
}

.btn-facebook:hover {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* ===== Biography Section ===== */
.biography-section {
    background-color: var(--bg-white);
    padding: 5rem 0;
}

.section-title {
    color: var(--accent-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title i.fa-check-circle {
    color: #28a745;
    font-size: 0.8em;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.candidate-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 0 auto;
    display: block;
    object-fit: cover;
}

.bio-info {
    margin-bottom: 1.5rem;
}

.bio-info p {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.bio-info strong {
    color: var(--accent-color);
}

.bio-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* ===== Program Section ===== */
.program-section {
    background-color: var(--bg-light);
    padding: 5rem 0;
}

.program-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.program-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-icon i {
    font-size: 2rem;
    color: var(--text-white);
}

.card-title {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.card-text {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== Achievements Section ===== */
.achievements-section {
    background-color: var(--bg-white);
    padding: 5rem 0;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.achievement-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
}

.achievement-icon i {
    font-size: 1.5rem;
    color: var(--text-white);
}

.achievement-title {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.achievement-text {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== Mission Section ===== */
.mission-section {
    background-color: var(--bg-light);
    padding: 5rem 0;
}

.mission-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.mission-icon i {
    font-size: 3rem;
    color: var(--text-white);
}

.mission-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Campaign Section ===== */
.campaign-section {
    background-color: var(--bg-white);
    padding: 5rem 0;
}

.campaign-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.campaign-icon i {
    font-size: 3rem;
    color: var(--text-white);
}

.campaign-subtitle {
    color: var(--accent-color);
    font-size: 1.4rem;
    font-weight: 700;
}

.campaign-list {
    list-style: none;
    padding-left: 0;
}

.campaign-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.8;
}

.campaign-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, var(--accent-color), #144058);
    color: var(--text-white);
    padding: 3rem 0 2rem;
}

.footer-title {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.footer-social-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-social-link:hover {
    color: var(--secondary-color);
}

.footer-divider {
    border-color: rgba(255,255,255,0.2);
}

.footer-copyright {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===== Responsive Styles ===== */
@media (max-width: 767.98px) {
    .hero-section {
        background-attachment: scroll;
        background: linear-gradient(135deg, rgba(211, 32, 41, 0.7), rgba(26, 82, 118, 0.7)), url('./main.jpg');
        background-size: cover;
        background-position: right center;
        background-repeat: no-repeat;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .program-card {
        margin-bottom: 1.5rem;
    }
    
    .achievement-item {
        flex-direction: column;
        text-align: center;
    }
    
    .achievement-icon {
        margin: 0 auto 1rem;
    }
    
    .campaign-icon {
        margin-bottom: 2rem;
    }
    
    .candidate-img {
        max-width: 300px;
    }
    
    .bio-info p,
    .bio-description {
        font-size: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

/* ===== Utility Classes ===== */
.min-vh-100 {
    min-height: 100vh;
}

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.g-4 {
    gap: 1.5rem;
}
