/* P2EN Website Styles */

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

:root {
    --navy: #0a2540;
    --lime: #c4ff61;
    --light-blue: #8ecae6;
    --cream: #fef8f0;
    --dark-green: #2d6a4f;
    --orange: #ff6b35;
    --dark-green-second: #57a281;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 37, 64, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Top Bar */
.top-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 75px;
    width: auto;
}

.company-name {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.lang-toggle {
    color: var(--lime);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: underline;
    padding: 0;
    transition: opacity 0.3s;
}

.lang-toggle:hover {
    opacity: 0.8;
}

/* Navigation Bar */
nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    justify-content: flex-end;
    padding: 0.75rem 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--lime);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy) 0%, #1a4d6f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
    margin-top: 130px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-tagline {
    font-size: 1.8rem;
    color: var(--lime);
    margin-bottom: 1rem;
    animation: fadeInUp 1.2s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1.4s ease;
}

.acronym-badges {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 15px;
    border: 2px solid var(--lime);
}

.badge-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--lime);
}

.badge-text {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.cta-button {
    display: inline-block;
    background: var(--lime);
    color: var(--navy);
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 2rem;
    transition: all 0.3s;
    animation: fadeInUp 1.6s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(196, 255, 97, 0.3);
}

/* Section Styles */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 2rem;
    text-align: center;
}

.highlight {
    color: var(--dark-green);
    font-weight: 600;
}

/* Story Section */
.story {
    background: var(--cream);
}

.story-content {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.story-content p {
    margin-bottom: 1.5rem;
}

/* Problem Section */
.problem {
    background: white;
}

.middleman-visual {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 3rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.layer {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    flex: 1;
    min-width: 150px;
}

.layer-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.material-icons.layer-icon {
    font-size: 3rem !important;
    color: var(--orange);
}

.arrow {
    font-size: 2rem;
    color: var(--orange);
}

/* Solution Section */
.solution {
    background: linear-gradient(135deg, var(--dark-green) 0%, #40916c 100%);
    color: white;
}

.solution h2 {
    color: white;
}

.solution-stories {
    margin-bottom: 2rem;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}


.solution-card {
    background: rgba(255, 255, 255, 0.25);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s;
}

.solution-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.35);
}

.solution-card h3 {
    color: var(--dark-green-second);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.solution-card .material-icons {
    font-size: 1.8rem;
    color: var(--lime);
}

.solution .solution-card h3 {
    color: white;
}

.success-story h3 {
    color: var(--lime);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Who We Serve */
.serve {
    background: white;
}

.serve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.serve-card {
    text-align: center;
    padding: 2rem;
    background: var(--cream);
    border-radius: 15px;
    transition: all 0.3s;
}

.serve-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.serve-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.material-icons.serve-icon,
.serve-card .material-icons {
    font-size: 4rem !important;
    color: var(--dark-green-second);
}

.serve-card h3 {
    color: var(--navy);
    margin-bottom: 0.5rem;
}

/* Features */
.features {
    background: var(--cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    border-left: 5px solid var(--dark-green-second);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-item h3 {
    color: var(--navy);
    margin-bottom: 1rem;
}

/* Join Section */
.join {
    background: var(--navy);
    color: white;
    text-align: center;
}

.join h2 {
    color: white;
}

.join-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.join-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 2px solid var(--lime);
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.join-card:hover {
    background: var(--lime);
    color: var(--navy);
    transform: translateY(-10px);
}

.join-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Contact */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
}

.contact-form button {
    background: var(--dark-green);
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
}

.contact-form button:hover {
    background: var(--navy);
    transform: translateY(-3px);
}

.contact-info {
    padding: 2.5rem;
    background: var(--cream);
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-info h3 {
    color: var(--navy);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--dark-green-second);
    padding-bottom: 0.5rem;
}

.info-item {
    margin-bottom: 1.8rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid var(--dark-green-second);
}

.info-item strong {
    display: block;
    color: var(--navy);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span,
.info-item a {
    display: block;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
}

.info-item a {
    color: var(--dark-green);
    text-decoration: none;
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--navy);
    text-decoration: underline;
}

/* Page-specific content sections */
.content-section {
    background: white;
    padding: 5rem 2rem;
}

.content-section.alt {
    background: var(--cream);
}

.intro-text {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* Benefits grid for dedicated pages */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 5px solid var(--dark-green-second);
}

.benefit-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.benefit-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark-green-second);
}

.material-icons.icon {
    font-size: 3rem !important;
    display: block;
    color: var(--dark-green-second);
}

/* Success Stories */
.story-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.story-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px solid var(--dark-green-second);
}

.avatar-placeholder .material-icons {
    font-size: 2.5rem !important;
    color: var(--dark-green-second);
}

.story-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--lime);
    display: block;
}

.story-content {
    flex: 1;
}

.story-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--dark-green);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.story-card .author {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.story-card .role {
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--navy);
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop - ensure menu is visible */
@media (min-width: 1025px) {
    .nav-links {
        display: flex !important;
        max-height: none !important;
    }

    .mobile-menu {
        display: none !important;
    }
}

/* Tablet and Mobile Responsive */
@media (max-width: 1024px) {
    nav {
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0;
        background: rgba(10, 37, 64, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        z-index: 100;
    }

    .nav-links.show {
        max-height: 500px;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(196, 255, 97, 0.1);
    }

    .mobile-menu {
        display: flex;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0.75rem 1rem;
    }

    .logo-container {
        gap: 0.5rem;
    }

    .logo-container img {
        height: 45px;
    }

    .company-name {
        font-size: 0.9rem;
    }

    .lang-toggle {
        font-size: 0.75rem;
    }

    .hero {
        margin-top: 110px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .acronym-badges {
        flex-direction: column;
        align-items: center;
    }

    .story-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .story-avatar {
        margin-bottom: 1rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--dark-green-second);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s;
    z-index: 9999;
}

.scroll-to-top.show {
    display: flex !important;
}

.scroll-to-top:hover {
    background: var(--navy);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* Mobile adjustments for scroll to top button */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* Logo Link */
.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.8;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Material Icons - Global Styles */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
}

/* Material Design Elevation/Shadows */
.benefit-card,
.story-card,
.serve-card {
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover,
.story-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.serve-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
