/* ===================================================================
   custom.css — A2K41NVC Class Memory Website
   Custom overrides and new components on top of the Sublime template
   =================================================================== */

/* -------------------------------------------------------------------
   1. CSS Variables & Design Tokens
   ------------------------------------------------------------------- */
:root {
    --clr-primary:       #1a6cf2;
    --clr-primary-dark:  #0d2b6e;
    --clr-primary-light: #64b5f6;
    --clr-accent:        #42a5f5;
    --clr-bg-dark:       #050e1d;
    --clr-bg-card:       rgba(13, 43, 110, 0.35);
    --clr-text-main:     #e8f0fe;
    --clr-text-muted:    rgba(232, 240, 254, 0.65);
    --clr-border:        rgba(100, 181, 246, 0.2);
    --clr-gold:          #f4c842;
    --font-main:         'Be Vietnam Pro', 'Segoe UI', sans-serif;
    --radius-md:         12px;
    --radius-lg:         20px;
    --shadow-glow:       0 0 30px rgba(26, 108, 242, 0.3);
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------------
   2. Base Font Override — Be Vietnam Pro
   ------------------------------------------------------------------- */
body,
input,
textarea,
select,
button {
    font-family: var(--font-main) !important;
}

/* -------------------------------------------------------------------
   3. Header / Logo Override
   ------------------------------------------------------------------- */
.logo-text {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
    display: inline-block;
}

.logo-text span {
    color: var(--clr-primary-light);
}

/* Hide the original img logo since we use text */
.site-logo img {
    display: none;
}

/* -------------------------------------------------------------------
   4. Hero Section Enhancements
   ------------------------------------------------------------------- */
.home-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(26, 108, 242, 0.2);
    border: 1px solid rgba(100, 181, 246, 0.4);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 1.2rem;
    color: var(--clr-primary-light);
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26, 108, 242, 0); }
    50%       { box-shadow: 0 0 0 8px rgba(26, 108, 242, 0.15); }
}

#hero-title {
    font-size: clamp(5rem, 12vw, 11rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 1.5rem;
}

#hero-title .accent {
    color: var(--clr-primary);
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 40px rgba(26, 108, 242, 0.6);
}

#hero-subtitle {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 3.5rem;
}

#hero-subtitle em {
    font-style: italic;
    color: var(--clr-primary-light);
    opacity: 0.8;
    font-size: 0.85em;
    display: block;
    margin-top: 0.4em;
}

/* -------------------------------------------------------------------
   5. Statistics Boxes (About Section)
   ------------------------------------------------------------------- */
.stat-box {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.stat-box:hover {
    border-color: var(--clr-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.stat-number {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    color: var(--clr-primary);
    line-height: 1;
    margin-bottom: 0.6rem;
    text-shadow: 0 0 20px rgba(26, 108, 242, 0.5);
}

/* -------------------------------------------------------------------
   6. Timeline / Nhật Ký
   ------------------------------------------------------------------- */
.diary-section {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 0 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--clr-primary), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
    align-items: flex-start;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 1rem;
    width: 14px;
    height: 14px;
    background: var(--clr-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(26, 108, 242, 0.8);
    z-index: 2;
    flex-shrink: 0;
}

.timeline-date {
    flex: 0 0 calc(50% - 3rem);
    text-align: right;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--clr-primary-light);
    padding-top: 0.6rem;
    letter-spacing: 1px;
}

.timeline-item:nth-child(even) .timeline-date {
    text-align: left;
}

.timeline-content {
    flex: 0 0 calc(50% - 3rem);
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    border-color: var(--clr-primary);
    box-shadow: var(--shadow-glow);
}

.timeline-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text-main);
    margin-bottom: 0.8rem;
}

.timeline-content p {
    font-size: 1.35rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Mobile timeline */
@media (max-width: 768px) {
    .timeline::before { left: 20px; }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        padding-left: 50px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        text-align: left;
        flex: none;
        padding-top: 0;
        margin-bottom: 0.5rem;
    }

    .timeline-content {
        flex: none;
        width: 100%;
    }
}

