/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: #012a1c;
    color: white;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    color: #012a1c;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}

h2 {
    color: white;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    letter-spacing: -0.5px;
}

p {
    color: #555;
    font-size: 17px;
    line-height: 1.8;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* ===== HEADER ===== */
header {
    background-color: #012a1c;
    height: 120px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeInDown 0.6s ease-out;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(1, 42, 28, 0.15);
}

#header-logo {
    position: absolute;
    padding-left: 5%;
    transform: translateX(-50%);
}

header img {
    height: 90px;
    width: auto;
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

#header-title {
    margin-left: auto;
}

#header-title button {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#header-title button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

#header-title h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* ===== HERO / MAIN CONTAINER ===== */
#container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
    align-items: center;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

/* ===== LEFT CONTAINER ===== */
#left-container {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

#left-container h1 {
    margin-bottom: 24px;
    padding: 0;
}

.section-divider {
    border: none;
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, #012a1c, #024d30);
    margin: 0 0 32px 0;
    border-radius: 2px;
}

#about-text {
    padding: 0;
    max-width: 540px;
}

#about-text p {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#about-text p:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

#left-container {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

#read-more {
    background: linear-gradient(135deg, #012a1c 0%, #024d30 100%);
    color: white;
    border: none;
    padding: 24px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(1, 42, 28, 0.2);
    position: relative;
    overflow: hidden;
}

#read-more::before {
    content: 'Lue lisää';
}

#read-more::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#read-more:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(1, 42, 28, 0.3);
}

#read-more:hover::after {
    width: 300px;
    height: 300px;
}

#read-more:active {
    transform: translateY(-2px);
}

#left-container h1 {
    margin-bottom: 24px;
    padding: 0;
}

.section-divider {
    border: none;
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, #012a1c, #024d30);
    margin: 0 0 32px 0;
    border-radius: 2px;
}

#why-us-text {
    padding: 0;
    max-width: 540px;
}

#why-us-text p {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#why-us-text p:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* ===== RIGHT CONTAINER / GALLERY ===== */
#right-container {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.gallery {
    max-width: 540px;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

#gallery-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
}

#gallery-image:hover {
    transform: scale(1.03);
}

.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.gallery-controls button {
    background-color: #012a1c;
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gallery-controls button:hover {
    background-color: #024d30;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 42, 28, 0.3);
}

.gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d4d4d4;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot:hover {
    background-color: #024d30;
    transform: scale(1.3);
}

.dot.active {
    background-color: #012a1c;
    width: 28px;
    border-radius: 5px;
}

#image-counter {
    color: #012a1c;
    font-weight: 700;
    font-size: 14px;
}

#previous-projects-text {
    text-align: center;
    margin-bottom: 40px;
}
.section-divider2 {
    border: none;
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, #012a1c, #024d30);
    margin: 0 auto 40px;
    border-radius: 2px;
}

.project-gallery {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 0 40px 40px;
    min-width: 400px;
    align-items: center;
    justify-content: center;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 400px;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 24px;
}

.project-info h3 {
    color: #012a1c;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-info p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.project-meta {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.project-meta span {
    color: #012a1c;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#project-button {
    background: linear-gradient(135deg, #012a1c 0%, #024d30 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(1, 42, 28, 0.2);
    margin-top: 16px;
    display: block;
    width: 100%;
}

#project-button::before {
    content: 'Lue lisää';
}

#project-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#project-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 42, 28, 0.3);
}

#project-button:hover::after {
    width: 300px;
    height: 300px;
}

#project-button:active {
    transform: translateY(0);
}

/* ===== PROJECT ITEMS (Referenssit) ===== */
.project-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.project-item:last-child {
    border-bottom: none;
}

.project-item h3 {
    margin: 0;
}

.read-more-btn {
    background: linear-gradient(135deg, #012a1c 0%, #024d30 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 42, 28, 0.3);
}

/* ===== FOOTER / CONTACT SECTION ===== */
footer {
    background: linear-gradient(135deg, #012a1c 0%, #013d28 100%);
    color: white;
    padding: 60px 0 40px;
    margin-top: 40px;
}

footer h2 {
    text-align: center;
    margin-bottom: 16px;
}

.footer-section-divider {
    border: none;
    height: 3px;
    width: 60px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 auto 40px;
    border-radius: 2px;
}

#contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

#left-footer-container {
    float: left;
    width: 55%;
    padding-right: 40px;
    padding-left: 30px;
}

#right-footer-container {
    float: right;
    width: 40%;
    text-align: left;
    padding: 20px 0;
}

#footer-info p {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    line-height: 2.2;
    opacity: 0.9;
    color: white;
    display: flex;
    flex-direction: column;
}

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

#footer-info a:hover {
    color: #7fd4a8;
    text-decoration: underline;
}

#footer-info iframe {
    margin-top: 16px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    width: 70%;
    height: 345px;
}

/* ===== CONTACT FORM ===== */
#contact-form-element {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#contact-form-element label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-top: 12px;
    width: 100%;
    margin: 0 auto;
}

#contact-form-element input,
#contact-form-element textarea {
    width: 90%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    display: block;
}

#contact-form-element input::placeholder,
#contact-form-element textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#contact-form-element input:focus,
#contact-form-element textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#contact-form-element textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group {
    margin-top: 16px;
}

#privacy {
    max-width: 30px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #024d30;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #7fd4a8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: #a8f0c8;
    text-decoration: underline;
}

#submit-button {
    width: 90%;
    margin-top: 24px;
    padding: 16px 40px;
    background: white;
    color: #012a1c;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

#submit-button:active {
    transform: translateY(-1px);
}

/* ===== FOOTER BOTTOM ===== */
footer::after {
    content: '';
    display: block;
    clear: both;
}

/* ===== SERVICES PAGE ===== */

#services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
    align-items: center;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.section-divider {
    border: none;
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, #012a1c, #024d30);
    margin: 0 0 32px 0;
    border-radius: 2px;
}

.service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px 32px;
    margin: 12px 0;
    max-width: 540px;
    margin-left: 0;
}

.service-card ul li {
    padding: 8px 0;
    color: #555;
    font-size: 15px;
    position: relative;
    padding-left: 24px;
}

.service-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #012a1c;
    font-weight: bold;
}   

.process-steps{
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
    align-items: center;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.cta-section {
    padding: 60px 20px;
    border-radius: 16px;
    margin-top: 40px;
}

.cta-section h2 {
    color: #012a1c;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}

#contact-button {
    background: linear-gradient(135deg, #012a1c 0%, #024d30 100%);
    color: white;
    border: none;
    padding: 24px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(1, 42, 28, 0.2);
    position: relative;
    overflow: hidden;
}

#contact-button::before {
    content: 'Ota yhteyttä';
}

#contact-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#contact-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(1, 42, 28, 0.3);
}

#contact-button:hover::after {
    width: 300px;
    height: 300px;
}

#contact-button:active {
    transform: translateY(-2px);
}

/* ===== MEDIA QUERIES ===== */


