﻿/* css/style.css - Main Stylesheet */

/* ==================== CSS Variables ==================== */
:root {
    --primary: #2d5a27;
    --primary-light: #4CAF50;
    --primary-lighter: #81c784;
    --primary-dark: #1b3d18;
    --primary-bg: #e8f5e9;
    --primary-muted: #c8e6c9;
    
    --accent: #ff6b6b;
    --accent-light: #ffcdd2;
    
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #8a8aa3;
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-card: 0 4px 20px rgba(45, 90, 39, 0.08);
    --shadow-card-hover: 0 12px 40px rgba(45, 90, 39, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: auto;
    font-size: 16px;
}

/* Smooth scroll only on desktop/high-end devices */
@media (prefers-reduced-motion: no-preference) and (min-width: 1024px) and (hover: hover) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(180deg, #fcfbf7 0%, #ffffff 60%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent background scrolling when overlays (nav/menu/modal) are active */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh; /* lock viewport height to avoid jump on mobile */
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

ul {
    list-style: none;
}

/* ==================== Container ==================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

html {
    scroll-padding-top: 90px;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header.centered {
    text-align: center;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(76, 175, 80, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.45);
}

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

.btn-secondary {
    background: var(--gray-100);
    color: var(--text-primary);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
}

/* Register button (placed next to Browse Profiles) */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.hero-actions .btn {
    min-width: 260px;
}

.register-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1rem 2rem;
    box-shadow: none;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), color var(--transition-base);
    margin-left: 0; /* spacing now handled by hero-actions gap */
    line-height: 1;
}

.register-btn:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(45, 90, 39, 0.12);
    border-color: transparent;
}

/* Ensure buttons stack nicely on small screens */
@media (max-width: 640px) {
    .hero-text .btn {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0.5rem auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .register-btn {
        margin-left: 0;
    }
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent) 0%, #e53935 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(255, 107, 107, 0.35);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.45);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ==================== Navbar ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    will-change: border-color, box-shadow;
    contain: layout style paint;
}

/* Optional: use backdrop-filter only on high-end devices */
@supports (backdrop-filter: blur(1px)) {
    @media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
        .navbar {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
        }
    }
}

.navbar.scrolled {
    border-bottom-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    flex-wrap: nowrap; /* keep header items on single row on desktop */
}

.admin-dot-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    min-width: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    text-indent: -9999px;
    overflow: hidden;
    position: relative;
}

.admin-dot-link:hover,
.admin-dot-link:focus {
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
    outline: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* reduced gap to bring text closer to logo */
    z-index: 1001;
    flex-wrap: nowrap;
}

.logo-img {
    width: 90px;
    height: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.2vw + 0.6rem, 1.6rem); /* responsive scaling */
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    max-width: none;
    white-space: nowrap; /* single line on larger screens */
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* Responsive logo sizes */
@media (max-width: 768px) {
    /* Keep logo and name side-by-side on mobile; allow name to wrap into multiple lines */
    .logo {
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
        text-align: left;
        width: auto;
        flex: 0 1 auto;
    }
    .logo-img {
        width: 56px;
        flex: 0 0 auto;
    }
    .logo-text {
        font-size: clamp(0.95rem, 2.6vw, 1.1rem);
        /* reserve space for logo and hamburger/menu */
        max-width: calc(100vw - 120px);
        white-space: normal; /* allow wrapping into multiple lines */
        overflow: visible;
        text-overflow: unset;
        display: inline-block;
        line-height: 1.12;
        word-break: break-word;
    }
    .nav-container {
        height: auto;
        padding: 0.5rem 1rem;
        align-items: center;
    }
    /* keep hamburger/menu on the right */
    .hamburger {
        margin-left: auto;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-left: 2rem;
    flex: 1;
}

.nav-menu > li {
    display: flex;
    align-items: center;
}

.nav-menu > li:last-child {
    margin-left: auto;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary); /* use primary green color */
    border-radius: 2px;
    transition: all var(--transition-base);
}

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

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

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

/* ==================== Hero Section ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    will-change: transform;
    contain: layout style paint;
}

/* Only animate on devices that support it and have sufficient performance */
@media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
    .floating-shape {
        animation: float 20s ease-in-out infinite;
    }
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-bg) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-muted) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation-delay: -7s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(129, 199, 132, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.05); }
    50% { transform: translate(-10px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 560px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card-stack {
    position: relative;
    width: 320px;
    height: 400px;
}

.hero-card {
    position: absolute;
    width: 280px;
    height: 350px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-slow);
    overflow: hidden;
}

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

.hero-card.card-1 {
    background: linear-gradient(145deg, var(--primary-bg) 0%, var(--primary-muted) 100%);
    transform: rotate(-8deg) translateX(-30px);
    z-index: 1;
}

.hero-card.card-2 {
    background: linear-gradient(145deg, var(--gray-100) 0%, var(--gray-200) 100%);
    transform: rotate(0deg);
    z-index: 2;
}

.hero-card.card-3 {
    background: linear-gradient(145deg, var(--white) 0%, var(--primary-bg) 100%);
    transform: rotate(8deg) translateX(30px);
    z-index: 3;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.5; }
}

