/* =============================================
   ZYGONETIX CONSULT - PROFESSIONAL STYLING
   ============================================= */

:root {
    --primary: #1a5f3d;
    --secondary: #e67e22;
    --accent: #27ae60;
    --text: #2c3e50;
    --light: #2d363f;
    --border: #ecf0f1;
    --bg-light: #f8f9fa;
}

/* =============================================
   GLOBAL STYLES & SMOOTH SCROLLING
   ============================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =============================================
   HEADER & STICKY NAVIGATION
   ============================================= */

header.sticky-header {
    background: var(--primary);
    color: white;
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

header.sticky-header.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent);
}

.logo i {
    font-size: 2.1rem;
}

.main-nav {
    transition: all 0.3s ease;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.8rem;
    align-items: center;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.main-nav ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transform: translateY(-2px);
}

.main-nav ul li a.active {
    background: var(--accent);
}

.main-nav ul li a.cta-donate {
    background: var(--accent);
    color: white;
    font-weight: 600;
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    margin: 0;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.main-nav ul li a.cta-donate:hover {
    background: rgba(39, 174, 96, 0.8);
    color: white;
    border-radius: 8px;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
    transition: all 0.3s ease;
    width: auto;
}

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

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

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

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

main {
    margin-top: 0;
}

/* =============================================
   SECTIONS & SPACING
   ============================================= */

section {
    padding: 5rem 0;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    color: white;
    overflow: hidden;
    margin-top: 0;
    padding-bottom: 8rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
}

.solutions-section,
.services-section {
    padding: 5rem 0;
    background: white;
    border-top: 1px solid rgba(26, 95, 61, 0.1);
}

.services-section .container {
    /* ...existing code... */

    padding: 3rem 2rem;
    border-radius: 12px;
}

.mission-section {
    background: linear-gradient(135deg, var(--primary), var(--primary));
    color: white;
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mission-section h2,
.mission-section h3 {
    color: #27ae60;;
}

.mission-section p,
.mission-text {
    color: white;
}

.mission-text {
    max-width: 860px;
    margin: 1.8rem auto;
    font-size: 1.15rem;
    opacity: 0.96;
    color: white;
}

.impact-section {
    background: white;
    padding: 5rem 0;
    border-top: 1px solid rgba(26, 95, 61, 0.1);
}

.experts-section {
    background: var(--bg-light);
    padding: 5rem 0;
    border-top: 1px solid rgba(26, 95, 61, 0.1);
}

.faq-section {
    background: var(--light);
    padding: 5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.metrics-section {
    background: white;
    padding: 5rem 0;
    border-top: 1px solid rgba(26, 95, 61, 0.1);
}

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

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

h4 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: #666;
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    color: white;
    text-align: center;
    margin: 1.5rem 0 1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    width: 100%;
    padding: 0 2rem;
}

/* =============================================
   HERO SLIDER
   ============================================= */

.cta-button {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    margin-top: 1.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
    cursor: pointer;
}

.cta-button:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

/* =============================================
   CARDS & GRIDS
   ============================================= */

.solutions-grid,
.products-grid,
.impact-grid,
.faq-grid,
.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.products-grid {
    grid-template-columns: repeat(3, 1fr);
}

.experts-grid {
    grid-template-columns: repeat(3, 1fr);
}

.products-grid .product-card:nth-child(4),
.experts-grid .expert-card:nth-child(4) {
    grid-column: 2;
}

.solution-card,
.product-card,
.impact-card,
.expert-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.expert-card {
    cursor: pointer;
    position: relative;
}

.solution-card:hover,
.product-card:hover,
.impact-card:hover,
.expert-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* =============================================
   EXPERT SECTION
   ============================================= */

.expert-image-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.expert-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    transition: all 0.3s ease;
}

.expert-card:hover .expert-photo {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(26, 95, 61, 0.3);
}

.expert-title {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    transition: all 0.4s ease;
    opacity: 1;
    max-height: 60px;
    visibility: visible;
    pointer-events: auto;
}

.social-links.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    visibility: hidden;
    pointer-events: none;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--accent);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    pointer-events: auto;
}

.social-links a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.social-links i {
    color: var(--accent) !important;
    font-size: 1.6rem;
    line-height: 1;
    vertical-align: middle;
    transition: color 0.3s;
}

.social-links a:hover i {
    color: white !important;
}

/* =============================================
   VISION SECTION
   ============================================= */

.vision-container {
    background: white;
    color: var(--text);
    padding: 2.5rem;
    border-radius: 14px;
    margin: 2rem auto;
    max-width: 820px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--accent);
}

.vision-container h3 {
    color: var(--primary);
}

.vision-container p {
    color: #555;
}

.vision-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.vision-list li {
    margin-bottom: 1.2rem;
    color: #555;
    font-size: 1.05rem;
    padding-left: 2rem;
    position: relative;
}

.vision-list li i {
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.2rem;
    top: 2px;
}

/* =============================================
   FAQ SECTION
   ============================================= */

.faq-item {
    background: var(--accent);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-header h4 {
    color: white;
    margin: 0;
    flex: 1;
    text-align: left;
    font-size: 1.1rem;
}

.faq-header i {
    transition: transform 0.3s ease;
    color: white;
    font-size: 1.2rem;
}

.faq-item.active .faq-header i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
}

