/* Aluksi piilotettu kiitos-viesti */
#form-response {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 20px;
    border-radius: 8px;
    display: none; /* Ei vie tilaa aluksi */
}

/* Luokka, joka lisätään lomakkeelle kun se häivytetään */
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none; /* Estää klikkaukset häivytyksen aikana */
}

/* Luokka, jolla kiitos-viesti tuodaan esiin */
.fade-in {
    display: block !important;
    opacity: 1 !important;
}

/* Piilottaa honeypot-kentän näkyvistä */
.honey-group {
    display: none !important;
    visibility: hidden;

}

.contact-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 10px;
    color: #333;
}

.contact-section p {
    margin-bottom: 30px;
    color: #666;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box; /* Varmistaa että padding ei riko leveyttä */
    font-size: 16px;
}

.submit-btn {
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.btn-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2563eb;
    color: white !important; /* Pakotetaan väri valkoiseksi */
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-link:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px); /* Pieni nostoefekti */
}

h3 a::after {
    content: " ↗"; /* 🔗 Tai nuoli ↗ */
    font-size: 0.8em;
    opacity: 0.6;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

/* Header & Navigation */
.navbar {
    background: #333;
    color: #fff;
    min-height: 70px;
    border-bottom: #0779e4 3px solid;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar a {
    color: #fff;
    text-transform: uppercase;
    font-size: 1.3rem;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
}

.navbar ul {
    display: flex;
    gap: 20px;
}

.navbar ul li {
    margin: 0;
}

.navbar ul li a:hover {
    color: #0779e4;
}

/* Hero Section */
.hero {
    min-height: 400px;
    padding: 40px 20px;
    background: url('kuvat/1200x400.png') no-repeat center center/cover;
    text-align: center;
    color: #fff; /* #fff Ensure text is visible on potentially dark background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #444; /* Fallback color */
    background-blend-mode: overlay;
}

.hero h1 {
    font-size: 50px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 20px;
}

.hero .btn {
    background: #0779e4;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
}

.hero .btn:hover {
    background: #045bb3;
}

/* Sections General */
.section {
    padding: 60px 0;
}

.section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

/* About Section */
#about {
    background: #fff;
}

.about-content {
    text-align: center;
}

.about-text p {
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Works Section */
#works {
    background: #f4f4f4;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-card {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.project-card h3 {
    margin-bottom: 10px;
}

/* Contact Section */
#contact {
    background: #fff;
    text-align: center;
}

.contact-links {
    margin-top: 20px;
}

.contact-links li {
    margin: 10px 0;
    font-size: 18px;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding-bottom: 10px;
    }

    .navbar ul {
        margin-top: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #0779e4;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: background-color 0.3s, transform 0.3s;
}

.back-to-top:hover {
    background-color: #045bb3;
    transform: translateY(-3px);
}

.back-to-top::after {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 3px solid white;
    border-left: 3px solid white;
    transform: rotate(45deg);
    margin-top: 6px;
}