/* ==================== Gender Section ==================== */
.gender-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.gender-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.gender-card {
    display: block;
    text-decoration: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: all var(--transition-spring);
}

.gender-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-card-hover);
}

.gender-card-inner {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.gender-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 24px 50px rgba(26, 140, 106, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-spring);
}

.gender-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gender-card:hover .gender-image {
    transform: scale(1.1);
}

.gender-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.gender-info p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.gender-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: translateX(0);
    transition: all var(--transition-base);
}

.gender-card:hover .gender-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ==================== About Section ==================== */
.about-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.about-section .section-header.centered {
    text-align: center;
    margin-bottom: 3rem;
}

.about-lead {
    max-width: 44rem;
    margin: 1rem auto 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.9;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.about-content {
    display: grid;
    gap: 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card {
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-200);
}

.feature-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.75;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-200);
    max-width: 100%;
}

.image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 500px;
}

.about-badge {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    background: rgba(255,255,255,0.92);
    padding: 1rem 1.15rem;
    border-radius: 999px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    max-width: calc(100% - 3rem);
}

.about-badge span {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.about-badge strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.stat-item {
    padding: 1.4rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: block;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .image-frame img {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 4rem 0;
    }

    .about-badge {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }
}

/* ==================== Contact Section ==================== */
.contact-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

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

.contact-form .btn {
    width: 100%;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.8;
}

.contact-card p {
    margin: 0 0 1rem;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.contact-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.contact-note {
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 2rem;
    align-items: stretch;
}

.location-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.location-card iframe {
    width: 100%;
    height: 100%;
    min-height: 260px;
    border: 0;
}

.map-link {
    display: inline-block;
    padding: 0.9rem 1.25rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background var(--transition-fast);
}

.map-link:hover {
    background: var(--primary-light);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: var(--gray-400);
}

.footer-contact a {
    color: var(--gray-300);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--primary-light);
}

.footer-hours {
    font-weight: 700;
    color: var(--white);
    margin-top: 0.25rem;
}

/* ==================== Footer ==================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-800);
}

.footer-brand .logo {
    margin-bottom: 0.75rem;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8125rem;
}

/* ==================== Page Header ==================== */
.page-header {
    padding: 8rem 0 3rem;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--white) 100%);
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.75rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ==================== Filters Section ==================== */
.filters-section {
    padding: 1.5rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 72px;
    z-index: 100;
}

.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background: var(--gray-200);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
}

.search-box {
    position: relative;
    width: 300px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 3rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.25rem;
    color: var(--gray-400);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.search-box input:not(:placeholder-shown) + .search-clear {
    opacity: 1;
    visibility: visible;
}

.search-clear:hover {
    color: var(--gray-600);
}

/* ==================== Profiles Grid ==================== */
.profiles-section {
    padding: 3rem 0 6rem;
    min-height: 50vh;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.profile-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: all var(--transition-spring);
    position: relative;
}

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

.profile-image-container {
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.profile-card:hover .profile-image {
    transform: scale(1.05);
}

.profile-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.profile-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-reg {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.profile-gender {
    font-size: 0.75rem;
    text-transform: capitalize;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--text-muted);
}

/* ==================== Loading & Empty States ==================== */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    gap: 1.5rem;
    color: var(--text-muted);
}

.loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-ring:nth-child(2) {
    inset: 8px;
    border-top-color: var(--primary-light);
    animation-delay: -0.15s;
}

.loader-ring:nth-child(3) {
    inset: 16px;
    border-top-color: var(--primary-lighter);
    animation-delay: -0.3s;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 4rem;
}

.empty-icon {
    margin-bottom: 1.5rem;
    color: var(--gray-300);
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
}

/* ==================== Modal ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 700px;
    width: min(95vw, 700px);
    max-height: 95vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-spring);
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 1;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.modal-image-container {
    aspect-ratio: 1585 / 2245;
    width: 100%;
    background: var(--gray-100);
    overflow: hidden;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-info {
    padding: 1.5rem;
}

.modal-reg-no {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.reg-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.reg-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
}

.modal-actions .btn {
    flex: 1;
}

/* ==================== Toast ==================== */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    animation: toastIn 0.3s ease forwards;
    max-width: 350px;
}

