/*=========================================================
  CyberLabs IIIT Kottayam
  Gallery V2
  File : css/gallery.css
  Version : 2.0
=========================================================*/

/*=========================================================
  ROOT VARIABLES
=========================================================*/

:root{

    --primary:#0d6efd;
    --secondary:#0b5ed7;
    --accent:#00d4ff;

    --dark:#0b1220;
    --dark2:#16213e;

    --light:#ffffff;
    --gray:#6c757d;
    --border:#e9ecef;

    --radius:16px;

    --shadow-sm:0 5px 15px rgba(0,0,0,.08);

    --shadow-md:0 15px 40px rgba(0,0,0,.12);

    --shadow-lg:0 30px 70px rgba(0,0,0,.18);

    --transition:.35s ease;

}

/*=========================================================
  RESET
=========================================================*/

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:"Poppins",sans-serif;
    background:#f6f8fb;
    color:#222;
    line-height:1.7;

}

a{

    text-decoration:none;

}

img{

    max-width:100%;
    display:block;

}

/*=========================================================
  SECTION SPACING
=========================================================*/

.gallery-main,
.gallery-filter-section,
.gallery-cta{

    padding:70px 0;

}

/*=========================================================
  HERO
=========================================================*/

.gallery-hero{

    position:relative;

    overflow:hidden;

    padding:110px 0 90px;

    background:
    linear-gradient(
        135deg,
        #07111f,
        #10294f,
        #154f8b
    );

    color:#fff;

}

.gallery-hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:

    radial-gradient(circle at top right,
    rgba(255,255,255,.10),
    transparent 45%);

}

.gallery-hero .container{

    position:relative;

    z-index:2;

}

.gallery-tag{

    display:inline-block;

    background:rgba(255,255,255,.12);

    padding:8px 18px;

    border-radius:50px;

    font-size:13px;

    letter-spacing:1px;

    margin-bottom:20px;

    text-transform:uppercase;

}

.gallery-hero h1{

    font-size:54px;

    font-weight:700;

    margin-bottom:20px;

}

.gallery-hero p{

    font-size:18px;

    color:rgba(255,255,255,.88);

    max-width:700px;

}

/*=========================================================
  BREADCRUMB
=========================================================*/

.gallery-breadcrumb{

    margin-bottom:35px;

    font-size:14px;

}

.gallery-breadcrumb a{

    color:#ffffff;

}

.gallery-breadcrumb span{

    margin:0 8px;

    color:rgba(255,255,255,.65);

}

/*=========================================================
  HERO STATISTICS
=========================================================*/

.gallery-stat-box{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

}

.stat-item{

    background:rgba(255,255,255,.10);

    backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.15);

    border-radius:18px;

    padding:28px;

    text-align:center;

    transition:var(--transition);

}

.stat-item:hover{

    transform:translateY(-6px);

    background:rgba(255,255,255,.16);

}

.stat-item h2{

    font-size:38px;

    font-weight:700;

    margin-bottom:8px;

}

.stat-item p{

    margin:0;

    font-size:15px;

    color:rgba(255,255,255,.82);

}

/*=========================================================
  FILTER AREA
=========================================================*/

.gallery-filter-section{

    background:#fff;

    border-bottom:1px solid var(--border);

}

.gallery-filter-form{

    background:#fff;

    padding:30px;

    border-radius:18px;

    box-shadow:var(--shadow-sm);

}

.search-box{

    position:relative;

}

.search-box i{

    position:absolute;

    left:18px;

    top:50%;

    transform:translateY(-50%);

    color:#999;

}

.search-box input{

    padding-left:48px;

    height:55px;

    border-radius:12px;

}

.form-select{

    height:55px;

    border-radius:12px;

}

.form-control:focus,
.form-select:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 .2rem rgba(13,110,253,.15);

}

/*=========================================================
  BUTTONS
=========================================================*/

.cyber-btn{

    height:55px;

    border:none;

    border-radius:12px;

    background:var(--primary);

    color:#fff;

    font-weight:600;

    transition:var(--transition);

}

.cyber-btn:hover{

    background:var(--secondary);

    transform:translateY(-2px);

    color:#fff;

}

/*=========================================================
  SECTION TITLE
=========================================================*/

.gallery-section-title{

    margin-bottom:45px;

    text-align:center;

}

.gallery-section-title h2{

    font-size:40px;

    font-weight:700;

    margin-bottom:15px;

}

.gallery-section-title p{

    max-width:720px;

    margin:auto;

    color:#666;

    font-size:17px;

}

/*=========================================================
  ALBUM GRID
=========================================================*/

