/* ==========================================================
   HAYEON ARCHIVE
   Main Stylesheet
   Official Color: #52D9BB
========================================================== */

:root{

    --mint:#52D9BB;

    --background:#F5F7FA;

    --card:#FFFFFF;

    --text:#1E293B;

    --text-light:#64748B;

    --border:#E2E8F0;

}

/* ===========================
   DARK MODE
=========================== */

.dark{

    --background:#0F172A;

    --card:#1E293B;

    --text:#F8FAFC;

    --text-light:#CBD5E1;

    --border:#334155;

}

/* ===========================
   RESET
=========================== */

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    background:var(--background);

    color:var(--text);

    font-family:Arial, Helvetica, sans-serif;

    transition:.3s;

}

/* ===========================
   NAVBAR
=========================== */

.navbar{

    position:sticky;

    top:0;

    z-index:999;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 60px;

    backdrop-filter:blur(20px);

    background:rgba(82,217,187,.15);

    border-bottom:1px solid rgba(255,255,255,.2);

}

.dark .navbar{

    background:rgba(15,23,42,.85);

}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 2rem;
    font-weight: 700;
    color: #52D9BB;

     text-decoration: none;
}

.logo img {
    width: 46px;
    height: 46px;

    object-fit: contain;
    flex-shrink: 0;
}


.nav-links{

    display:flex;

    align-items:center;

    gap:30px;

}

.nav-links a{

    text-decoration:none;

    color:var(--text);

    font-weight:600;

    transition:.3s;

}

.nav-links a:hover{

    color:var(--mint);

}

.active{

    color:var(--mint)!important;

}

/* ===========================
   DARK MODE BUTTON
=========================== */

#mode{

    width:42px;

    height:42px;

    border:none;

    border-radius:50%;

    background:var(--mint);

    cursor:pointer;

    font-size:18px;

    transition:.3s;

}

@media (hover: hover) {

    #mode:hover{

        transform: rotate(180deg);

    }

}
#mode{

    transition: transform .4s;

}

.spin{

    transform: rotate(360deg);

}
/* ===========================
   HERO
=========================== */

.gallery-hero{

    height:45vh;

    display:flex;

    justify-content:center;

    align-items:center;

    background:

    linear-gradient(

        rgba(15,23,42,.55),

        rgba(15,23,42,.55)

    ),

    url("../assets/images/hero.jpg");

    background-size:cover;

    background-position:center;

}

.hero-overlay{

    text-align:center;

    color:white;

}

.hero-overlay h1{

    font-size:64px;

    margin-bottom:15px;

}

.hero-overlay p{

    font-size:20px;

    opacity:.9;

}

/* ===========================
   MAIN
=========================== */

.gallery-wrapper{

    max-width:1400px;

    margin:auto;

    padding:70px 40px;

}

.section-title{

    text-align:center;

    margin-bottom:50px;

}

.section-title h2{

    font-size:40px;

    margin-bottom:10px;

}

.section-title p{

    color:var(--text-light);

}

/* ===========================
   ALBUM CARD
=========================== */
#gallery-container{

    display:flex;

    flex-direction:column;

    gap:30px;

}

.album-wrapper{
    width:100%;
    margin-bottom:40px;
}
.album-card{

    background:var(--card);

    border-radius:22px;

    overflow:hidden;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    transition:.35s;

    cursor:pointer;

}

.album-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 45px rgba(82,217,187,.30);

}

.album-card img{

    width:100%;

    aspect-ratio:16/9;

    object-fit:cover;

}

.album-card h2{

    padding:20px 20px 8px;

    font-size:22px;

}

.album-card p{

    padding:0 20px 25px;

    color:var(--text-light);

}

/* ===========================
   FOOTER
=========================== */

footer{

    margin-top:80px;

    padding:50px 20px;

    background:var(--card);

    border-top:1px solid var(--border);

}

.footer-content{

    max-width:1000px;

    margin:auto;

    text-align:center;

}

.footer-content h3{

    color:var(--mint);

    margin-bottom:15px;

}

.footer-content hr{

    margin:25px auto;

    width:180px;

    border:none;

    border-top:1px solid var(--border);

}

.footer-content p{

    line-height:1.8;

    color:var(--text-light);

}

/* ===========================
   MOBILE
=========================== */

@media(max-width:768px){

.home-card{

    padding:28px;

}

.navbar{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:18px;

    padding:22px 20px;

}

.logo{

    font-size:30px;

    text-align:center;

}

.nav-links{

    display:flex;

    justify-content:center;

    align-items:center;

    flex-wrap:wrap;

    gap:18px;

    width:100%;

}

.nav-links a{

    margin:0;

}

#mode{

    margin-top:8px;

}

.gallery-hero{

    height:35vh;

}

.hero-overlay h1{

    font-size:44px;

    line-height:1.2;

}

.hero-overlay p{

    font-size:17px;

    line-height:1.7;

    padding:0 12px;

}

.section-title{

    margin-bottom:36px;

}

.section-title p{

    max-width:500px;

    margin:auto;

}

.footer-content{

    padding:0 10px;

}

.section-title h2{

    font-size:30px;

}

.gallery-wrapper{

    padding:40px 20px;

}

}
/* ===========================
   MEDIA GRID
=========================== */

.media-grid{

    display:block;

    column-count:5;
    column-gap:16px;

    margin-top:25px;

}