.toast.success {
    border-left: 4px solid var(--primary);
}

.toast.error {
    border-left: 4px solid var(--accent);
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: var(--primary);
}

.toast.error .toast-icon {
    color: var(--accent);
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.toast-close {
    margin-left: auto;
    padding: 0.25rem;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--gray-600);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ==================== Floating Language Button ==================== */
.language-float-container {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 4000;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.language-float {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: var(--primary-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(76, 175, 80, 0.32);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    text-decoration: none;
    font-size: 28px;
    color: var(--white);
    padding: 0;
}

.language-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(76, 175, 80, 0.35);
    background: var(--primary);
}

.language-float:active {
    transform: translateY(0);
}

.language-float-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Language Menu */
.language-menu {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
    z-index: 4001;
}

.language-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.language-menu-item:hover {
    background-color: var(--primary-bg);
    color: var(--primary-dark);
}

.language-menu-item.active {
    background-color: var(--primary-light);
    color: var(--white);
    font-weight: 600;
}

.language-menu-item:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.language-menu-item:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

@media (max-width: 680px) {
    .language-float-container {
        right: 1rem;
        bottom: 1rem;
    }

    .language-float {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .language-menu {
        min-width: 130px;
    }

    .language-menu-item {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 1.25rem;
    }

    /* Make single hero image responsive on tablets */
    .single-hero-image {
        max-width: 360px;
        width: 85%;
        margin: 0 auto;
    }

    .single-hero-image img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-visual {
        order: -1;
    }
    
    .about-image-grid {
        max-width: 400px;
        margin: 0 auto;
    }

    /* push hero content lower on tablets */
    .hero {
        padding-top: 8rem;
        min-height: 75vh;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
        padding: 6rem 2rem 2rem;
        z-index: 1002;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
        overflow-y: auto;
        pointer-events: none;
    }

    /* Enable smooth native momentum scrolling on iOS and contain overscroll inside overlays */
    .nav-menu,
    .modal-content {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* extra top spacing on small phones so content appears lower */
    .hero {
        padding-top: 9.5rem;
        min-height: 70vh;
    }

    /* Nudge hero image up to reduce gap below the CTA */
    .hero-visual {
        margin-top: -1.5rem;
    }

    .single-hero-image {
        margin-top: -1.5rem;
        max-width: 300px;
    }
    
    .nav-menu.active {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 2.5rem !important;
        padding: 6.5rem 1.5rem 2.5rem !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(0) !important;
        pointer-events: auto !important;
        z-index: 10000 !important;
        background: rgba(255, 255, 255, 0.98) !important;
    }
    
    .nav-menu > li {
        width: min(100%, 420px);
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    .nav-menu > li:last-child {
        margin-left: 0 !important;
    }

    .nav-link {
        font-size: 1.25rem;
        color: var(--text-primary);
        text-align: center;
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 1rem 1.25rem;
        background: #ffffff;
        border: 1px solid rgba(39, 174, 96, 0.18);
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(39, 174, 96, 0.08);
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--primary);
        background: #f5fff7;
    }
    
    .nav-link::after {
        display: none;
    }

    .language-selector {
        width: min(100%, 420px);
        justify-content: center;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
        border: 1px solid #28a745;
        border-radius: 18px;
        background: #f3fcf6;
    }

    .language-selector select {
        width: auto;
        min-width: 170px;
        padding: 0.9rem 1rem;
        border: 1px solid var(--gray-200);
        border-radius: 12px;
        background: #ffffff;
        color: var(--text-primary);
        font-size: 1rem;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        cursor: pointer;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
    }

    .language-selector select:focus {
        outline: none;
        border-color: var(--primary);
    }
    
    .admin-dot-link {
        display: none;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 10001;
    }

    /* Show all menu items when menu is active */
    .nav-menu.active > li {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .nav-menu.active .nav-link {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .gender-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .stats-row {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .search-box {
        width: 100%;
    }
    
    .profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* ==================== Reduced Motion ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

















.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}

.single-about-image{
    width:100%;
    border-radius:25px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

.single-about-image img{
    width:100%;
    height:500px;
    object-fit:cover;
    display:block;
}

/* Responsive */
@media(max-width:768px){
    .about-grid{
        grid-template-columns:1fr;
    }

    .single-about-image img{
        height:350px;
    }
}



















.hero-content{
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:50px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.single-hero-image{
    width:100%;
    max-width:720px;
    overflow:hidden;
    box-shadow:none;
    border-radius:0;
    background:none;
    animation:floatImage 4s ease-in-out infinite;
}

.single-hero-image img{
    width:100%;
    height:650px;
    object-fit:contain;
    display:block;
}

/* Floating Animation */
@keyframes floatImage{
    0%{
        transform:translateY(0px);
    }
    50%{
        transform:translateY(-12px);
    }
    100%{
        transform:translateY(0px);
    }
}

/* Responsive */
@media(max-width:1024px){
    .hero-content{
        grid-template-columns:1fr;
        text-align:center;
    }

    .single-hero-image{
        max-width:560px;
    }

    .single-hero-image img{
        height:520px;
    }
}

@media(max-width:768px){
    .hero-content{
        grid-template-columns:1fr;
        text-align:center;
    }

    .single-hero-image{
        max-width:420px;
        margin: 0 auto;
    }

    .single-hero-image img{
        height:420px;
    }
}

/* Force hero image and icon to always be visible */
.hero-visual,
.single-hero-image,
.single-hero-image img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.hero-visual, .single-hero-image {
    z-index: 1; /* place above hero-bg */
}

/* Floating Animation */
@keyframes floatImage{
    0%{
        transform:translateY(0px);
    }
    50%{
        transform:translateY(-12px);
    }
    100%{
        transform:translateY(0px);
    }
}

/* Gender Section Background */
.gender-section{
    background: linear-gradient(
        135deg,
        #f8fffb 50%,
        #eefbf3 50%,
        #fdfefe 100%
    );
    
    padding: 100px 0;
}









/* Gender Cards Layout */
.gender-cards{
    display:flex;
    gap:30px;
    justify-content:center;
    flex-wrap:wrap;
    margin-top:50px;
}

/* Plain Card */
.gender-card{
    text-decoration:none;
    color:inherit;
}

.gender-card-inner{
    background:#ffffff;
    border-radius:20px;
    padding:30px;
    width:320px;
    text-align:center;
    transition:0.3s ease;
    border:1px solid #eeeeee;
}

/* Hover Effect */
.gender-card-inner:hover{
    transform:translateY(-6px);
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

/* Image */
.gender-image{
    width:140px;
    height:140px;
    margin:auto;
    overflow:hidden;
    border-radius:50%;
}

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

/* Text */
.gender-info h3{
    margin-top:20px;
    font-size:26px;
    color:#111827;
}

.gender-info p{
    margin-top:8px;
    color:#6b7280;
    font-size:15px;
}

/* Arrow */
.gender-arrow{
    margin-top:20px;
    display:flex;
    justify-content:center;
    color:#22c55e;
}






/* About Section */
.about-section{
    padding:100px 0;
    background: linear-gradient(180deg, #e8f4e8 0%, #f6fbf6 100%);
}

.about-panel{
    display:grid;
    grid-template-columns:1.05fr 0.95fr;
    gap:50px;
    align-items:center;
    padding:50px;
    background: transparent;
    border-radius:32px;
    box-shadow:none;
}

.about-copy{
    display:grid;
    gap:1.4rem;
}

.about-text{
    color:#2c4b27;
    line-height:1.9;
    font-size:17px;
    max-width:620px;
    margin:0;
}

.about-text-rich {
    text-align:center;
}

.about-text-rich .about-line {
    display:block;
}

.about-text-rich .about-line-org {
    font-weight:700;
}

.about-text-rich .about-line-reg {
    font-style:italic;
    margin-bottom:1rem;
}

.about-text-rich .about-line-normal {
    font-weight:400;
}

.about-points{
    display:grid;
    gap:0.85rem;
    padding-left:20px;
    margin:0;
    list-style:none;
}

.about-points li{
    position:relative;
    padding-left:1.6rem;
    color:#2f4f29;
    font-size:1rem;
}

.about-points li::before{
    content:'✓';
    position:absolute;
    left:0;
    top:0;
    color:#2d5a27;
    font-weight:700;
}

.about-image-frame{
    border-radius:28px;
    overflow:hidden;
    background: linear-gradient(180deg, #ffffff 0%, #eef8ee 100%);
    border: 1px solid rgba(45,90,39,0.12);
}

.about-image-frame img{
    width:100%;
    height:100%;
    object-fit:cover;
    min-height:420px;
    display:block;
}

@media(max-width:1024px){
    .about-panel{
        grid-template-columns:1fr;
    }
}

@media(max-width:768px){
    .about-section{
        padding:70px 0;
    }

    .about-panel{
        padding:35px;
    }

    .about-image-frame img{
        min-height:300px;
    }
}













