/* Portfolio Styles - Template System */
body {
    background-color: #FFFAF5;
    color: #5E5955;
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

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

/* Navigation - Inherit from main styles.css */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background-color: rgba(255, 250, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(94, 89, 85, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 14.58px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #5E5955;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #5E5955;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #5E5955;
    transition: width 0.3s ease;
}

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

/* Project Header - Desktop */
.project-header {
    height: 20vh;
    min-height: 200px;
    background-color: #F8F6F2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px !important; /* Reduced margin to eliminate gap */
    border-bottom: 1px solid rgba(94, 89, 85, 0.1);
}

.project-title {
    font-family: 'Swear Display', serif;
    font-size: 48px; /* Reduced from 64px to 48px */
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
    color: #5E5955;
    text-align: center;
    max-width: 800px;
}

/* Portfolio Header */
.portfolio-header {
    margin-top: 80px;
    padding: 40px 0;
    background-color: #F8F6F2;
    border-bottom: 1px solid rgba(94, 89, 85, 0.1);
}

.portfolio-banner {
    overflow: hidden;
    position: relative;
}

.portfolio-scroll-text {
    display: flex;
    animation: scroll-text 30s linear infinite;
    white-space: nowrap;
}

.portfolio-text {
    font-family: 'Swear Display', serif;
    font-size: 64px;
    font-weight: 400;
    color: #5E5955;
    margin-right: 60px;
    opacity: 0.1;
}

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

/* Projects Grid */
.projects {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Project Cards - Portfolio Specific */
.project-card {
    background-color: transparent;
    border-radius: 0;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.project-card:hover {
    background-color: #EEE5DC;
    border-radius: 20px;
    transform: translateY(-5px);
}

.project-card.text-bottom {
    flex-direction: column;
}

.project-card.text-bottom .project-title {
    order: 1;
    margin-top: 15px;
    font-family: 'Swear Display', serif;
    font-size: 24px;
    font-weight: 400;
    color: #5E5955;
    line-height: 1.2;
    text-align: left;
}

/* Project Images - Portfolio Specific */
.project-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
    height: 300px; /* Altura fija para todas las imágenes */
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que no haya huecos */
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Overlay para las imágenes */
.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 8px;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

/* Case Study Button */
.case-study-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Neue Haas Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
}

.project-card:hover .case-study-btn {
    opacity: 1;
    pointer-events: auto;
}

/* Coming Soon Projects - Asegurar misma altura */
.project-card.coming-soon {
    height: 100%;
}

.project-card.coming-soon .project-image {
    height: 300px; /* Misma altura que las imágenes de arriba */
    background-color: #f8f8f8; /* Color de fondo sutil */
}

.project-card.coming-soon .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que no haya huecos */
    border-radius: 8px;
}

/* Asegurar que los botones Coming Soon se muestren en las tarjetas coming-soon */
.project-card.coming-soon .case-study-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
    background: rgba(255, 255, 255, 0.9);
    color: #5E5955;
    border: 2px solid #5E5955;
    font-weight: 600;
}

/* Go Back Button */
.go-back-section {
    padding: 40px 0;
    background-color: #FFFAF5;
}

.go-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 16px;
    color: #5E5955;
    transition: all 0.3s ease;
    padding: 0;
}

.go-back-btn:hover {
    color: #2C2C2C;
    transform: translateX(-5px);
}

.arrow-left {
    font-size: 20px;
    font-weight: bold;
}

.go-back-text {
    text-transform: lowercase;
    font-weight: 500;
}

/* Project Content */
.project-content {
    padding: 0 0 80px 0;
    background-color: #FFFAF5;
}

/* Overview Section */
.overview-section {
    margin-bottom: 80px;
    padding: 60px 0;
}

.section-title {
    font-family: 'Swear Display', serif;
    font-size: 36px; /* Reduced from 48px to 36px */
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 30px 0;
    color: #5E5955;
}

.overview-description {
    font-size: 18px; /* Reduced from 20px to 18px */
    line-height: 1.7;
    color: #5E5955;
    margin: 0 0 40px 0;
    max-width: 800px;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: rgba(94, 89, 85, 0.2);
    margin-top: 40px;
}

/* Project Data Section */
.project-data-section {
    margin-bottom: 80px;
    padding: 60px 0;
    background-color: #F8F6F2;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.data-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.data-label {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.5px;
    text-transform: none;
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
}

.data-value {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    line-height: 1.5;
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
}

.data-item.hidden {
    display: none;
}

/* Main Project Image */
.main-image-section {
    margin-bottom: 80px;
    padding: 60px 0;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #F8F6F2;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(94, 89, 85, 0.1);
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image-container.hidden {
    display: none;
}

/* Content Sections */
.content-section {
    margin-bottom: 80px;
    padding: 60px 0;
}

.content-section:nth-child(even) {
    background-color: #F8F6F2;
}

.content-section:last-child {
    margin-bottom: 0;
}

.section-content {
    margin-bottom: 40px;
}

.section-content p {
    font-size: 20px;
    line-height: 1.7;
    color: #5E5955;
    margin: 0 0 24px 0;
    max-width: 800px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.section-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.section-images.hidden {
    display: none;
}

.section-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #F8F6F2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(94, 89, 85, 0.1);
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 120px 0;
    background-color: #FFFAF5;
}

.error-message h2 {
    font-family: 'Swear Display', serif;
    font-size: 48px;
    margin-bottom: 24px;
    color: #5E5955;
}

.error-message p {
    font-size: 20px;
    color: #8B857F;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.back-link {
    display: inline-block;
    padding: 16px 32px;
    background-color: #5E5955;
    color: #FFFAF5;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: #2C2C2C;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #F8F6F2;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(94, 89, 85, 0.1);
}

.footer p {
    margin: 0;
    color: #5E5955;
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .project-header {
        height: 15vh;
        min-height: 150px;
        margin-top: 60px !important; /* Reduced margin to eliminate gap */
    }
    
    .project-title {
        font-size: 36px; /* Reduced from 48px to 36px */
    }
    
    .section-title {
        font-size: 28px; /* Reduced from 36px to 28px */
    }
    
    .data-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 100%;
    }
    
    .overview-description,
    .section-content p {
        font-size: 18px;
    }
    
    .section-images {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .go-back-section,
    .overview-section,
    .project-data-section,
    .main-image-section,
    .content-section {
        padding: 40px 0;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .project-image {
        height: 250px; /* Altura reducida en móvil */
    }
    
    .project-card.coming-soon .project-image {
        height: 250px;
    }
    
    .portfolio-text {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 28px; /* Reduced from 36px to 28px */
    }
    
    .section-title {
        font-size: 24px; /* Reduced from 28px to 24px */
    }
    
    .overview-description,
    .section-content p {
        font-size: 16px;
    }
    
    .data-grid {
        gap: 30px;
    }
    
    .data-label,
    .data-value {
        font-size: 14px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-image {
        height: 200px; /* Altura reducida en móvil pequeño */
    }
    
    .project-card.coming-soon .project-image {
        height: 200px;
    }
    
    .portfolio-text {
        font-size: 36px;
    }
} 

/* Toast Container */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1001;
    pointer-events: none;
}

.toast {
    background-color: #5E5955;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 14px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Animation Classes */
.fade-in-up-delay-1 {
    animation: fadeInUp 0.8s ease 0.1s both;
}

.fade-in-up-delay-2 {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.fade-in-up-delay-3 {
    animation: fadeInUp 0.8s ease 0.3s both;
}

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