/* Yleiset tyylit */
body {
    font-family: 'Cormorant Garamond', serif;
    margin: 0;
    padding: 0;
    background-color: #0a0a0a;
    color: #ececec;
    line-height: 1.6;
}

/* Smooth scrolling for in-page anchors */
html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    margin-top: 0;
}

/* ======== HEADER-OSIO ======== */
header {
    background-color: #0a0a0a;
    padding: 1.2rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 0.01px solid #1d1d1d;
    font-size: 18px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .desktop-nav {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
}

nav .desktop-nav li a {
    font-weight: 600;
    transition: color 0.3s ease;
    font-family: 'Cormorant Garamond', serif;
}

nav .desktop-nav li a:hover {
    color: #851a28;
}

.logo img {
    height: 36px;
    width: auto;
    display: block;
}

/* Piilotetaan burger-nappi ja mobiilivalikko oletuksena (isolla näytöllä) */
.menu-toggle,
.mobile-nav-overlay {
    display: none;
}


/* ======== HERO-OSIO ======== */
.hero {
    background-image: url('kuvat/tausta1.webp');
    height: 92vh;
    background-size: cover;
    background-position: center 52.5%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.6) 0%, rgba(40, 15, 30, 0.5) 50%, rgba(10, 10, 10, 0.6) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 3rem 2rem;
    text-align: center;
    width: 100%;
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    animation: slideDown 0.8s ease-out;
}

.hero p {
    font-size: 1.6rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    animation: fadeIn 1s ease-out 0.3s both;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* ======== GALLERIA-OSIO (ETUSIVU) ======== */
.gallery-section {
    padding: 4rem 2rem;
    text-align: center;
}

.gallery-section h2 {
    font-size: 3.2rem;
    margin-bottom: 3rem;

    text-align: left;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

    .gallery-subtitle {
    text-align: left;
    margin-top: -2.5rem; /* Nostaa tekstiä lähemmäs pääotsikkoa */
    margin-bottom: 3rem;
    max-width: 1300px;
    color: #aaa; /* Himmennetään väriä hieman */
    font-style: italic;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2rem;
}


.model-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.model-card {
    background-color: #0a0a0a;
    border: 0.01px solid #2a2a2a;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.model-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.model-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Image loading state - blur effect */
.model-card img.loading {
    opacity: 0.7;
    filter: blur(8px);
}

/* Image fully loaded - sharp and clear */
.model-card img.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Error state */
.model-card img.error {
    opacity: 0.5;
    background-color: #1a1a1a;
}

.model-card h3 {
    margin: 0.5rem 0 -1rem;
    font-size: 2rem;
    text-align: left;
    padding: 0 1rem;
}

.model-card p {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.button {
    display: inline-block;
    background-color: #851a28;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #64141e;
}


/* ======== KOKO NÄYTÖN GALLERIA (GALLERIA.HTML) ======== */
.fullscreen-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4px;
    padding: 0px;
    background-color: #0a0a0a;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    height: 450px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


/* ======== YKSITTÄISEN MALLIN SIVU ======== */
.model-profile {
    display: flex;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 4rem auto;
    padding: 2rem;
    gap: 4rem;
    align-items: flex-start;
}

.profile-image {
    flex: 1; /* MUUTETTU TÄMÄ */
}

.profile-image2 {
    flex: 1; /* MUUTETTU TÄMÄ */
    display: none;
}

.profile-image img {
    width: 100%;
    height: 655px;
    border-radius: 4px;
    object-fit: cover; /* LISÄÄ TÄMÄ RIVI */
    object-position: 50% 25%; /* LISÄÄ TÄMÄ JA KOKEILE ERI ARVOJA */
}


.profile-details {
    flex: 1; /* MUUTETTU TÄMÄ */
}

.profile-details h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

    .personal-details h1 {
        font-size: 3.5rem;
        margin-bottom: 0.5rem;
        color: #fff;
        padding-bottom: 20px;

    }

.social-link {
    margin-bottom: 2.5rem;
}

.social-link a {
    color: #ccc;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link a:hover {
    color: #851a28;
}

.details-grid {
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
}

.personal-details dt {
    color: #888;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2rem;
}

.personal-details dd {
    margin-left: 0;
    color: #ececec;
    font-size: 1.4rem;
    margin-top: 0.25rem;
}

.back-button {
    margin-top: 3rem;
    background-color: #851a28;
}

.back-button:hover {
    background-color: #64141e;
}


/* ======== YHTEYDENOTTO-OSIO ======== */
.contact-section {
    background-color: #0a0a0a;
    padding: 5rem 2rem;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1300px;
    margin: 0 auto;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info h3, .contact-form h3 {
    font-size: 3rem;
    margin-bottom: 1.5rem;

}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.4rem !important;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
}

form input, form textarea {
    width: 95%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #444;
    background-color: #0a0a0a;
    color: #ececec;
    border-radius: 4px;
    resize: vertical; /* Sallii vain vaakasuuntaisen koon muutoksen */
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;

}

form button {
    width: 99.4%;
    border: none;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
}


/* ======== FOOTER ======== */
footer {
    background-color: #0a0a0a;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid #1d1d1d;
}

/* ======== TIETOA MEISTÄ -SIVU ======== */
.about-section {
    display: flex;
    gap: 3rem;
    max-width: 1300px;
    margin: 4rem auto;
    padding: 1.2rem;
    align-items: center;
}

.about-text {
    flex: 2; /* Antaa tekstille enemmän tilaa */
}

.about-text h1 {
    font-size: 3rem;
    margin-bottom: -0.9rem;
    padding-bottom: 1rem;
    display: inline-block;
    margin-top: 13px;
}

.about-text p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 1.8rem;
    max-width: 620px;
}

.about-text .closing-statement {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    font-style: italic;
}

.about-image {
    flex: 1; /* Antaa kuvalle vähemmän tilaa */
}



.about-image img {
    width: 650px;
    height: 560px;
    border-radius: 4px;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.about-image img.loading {
    opacity: 0.7;
    filter: blur(8px);
}

.about-image img.loaded {
    opacity: 1;
    filter: blur(0);
}

.about-image img.error {
    opacity: 0.5;
}


.personal-details {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.personal-details dt {
    font-weight: bold;
    color: #fff;
    margin-top: 1rem;
    font-size: 1.2rem;
}

.personal-details dd {
    margin-left: 0;
    color: #ccc;
    margin-bottom: 1rem;
}

/* ======== SOSIAALISEN MEDIAN NAPIT ======== */
.profile-social-buttons {
    display: flex;
    flex-wrap: wrap; /* Varmistaa, että napit menevät allekkain, jos tila loppuu */
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.social-button {
    flex-grow: 1; /* Saa napit täyttämään tilan tasaisesti */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.social-button i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Instagramin brändivärit */
.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    border-radius: 4px;
}

a, button {
    -webkit-tap-highlight-color: transparent;
}