/* css/styles.css */

/* Base Variables */
:root {
    --color-primary: #4c5473;
    --color-accent: #e2da92;
    --color-background: #f7f5e5;
    --color-text: #4c4c4c;
    --font-primary: 'Work Sans', sans-serif;
    --font-heading: 'Libre Baskerville', serif;
}

/* Base Styles */
body {
    scroll-behavior: smooth;
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
}

h1, h2, h3 {
    font-family: var(--font-heading);
}

/* Navigation */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled a {
    color: #4c4c4c !important;
}

#mobile-menu {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Section */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(76, 84, 115, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--color-primary);
    background: transparent;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -0.5rem;
    font-size: 0.875rem;
    color: var(--color-accent);
}

/* Utility Classes */
.font-libre {
    font-family: 'Libre Baskerville', serif;
}

/* Map SVG styles */
.map-svg {
    background-color: #4c5473;
    opacity: 0;
    transform: scale(0.98);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-svg.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Progressive Image Loading */
.progressive-image {
    transition: opacity 0.3s ease-out, filter 0.3s ease-out;
}

.progressive-image.loading {
    opacity: 0;
    filter: blur(10px);
}

.progressive-image.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Image Skeleton Loader */
.image-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

/* About Project Section */
#about-project {
    background-image: url('../assets/RENDERS ALCALDE MIL/Paseo_alcalde.png');
  }

/* Gallery Animations */
.gallery-title {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.gallery-title.active {
    opacity: 1;
    transform: translateY(0);
}

.gallery-subtitle {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out 0.3s;
}

.gallery-subtitle.active {
    opacity: 1;
    transform: translateY(0);
}

.gallery-line {
    transform: scaleX(0);
    transition: transform 1s ease-out 0.5s;
}

.gallery-line.active {
    transform: scaleX(1);
}

.gallery-img {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.gallery-img.active {
    opacity: 1;
    transform: translateY(0);
}

/* Statement Section Animations */
.statement-enter {
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.7s ease-out;
}

.statement-enter.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.statement-delay-200 {
    transition-delay: 200ms;
}

.statement-delay-400 {
    transition-delay: 400ms;
}

.statement-delay-600 {
    transition-delay: 600ms;
}