@font-face {

    font-family: 'CaviarDreams';

    src: url('../font/CaviarDreams.ttf') format('truetype');

    font-weight: 300;

    font-style: normal;

}



@font-face {

    font-family: 'CaviarDreams';

    src: url('../font/CaviarDreams.ttf') format('truetype');

    font-weight: 400;

    /* Regular */

    font-style: normal;

}



@font-face {

    font-family: 'CaviarDreams';

    src: url('../font/CaviarDreams_Bold.ttf') format('truetype');

    font-weight: 700;

    /* Bold */

    font-style: normal;

}



@font-face {

    font-family: 'Angelina';

    src: url('../font/angelina.TTF') format('truetype');

    font-weight: normal;

    font-style: normal;

}



/* ********************************

 - Navbar

**********************************/

/* navbar slide animation */

.navbar-hidden {

    transform: translateY(-100%);

}



.navbar-visible {

    transform: translateY(0);

}



nav {

    transition: transform 0.3s ease-in-out;

    z-index: 1000;

}



/* smooth mobile menu */

#menu {

    max-height: 0;

    overflow: hidden;

    opacity: 0;

    transition: max-height 0.3s ease, opacity 0.3s ease;

}



#menu.mobile-open {

    max-height: 600px;

    opacity: 1;

}



.menu-item {

    display: flex;

    align-items: center;

    padding: 14px 18px;

    color: #374151;

    text-decoration: none;

    border-bottom: 1px solid #e5e7eb;

    transition: all 0.3s ease;

    font-weight: 500;

}



.menu-item:last-child {

    border-bottom: none;

}



.menu-item i {

    width: 24px;

    margin-right: 12px;

    color: #fbbf24;

    transition: all 0.3s ease;

}



.menu-item:hover {

    background-color: #f3f4f6;

    color: #fbbf24;

}



.menu-item:hover i {

    color: #fbbf24;

    transform: scale(1.1);

}



.submenu {

    background-color: #f9fafb;

    padding-left: 2rem;

}



.submenu-item {

    display: block;

    padding: 10px 18px;

    color: #374151;

    border-bottom: 1px solid #e5e7eb;

    text-decoration: none;

}



.submenu-item:hover {

    background-color: #f3f4f6;

    color: #fbbf24;

}



/* Enhanced submenu styles */

.group:hover .group-hover\:block {

    display: block !important;

    animation: fadeIn 0.3s ease-in-out;

}



.dropdown-menu {

    display: none;

    position: absolute;

    background: white;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);

    border-radius: 12px;

    margin-top: 2px;

    min-width: 240px;

    padding: 8px 0;

    border: 1px solid #f3f4f6;

    transform-origin: top center;

    z-index: 100;

    opacity: 0;

    transform: translateY(10px);

    transition: all 0.3s ease;

}



.group:hover .dropdown-menu {

    display: block;

    opacity: 1;

    transform: translateY(0);

}



.dropdown-item {

    display: flex;

    align-items: center;

    padding: 12px 20px;

    color: #4b5563;

    text-decoration: none;

    transition: all 0.2s ease;

    border-left: 3px solid transparent;

}



.dropdown-item:hover {

    background-color: #fffbeb;

    color: #f59e0b;

    border-left-color: #fbbf24;

    padding-left: 22px;

}



.dropdown-item-icon {

    width: 28px;

    height: 28px;

    display: flex;

    align-items: center;

    justify-content: center;

    background-color: #fffbeb;

    border-radius: 8px;

    margin-right: 12px;

    transition: all 0.3s ease;

}



.dropdown-item:hover .dropdown-item-icon {

    background-color: #fef3c7;

    transform: scale(1.05);

}



.dropdown-item i {

    color: #f59e0b;

    font-size: 14px;

    margin-right: 0;

    width: auto;

}



.dropdown-item span {

    font-weight: 500;

    font-size: 14px;

}



@keyframes fadeIn {

    from {

        opacity: 0;

        transform: translateY(10px);

    }



    to {

        opacity: 1;

        transform: translateY(0);

    }

}



/* Arrow for desktop dropdown */

.dropdown-arrow {

    width: 14px;

    height: 14px;

    position: absolute;

    top: -7px;

    left: 20px;

    background: white;

    transform: rotate(45deg);

    border-top: 1px solid #f3f4f6;

    border-left: 1px solid #f3f4f6;

}



/* ********************************

 - End Navbar

**********************************/





/* ********************************

 - Explore My Domains

**********************************/



/* Ensure viewport doesn't add extra padding on small devices */

#cardsViewport {

    -webkit-tap-highlight-color: transparent;

}



/* Hide scrollbar for the viewport */

#cardsViewport::-webkit-scrollbar {

    display: none;

}



#cardsViewport {

    -ms-overflow-style: none;

    scrollbar-width: none;

}



/* Custom styles for the slider */

.cards-slide {

    flex: 0 0 calc(33.333% - 1rem);

    /* Always show 3 cards accounting for gap */

}



@media (max-width: 768px) {

    .cards-slide {

        flex: 0 0 100%;

        /* On mobile, show 1 card at a time */

    }

}



#rightContent {

    opacity: 1;

    transform: translateY(0);

    transition: opacity 0.4s ease, transform 0.4s ease;

}



#rightContent.fade-out {

    opacity: 0;

    transform: translateY(20px);

}



/* ********************************

 - End Explore My Domains

**********************************/



/* ********************************

 -  Skills brilliance page 

**********************************/



/* Patents Section the hidden-content class  */

.hidden-content {

    display: none;

}



.hidden-content.grid {

    display: grid;

}



.hidden-content.flex {

    display: flex;

}



.hidden-content.block {

    display: block;

}



/* ********************************

 - End Skills brilliance page 

**********************************/


/* ================================================
      start: sristy_creation
================================================ */

/* Gallery Grid Masonry */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 10px;
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    transition: transform .3s ease;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1rem;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: all .3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.category-badge {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: #facc15;
    color: #000;
    padding: .25rem .75rem;
    border-radius: 20px;
    font-size: .875rem;
    font-weight: 500;
}

/* Fancybox Modal Styles */
.fancybox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fancybox-modal.open {
    opacity: 1;
    visibility: visible;
}

.fancybox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
}

.fancybox-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fancybox-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.fancybox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.fancybox-caption {
    text-align: center;
    color: white;
    padding: 15px 0;
    max-width: 600px;
    margin: 0 auto;
}

.fancybox-caption h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.fancybox-caption p {
    color: #ccc;
    font-size: 1rem;
}

.fancybox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(218, 165, 32, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.fancybox-nav:hover {
    background: rgba(218, 165, 32, 1);
    transform: translateY(-50%) scale(1.1);
}

.fancybox-prev {
    left: 60px;
}

.fancybox-next {
    right: 60px;
}

.fancybox-close {
    position: absolute;
    top: 20px;
    right: 60px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.fancybox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.fancybox-counter {
    position: absolute;
    top: 20px;
    left: 60px;
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    z-index: 10;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .fancybox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .fancybox-prev {
        left: 10px;
    }

    .fancybox-next {
        right: 10px;
    }

    .fancybox-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

#mobileFilter option {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 12px;
    margin: 4px;
    border-radius: 8px;
}

#mobileFilter option:hover {
    background-color: rgba(255, 255, 255, 1);
}

#mobileFilter option:checked {
    background-color: rgba(255, 255, 255, 0.95);
    font-weight: bold;
}


/* ================================================
       end: sristy_creation
================================================ */