#albumContainer{

    row-gap:32px;

}

.album-card{

    position:relative;

    background:#ffffff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:var(--shadow-sm);

    transition:var(--transition);

    height:100%;

    border:1px solid rgba(0,0,0,.05);

}

.album-card:hover{

    transform:translateY(-10px);

    box-shadow:var(--shadow-lg);

}

.album-card a{

    color:inherit;

    display:block;

    height:100%;

}

/*=========================================================
  ALBUM IMAGE
=========================================================*/

.album-image{

    position:relative;

    overflow:hidden;

    height:260px;

    background:#e9ecef;

}

.album-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:transform .6s ease;

}

.album-card:hover .album-image img{

    transform:scale(1.08);

}

/*=========================================================
  IMAGE OVERLAY
=========================================================*/

.album-overlay{

    position:absolute;

    inset:0;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    opacity:0;

    visibility:hidden;

    transition:all .35s ease;

    background:

    linear-gradient(

        rgba(7,17,31,.15),

        rgba(7,17,31,.80)

    );

}

.album-card:hover .album-overlay{

    opacity:1;

    visibility:visible;

}

.overlay-content{

    transform:translateY(25px);

    transition:all .35s ease;

}

.album-card:hover .overlay-content{

    transform:translateY(0);

}

.view-icon{

    width:72px;

    height:72px;

    margin:auto;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:rgba(255,255,255,.18);

    backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.25);

    margin-bottom:18px;

}

.view-icon i{

    color:#fff;

    font-size:28px;

}

.overlay-content h4{

    color:#fff;

    font-size:24px;

    font-weight:700;

    margin-bottom:8px;

}

.overlay-content p{

    color:rgba(255,255,255,.88);

    font-size:15px;

    margin:0;

}

/*=========================================================
  ALBUM BODY
=========================================================*/

.album-body{

    padding:24px;

}

.album-category{

    display:inline-block;

    padding:6px 14px;

    border-radius:50px;

    background:#eaf4ff;

    color:var(--primary);

    font-size:13px;

    font-weight:600;

    text-transform:uppercase;

    letter-spacing:.4px;

    margin-bottom:15px;

}

.album-body h3{

    font-size:22px;

    font-weight:700;

    line-height:1.4;

    margin-bottom:18px;

    color:var(--dark);

    min-height:64px;

}

.album-meta{

    display:flex;

    justify-content:space-between;

    flex-wrap:wrap;

    gap:10px;

    padding-top:16px;

    border-top:1px solid #ececec;

}

.album-meta span{

    display:flex;

    align-items:center;

    gap:8px;

    font-size:14px;

    color:#666;

}

.album-meta i{

    color:var(--primary);

    font-size:15px;

}

/*=========================================================
  EMPTY STATE
=========================================================*/

.gallery-empty{

    display:none;

    padding:70px 30px;

    text-align:center;

    background:#fff;

    border-radius:18px;

    border:2px dashed #d8d8d8;

    margin-top:40px;

}

.gallery-empty img{

    width:90px;

    margin:auto;

    opacity:.7;

    margin-bottom:25px;

}

.gallery-empty h3{

    font-size:30px;

    margin-bottom:15px;

    color:var(--dark);

}

.gallery-empty p{

    max-width:500px;

    margin:auto auto 30px;

    color:#666;

}

/*=========================================================
  CTA SECTION
=========================================================*/

.gallery-cta{

    background:

    linear-gradient(

        135deg,

        #08111d,

        #123764,

        #0d6efd

    );

}

.cta-box{

    text-align:center;

    color:#fff;

    padding:80px 50px;

}

.cta-box h2{

    font-size:42px;

    font-weight:700;

    margin-bottom:20px;

}

.cta-box p{

    max-width:760px;

    margin:auto;

    font-size:18px;

    color:rgba(255,255,255,.88);

    line-height:1.8;

}

.cta-box .btn{

    min-width:180px;

    height:54px;

    line-height:40px;

    border-radius:12px;

    font-weight:600;

}

.cta-box .btn-outline-light{

    border-width:2px;

}

.cta-box .btn-outline-light:hover{

    color:var(--dark);

    background:#fff;

}

/*=========================================================
  SMALL ANIMATIONS
=========================================================*/

.album-card,
.stat-item,
.cyber-btn{

    will-change:transform;

}

.album-card:hover .album-category{

    background:var(--primary);

    color:#fff;

    transition:.3s;

}

.album-card:hover h3{

    color:var(--primary);

}

/*=========================================================
  LOADING PLACEHOLDER
=========================================================*/

