/* styles.css - Synchro Pamoja Theme */

:root {
    /* Logo Colors */
    --navy-blue: #0b2045;       /* Dark blue from the 'S' */
    --primary-green: #3c8d2e;   /* Green from the 'P' */
    --secondary-green: #5ba648; /* Lighter green for gradients */
    
    /* Derived Theme Colors */
    --primary-color: var(--navy-blue);
    --secondary-color: var(--primary-green);
    --light-bg: #f4f7f6;         /* Slightly green-tinted gray */
    --dark-text: #2c2c2c;
    --light-text: #ffffff;
    --gray-border: #dddddd;
    --success-green: #2e7d32;
    --error-red: #c62828;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
header {
    background-color: var(--light-text);
    box-shadow: 0 2px 10px rgba(11, 32, 69, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo {
    height: 50px;
    width: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text h1 {
    color: var(--navy-blue);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text p {
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 500;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    padding: 8px 5px;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--primary-green);
}

nav a.active {
    color: var(--navy-blue);
    font-weight: 600;
}

nav a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-green);
    bottom: -5px;
    left: 0;
    border-radius: 2px;
}

/* =========================================
   MAIN CONTENT & LAYOUT
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 70vh;
    flex: 1;
}

.page-title {
    color: var(--navy-blue);
    font-size: 36px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(60, 141, 46, 0.2);
}

.page-subtitle {
    color: var(--primary-green);
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
}

.content-section {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 3px 15px rgba(11, 32, 69, 0.05);
}

.content-section h2 {
    color: var(--navy-blue);
    margin-bottom: 15px;
    font-size: 28px;
}

.content-section h3 {
    color: var(--primary-green);
    margin: 20px 0 10px;
}

.content-section p {
    margin-bottom: 15px;
    font-size: 16px;
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 8px;
}

/* =========================================
   HOMEPAGE HERO
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--navy-blue) 0%, #1a3d6e 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-tagline {
    font-style: italic;
    font-size: 22px;
    margin-bottom: 40px;
    color: #a8d59b; /* Light green tint */
}

/* =========================================
   MVP SHOWCASE SECTION
   ========================================= */
.mvp-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 60px 0;
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.mvp-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mvp-gallery-item {
    background-color: rgba(60, 141, 46, 0.1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 16/9;
}

.mvp-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.mvp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mvp-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.mvp-content h2 {
    color: var(--navy-blue);
    font-size: 32px;
    margin-bottom: 20px;
}

.mvp-content p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--dark-text);
    margin-bottom: 30px;
}

.mvp-highlight {
    background: linear-gradient(135deg, var(--navy-blue) 0%, #1a3d6e 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

.mvp-highlight h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
}

.mvp-highlight p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    background-color: var(--primary-green);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn:hover {
    background-color: #2d7022; /* Darker green */
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-secondary {
    background-color: var(--navy-blue);
}

.btn-secondary:hover {
    background-color: #0a1a36;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: white;
}

.btn-mvp {
    background-color: var(--primary-green);
    font-size: 18px;
    padding: 16px 32px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(60, 141, 46, 0.4);
}

.btn-mvp:hover {
    background-color: #2d7022;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(60, 141, 46, 0.5);
}

.btn-icon {
    margin-left: 8px;
}

/* =========================================
   LOGIN & FORM ELEMENTS
   ========================================= */
.login-container {
    display: flex;
    min-height: 80vh;
    align-items: center;
    justify-content: center;
}

.login-box {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(11, 32, 69, 0.1);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--navy-blue) 0%, #1a3d6e 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.login-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.login-body {
    padding: 30px;
}

.login-body p {
    margin-bottom: 25px;
    color: #666;
}

.login-logo {
    background-color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--navy-blue);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-border);
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-control:focus {
    border-color: var(--primary-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(60, 141, 46, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* =========================================
   CALL TO ACTION (CTA)
   ========================================= */
.cta-section {
    background: linear-gradient(135deg, var(--navy-blue) 0%, #1a3d6e 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 40px 0;
}

.cta-section h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: var(--navy-blue);
    color: white;
    padding: 40px 20px;
    margin-top: auto;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-section a:hover {
    color: #a8d59b; /* Light green hover */
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-green);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* =========================================
   FEATURE CAROUSEL STYLES (NEW)
   ========================================= */
.carousel-container {
    position: relative;
    margin: 40px 0;
    padding: 0 50px; /* Space for arrows */
}

.carousel-track-wrapper {
    overflow: hidden;
    border-radius: 10px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%; /* Show 1 slide at a time */
    display: flex;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

/* Feature card styling inside the carousel */
.carousel-slide .feature-card {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-top: 4px solid var(--primary-green);
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.carousel-slide .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(11, 32, 69, 0.1);
}

.carousel-slide .feature-card h3 {
    color: var(--navy-blue);
    margin-bottom: 15px;
}

.carousel-slide .feature-icon {
    background-color: rgba(60, 141, 46, 0.1);
    color: var(--primary-green);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

/* Carousel Controls (Buttons & Dots) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--navy-blue);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10;
}

.carousel-btn:hover {
    background-color: var(--primary-green);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -22px;
}

.next-btn {
    right: -22px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    padding: 0;
}

.carousel-dot:hover {
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: var(--primary-green);
    transform: scale(1.2);
}

/* =========================================
   MESSAGES & RESPONSIVE
   ========================================= */
.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.message.success {
    background-color: rgba(46, 125, 50, 0.1);
    border: 1px solid var(--success-green);
    color: var(--success-green);
    display: block;
}

.message.error {
    background-color: rgba(198, 40, 40, 0.1);
    border: 1px solid var(--error-red);
    color: var(--error-red);
    display: block;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .page-title {
        font-size: 30px;
    }
    
    .cta-section h2 {
        font-size: 26px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mvp-showcase {
        grid-template-columns: 1fr;
    }
    
    .mvp-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Carousel Mobile Adjustments */
    .carousel-container {
        padding: 0 30px;
    }
    
    .prev-btn {
        left: -15px;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .next-btn {
        right: -15px;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .hero {
        padding: 50px 15px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .mvp-gallery {
        grid-template-columns: 1fr;
    }

    /* Carousel Very Small Screen Adjustments */
    .carousel-container {
        padding: 0 10px;
    }
    
    .prev-btn, .next-btn {
        display: none; /* Hide arrows on very small screens, dots remain */
    }
}