:root {
    --primary-color: #279a34;
    --secondary-color: #1c2fd7;
    --light-primary: rgba(39, 154, 52, 0.1);
    --light-secondary: rgba(28, 47, 215, 0.1);
    --white: #ffffff;
    --light-gray: #f8f8f8;
    --dark-gray: #333333;
    --medium-gray: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Header styles - clean area for logo */
header {
    text-align: center;
    padding: 1.5rem 0;
    background-color: var(--white);
}

.logo {
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    /* Clean logo without effects */
}

/* Button styles */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--white);
}

/* Hero section with GIF background */
.hero {
    position: relative;
    background: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 10rem 2rem;
    text-align: center;
    overflow: hidden;
}

/* GIF background for hero section */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('cetrium.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3; /* GIF näkyy läpinäkyvänä gradientin takana */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Announcement section */
.announcement {
    background-color: var(--light-primary);
    padding: 1rem 2rem;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-content {
    flex: 1;
}

.announcement h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* General section styles */
.section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.section-title p {
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.highlight {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Project section */
.project-section {
    background-color: var(--light-gray);
    padding: 5rem 2rem;
}

.project-content {
    max-width: 1000px;
    margin: 0 auto;
}

.project-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.project-box-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.project-box {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-box:hover {
    transform: translateY(-10px);
}

.project-image {
    width: 100%;
    height: 150px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-content {
    padding: 1.5rem;
}

.project-box h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.project-box p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.read-more::after {
    content: "→";
    margin-left: 0.5rem;
}

/* Global section (commented out in HTML) */
.global-section {
    padding: 5rem 2rem;
    background-color: var(--light-secondary);
    text-align: center;
}

.global-content {
    max-width: 1000px;
    margin: 0 auto;
}

.global-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.global-section p {
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

.globe-image {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Newsletter section */
.newsletter {
    padding: 4rem 2rem;
    background-color: var(--light-gray);
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.newsletter p {
    margin-bottom: 2rem;
    color: var(--medium-gray);
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 1.5rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
}

/* Footer styles */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 4rem 2rem 2rem;
    text-align: center;
}

footer a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1); /* Tekee logosta valkoisen */
}

.footer-info {
    margin-bottom: 2rem;
    color: #bbb;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
    color: #bbb;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #bbb;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title h2,
    .project-section h2,
    .global-section h2 {
        font-size: 1.8rem;
    }
    
    .announcement {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .announcement .btn {
        margin-top: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    header {
        /* Säilytetään yksinkertainen header mobiilissa */
    }
}

/* Accessibility styles */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}