/*
 * FjordPuls: Components & Section Styles
 * File: fjordpuls1.css
 * Description: Contains styles for reusable components like buttons, cards, header,
 * and footer, as well as specific styling for page sections.
 */

/* -----------------------------------------
 * HEADER & NAVIGATION
 * ----------------------------------------- */

/* Style for the header when user scrolls down. Class added via JS. */
#header.header-scrolled {
    box-shadow: var(--shadow-lg);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#header nav a {
    position: relative;
    padding-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Animated underline effect for navigation links */
#header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#header nav a:hover::after,
#header nav a.active::after { /* .active class to be added by JS */
    width: 50%;
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    border-top: 1px solid transparent;
}

#mobile-menu.open {
    max-height: 350px; /* Adjust based on menu item count */
    border-top-color: var(--color-border);
}

/* -----------------------------------------
 * CARD COMPONENTS
 * ----------------------------------------- */
.card-zoom-effect {
    overflow: hidden;
    position: relative;
    display: block;
}

.card-zoom-effect img {
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-zoom-effect:hover img {
    transform: scale(1.08);
}

/* -----------------------------------------
 * SECTION-SPECIFIC STYLES
 * ----------------------------------------- */

/* HERO SECTION */
/* The overlay is handled by a div with Tailwind classes in the HTML for simplicity.
   We can add more complex gradient styles here if needed. */
#home h1 {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

#home p {
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

/* A custom separator shape between sections for uniqueness */
.section-separator {
    position: relative;
    padding-bottom: 100px; /* Space for the separator */
}

.section-separator::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' class='shape-fill' fill='%23F0F4F8' fill-opacity='1'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 10;
}

/* For sections with dark background, the separator needs to point to that color */
.section-separator-dark::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' class='shape-fill' fill='%230D2B45' fill-opacity='1'%3E%3C/path%3E%3C/svg%3E");
}

/* -----------------------------------------
 * FOOTER
 * ----------------------------------------- */
footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

footer .footer-brand-col {
    grid-column: span 1 / span 1;
}

@media (min-width: 768px) {
    footer .footer-brand-col {
        grid-column: span 2 / span 2;
    }
}
@media (min-width: 1024px) {
    footer .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    footer .footer-brand-col {
        grid-column: span 1 / span 1;
    }
}

footer .footer-bottom-text {
    color: #a0aec0; /* A slightly lighter gray than default footer text */
    font-size: 0.875rem; /* 14px */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
}