/* Custom styles */

/* Header Styles */
.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.header {
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    width: 100vw;
    max-width: 100vw;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    left: 0;
    right: 0;
    position: relative;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    color: currentColor;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Mobile Menu Container */
.mobile-menu-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.mobile-menu-container:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* Logo Responsive Sizes */
.logo-responsive {
    height: 40px;
}

@media (min-width: 640px) {
    .logo-responsive {
        height: 48px;
    }
}

@media (min-width: 1024px) {
    .logo-responsive {
        height: 56px;
    }
}

/* Text Responsive Sizes */
.text-responsive {
    height: 24px;
}

@media (min-width: 640px) {
    .text-responsive {
        height: 28px;
    }
}

@media (min-width: 1024px) {
    .text-responsive {
        height: 32px;
    }
}

/* Navigation Link Indicator */
.nav-indicator {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgb(220, 53, 69);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
    width: 100%;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #3b82f6;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    transition: top 0.3s ease-in-out;
}

.skip-link:focus {
    top: 0;
}

/* Technology Section Styles */
.tech-media {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.tech-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Scroll Animations - Fix for blog content visibility */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Blog cards should be visible by default */
.blog-card[data-aos] {
    opacity: 1;
    transform: translateY(0);
}

/* Animate blog cards when they come into view */
.blog-card[data-aos].animate-in {
    animation: fadeUp 0.6s ease-out forwards;
}

/* No-posts message should also be visible by default */
.no-posts[data-aos] {
    opacity: 1;
    transform: translateY(0);
}

/* Other elements with AOS should animate normally */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Specific animation for fade-up */
[data-aos="fade-up"].animate-in {
    animation: fadeUp 0.6s ease-out forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}