/* ================================================================
   MASTER CSS: LINA HERNANDEZ PORTFOLIO
   Aesthetic: Nude / Editorial / Minimalist Gold
================================================================ 
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,700;1,700&family=Mr+De+Haviland&family=Playfair+Display:ital@0;1&display=swap');

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

:root {
    --nude-bg: #f5f2ee;      /* Main Background */
    --nude-dark: #e8e3dc;    /* Footer & Accent Background */
    --white: #ffffff;
    --black: #000000;
    --links-main: #ffffff;
    --text-main: #333333;
    --accent: #d4af37;       /* Gold Accent */
    --transition-slow: 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 0.4s ease;
    --form-bg-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
	--form-blur-effect: blur(8px); /* Frosted glass effect */
	--form-border: 1px solid rgba(0, 0, 0, 0.1);
	--input-bg-color: #fafafa;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    transition: 0.3s;
}

.lang-btn.active {
    color: #000;
    font-weight: bold;
}

h1, h2 { 
    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.main-title {
    /* Calling the font we loaded in HTML
	font-family: "Mr De Haviland", cursive;
	font-style: normal;
    font-size: 15rem; */

    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 10rem;
   
    /* Scale: Cursive needs to be HUGE to be readable */
    color: var(--black);
    
    /* Signature styling */
    text-transform: none; /* Keeps it natural, not ALL CAPS */
    line-height: 0.6;     /* Pulls "Lina" and "Hernandez" closer together */
    letter-spacing: -2px; 
    font-weight: 400;
    margin-top: 80px;
	margin-bottom: 20px;

	
    /* The "Fun" Tilt 
    display: inline-block;
    transform: rotate(-5deg) translateY(-40px);*/
    
    /* Soft glow to ensure it's readable over any photo */
    text-shadow: 0 50px 50px rgba(0,0,0,0.15);
    
    /* Smooth entrance */
    /* animation: signatureFade 1.5s ease forwards; */
}

.main-subheading {
    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-size: 3rem;
    line-height: .5;
    letter-spacing: 10px; 
    margin-bottom: 10px;  
    margin-bottom: 30px;
    color: var(--white);
}

.signature {
    /* Calling the font we loaded in HTML */
	font-family: "Mr De Haviland", cursive;
	font-style: normal;
    font-size: 8rem;

   
    /* Scale: Cursive needs to be HUGE to be readable */
    color: var(--black);
    
    /* Signature styling */
    text-transform: none; /* Keeps it natural, not ALL CAPS */
    line-height: 0.6;     /* Pulls "Lina" and "Hernandez" closer together */
    letter-spacing: -2px; 
    font-weight: 400;
    margin-top: 80px;
	margin-bottom: 50px;

	
    /* The "Fun" Tilt */
    /*display: inline-block;
    transform: rotate(-4deg) translateY(-20px);*/
    
    /* Soft glow to ensure it's readable over any photo */
    text-shadow: 0 10px 10px rgba(0,0,0,0.15);
    
    /* Smooth entrance */
    /* animation: signatureFade 1.5s ease forwards; */
}


@keyframes signatureFade {
    from { opacity: 0; transform: rotate(-4deg) translateY(10px); }
    to { opacity: 1; transform: rotate(-4deg) translateY(-20px); }
}


body, p { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 400; 
    letter-spacing: 2px;
}

.bio-body p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: .85rem;
    line-height: 2; /* Increased for a "letter" feel */
    color: var(--text-main);
    margin-bottom: 5px;
    letter-spacing: 2px; /* Subtle spread for readability */
}

#bio-content, #contact-intro-content {
    white-space: pre-wrap; /* Preserves line breaks from .txt files */
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

/* Make the first letter of the bio a bit larger (Drop Cap) for an editorial look */
#bio-content::first-letter {
    float: inline-start;
    font-size: 3rem; /* Adjust this to get the size you want */
    line-height: 0.8;
    padding-right: 5px;
    padding-top: 0px;
    padding-bottom: 0px;
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    text-transform: uppercase;
}
/* ==========================================
   HOMEPAGE LINKS REFERENCE POINT
   Adjust size and color here
   ========================================== */
.hero-nav a {
    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: var(--white);        /* Link Color */
    font-size: 1.5rem;     /* Link Size - Increase this as needed */
    letter-spacing: 10px;   /* Wide editorial spacing */
    margin-right: 10px;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.4s ease;
    display: inline-block;
}

.hero-nav a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Gallery-Specific Loader */
.gallery-loader {
    grid-column: 1 / -1; /* Spans the full width of the grid */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top: 2px solid #000; /* Matching Lina's minimalist black accent */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gallery-loader p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
}

