@font-face {
    font-family: 'Century Gothic';
    src: url('img/Tipografia /CenturyGothicPaneuropeanRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Century Gothic';
    src: url('img/Tipografia /CenturyGothicPaneuropeanBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --primary: #1c3b31;
    --secondary: #b08d7b; /* Warm Taupe */
    --accent: #8a3316;    /* Terracotta */
    --text-light: #f8f9fa;
    --text-dark: #212529;
    --bg-dark: #0d1512;
    --glass: rgba(26, 46, 38, 0.8);
    --font-main: 'Century Gothic', sans-serif;
    --font-accent: 'Comic Sans MS', 'Comic Sans', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--primary); /* Changed from #fff to avoid white gaps */
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .playfair {
    font-family: var(--font-main);
    font-weight: bold;
}

.section-label, .hero-subtitle {
    font-family: var(--font-accent);
}

/* --- Premium Animations --- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleImage {
    from { transform: scale(1.2); }
    to { transform: scale(1); }
}

@keyframes drawLine {
    from { width: 0; }
    to { width: 100%; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navigation --- */
nav {
    backdrop-filter: blur(10px);
    border-bottom: none; /* Removed the white line at the top */
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Split Hero --- */
.hero-split {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
    filter: grayscale(0.2) sepia(0.2) brightness(0.9) contrast(1.1);
    border-radius: 4px;
}

.leaflet-container {
    background: #e5e7eb !important;
}

.hero-panel {
    position: relative;
    flex: 1;
    overflow: hidden;
    transition: flex 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hero-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Increased from 30% */
    background: linear-gradient(to top, 
        var(--primary) 0%, 
        var(--primary) 20%, 
        transparent 100%
    );
    z-index: 5;
    pointer-events: none;
    transition: height 0.8s ease;
}

.hero-panel:hover::after {
    height: 60%;
}

.hero-panel:hover {
    flex: 1.5;
}

.hero-panel img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    transition: transform 1.5s cubic-bezier(0.2, 1, 0.3, 1), filter 0.8s ease;
    transform: scale(1.05); /* Slight base zoom to avoid edges */
}

.hero-panel:hover img {
    transform: scale(1.15); /* Stronger zoom-in on hover */
    filter: brightness(0.7);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 20px;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.hero-panel:hover .hero-content {
    transform: scale(1.1);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--secondary);
}

/* --- Sections --- */
.section-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.section-label {
    display: inline-block;
    padding: 0 10px;
    border-left: 2px solid var(--accent);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

/* --- Project Cards --- */
.card-premium {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.card-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.card-premium:hover img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 46, 38, 0.9), transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card-premium:hover .card-overlay {
    opacity: 1;
}

.card-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 46, 38, 0.4), transparent 50%);
    pointer-events: none;
}

/* --- Scroll Progress --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--secondary);
    z-index: 100;
    width: 0%;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-split {
        flex-direction: column;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
}

/* --- Keyword Ticker --- */
.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    background: var(--primary); /* Fill with green to avoid any gaps */
    padding: 0;
    position: relative;
    z-index: 30;
    margin-top: -110px; /* Overlap firmly */
    border: none;
    outline: none;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker 80s linear infinite; /* Much slower as requested */
    width: fit-content;
}

.ticker-item {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: white; 
    opacity: 0.5; /* Increased from 0.15 for better visibility */
    padding: 0 60px;
    display: flex;
    align-items: center;
}

.ticker-item span {
    color: var(--secondary);
    margin: 0 30px;
    font-size: 2.5rem;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}