/* ------------------------------
   Основні стилі
------------------------------ */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
}

main.flex-grow-1 {
    flex-grow: 1;
}

/* ------------------------------
   Navbar
------------------------------ */
.navbar-transparent {
    background-color: rgba(255,255,255,0.1) !important;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease-in-out;
}

.navbar-another {
    background-color: rgba(0,0,0,0.6) !important;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease-in-out;
}

.navbar-scrolled {
    background-color: rgba(0,0,0,0.7) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Змінюємо кольори посилань */
.navbar .nav-link {
    color: white;
    font-weight: 500;
}

    .navbar .nav-link:hover {
        text-decoration: none;
    }

.navbar {
    padding: 1rem 2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.navbar-brand {
    font-size: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar .nav-link {
    color: white;
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

    .navbar .nav-link::after {
        content: '';
        display: block;
        width: 0;
        height: 2px;
        background: #000;
        transition: width 0.3s;
        margin-top: 4px;
    }

    .navbar .nav-link:hover::after {
        width: 100%;
    }

    .navbar .nav-link:hover {
        color: #000 /*#0d6efd*/;
    }

.navbar-toggler {
    border: 2px solid #fff;
    border-radius: 8px;
}



/* ------------------------------
   Hero Section
------------------------------ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    background: url('/images/bg-img-1920.jpg') no-repeat center center;
    background-size: cover; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.2));
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.25rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* ------------------------------
   Footer
------------------------------ */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    flex-shrink: 0;
}

/* ------------------------------
   Анімація для Hero-тексту
------------------------------ */
.hero .container {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 0.3s;
}
/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    color: white;
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 0.3s;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 3px 3px 12px rgba(0,0,0,0.6);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 0.3s;
}

.hero-subtitle {
    font-size: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 0.6s;
}

/* Кнопка Hero */
.btn-hero {
    background-color: rgba(0,0,0,0.3);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease-out forwards;
    animation-delay: 0.9s;
}

    .btn-hero:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 10px 20px rgba(0,0,0,0.4);
        background-color: rgba(0,0,0,0.5);
        color: white;
    }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ------------------------------
   Інфо-блоки (cards) на головній
------------------------------ */
.info-card {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .info-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .info-card h4 {
        margin-top: 10px;
        font-weight: 700;
    }

    .info-card p {
        font-size: 0.95rem;
        color: #555;
    }

    .info-card .icon {
        font-size: 2.5rem;
        color: rgba(0,0,0,0.3);
        transition: all 0.3s ease;
    }

    .info-card:hover .icon {
        color: rgba(0,0,0,0.5);
    }

.btn-outline-primary {
    border: 2px solid rgba(0,0,0,0.5);
    color: white;
    border-radius: 25px;
    transition: all 0.3s ease;
    background-color: rgba(0,0,0,0.3);
}

    .btn-outline-primary:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 10px 20px rgba(0,0,0,0.4);
        background-color: rgba(0,0,0,0.5);
        color: white;
        border: 2px solid rgba(0,0,0,1);
    }

/* ------------------------------
   Блок контакти на головній
------------------------------ */
.contact-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .contact-card i {
        font-size: 2rem;
        color: rgba(0,0,0,0.5);
        transition: all 0.3s ease;
    }

    .contact-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .contact-card h5 {
        margin-top: 10px;
        font-weight: 700;
    }

    .contact-card p {
        font-size: 0.95rem;
        color: #555;
    }

/* Блок About */
.about-mission-img {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Картки проєктів (Діяльність) */
.project-card {
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    }
/*Новини*/
.news-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .news-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    .news-card img {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        height: 180px;
        object-fit: cover;
    }

.news-date {
    font-size: 0.85rem;
    color: #888;
}

.news-title {
    font-weight: 700;
    margin-top: 5px;
}

.news-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

.news-card .btn-outline-dark {
    border-color: #222;
    color: #222;
    border-radius: 5px;
    transition: all 0.3s ease;
}

    .news-card .btn-outline-dark:hover {
        background-color: #222;
        color: #fff;
        transform: translateY(-2px);
    }


/* Карта / блок контакту */
.contact-map {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.contact-overlay {
    text-align: center;
}

    .contact-overlay h2 {
        font-size: 2.5rem;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    }

/* Картки сторінки Контакти*/
.card {
    border-radius: 10px;
}

    .card h5 {
        font-weight: 700;
    }

.btn-primary {
    border-radius: 50px;
    padding: 0.75rem 2rem;
}

.contact-card {
    top: 20px;
    right: 20px;
    max-width: 300px;
    z-index: 10;
    text-align: center;
}

    .contact-card h5 {
        text-align: center;
    }

.error-page h1 {
    font-size: 6rem;
    font-weight: 900;
    color: #dc3545;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.error-page p {
    font-size: 1.25rem;
    color: #666;
}


@media (max-width: 768px) {
    .contact-card {
        top: 10px;
        right: 10px;
        max-width: 90%;
    }
}