/* -------------------------------------------------------------------
   7. Members Grid
   ------------------------------------------------------------------- */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.member-card {
    background: var(--clr-bg-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.member-card:hover {
    transform: translateY(-6px);
    border-color: var(--clr-primary);
    box-shadow: var(--shadow-glow);
}

.member-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.member-info h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--clr-text-main);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.member-role {
    font-size: 1.1rem;
    color: var(--clr-primary-light);
    font-weight: 500;
    margin: 0;
}

.member-see-more {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding-top: 1rem;
}

/* -------------------------------------------------------------------
   8. Social / Contact Cards
   ------------------------------------------------------------------- */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    background: rgba(26, 108, 242, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.25);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.social-card:hover {
    background: rgba(26, 108, 242, 0.25);
    border-color: var(--clr-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    color: inherit;
}

.social-card i {
    font-size: 3rem;
    color: var(--clr-primary-light);
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.social-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-text-main);
    margin-bottom: 0.2rem;
}

.social-card p {
    font-size: 1.2rem;
    color: var(--clr-text-muted);
    margin: 0;
}

/* -------------------------------------------------------------------
   9. Members Preview Section
   ------------------------------------------------------------------- */
.members-preview-section {
    background: var(--clr-bg-dark);
}

/* -------------------------------------------------------------------
   10. Button Enhancements
   ------------------------------------------------------------------- */
.btn--primary {
    background: linear-gradient(135deg, var(--clr-primary), #0d5ed8) !important;
    border-color: var(--clr-primary) !important;
    box-shadow: 0 4px 20px rgba(26, 108, 242, 0.4) !important;
    transition: var(--transition-smooth) !important;
}

.btn--primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(26, 108, 242, 0.6) !important;
}

/* -------------------------------------------------------------------
   11. Section — Darker backgrounds
   ------------------------------------------------------------------- */
.s-services.darker,
.s-clients.darker {
    background: rgba(5, 14, 29, 0.98);
}

/* -------------------------------------------------------------------
   12. Item Service Cards — Glassmorphism enhancement
   ------------------------------------------------------------------- */
.item-service {
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    background: rgba(13, 43, 110, 0.2);
    border: 1px solid var(--clr-border);
    transition: var(--transition-smooth);
    margin-bottom: 2rem;
}

.item-service:hover {
    border-color: var(--clr-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* -------------------------------------------------------------------
   13. Masonry / Gallery Item Enhancements
   ------------------------------------------------------------------- */
.item-folio {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.item-folio:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* -------------------------------------------------------------------
   14. Footer
   ------------------------------------------------------------------- */
footer {
    background: #020812 !important;
}

footer .ss-copyright span {
    font-family: var(--font-main);
    font-size: 1.3rem;
}

/* -------------------------------------------------------------------
   15. Scrollbar Styling
   ------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--clr-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--clr-primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--clr-primary-light);
}

/* -------------------------------------------------------------------
   16. Selection Color
   ------------------------------------------------------------------- */
::selection {
    background: var(--clr-primary);
    color: #fff;
}

/* -------------------------------------------------------------------
   17. Animate floating particles on hero (subtle decoration)
   ------------------------------------------------------------------- */
.s-home::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(26, 108, 242, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(100, 181, 246, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(13, 43, 110, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* -------------------------------------------------------------------
   18. Vietnamese Font Rendering
   ------------------------------------------------------------------- */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* -------------------------------------------------------------------
   19. Responsive Adjustments
   ------------------------------------------------------------------- */
@media (max-width: 600px) {
    .social-links-grid {
        grid-template-columns: 1fr;
    }

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

    .home-badge {
        font-size: 1rem;
    }
}

/* -------------------------------------------------------------------
   20. Smooth scroll behavior
   ------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}