.media-grid img,
.media-grid video{

    width:100%;

    display:block;

    margin-bottom:16px;

    border-radius:12px;

    cursor:pointer;

    break-inside:avoid;

    transition:.25s;

}

.media-grid img:hover{

    transform:scale(1.02);

}

.media-grid video{

    width:100%;

    border-radius:18px;

}

/* ==========================
   FULLSCREEN LIGHTBOX
========================== */

#lightbox{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.97);
    z-index:99999;
    overflow:hidden;

    touch-action:none;
}

.lightbox-content{
    display:flex;
    justify-content:center;
    align-items:center;
    max-width:95vw;
    max-height:95vh;
}

#lightbox-image{

    max-width:100vw;
    max-height:100vh;

    width:auto;
    height:auto;

    object-fit:contain;

    user-select:none;
    -webkit-user-drag:none;

    transition:transform .25s ease;

}

#close-lightbox{

    position:fixed;

    top:18px;
    right:18px;

    width:48px;
    height:48px;

    border-radius:50%;

    background:rgba(255,255,255,.15);

    color:white;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:34px;

    cursor:pointer;

    backdrop-filter:blur(8px);

    z-index:100000;

}
/* ==========================
   RESPONSIVE GALLERY
========================== */

@media (max-width:1400px){

    .media-grid{

        column-count:4;

    }

}

@media (max-width:1000px){

    .media-grid{

        column-count:3;

    }

}

@media (max-width:700px){

    .media-grid{

        column-count:2;

    }

}

@media (max-width:500px){

    .media-grid{

        column-count:1;

    }

}
/* ==========================================
   OPENED ALBUM
========================================== */

#opened-album{

    width:100%;

    margin-top:50px;

}

.opened-album-header{

    margin-bottom:30px;

    text-align:center;

}

.opened-album-header h2{

    font-size:36px;

    margin-bottom:8px;

}

.opened-album-header p{

    color:var(--text-light);

}

/* ==========================================
   PINTEREST GRID
========================================== */

.opened-media-grid{

    column-count:5;

    column-gap:16px;

}

.opened-media-grid img,
.opened-media-grid video{

    width:100%;

    margin-bottom:16px;

    display:block;

    border-radius:14px;

    break-inside:avoid;

    cursor:pointer;

    transition:.25s;

}

.opened-media-grid img:hover{

    transform:scale(1.02);

}

/* ==========================
   Responsive
========================== */

@media(max-width:1400px){

    .opened-media-grid{

        column-count:4;

    }

}

@media(max-width:1000px){

    .opened-media-grid{

        column-count:3;

    }

}

@media(max-width:700px){

    .opened-media-grid{

        column-count:2;

    }

}

@media(max-width:500px){

    .opened-media-grid{

        column-count:1;

    }

}
/* ==========================================================
   HOME PAGE
========================================================== */

/* ===========================
   HERO BUTTONS
=========================== */

.hero-buttons{

    display:flex;

    justify-content:center;

    gap:18px;

    margin-top:35px;

    flex-wrap:wrap;

}

.hero-button{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:14px 28px;

    border-radius:14px;

    background:var(--mint);

    color:white;

    font-weight:700;

    text-decoration:none;

    transition:.3s;

}

.hero-button:hover{

    transform:translateY(-3px);

    box-shadow:0 12px 24px rgba(82,217,187,.35);

}

.hero-button.secondary{

    background:white;

    color:#1E293B;

}
/* ===========================
   HOME GRID
=========================== */

.home-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:30px;

    margin-bottom:70px;

}

.home-card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:24px;

    padding:36px;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    transition:
        transform .3s,
        box-shadow .3s,
        border-color .3s;

}

.home-card:hover{

    transform:translateY(-8px);

    border-color:var(--mint);

    box-shadow:0 18px 45px rgba(82,217,187,.22);

}
.home-card h3{

    font-size:28px;

    margin-bottom:18px;

}

.home-card p{

    color:var(--text-light);

    line-height:1.8;

}

.home-card ul{

    margin:25px 0;

    padding-left:22px;

}

.home-card li{

    margin-bottom:10px;

}

.home-link{

    display:inline-block;

    margin-top:12px;

    color:var(--mint);

    text-decoration:none;

    font-weight:700;

}

/* ===========================
   ABOUT
=========================== */

.home-about{

    margin-bottom:80px;

}

.home-about-card{

    background:var(--card);

    border-radius:24px;

    padding:40px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.home-about-card p{

    line-height:2;

    margin-bottom:20px;

    color:var(--text-light);

}

/* ===========================
   HOME HERO
=========================== */

body.home-page .gallery-hero{

    min-height:75vh;

    height:auto;

}

.scroll-indicator{

    margin-top:50px;

    color:white;

    opacity:.85;

    font-size:15px;

    letter-spacing:1px;

    animation:bounce 2s infinite;

}

@keyframes bounce{

    0%,100%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(10px);

    }

}

.home-card{

    border-radius:20px;

}

/* ==========================================================
   HOME PAGE MOBILE
========================================================== */

@media (max-width:768px){

    .home-grid{

        grid-template-columns:1fr;

    }

    .home-stats{

        grid-template-columns:repeat(2,1fr);

    }

    .hero-buttons{

        flex-direction:column;

    }

    .hero-button{

        width:100%;

    }

    body.home-page .gallery-hero{

        min-height:60vh;

    }

}
html,
body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
}