/* about.css - About Page Specific Styles */

/* Base Styles */
:root {
    --primary-green: #2e7d32;
    --primary-orange: #e67e00;
    --text-dark: #222;
    --text-light: #666;
    --background-light: #f8f9fa;
    --white: #fff;
    --dark-bg: #121212;
    --dark-text: #e0e0e0;
    --dark-card: #1e1e1e;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    --box-shadow-hover: 0 6px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    overflow-x: hidden;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    transition: var(--transition);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: #222;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-green);
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Navigation */
.navbar {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    height: 72px;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    background: linear-gradient(135deg, #2e7d32, #388E3C, #4CAF50);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-green);
}

.nav-link[aria-current="page"] {
    color: #2e7d32;
    font-weight: 700;
    background-color: rgba(76,175,80,0.15);
    padding: 8px 12px;
    border-radius: 4px;
    border-bottom: 3px solid var(--primary-green);
    transition: all 0.3s ease;
}

.auth-btn {
    background-color: rgba(76,175,80,0.2);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

.auth-btn:hover,
.auth-btn:focus {
    background-color: rgba(76,175,80,0.3);
    outline: 2px solid var(--primary-green);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px,5px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px,-6px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-auth {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

/* Social Media Bar */
.social-bar {
    background-color: #333;
    padding: 10px 0;
    margin-top: 72px;
    width: 100%;
    position: relative;
    z-index: 900;
}

.social-bar .container {
    max-width: 100%;
    padding: 0;
    overflow-x: hidden;
}

.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 0 20px;
}

.social-icon {
    color: var(--white);
    font-size: 18px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-icon:hover,
.social-icon:focus {
    transform: translateY(-3px);
    color: #FFD54F;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(76,175,80,0.9), rgba(76,175,80,0.8)), url('https://lycan52.github.io/AgriNexusGL-Home/assets/images/Home-Page-BackGround.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 150px 0 80px;
    text-align: center;
    margin-top: 0;
}

.hero-content {
    position: relative;
    z-index:1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: white;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    color: white;
}

.join-btn {
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.join-btn:hover,
.join-btn:focus {
    background-color: #cc7000;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    outline: none;
}

.join-dropdown {
    position: relative;
    z-index: 999;
    display: inline-block;
}

.dropdown-content {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    border-radius: var(--border-radius);
    overflow: hidden;
    top: 100%;
    left: 0;
    margin-top: 10px;
    text-align: left;
    transition: all 0.3s ease;
}

.dropdown-content.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    display: block;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid #eee;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover,
.dropdown-content a:focus {
    background-color: var(--primary-green);
    color: var(--white);
}

.role-description {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
    font-weight: 400;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Vision-Mission Section */
.vm-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.vm-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 30px;
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.vm-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.center-card {
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    background-color: var(--background-light);
}

.vm-card h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vm-card h3 i {
    background: var(--primary-orange);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vm-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.value-icon {
    background-color: var(--primary-green);
    color: var(--white);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.value-card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Team Section */
.team-section {
    padding: 80px 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: rgba(46, 125, 50, 0.05);
}

.cta-section .join-btn {
    margin-top: 30px;
}

/* Footer */
.footer {
    background-color: #333;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.footer-section:last-child {
    margin-bottom: 0;
}

.footer-section h3 {
    color: var(--primary-orange);
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}

.contact-info,
.footer-links,
.footer-section .social-icons {
    width: 100%;
    text-align: left;
}

.footer-section .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-item i {
    margin-top: 4px;
    min-width: 20px;
    color: var(--primary-orange);
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    opacity: 0.9;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-links a:focus {
    opacity: 1;
    color: var(--primary-orange);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-green);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    border: none;
    font-size: 20px;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4 {
    color: #f0f0f0;
}

body.dark-mode .navbar.scrolled {
    background: rgba(30,30,30,0.95);
    backdrop-filter: blur(10px);
}

body.dark-mode .logo-text,
body.dark-mode .nav-link {
    color: var(--dark-text);
}

body.dark-mode .vm-card,
body.dark-mode .value-card {
    background-color: var(--dark-card);
}

body.dark-mode .value-card h3 {
    color: var(--dark-text);
}

body.dark-mode .value-card p,
body.dark-mode .section-header p {
    color: #aaa;
}

body.dark-mode .dropdown-content {
    background-color: var(--dark-card);
}

body.dark-mode .dropdown-content a {
    color: var(--dark-text);
    border-bottom: 1px solid #444;
}

body.dark-mode .dark-mode-toggle .fa-moon:before {
    content: "\f185";
}

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary-orange);
    outline-offset: 3px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .vm-cards {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 72px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 15px;
        transition: right 0.3s ease;
        z-index: 1001;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .desktop-auth {
        display: none !important;
    }
    
    .mobile-auth {
        display: flex;
    }
    
    .hero {
        padding: 140px 0 60px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }

    .social-bar {
        margin-top: 72px;
    }

    .social-icons {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .social-icon {
        font-size: 16px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .footer-section {
        max-width: 100%;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        text-align: center;
        margin-bottom: 30px;
    }

    .footer-section:last-child {
        margin-bottom: 0;
    }

    .contact-info {
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
        align-items: center;
    }

    .footer-section .social-icons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .copyright {
        padding: 20px 10px 0;
        font-size: 13px;
    }
    
    .mobile-auth .auth-btn {
        background-color: #4CAF50;
        color: white;
        padding: 10px 15px;
        border-radius: var(--border-radius);
        font-weight: 600;
    }
    
    .mobile-auth .auth-btn:hover,
    .mobile-auth .auth-btn:focus {
        background-color: #3d8b40;
        outline: 2px solid white;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 50px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .join-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }

    .vm-card,
    .value-card {
        min-width: 100%;
    }
}