.gallery-loading{

    width:100%;

    height:320px;

    border-radius:18px;

    background:

    linear-gradient(

        90deg,

        #f1f1f1 25%,

        #fafafa 50%,

        #f1f1f1 75%

    );

    background-size:400% 100%;

    animation:loading 1.4s infinite;

}

@keyframes loading{

    0%{

        background-position:100% 0;

    }

    100%{

        background-position:-100% 0;

    }

}



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

@media (max-width:1200px){

    .gallery-hero h1{

        font-size:48px;

    }

    .gallery-section-title h2{

        font-size:36px;

    }

}

@media (max-width:992px){

    .gallery-hero{

        padding:90px 0 70px;

        text-align:center;

    }

    .gallery-stat-box{

        margin-top:45px;

    }

    .gallery-hero p{

        margin:auto;

    }

    .gallery-filter-form{

        padding:25px;

    }

    .album-body h3{

        font-size:20px;

        min-height:auto;

    }

    .cta-box{

        padding:65px 35px;

    }

    .cta-box h2{

        font-size:36px;

    }

}

@media (max-width:768px){

    .gallery-main,
    .gallery-filter-section,
    .gallery-cta{

        padding:55px 0;

    }

    .gallery-hero{

        padding:80px 0 60px;

    }

    .gallery-hero h1{

        font-size:40px;

    }

    .gallery-hero p{

        font-size:16px;

    }

    .gallery-stat-box{

        grid-template-columns:1fr;

        gap:15px;

    }

    .stat-item{

        padding:22px;

    }

    .gallery-filter-form{

        padding:20px;

    }

    .album-image{

        height:230px;

    }

    .album-body{

        padding:20px;

    }

    .gallery-section-title h2{

        font-size:32px;

    }

    .cta-box{

        padding:55px 25px;

    }

    .cta-box h2{

        font-size:32px;

    }

    .cta-box p{

        font-size:16px;

    }

}

@media (max-width:576px){

    .gallery-hero{

        padding:70px 0 55px;

    }

    .gallery-tag{

        font-size:12px;

        padding:6px 14px;

    }

    .gallery-hero h1{

        font-size:34px;

    }

    .gallery-breadcrumb{

        font-size:13px;

    }

    .gallery-filter-form{

        border-radius:14px;

        padding:18px;

    }

    .search-box input,

    .form-select,

    .cyber-btn{

        height:50px;

    }

    .album-card{

        border-radius:15px;

    }

    .album-image{

        height:210px;

    }

    .view-icon{

        width:60px;

        height:60px;

    }

    .view-icon i{

        font-size:22px;

    }

    .overlay-content h4{

        font-size:20px;

    }

    .album-body h3{

        font-size:19px;

    }

    .album-meta{

        flex-direction:column;

        align-items:flex-start;

    }

    .gallery-empty{

        padding:50px 20px;

    }

    .gallery-empty h3{

        font-size:24px;

    }

    .cta-box{

        padding:45px 20px;

    }

    .cta-box h2{

        font-size:28px;

    }

}

/*=========================================================
  FADE-IN ANIMATION
=========================================================*/

.fade-up{

    opacity:0;

    transform:translateY(30px);

    transition:all .6s ease;

}

.fade-up.show{

    opacity:1;

    transform:translateY(0);

}

/*=========================================================
  SCROLLBAR
=========================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#edf2f7;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--secondary);

}

/*=========================================================
  IMAGE SELECTION
=========================================================*/

::selection{

    background:var(--primary);

    color:#fff;

}

/*=========================================================
  ACCESSIBILITY
=========================================================*/

button:focus,
input:focus,
select:focus,
a:focus{

    outline:none;

}

/*=========================================================
  PRINT
=========================================================*/

@media print{

    .gallery-filter-section,
    .gallery-cta,
    .gallery-breadcrumb{

        display:none;

    }

    body{

        background:#fff;

    }

    .album-card{

        box-shadow:none;

        border:1px solid #ccc;

        break-inside:avoid;

    }

}

/*=========================================================
  END OF FILE
=========================================================*/


/*=========================================================
  PAGE HERO
=========================================================*/

.page-hero{
    background: linear-gradient(
        135deg,
        #050b16,
        #0a1626
    );
    padding: 140x 0 80px;
    text-align: center;
}

.page-hero h5{
    color: #66a9d1;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.page-hero h1{
    color: #ffffff !important;
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 25px;
    -webkit-text-fill-color: #ffffff;
    text-shadow: none;
}

.page-hero p{
    color: #ffffff;
    max-width: 760px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
}