/* Base styles & Reset */
body {
    background-color: #050505;
    color: #ffffff;
    cursor: none;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Initial state for reveal animations to prevent FOUC */
.reveal-fade-item {
    opacity: 0;
    transform: translateY(30px);
}

/* Custom Cursor */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}
#cursor.hovered {
    width: 50px;
    height: 50px;
    background-color: white;
    mix-blend-mode: difference;
    border: none;
}

/* Animations Utils */
.reveal-img-container {
    overflow: hidden;
    position: relative;
    background-color: #1a1a1a;
}
.reveal-img {
    transform: scale(1.3);
    transition: transform 1s ease-out, opacity 0.7s ease-in-out;
    opacity: 0;
}
.reveal-img.loaded {
    opacity: 1;
}

.text-outline {
    /* Modified: Increased stroke thickness from 1px to 2px */
    -webkit-text-stroke: 2px rgba(255,255,255,0.5);
    color: transparent;
    transition: all 0.5s ease;
}
.text-outline:hover {
    -webkit-text-stroke: 2px #fff;
    color: #fff;
}

/* NEW CLASS FOR BLACK OUTLINE HOVER */
.text-outline-hover-black {
    color: #000;
    -webkit-text-fill-color: #000;
    -webkit-text-stroke: 0px transparent;
    transition: all 0.3s ease;
}
.text-outline-hover-black:hover {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #000;
}

/* MAP GRAYSCALE FILTER */
.map-grayscale iframe {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}
.map-grayscale:hover iframe {
    filter: grayscale(0%);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* WhatsApp Button Animation */
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-float {
    animation: pulse-green 2s infinite;
}

/* Creative Scroll Indicator Animations */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin-slow {
    animation: spin-slow 12s linear infinite;
}
@keyframes bounce-custom {
    0%, 100% { transform: translateY(-3px); }
    50% { transform: translateY(3px); }
}
.animate-bounce-custom {
    animation: bounce-custom 2s ease-in-out infinite;
}

/* --- LOADER STYLES --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.logo-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo-svg {
    width: 280px;
    height: auto;
    position: relative;
    z-index: 2;
}
/* Loader Animations */
.logo-svg path:nth-child(1) { fill: #fff; opacity: 0; transform: translateX(-50px); animation: slideInFade 1s ease forwards 0.2s; }
.logo-svg path:nth-child(2) { fill: #fff; opacity: 0; transform: translateX(50px); animation: slideInFade 1s ease forwards 0.4s; }
.logo-svg path:nth-child(3) { fill: #fff; opacity: 0; transform: scale(0); animation: scaleIn 0.8s ease forwards 0.8s; }
.logo-svg path:nth-child(4) { fill: #fff; opacity: 0; transform: scale(0); animation: scaleIn 0.8s ease forwards 1s; }
#aspecto-group path { fill: #fff; opacity: 0; transform: translateY(20px); animation: fadeInUp 1s ease forwards; }
#aspecto-group path:nth-child(1) { animation-delay: 1.2s; }
#aspecto-group path:nth-child(2) { animation-delay: 1.3s; }
#aspecto-group path:nth-child(3) { animation-delay: 1.4s; }
#aspecto-group path:nth-child(4) { animation-delay: 1.5s; }
#aspecto-group path:nth-child(5) { animation-delay: 1.6s; }
#aspecto-group path:nth-child(6) { animation-delay: 1.7s; }
#aspecto-group path:nth-child(7) { animation-delay: 1.8s; }
.horizontal-line { fill: #fff; opacity: 0; animation: expandWidth 0.8s ease forwards 1.9s; }
.architects-text { fill: #fff; opacity: 0; transform: translateY(20px); animation: fadeInUp 1s ease forwards 2.2s; }

.loading-bar-container { width: 350px; height: 2px; background-color: rgba(255, 255, 255, 0.2); margin-top: 60px; position: relative; overflow: hidden; }
.loading-bar { height: 100%; background-color: #fff; width: 0%; }
.counter { color: #fff; font-size: 14px; letter-spacing: 3px; margin-top: 20px; font-weight: 300; }

@keyframes slideInFade { to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { to { opacity: 1; transform: scale(1); } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes expandWidth { to { opacity: 1; transform: scaleX(1); } }

@media (max-width: 768px) {
    .logo-container { width: 300px; height: 300px; }
    .logo-svg { width: 200px; }
    .loading-bar-container { width: 280px; }
    #cursor { display: none; }
    body { cursor: auto; }
}

/* --- PROJECT CARD HOVER EFFECTS --- */
.project-card {
    position: relative;
    overflow: hidden;
}

/* Zoom effect on image */
.project-card img {
    transform: scale(1);
    transition: transform 0.7s ease-out;
}
.project-card:hover img {
    transform: scale(1.1);
}

/* Overlay Gradient - Initially hidden or subtle */
.project-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.project-card:hover .project-overlay {
    opacity: 1;
}

/* Text Reveal Animation */
.project-info {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}
