/*styling for navigation bar*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #800101;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.navbar-logo {
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
}

.navbar-menu {
    display: flex;
    list-style: none;
}

.navbar-item {
    margin-left: 2rem;
}

.navbar-link {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}

.navbar-link::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: #fff;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

.navbar-link:hover::before {
    visibility: visible;
    transform: scaleX(1);
}

.navbar-link:hover {
    color: #f39c12;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.navbar-toggle-bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #800101;
    }

    .navbar-item {
        margin: 0;
        padding: 1rem;
        text-align: center;
    }

    .navbar-link {
        font-size: 1.2rem;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu.active {
        display: flex;
    }
}

/*styling hero area header*/
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('resources/background/publication-back.jpeg') no-repeat center center/cover;
    position: relative;
    text-align: center;
    color: #fff;
}

.hero-content {
    animation: fadeInUp 2s ease-in-out;
}

.hero-header {
    font-size: 4rem;
    font-weight: bold;
    margin: 0;
    background: linear-gradient(90deg, #fff, #f39c12, #800101);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: textAnimation 5s ease-in-out infinite;
}

.hero-subheader {
    font-size: 2rem;
    margin: 1rem 0;
    font-weight: lighter;
    opacity: 0.8;
    animation: fadeInUp 2.5s ease-in-out;
}

.hero-subtopic {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    font-weight: lighter;
    opacity: 0.8;
    animation: fadeInUp 3s ease-in-out;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    background: #800101;
    border: none;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(243, 156, 18, 0.7);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.hero-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.hero-button:hover {
    background: #f39c12;
    transform: scale(1.05);
}

/* Keyframe animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}




/*styling for image gallery*/
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background-color: #f0f0f0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    width: calc(25% - 1rem);
    transition: transform 0.3s;
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s, opacity 0.3s;
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item a::after {
    content: attr(data-title);
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 0.8;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover a::after {
    opacity: 1;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 1024px) {
    .gallery-item {
        width: calc(33.33% - 1rem);
    }
}

@media (max-width: 768px) {
    .gallery-item {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .gallery-item {
        width: 100%;
    }
}

/*styling for footer*/
.footer {
    background-color: #800101;
    color: white;
    padding: 3rem 1rem;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    margin: 1rem;
    min-width: 200px;
}

.footer-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.footer-section h2::after {
    content: '';
    width: 50px;
    height: 2px;
    background-color: #f39c12;
    position: absolute;
    left: 0;
    bottom: -10px;
    animation: expand 1s ease-in-out;
}

@keyframes expand {
    from {
        width: 0;
    }
    to {
        width: 50px;
    }
}

.footer-section p, .footer-section ul {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #f39c12;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #e67e22;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #f39c12;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    background-color: #111;
    position: relative;
}

.footer-bottom p {
    margin: 0;
    font-size: 1rem;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin-bottom: 2rem;
    }
}