.faq-item:hover {
    background: #229f4f;
    transform: translateX(8px);
}

/* =============================================
   METRICS TABLE
   ============================================= */

.metrics-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
}

.metrics-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.metrics-table thead {
    background: var(--primary);
    color: white;
}

.metrics-table th {
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
}

.metrics-table td {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border);
    transition: all 0.3s ease;
}

.metrics-table tbody tr {
    background: white;
}

.metrics-table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.metrics-table tbody tr:hover {
    background: #f0f8f5;
}

.metric-value {
    color: var(--accent);
    font-size: 1.1rem;
}

/* =============================================
   FOOTER
   ============================================= */

.footer-section {
    background: var(--primary);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

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

.footer-column h4 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* --- MOBILE NAV HEIGHT & BUTTON FIT FIX --- */
.main-nav.active {
    max-height: 100vh !important;
    min-height: 100vh !important;
    padding: 1.2rem 0.5rem 2.5rem 0.5rem !important;
    overflow-y: auto !important;
}
.main-nav ul li a {
    display: block;
    padding: 0.9rem 0.7rem;
    font-size: 0.98rem;
    border-radius: 0;
    background: transparent;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}
.main-nav ul li a.cta-donate {
    margin: 0.7rem 0 0.2rem 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 0.5px;
    font-size: 1.05rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
/* --- END MOBILE NAV HEIGHT & BUTTON FIT FIX --- */

/* =============================================
   ANIMATIONS & TRANSITIONS
   ============================================= */

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        text-align: center;
        gap: 1rem;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.6rem;
        margin-right: auto;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, rgba(26, 95, 61, 0.98), rgba(39, 174, 96, 0.98));
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        padding: 0;
    }

    .main-nav.active {
        max-height: 100vh !important;
        min-height: 100vh !important;
        padding: 1.2rem 0.5rem 2.5rem 0.5rem !important;
        overflow-y: auto !important;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        background: transparent;
        padding: 0;
        gap: 0;
    }

    .main-nav ul li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

    .main-nav ul li a {
        display: block;
        padding: 0.85rem 0.7rem;
        font-size: 0.98rem;
        border-radius: 0;
        background: transparent;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
    }

    .main-nav ul li a:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(8px);
    }

    .main-nav ul li a.active {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
        border-left: 4px solid var(--secondary);
        padding-left: calc(1rem - 4px);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    header.sticky-header {
        padding: 1rem 0;
    }

    main {
        padding-top: 10px;
    }

    .hero-section {
        min-height: calc(100vh - 70px);
    }

    .slider {
        height: 100%;
    }

    .hero-section .container {
        padding: 2rem 1.5rem;
    }

    h1,
    .hero-title {
        font-size: 2rem;
        margin: 1rem 0 0.8rem;
    }

    h2,
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

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

    .solutions-grid,
    .products-grid,
    .impact-grid,
    .faq-grid,
    .experts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .products-grid .product-card:nth-child(4),
    .experts-grid .expert-card:nth-child(4) {
        grid-column: 1;
    }

    .solution-card,
    .product-card,
    .impact-card,
    .expert-card,
    .faq-item {
        padding: 1.5rem 1rem;
    }

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

    .expert-photo {
        width: 100px;
        height: 100px;
    }

    main {
        padding-top: 10px;
    }

    .hero-section {
        min-height: calc(100vh - 70px);
    }

    .slider {
        height: 100%;
    }

    .hero-section .container {
        padding: 2rem 1.5rem;
    }

    h1,
    .hero-title {
        font-size: 2rem;
        margin: 1rem 0 0.8rem;
    }

    h2,
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

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

    .solutions-grid,
    .products-grid,
    .impact-grid,
    .faq-grid,
    .experts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .solution-card,
    .product-card,
    .impact-card,
    .expert-card,
    .faq-item {
        padding: 1.5rem 1rem;
    }

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

    .expert-photo {
        width: 100px;
        height: 100px;
    }

    section {
        padding: 3rem 0;
    }

    .vision-container {
        padding: 1.5rem 1rem;
        margin: 1.5rem auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 0.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo i {
        font-size: 1.6rem;
    }

    h1,
    .hero-title {
        font-size: 1.5rem;
        margin: 0.8rem 0 0.5rem;
    }

    h2,
    .section-title {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
        margin: 0 auto 2rem;
        padding: 0 1rem;
    }

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

    section {
        padding: 2.5rem 0;
    }

    .solutions-grid,
    .products-grid,
    .impact-grid,
    .faq-grid,
    .experts-grid {
        gap: 1rem;
    }

    .solution-card,
    .product-card,
    .impact-card,
    .expert-card,
    .faq-item {
        padding: 1.2rem 1rem;
    }

    .icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .expert-photo {
        width: 80px;
        height: 80px;
    }

    .expert-title {
        font-size: 0.85rem;
    }

    .vision-container {
        padding: 1.2rem;
        margin: 1rem auto;
        max-width: 90vw;
    }

    .vision-list li {
        font-size: 0.95rem;
        padding-left: 1.5rem;
    }

    p {
        margin-bottom: 1rem;
        font-size: 0.95rem;
    }

    .faq-item {
        padding: 1rem;
    }

    .faq-header h4 {
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }

    .metrics-table th,
    .metrics-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }
}
