/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e85d75;
    --secondary-color: #f4a6c1;
    --accent-color: #6b4c9a;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --gray-color: #95a5a6;
    --success-color: #27ae60;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: var(--dark-color);
}

h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
}

p {
    margin-bottom: 1rem;
    color: #404040;
    font-size: 1rem;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(232, 93, 117, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 93, 117, 0.4);
}

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

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

.btn-primary-large {
    padding: 16px 40px;
    font-size: 1.1rem;
    width: 100%;
    max-width: 300px;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    background: var(--light-color);
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
    margin-top: 0;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--gray-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-container a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.breadcrumb-container a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

.breadcrumb-container span {
    color: var(--gray-color);
    margin: 0 0.25rem;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    white-space: nowrap;
    min-width: fit-content;
}

.logo i {
    font-size: 2rem;
    color: #e85d75;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    10% {
        transform: scale(1.1);
        opacity: 1;
    }
    20% {
        transform: scale(1);
        opacity: 1;
    }
    30% {
        transform: scale(1.15);
        opacity: 1;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.logo span {
    color: #e85d75;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-block;
    font-size: 1.5rem;
}

span1 {
    color: #e85d75;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-block;
    font-size: 1.5rem;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Nav Join CTA Button */
.nav-join-link {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    color: white !important;
    padding: 10px 24px !important;
    border-radius: var(--border-radius);
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(232, 93, 117, 0.3);
    transition: var(--transition);
    display: inline-block;
}

.nav-join-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(232, 93, 117, 0.4) !important;
    color: white !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 2rem 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    animation: heroFadeIn 0.8s ease-out forwards;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content {
    animation: slideInLeft 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-image {
    animation: slideInRight 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: #404040;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.illustration {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(232, 93, 117, 0.1), rgba(107, 76, 154, 0.1));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--primary-color);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(232, 93, 117, 0.2);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ==================== TAGLINE SECTION ==================== */
.tagline-section {
    background: linear-gradient(135deg, rgba(232, 93, 117, 0.05), rgba(107, 76, 154, 0.05));
    padding: 60px 2rem;
    text-align: center;
}

.tagline-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tagline-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
}

/* ==================== WHY JOIN SECTION ==================== */
.why-join {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 2rem;
}

.why-join h2 {
    text-align: center;
}

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

.reason-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition);
}

.reason-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.reason-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.reason-card h3 {
    margin-bottom: 0.5rem;
}

.reason-card p {
    font-size: 0.95rem;
}

/* ==================== COMMUNITY SECTION ==================== */
.community {
    background: linear-gradient(135deg, rgba(107, 76, 154, 0.05), rgba(232, 93, 117, 0.05));
    padding: 80px 2rem;
}

.community {
    max-width: 1200px;
    margin: 0 auto;
}

.community h2 {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--gray-color);
}

.community-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.group-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 93, 117, 0.1), transparent);
    transition: left 0.5s ease;
}

.group-card:hover::before {
    left: 100%;
}

.group-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 40px rgba(232, 93, 117, 0.2);
    border-top: 4px solid var(--accent-color);
}

.group-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.group-card h3 {
    margin-bottom: 0.5rem;
}

.group-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.member-count {
    display: inline-block;
    background: var(--light-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==================== FEATURES SECTION ==================== */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 2rem;
}

.features h2 {
    text-align: center;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.95rem;
}

/* ==================== STATS SECTION ==================== */
.stats {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 60px 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    color: white;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ==================== CTA SECTION ==================== */
.cta {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 2rem;
    text-align: center;
}

.cta h2 {
    font-size: 2.2rem;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-subtext {
    font-size: 0.9rem;
    margin-top: 1rem;
    color: var(--gray-color);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

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

/* Tablets (768px and below) */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid #eee;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 40px 2rem 60px;
    }

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

    .illustration {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }

    .reasons-grid,
    .community-groups,
    .features-container {
        grid-template-columns: 1fr;
    }

    .tagline-section h2 {
        font-size: 1.6rem;
    }

    .why-join,
    .features,
    .community,
    .cta {
        padding: 50px 2rem;
    }

    .btn-primary-large {
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --border-radius: 10px;
    }

    body {
        font-size: 0.95rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .nav-container {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

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

    .logo span,
    span1 {
        font-size: 1.3rem;
    }

    .hero {
        padding: 30px 1.5rem 50px;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .illustration {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-primary-large {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .reason-card,
    .group-card {
        padding: 1.5rem;
    }

    .reason-icon,
    .group-icon {
        font-size: 2rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .why-join,
    .features,
    .community,
    .cta {
        padding: 40px 1.5rem;
    }

    .tagline-section {
        padding: 40px 1.5rem;
    }

    .tagline-section h2 {
        font-size: 1.4rem;
    }

    .tagline-section p {
        font-size: 1rem;
    }

    .stats {
        grid-template-columns: 1fr;
        padding: 40px 1.5rem;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .stat-card p {
        font-size: 1rem;
    }

    .cta h2 {
        font-size: 1.6rem;
    }

    .cta p {
        font-size: 1rem;
    }

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

    .footer-section h4 {
        font-size: 1rem;
    }

    .social-icons {
        gap: 0.75rem;
        font-size: 1.3rem;
    }
}

/* Extra small devices (320px and below) */
@media (max-width: 320px) {
    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .hero {
        padding: 20px 1rem 40px;
    }

    .illustration {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }

    .why-join,
    .features,
    .community,
    .cta {
        padding: 30px 1rem;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reason-card,
.group-card,
.feature-item {
    animation: fadeIn 0.6s ease-in-out;
}

/* ==================== UTILITY CLASSES ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* ==================== SMALL MOBILE (384px - 480px) ==================== */
@media (max-width: 384px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1rem;
    }

    .nav-container {
        padding: 0.75rem calc(max(1rem, 3vw));
    }

    .logo {
        max-width: 150px;
        min-width: auto;
        font-size: 1.3rem;
    }

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

    .logo span {
        font-size: 1.3rem;
    }

    .hero {
        padding: 30px calc(max(1rem, 2vw)) 50px;
        gap: 1.5rem;
    }

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

    .container {
        padding: 0 calc(max(1rem, 2vw));
    }

    .breadcrumb-container {
        font-size: 0.85rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .why-join,
    .features,
    .community,
    .cta {
        padding: 30px calc(max(1rem, 2vw));
    }
}

/* ==================== EXTRA SMALL DEVICES (320px and below) ==================== */
@media (max-width: 320px) {
    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 0.95rem;
    }

    .nav-container {
        padding: 0.7rem 1rem;
    }

    .logo {
        max-width: 140px;
        min-width: auto;
        font-size: 1.2rem;
    }

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

    .logo span {
        font-size: 1.2rem;
    }

    .hero {
        padding: 25px 1rem 40px;
        gap: 1rem;
    }

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

    .container {
        padding: 0 1rem;
    }

    .breadcrumb-container {
        font-size: 0.8rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .why-join,
    .features,
    .community,
    .cta {
        padding: 25px 1rem;
    }
}

/* Old 320px breakpoint - DEPRECATED ==================== */
@media (max-width: 320px) {
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .nav-container {
        padding: 0.8rem 1rem;
    }

    .nav-menu {
        top: 60px;
    }

    .hero {
        padding: 30px 1rem 50px;
        gap: 1.5rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary-large {
        max-width: 100%;
    }

    .container {
        padding: 0 1rem;
    }

    .breadcrumb-container {
        font-size: 0.85rem;
    }
}