/* Hide loader class */
.loader-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
/* --- CONTACT OVERLAY SECTION --- */
.contact-hero-overlay {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    
    background-color: var(--nude-bg); /* Fallback color */
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), 
                      url('images/contact/hero.jpg');

    /* ZOOM & POSITION LOGIC */
    background-size: 100%;      /* This zooms the image in past the edges */
    background-position: center 10%; /* Starts the "view" 10% from the top of the photo */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Keeps the parallax feel */
}

.contact-glass-card {
    background: rgba(255, 255, 255, 0.55); /* Semi-transparent white */
    backdrop-filter: blur(5px);          /* Frosted glass effect */
    -webkit-backdrop-filter: blur(10px);
    padding: 60px 60px;
    width: 100%;
    max-width: 550px;                     /* Form width */
    text-align: center;
    box-shadow: 0 20px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Form Elements inside the glass */
.lina-form input, 
.lina-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    background: rgba(255,255,255,0.5);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.lina-form input:focus, 
.lina-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
}

/* Button centered in the card */
.send-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    padding: 18px;
    border: none;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    transition: 0.3s;
}

.send-btn:hover {
    background: #1a1a1a;
}

/* MOBILE VERSION: We need to pull back the zoom so it doesn't look pixelated*/
@media (max-width: 768px) {
    .contact-hero-overlay {
        background-size: cover;       /* Standard zoom for mobile */
        background-position: center top; /* Keeps face at the top */
        background-attachment: scroll;
        padding: 120px 15px 60px 15px;
    }
    
    .contact-glass-card {
        margin-top: 20px; /* Pushes the form down further on mobile */
    }
}

/* MOBILE FIX */
@media (max-width: 600px) {
    .contact-glass-card {
        padding: 40px 20px;
        margin-top: 40px; /* Extra space for top nav */
    }
    .contact-hero-overlay {
        background-attachment: scroll; /* Better performance on mobile */
    }
} */

/* --- RESET & BASE --- */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0;
    scroll-behavior: smooth; 
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--nude-bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- LOADING SCREEN --- */
#loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--nude-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(212, 175, 55, 0.1);
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

#loader p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.6;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* --- NAVIGATION --- */
.glass-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%;
    background: var(--white);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-name { 
    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    text-transform: uppercase;
    font-weight: 700;
    font-style: normal;
    text-decoration: none;
    color: var(--black);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-right: 10px;
    transition: var(--transition-fast);
}

.nav-links a {
    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--black);
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-right: 10px;
    transition: var(--transition-fast);
}

.nav-links a:hover { color: var(--accent); }

/* --- HERO SECTIONS --- */
.hero-header {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    background-color: var(--nude-bg); /* Fallback color */
    background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), 
                url('images/main/hero.jpg') center/cover no-repeat;
    /* ZOOM & POSITION LOGIC */
    background-size: 100%;      /* This zooms the image in past the edges */
    background-position: center 10%; /* Starts the "view" 10% from the top of the photo */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Keeps the parallax feel */
}


/* Editorial Split (About Page) */
.about-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 80vh; /* Locks the hero to the height of the screen */
    background-color: var(--nude-bg);
    border-bottom: 1px solid var(--accent);
    overflow: hidden; /* Prevents the image from bleeding out */
    padding-top: 50px; /* Space for the nav */
}
.about-text-content {
    padding: 40px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 55%; /* Spans the full height of the locked container */
    /* overflow-y: auto; Allows the bio to scroll IF it is too long */
    
    /* Optional: Hide scrollbar for a cleaner look */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.about-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 0.9;
    margin-top: 10px;
    margin-bottom: 20px;
}

.contact-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.9;
    margin-bottom: 20px;
}

.footer-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.9;
    margin-bottom: 20px;
}

.about-tag {
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 15px;
}

.about-text-content::-webkit-scrollbar {
    display: none;
}

.about-main-image {
    height: 100%;
    width: 100%;
}

.about-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the photo fills its half perfectly */
}

/* --- SIGNATURE --- */
.signature-block { margin-top: 10px; }
.sign-off { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin: 0; }


/* --- GALLERY GRID --- */
.gallery-wrapper {
    width: 90%; /* Increased slightly for a more 'editorial' feel */
    max-width: 1400px;
    margin: 60px auto;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Better for tablet responsiveness */
    grid-auto-rows: 320px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden; /* Clips the zoom effect */
    background-color: var(--nude-dark);
    cursor: pointer;
    border-radius: 4px; /* Optional: subtle rounding looks more premium */
}

/* Grid Variances */
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* Unified Image & Video Styling */
.gallery-item img, 
.gallery-item .gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1); /* Smoother high-end transition */
}

