/* lannec/static/lannec/css/project.css */

:root {
    --lannec-dark: #123743;
    --lannec-blue: #1c586e;
    --lannec-light: #f8f9fa;
    --lannec-gray: #6c757d;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: white;
    color: var(--lannec-dark);
}

.content-markdown, .content-text {
    font-size: 1.4rem;
    line-height: 1.6;
    text-align: justify;
}

.content-markdown pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    max-width: 100%;
    overflow-x: hidden;
}

.content-markdown code {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Navbar adjustments */
.navbar {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    width: 100%;
    overflow: hidden;
    margin-top: 60px; /* Space for fixed navbar */
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
    transition: transform 1.2s cubic-bezier(0.645, 0.045, 0.355, 1.000); /* Smooth easing */
}

.hero-carousel-item {
    min-width: 100%;
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10%;
    color: white;
}

.hero-title {
    color: white;
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: white;
    font-size: 1.5rem;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-text-container {
    position: relative;
    padding: 50px;
    border-radius: 12px;

    display: inline-block;      /* shrink-wrap */
    width: fit-content;         /* <— key change */
    max-width: 1000px;            /* optional: remove your 1200px limit */

    z-index: 1;
}

.hero-text-container::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background: rgba(0, 0, 0, 0.20); */
    /* backdrop-filter: blur(3px); */
    border-radius: inherit;

    /* rectangular fade around edges */
    /* mask-image:
      linear-gradient(to top,    transparent, black 20%),
      linear-gradient(to bottom, transparent, black 20%),
      linear-gradient(to left,   transparent, black 20%),
      linear-gradient(to right,  transparent, black 20%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in; */

    z-index: -1;
}

.btn-discover {
    background-color: var(--lannec-dark);
    color: white;
    padding: 12px 30px;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    width: fit-content;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-discover:hover {
    background-color: var(--lannec-blue);
    color: white;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    right: 50px;
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* Studio/Info Section */
.info-section {
    padding: 80px 0;
}

.info-grid {
    display: flex;
    align-items: center;
    gap: 50px;
}

.info-content {
    flex: 1;
}

.info-image {
    flex: 1;
}

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

.studio-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--lannec-dark);
}

.studio-description {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--lannec-blue);
}

/* Metadata section */
.metadata-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.metadata-item h5 {
    font-size: 1.4rem;
    color: var(--lannec-blue);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.metadata-item p {
    font-size: 1rem;
    color: var(--lannec-dark);
}

/* Projects Carousel */
.recent-projects-section {
    padding: 60px 0 100px;
}

.recent-projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: white;
}

.project-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none; /* Firefox */
}

.project-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.project-card {
    min-width: 300px;
    flex: 0 0 300px;
    text-decoration: none;
    color: inherit;
}

.project-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    margin-bottom: 15px;
}

.project-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.project-card .arrow {
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Projects Grid Page */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding: 60px 0;
}

.projects-grid .project-card {
    min-width: unset;
    flex: unset;
    display: block;
    width: 100%;
}

.projects-grid .project-card img {
    width: 100%;
    aspect-ratio: 21/9; /* Wider carousel style aspect ratio */
    object-fit: cover;
    border-radius: 4px;
}

.projects-grid .project-card h4 {
    font-size: 1.5rem;
    margin-top: 20px;
    font-weight: 600;
}

/* Footer Section */
.footer-new {
    background-color: var(--lannec-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo-section {
    flex: 1;
    min-width: 250px;
}

.footer-logo-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-links-section {
    flex: 2;
    display: flex;
    justify-content: space-around;
    min-width: 300px;
}

.footer-col h5 {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #ccc;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-social-section {
    flex: 0 0 auto;
    display: flex;
    gap: 20px;
}

.footer-social-section a {
    color: white;
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    .info-grid {
        flex-direction: column;
    }
    .hero-section {
        height: 60vh;
    }
    .info-section {
        padding: 40px 30px;
    }
    
    .recent-projects-section {
        padding-left: 30px;
        padding-right: 30px;
    }

    .footer-links-section {
        flex-direction: column;
        gap: 30px;
    }

    /* Fix Hero Overflow & Alignment */
    .hero-overlay {
        padding-left: 0;
        justify-content: center;
        align-items: center;
    }
    
    .hero-text-container {
        width: 90%;
        max-width: 100%;
        padding: 30px;
        margin: 0 auto;
    }
}

/* Chi Siamo specific overrides matching project metadata style */
.chi-siamo-h2 {
    font-size: 1.7rem;
    color: var(--lannec-blue);
    text-transform: uppercase;
    margin-bottom: 15px;
    margin-top: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.chi-siamo-h2:first-child {
    margin-top: 0;
}

.chi-siamo-h3 {
    font-size: 1.5rem;
    color: var(--lannec-dark);
    font-weight: 600;
    margin-bottom: 5px;
    margin-top: 15px;
    text-transform: uppercase;
}
