/* Global Imports */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@100..900&display=swap');
@import url('inc/bootstrap-handler.css');
@import url('inc/ajax-search.css');
@import url('inc/masonry.css');

/* Variables */
:root {
    --space: 120px;
    --title-margin: 60px;

    /* Backdrop Filters */
    --backdrop-background: rgba(255, 255, 255, 0.8);
    --backdrop-filter: saturate(180%) blur(20px);
    --dark-backdrop-background: rgba(0, 0, 0, 0.8);
    --dark-backdrop-filter: saturate(180%) blur(20px);

    /* Colors */
    --dark-container: #1b1b1b;
    --dark-container2: #1e1f20;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
    line-height: 1.4;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-doa {
    background-color: var(--primary-color);
    color: white;
}

.btn-doa:hover {
    background-color: var(--primary-color);
    color: white;
    opacity: .9;
}

.btn-doa-outline {
    background-color: #f5f5f5;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: var(--border-radius);
    color: #212529;
}

.btn-doa-outline:hover,
.btn-doa-outline.active {
    background-color: var(--primary-color);
    color: white;
}

/* Header & Footer */
header,
footer {
    background-color: var(--backdrop-background);
    backdrop-filter: var(--backdrop-filter);
    -webkit-backdrop-filter: var(--dark-backdrop-filter);
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Navigation */
nav {
    padding-right: calc(var(--bs-gutter-x) * .5) !important;
    padding-left: calc(var(--bs-gutter-x) * .5) !important;
}

/* Layout */
.mini-container {
    max-width: 800px !important;
}

.sticky {
    position: sticky;
    top: 68px;
}

/* spacing */
.s-info_block,
.s-blog,
.s-projects,
.vertical-space {
    margin: var(--space) 0;
}

.s-title {
    margin-bottom: 60px;
}

.sm-text {
    font-size: 14px;
}

.footer-widgets {
    margin: calc(var(--space) / 2) 0;
}

.footer-widgets img {
    height: 50px !important;
}

/* Overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9;
    display: none;
    transition: 0.7s;
}

/* Preloader */
#preloader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    margin-left: 20px;
    position: relative;
    cursor: pointer;
}

.user-profile img {
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
}

.user-profile .user-name {
    /* font-size: 14px; */
    font-weight: 700;
}

/* User Menu */
.user-menu {
    position: absolute;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    left: -6px;
    top: 32px;
    z-index: 10;
    min-width: 225px;
    border-radius: var(--border-radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.user-profile:hover .user-menu,
.user-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu li {
    color: #242429;
    font-size: 14px;
    text-transform: capitalize;
    padding: 10px 15px;
    font-weight: 500;
    display: block;
    border-bottom: 1px solid #ebebeb;
    text-align: left;
    transition: background 0.2s ease-in-out;
}

.user-menu li:first-child {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.user-menu li:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.user-menu li:hover {
    background: #f8f9fa;
}

.user-menu li a:hover {
    color: inherit !important;
}

.user-menu li i {
    margin-right: 7px;
}

/* Page Styles */
.page-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    z-index: 0;
    text-align: center;
}

.banner-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    padding: calc(var(--space) / 2) 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    z-index: 0;
}

.banner-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.banner-bg h2 {
    font-weight: bold;
}

.banner-bg {
    font-size: 20px;
}

.single-hero {
    color: white;
    padding: var(--space) 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.single-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.single-hero .container {
    position: relative;
    z-index: 2;
}

.single-content {
    padding: 20px 0;
}

.single-content iframe {
    border-radius: var(--border-radius) !important;
    max-width: 100% !important;
}

/* Icons */
i {
    position: relative;
    top: 2px;
}

.r-360::before {
    animation: rotate360 0.7s ease forwards;
}

@keyframes rotate360 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Projects */
.hover-card {
    overflow: hidden;
}

.image-container {
    position: relative;
}

.image-container img {
    height: 200px;
    object-fit: cover;
}

.hover-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    padding: 15px;
}

.hover-card:hover .hover-overlay {
    opacity: 1;
}

.card-img-placeholder {
    width: 100%;
    height: 200px;
    background-color: #212529;
}

/* Hidden Elements */
.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* selection */
::-moz-selection {
    color: white;
    background: var(--primary-color);
}

::selection {
    color: white;
    background: var(--primary-color);
}

/* Footer */
.footer-widgets {
    margin: calc(var(--space) / 2) 0;
}

/* Miscellaneous */
.bigger-font {
    font-size: 1.2rem;
}

.group {
    margin-bottom: 10px;
}

.header-login {
    align-items: center;
    margin-left: 20px;
}

#dark-mode-toggle {
    border: 0;
    background-color: unset;
}

#dark-mode-toggle i::before {
    display: block;
}

/* Responsive */

@media only screen and (max-width: 1199px) {
    .header-additional {
        justify-content: space-between;
        border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
        margin-top: 5px;
        padding-top: 5px;
    }

    .header-additional .user-profile,
    .header-login {
        margin: 0;
        padding: 0.5rem 0;
        color: var(--primary-color);
    }
}

/* For screens up to 768px */
@media only screen and (max-width: 768px) {
    :root {
        --space: 60px;
    }

    /* Navbar and Flex */
    .left-nav {
        flex-grow: 1;
    }

    /* Contact Form */
    .contact-form {
        margin-top: 30px;
    }

    /* Footer */
    footer {
        text-align: center;
    }

    /* Search Form */
    #ajax-search-form {
        max-width: 175px;
        transition: max-width 0.7s ease;
        flex-grow: 1;
    }

    #ajax-search-form:focus-within {
        max-width: 100%;
    }

    .search-results-container {
        left: 5px !important;
        width: calc(100% - 10px) !important;
        top: calc(100% + 5px) !important;
    }

    /* Dark Mode Toggle */
    #dark-mode-toggle {
        padding: 0.5rem 0;
        margin-right: 15px;
    }

    /* Margin Adjustment */
    .mb-lg {
        margin: auto !important;
        margin-bottom: 20px !important;
    }

    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    /* Footer Widgets */
    .footer-widgets h6 {
        margin-top: 30px;
    }
}

/* For screens up to 390px */
@media only screen and (max-width: 390px) {

    /* Search Form */
    #ajax-search-form {
        max-width: 120px;
    }

    .left-nav {
        width: calc(100% - 55px);
    }
}

/* For screens 768px and above */
@media only screen and (min-width: 768px) {

    /* Admin Bar Adjustments */
    body.admin-bar header {
        top: 32px;
    }

    body.admin-bar .sticky {
        top: calc(68px + 32px);
    }

    /* Search Form */
    #ajax-search-form {
        width: 238px;
        transition: width 0.7s ease;
        position: relative;
    }

    #ajax-search-form:focus-within {
        width: 272px;
    }
}