/* Define Zolina Font */
@font-face {
    font-family: 'Zolina';
    src: url('../fonts/zolina/Zolina-Bold.otf') format('opentype'); 
    font-weight: 700; /* Bold */
    font-style: normal;
}

@font-face {
    font-family: 'Zolina';
    src: url('../fonts/zolina/Zolina-SemiBold.otf') format('opentype'); 
    font-weight: 600; /* Semi-Bold */
    font-style: normal;
}

@font-face {
    font-family: 'Zolina';
    src: url('../fonts/zolina/Zolina-ExtraBold.otf') format('opentype'); 
    font-weight: 800; /* Extra-Bold */
    font-style: normal;
}
/* Define Logika Nova Font */
@font-face {
    font-family: 'Logika Nova';
    src: url('../fonts/logika-nova/LogikaNova-MediumItalic.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Logika Nova';
    src: url('../fonts/logika-nova/LogikaNova-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Logika Nova';
    src: url('../fonts/logika-nova/LogikaNova-Medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Use the fonts in styles */
h1 {
    font-family: 'Zolina';
    font-weight: 800; /* Extra Bold */
}

h2 {
    font-family: 'Zolina';
    font-weight: 700; /* Bold */
}

h3 {
    font-family: 'Zolina';
    font-weight: 600; /* Semi-Bold */
}

li a {
    font-family: 'Logika Nova';
    font-weight: normal; /* Default weight */
}

p {
    font-family: 'Logika Nova';
    font-weight: normal; /* Default weight */
}

dt{
    color: #171B1E;
}
dd{
    color: #004B87;
}
.error-message{
    margin: 5px 0px;
    color: red;
}

.overlay {
    /* other styles */
    pointer-events: auto; /* Ensure overlay can receive clicks */
}

.portfolio-container {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    justify-content: center; /* Space between cards */
    width: 100%;
    margin: auto;
}

.card {
    position: relative;
    width: calc(50% - 10px); /* Two cards with a little gap on larger screens */
    height: 300px; /* Set to desired height */
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px; /* Space below each card */
}

.card-image {
    width: 100%;
    height: 100% !important;
    object-fit: cover; /* Ensure the image covers the entire card */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* Black background with transparency */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .overlay {
    opacity: 1; /* Show overlay on hover */
}

.project-info h3{
    color: #E6E6FA;
}

.project-info h3,
.project-info p {
    margin: 0; /* Remove default margin */
}

.project-info p {
    font-size: 0.9rem; /* Adjust font size for category */
}

.circle-icon {
    background: white;
    color: black;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0; /* Remove margin to center in overlay */
    position: absolute;
    top: 30%;
    left: -60px; /* Start position hidden */
    transform: translateY(-50%); /* Center vertically */
    opacity: 0; /* Initially hidden */
    transition: left 0.3s ease, opacity 0.3s ease; /* Smooth transition */
}

.overlay:hover .circle-icon {
    left: 50%; /* Move into position on hover */
    opacity: 1; /* Show icon on hover */
    transform: translate(-50%, -50%); /* Center vertically */
    animation: animate__fadeInLeft 0.3s forwards; /* Use Animate.css for animation */
}

.project-info {
    text-align: center;
    transform: translateY(20px); /* Start position below */
    opacity: 0; /* Initially hidden */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transition */
}

.overlay:hover .project-info {
    transform: translateY(0); /* Move to original position on hover */
    opacity: 1; /* Show project info on hover */
    animation: animate__fadeInUp 0.3s forwards; /* Use Animate.css for animation */
}

.elementor-105 .elementor-element.elementor-element-3251281:hover .bdi-white{
    color:#FBFAF5;
}

/* Media Queries */
@media (max-width: 768px) {
    .card {
        width: 100%; /* One card per row on small screens */
    }
}
#loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9); /* Optional: Give it a white background */
    z-index: 9999; /* High z-index to make sure it's on top */
    display: flex;
    justify-content: center;
    align-items: center;
}
.grid-gallery{
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px; 
}

.card-img{
    width: 100%;
    height: 100%;
}

.grid-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile screens */
@media screen and (max-width: 992px) {
    .grid-gallery {
        grid-template-columns: repeat(3, 1fr); 
    }
}

/* Mobile screens */
@media screen and (max-width: 768px) {
    .grid-gallery {
        grid-template-columns: repeat(1, 1fr);
    }
}