@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #e50914; /* Red accent */
    --dark-color: #000000;    /* Dark color for text, footers */
    --light-color: #ffffff;   /* White background */
    --gray-color: #f9f9f9;    /* Light gray for sections */
    --text-color: #333;       /* Main text color */
    --border-color: #e0e0e0;  /* Borders */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-color);
    color: var(--light-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 2rem;
    overflow: hidden;
}

h1, h2 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--light-color);
}

/* Header */
.main-header {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-color);
    text-decoration: none;
    z-index: 1001;
}

.main-header .logo span {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav a {
    color: var(--light-color);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu Toggle */
.nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001; /* Above the nav */
}


/* Hero Section */
#home {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('tiedostot/IMG_5310_2.jpg') no-repeat center 30%/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    color: #fff; /* Text color for hero section */
}

#home h1 {
    font-size: 4rem;
    line-height: 1.2;
}

#home p {
    font-size: 1.5rem;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Sections */
.section {
    padding: 6rem 0;
}

/* Services Section */
#services {
    background: var(--dark-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #1a1a1a;
    color: var(--light-color);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.service-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card .price span {
    font-size: 1rem;
    font-weight: 300;
    color: #ccc;
}

.service-card p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card .service-features {
    list-style: none;
    text-align: left;
    margin: 0 auto 1.5rem auto;
    padding-left: 1rem;
    flex-grow: 1;
    font-size: 0.9rem;
}

.service-card .service-features li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.service-card .service-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #c40812;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form .btn {
    width: 100%;
}

/* About Section */
#about {
    background: var(--dark-color);
    color: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden; /* Varmistaa, että kuva pysyy pyöristettyjen kulmien sisällä */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Skaalaa kuvan täyttämään tilan ilman vääristymiä */
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
}

/* Transformations Section */
#transformations {
    background: var(--dark-color);
}

.transformations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.transformation-card {
    background: var(--light-color);
    color: var(--text-color);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    overflow: hidden; /* Varmistaa, että sisältö pysyy pyöristettyjen kulmien sisällä */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.transformation-card.image-only {
    padding: 0;
}

.transformation-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.transformation-image {
    width: 100%;
    border-radius: 5px;
    margin-top: 1rem;
    display: block; /* Estää ylimääräisen tilan kuvan alla */
}

.transformation-card.image-only .transformation-image {
    margin-top: 0;
    border-radius: 0;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 2rem 0;
    background: var(--dark-color);
    color: #f4f4f4;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    #home h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 2rem;
    }

    /* Show hamburger */
    .nav-toggle {
        display: block;
    }

    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98); /* Dark background for visibility */
        backdrop-filter: blur(10px);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding-top: 5rem;
        z-index: 999;
        border-left: 1px solid #333;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav a {
        margin: 1.5rem 0;
        font-size: 1.2rem;
        color: var(--light-color); /* Ensure links are visible on dark bg */
    }

    /* When nav is open */
    body.nav-open .main-nav {
        transform: translateX(0);
    }
    
    body.nav-open .nav-toggle i::before {
        content: '\f00d'; /* Font Awesome close icon */
    }

    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-info {
        margin-bottom: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        margin: 0 auto 2rem auto; /* Center the image */
        width: 90%;
        max-width: 400px; /* Estetään kuvaa venymästä liian leveäksi */
        height: auto; /* Annetaan korkeuden mukautua kuvasuhteeseen */
    }
}

@media (max-width: 480px) {
    #home h1 {
        font-size: 2.2rem;
    }
    #home p {
        font-size: 1.2rem;
    }
    .services-grid, .transformations-grid {
        grid-template-columns: 1fr;
    }
    .main-nav {
        width: 100%; /* Full width on small phones */
    }
}

/* Form Status Message */
.form-message {
    margin-top: 1rem;
    padding: 0;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    transition: padding 0.3s ease;
}

.form-message.success,
.form-message.error {
    padding: 0.75rem;
}

.form-message.success {
    color: #fff;
    background-color: #28a745; /* Green */
}

.form-message.error {
    color: #fff;
    background-color: var(--primary-color); /* Red */
}

/* Prevent background scroll when mobile nav is open */
body.nav-open {
    overflow: hidden;
}

/* Social Media Link in Contact Section */
.social-links {
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: var(--light-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 1px solid #555;
}

.social-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.social-link i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: inherit; /* Inherit color from parent link */
}
