/* styles.css */

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    scroll-behavior: smooth;
    /* brighter, vivid accent */
    --accent-color: #ff6b6b; /* bright coral accent */
    /* animated, colorful background gradient for the whole page */
    background: linear-gradient(120deg, #ff6b6b, #ff8a65, #ffd166, #48cae4, #2ec4b6);
    background-size: 300% 300%;
    animation: gradientBG 14s ease infinite;
}

.site-header {
    position: relative;
    height: 100vh;
    /* parallax-like fixed background */
    background: url('images/river-mountain-dusk.jpg') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.site-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    animation: fadeIn 3s ease-in-out both;
}

/* animated gradient overlay on header for lively effect */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(120deg, rgba(255,107,107,0.18), rgba(255,138,101,0.12), rgba(72,202,228,0.12));
    background-size: 300% 300%;
    mix-blend-mode: overlay;
    opacity: 0.95;
    animation: gradientBG 12s ease infinite;
    pointer-events: none;
}

/* ensure header content is visible immediately on load */
.header-content {
    position: relative;
    z-index: 3;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideDown {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.header-content {
    position: relative;
    z-index: 3;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.nav {
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.nav li {
    margin: 0 15px;
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a.active {
    color: var(--accent-color);
    font-weight: 700;
}

.nav a:hover {
    color: var(--accent-color);
}

.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery .grid {
    display: grid;
    /* larger minimum so images expand to at least 300px and fill width */
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 10px;
}

.card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    display: block;
}

/* captions are no longer used; simply hide if any remain */
.caption {
    display: none;
}

footer {
    text-align: center;
    padding: 20px;
    background: #f4f4f4;
}

/* about section layout */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 3px solid #fff;
}

/* simple scroll reveal */
.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}