/* ===========================================
   COMPONENTS.CSS - Reusable UI Components
   Navbar, Buttons, Cards, Forms
   =========================================== */

/* ===========================================
   NAVBAR - Mobile First
   =========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 60px;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-fixed);
    display: flex;
    align-items: center;
    transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    z-index: calc(var(--z-fixed) + 1);
}

.nav-logo img {
    height: 40px;
    width: auto;
    transition: transform var(--transition-base);
    mix-blend-mode: multiply;
    filter: contrast(1.2) brightness(1.1);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

/* Hamburger Menu Button - Touch Friendly (48x48 minimum) */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    padding: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: calc(var(--z-fixed) + 2);
    position: relative;
    transition: all var(--transition-base);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    margin: 3px 0;
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.nav-toggle:hover span {
    background: var(--navy);
}

/* Hamburger to X animation */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--navy);
}

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

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

/* Mobile Menu Overlay */
.nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style: none;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--z-fixed);
    padding: var(--space-xl);
    overflow-y: auto;
}

.nav-menu.active {
    left: 0;
}

.nav-menu li {
    margin: var(--space-lg) 0;
    opacity: 0;
    transform: translateY(20px);
}

.nav-menu.active li {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease forwards;
}

.nav-menu li:nth-child(1) { animation-delay: 0.1s; }
.nav-menu li:nth-child(2) { animation-delay: 0.15s; }
.nav-menu li:nth-child(3) { animation-delay: 0.2s; }
.nav-menu li:nth-child(4) { animation-delay: 0.25s; }
.nav-menu li:nth-child(5) { animation-delay: 0.3s; }
.nav-menu li:nth-child(6) { animation-delay: 0.35s; }

.nav-menu a {
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    padding: 0.75rem 1.5rem;
    text-align: center;
    position: relative;
    transition: all var(--transition-base);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width var(--transition-base);
}

.nav-menu a:hover {
    color: var(--navy);
    transform: translateY(-2px);
}

.nav-menu a:hover::before {
    width: 80%;
}

/* Language Switch */
.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: color var(--transition-base);
}

.lang-switch:hover {
    color: var(--primary);
}

/* ===========================================
   BUTTONS - Touch Friendly (min 44px height)
   =========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    min-height: 44px;
    min-width: 120px;
    font-size: var(--fs-base);
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

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

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

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Hero Buttons - Larger for prominence */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    min-height: 48px;
    background: white;
    color: var(--navy);
    font-size: var(--fs-lg);
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    min-height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: var(--fs-lg);
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Read More Button */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 8px 16px;
    min-height: 44px;
    background: transparent;
    color: var(--primary);
    font-size: var(--fs-sm);
    font-weight: 500;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-read-more:hover {
    background: var(--primary);
    color: white;
}

/* ===========================================
   CARDS
   =========================================== */

.card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

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

.card:hover::before {
    transform: scaleX(1);
}

.card-content {
    padding: var(--space-lg);
}

.card-title {
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.card-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

/* Project Card */
.project-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card h3 {
    color: var(--text-dark);
    font-size: var(--fs-xl);
    margin-bottom: var(--space-md);
}

.project-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

/* Support Card */
.support-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.support-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
}

.support-card h3 {
    color: var(--text-dark);
    font-size: var(--fs-xl);
    margin-bottom: var(--space-md);
}

.support-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

/* Partner Card */
.partner-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.partner-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.partner-card h3 {
    font-size: var(--fs-xl);
    color: var(--navy);
    margin-bottom: var(--space-md);
}

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

/* Value Card */
.value-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

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

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    background: var(--gradient-soft);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.value-card h4 {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.value-card p {
    font-size: var(--fs-sm);
    color: var(--text-light);
    line-height: 1.6;
}

/* Mission Card */
.mission-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.mission-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.mission-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--space-md);
    background: var(--gradient-soft);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
}

.mission-card h3 {
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.mission-card p {
    font-size: var(--fs-base);
    color: var(--text-light);
    line-height: 1.6;
}

/* ===========================================
   FORMS
   =========================================== */

.form-group {
    margin-bottom: var(--space-lg);
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    min-height: 44px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
    transition: all var(--transition-base);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===========================================
   FLOATING ACTION BUTTON
   =========================================== */

.fab {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--gradient-main);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
    border: none;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* ===========================================
   SOCIAL LINKS
   =========================================== */

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 1.25rem;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Footer social links */
.footer .social-links a {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

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

/* ===========================================
   INFO CARDS (Association Info)
   =========================================== */

.info-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.info-card h4 {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.info-card p {
    font-size: var(--fs-base);
    color: var(--text-light);
    margin: 0;
}

/* ===========================================
   BOARD MEMBER CARDS
   =========================================== */

.board-member {
    text-align: center;
    padding: var(--space-md);
}

.member-photo {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto var(--space-sm);
    border: 3px solid var(--primary);
}

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

.board-member h4 {
    font-size: var(--fs-base);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.board-member p {
    font-size: var(--fs-sm);
    color: var(--text-light);
}

/* Advisory Member */
.advisory-member {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-xl);
}

.advisory-photo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 3px solid var(--primary);
}

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

.advisory-details {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}
