﻿/* ==========================================================================
   BIEC PhoTech Club — Styles (Bright theme)
   ========================================================================== */

:root {
    --bg: #f5f7fb;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --border: #e4e9f2;
    --text: #17223b;
    --muted: #5b6a84;
    --accent: #f97316;
    --accent-2: #0ea5e9;
    --accent-3: #8b5cf6;
    --grad: linear-gradient(135deg, #fb923c 0%, #f43f5e 100%);
    --grad-blue: linear-gradient(135deg, #38bdf8 0%, #8b5cf6 100%);
    --header-h: 72px;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(23, 34, 59, 0.08);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
    box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(23, 34, 59, 0.06);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    padding: 2px;
    box-shadow: 0 0 0 1px var(--border);
}

.brand-name {
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    color: var(--text);
}

.brand-accent {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

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

.nav-link {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    color: var(--muted);
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
    color: var(--text);
    background: rgba(23, 34, 59, 0.05);
}

.nav-link.is-active {
    color: var(--accent);
}

.nav-link-cta {
    margin-left: 8px;
    color: #fff;
    background: var(--grad);
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(244, 63, 94, 0.25);
}

.nav-link-cta:hover {
    color: #fff;
    opacity: 0.92;
    background: var(--grad);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 48px) 24px 96px;
    overflow: hidden;
    background:
        radial-gradient(50% 60% at 82% 12%, rgba(56, 189, 248, 0.22), transparent 60%),
        radial-gradient(45% 55% at 12% 85%, rgba(251, 146, 60, 0.2), transparent 60%),
        var(--bg);
}

/* Rotating real-camera photo background (Sony / Nikon / Canon). */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-media-img.is-active {
    opacity: 1;
}

/* Light overlay keeps text readable while the photo shows through. */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.9) 38%,
        rgba(255, 255, 255, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.4rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 18px;
}

.hero-brands {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
    color: #fff;
    background: var(--grad);
    box-shadow: 0 8px 22px rgba(244, 63, 94, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.4);
}

.btn-ghost {
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: #f1f5fb;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid #c3cddd;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    z-index: 2;
}

.scroll-hint span {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollPulse 1.6s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
    padding: 96px 24px;
}

.section-alt {
    background: var(--bg-alt);
}

.container {
    max-width: 1120px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    color: var(--text);
}

.section-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(23, 34, 59, 0.12);
}

.about-icon {
    font-size: 1.9rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--grad-blue);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text);
}

.about-card p {
    color: var(--muted);
    font-size: 0.98rem;
}

/* Activities */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.activity-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.activity-num {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(23, 34, 59, 0.06);
    line-height: 1;
}

.activity-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text);
}

.activity-card p {
    color: var(--muted);
}

/* Events */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.event {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

.event:hover {
    transform: translateY(-2px);
}

.event-date {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--grad);
    color: #fff;
    line-height: 1;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 800;
}

.event-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.event-body {
    flex: 1 1 auto;
}

.event-body h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text);
}

.event-body p {
    color: var(--muted);
    font-size: 0.95rem;
}

.event-tag {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.gallery-item img,
.gallery-placeholder {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(139, 92, 246, 0.18));
}

.gallery-item figcaption {
    padding: 14px 18px;
    font-size: 0.95rem;
    color: var(--muted);
}

/* Join */
.join-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.join-info h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text);
}

.join-info > p {
    color: var(--muted);
    margin-bottom: 24px;
}

.join-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.join-details li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.join-details li span {
    color: var(--muted);
}

.join-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f8fafd;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition), background var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}

.form-field textarea {
    resize: vertical;
}

.form-status {
    margin-top: 14px;
    font-size: 0.9rem;
    color: #0d9488;
    min-height: 1.4em;
}

.form-status.is-error {
    color: #dc2626;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    background: var(--bg-alt);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand .brand-name {
    font-size: 1rem;
    color: var(--text);
}

.footer-text {
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    transition: color var(--transition), border-color var(--transition);
}

.footer-social a:hover {
    color: var(--accent);
    border-color: rgba(249, 115, 22, 0.4);
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 720px) {
    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(23, 34, 59, 0.1);
        transform: translateY(-130%);
        transition: transform var(--transition);
    }

    .nav.is-open {
        transform: translateY(0);
    }

    .nav-link {
        text-align: center;
        padding: 12px;
    }

    .nav-link-cta {
        margin-left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

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

    .event {
        flex-wrap: wrap;
    }

    .event-tag {
        margin-left: 88px;
    }
}

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

    .brand-name {
        font-size: 1rem;
    }
}