/* Unified Hover Zoom */
.gallery-item:hover img, 
.gallery-item:hover .gallery-video {
    transform: scale(1.08);
}

/* Play Icon Styling */
.play-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(0, 0, 0, 0.3);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 10;
}

/* THE MAGIC: Hide icon when the item is hovered (video plays) */
.gallery-item:hover .play-overlay-icon {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2); /* Slight grow as it fades out */
}

/* Ensure the FontAwesome icon sits right */
.play-overlay-icon i {
    margin-left: 5px; /* Visual center adjustment for the triangle */
}
/* --- CONTACT FORM STYLING --- */
.contact-intro {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 40px;

}

.lina-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--nude-dark);
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
}


/* --- LIGHTBOX --- */
.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(245, 242, 238, 0.96);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition-fast);
}

.lightbox.active { visibility: visible; opacity: 1; }

.lightbox img {
    max-width: 85%;
    max-height: 85%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

/* Lightbox Content Centerer */
#lightbox-content-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-lightbox {
    position: absolute;
    top: 40px; right: 40px;
    font-size: 50px;
    cursor: pointer;
}

/* --- FOOTER --- */
.nude-footer {
    padding: 5px 10%;
    text-align: center;
    background-color: var(--nude-dark);
}

.footer-nav {
    margin: 30px 0%;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-contact-link {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 3px;
}

.footer-socials {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-socials a {
    color: var(--text-main);
    font-size: 1.4rem; /* Size of the icons */
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--accent); /* Your gold color */
    transform: translateY(-3px); /* Subtle float effect */
}

.copyright {
    margin-top: 40px;
    font-size: 0.65rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- THANK YOU PAGE SPECIFIC STYLES --- */

/* Targets the <body> on this specific page to ensure full height/no scroll */
.thank-you-page {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* Prevent scrolling if background image is slightly larger */
    background-color: #000; /* Dark fallback while image loads */
}

/* 1. The Full-Screen Background Wrapper */
.thank-you-bg-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    
    background-color: var(--nude-bg); /* Fallback color */
    background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), 
                      url('images/contact/thankyou.jpg');

    background-size: cover; /* Image fills the container */
    background-position: center center; /* Image centered */
    background-repeat: no-repeat;
}

/* 2. Content Overlay (The "Scrim") */
/* Crucial for making white/gold text readable over a dynamic background image */
.content-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* 40% opaque dark overlay */
    z-index: 1; /* Sits below text, above image */
}

/* 3. The Content Container */
.thank-you-content {
    position: relative;
    z-index: 2; /* Sits above the overlay */
    text-align: center;
    max-width: 600px; /* Limits width for optimal readability */
    color: var(--white); /* Default text color on dark background */
    padding: 20px;
}

/* --- TYPOGRAPHY FOR THANK YOU PAGE --- */

/* The Cursive Signature Style (Requested) */
.thankyou-signature {
    font-family: 'Mr De Haviland', cursive;
    color: #d4af37; /* The signature gold accent */
    font-weight: normal;
    margin: 0;
}

.thankyou-signature.large-header {
    font-size: 8rem; /* Giant header size */
    line-height: 1.1;
    margin-bottom: 30px;
}

.thankyou-signature.closing-signature {
    font-size: 5rem; /* Medium signature size */
    margin-top: 60px; /* Significant gap from body text */
}

/* Main Body Text (Inter Font) */
.thank-you-body {
    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;   
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--white); /* Pure white body text */
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* Redirect Info (Uppercase, small, sans-serif) */
.redirect-info {
    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--nude-dark); /* Faded white/grey for counter */
    letter-spacing: 1.5px;
    margin-top: 10px;
}

/* Gold Clickable Link Style */
.back-link-gold {
    color: var(--accent); /* Gold link */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link-gold:hover {
    color: var(--white); /* White on hover */
    text-decoration: underline;
}

/* Countdown numbers styling */
#redirect-counter {
    display: inline-block;
    margin-left: 5px;
}

/* Responsive Tweak for mobile screens */
@media (max-width: 600px) {
    .thankyou-signature.large-header { font-size: 5rem; }
    .thankyou-signature.closing-signature { font-size: 3.5rem; }
    .thank-you-body { font-size: 1rem; padding: 0 10px; }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .masonry-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-wrapper { width: 92%; }
}

@media (max-width: 900px) {
    .about-hero-split { grid-template-columns: 1fr; }
    .about-main-image { height: 60vh; order: -1; }
}

@media (max-width: 600px) {
    .masonry-grid { grid-template-columns: 1fr; }
    .gallery-item.wide { grid-column: span 1; }
    .main-title { font-size: 3.5rem; }
}
