/* Import stylesheets */
@import 'variables.css';
@import 'base.css';
@import 'navigation.css';
@import 'hero.css';
@import 'contact.css';
@import 'animations.css';

/* Reset ja perustyyli */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff1a1a;
    --primary-light: #ff3333;
    --primary-dark: #cc0000;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f9fafb;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
    --transition-speed: 0.3s;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-neo: 16px 16px 32px #d1d1d1, -16px -16px 32px #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    --gradient-light: linear-gradient(135deg, #ffffff, #f8f9fa);
    --neon-shadow: 0 0 10px rgba(255, 26, 26, 0.3),
                   0 0 30px rgba(255, 26, 26, 0.2),
                   0 0 80px rgba(255, 26, 26, 0.1);
    --modern-shadow: rgba(17, 12, 46, 0.2) 0px 48px 100px 0px;
    --card-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
                   rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--gradient-light);
    min-height: 120vh;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Navigaatio */
header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 99999;
    background: #dc2626 !important;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    box-shadow: var(--modern-shadow);
    border-bottom: 1px solid var(--glass-border);
    transition: none;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    perspective: 1000px;
    margin-left: -70px;
}

.logo {
    height: 120px;
    width: auto;
    margin-left: -20px;
    margin-top: 10px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: all var(--transition-speed) cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

.logo:hover {
    transform: scale(1.1) translateZ(20px);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: all var(--transition-speed) cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

.logo-text:hover {
    transform: scale(1.05) translateZ(20px);
    text-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    left: 62%;
    margin-left: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 12px 20px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    overflow: hidden;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.login-button {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    display: inline-block;
    min-width: 200px;
    padding: 14px 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-button:hover {
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Main content */
main {
    padding-top: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Hero section */
.hero {
    margin-top: 0;
    padding-top: 200px;
    background: url('./banner1.png') no-repeat center center;
    background-size: cover;
    color: white;
    padding-bottom: 150px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

/* Moderni aalto-elementti */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.wave-divider .shape-fill {
    fill: #991b1b;
}

.wave-divider .shape-fill-2 {
    fill: rgba(153, 27, 27, 0.7);
    transform: translateX(20px);
}

.wave-divider .shape-fill-3 {
    fill: rgba(153, 27, 27, 0.4);
    transform: translateX(-20px);
}

.floating-stats {
    display: none;
}

.stat-box {
    display: none;
}

.hero .container {
    transform-style: preserve-3d;
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 70px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--modern-shadow);
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.hero .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-15deg);
    transition: 0.5s;
    animation: shine 8s infinite;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 40px;
    font-weight: 800;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease;
    text-shadow: var(--neon-shadow);
    color: white;
    transform: translateZ(30px);
    transition: transform 0.3s ease;
    line-height: 1.2;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.hero h1:hover {
    transform: translateZ(50px) scale(1.05);
}

.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateZ(20px);
    transition: transform 0.3s ease;
    line-height: 1.8;
    font-weight: 600;
}

.hero p:hover {
    transform: translateZ(35px);
}

/* Features section */
.features {
    padding: 4rem 0;
    background: #f8f9fa;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
    perspective: 1000px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    padding: 40px;
    border-radius: 32px;
    box-shadow: var(--shadow-neo);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: translateY(0) translateZ(0);
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    transform-style: preserve-3d;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--card-shadow);
    background: rgba(255, 255, 255, 0.95);
    animation: featureFlip 3s ease-in-out infinite;
}

.feature-card:hover::before {
    transform: translateY(0);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: inline-block;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 8px 16px rgba(153, 27, 27, 0.3));
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    top: 0;
    left: 0;
    z-index: -1;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-dark), #364152);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateZ(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-title {
    transform: translateZ(60px);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.6;
    transform: translateZ(10px);
}

.feature-card:hover .feature-description {
    transform: translateZ(40px);
    color: var(--primary-color);
}

/* Contact section */
.contact {
    padding: 80px 0;
    background: var(--gradient-light);
    position: relative;
    transform-style: preserve-3d;
    scroll-margin-top: 140px;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    padding: 50px;
    border-radius: 32px;
    box-shadow: var(--shadow-neo);
    border: 1px solid #dc2626;
    transform-style: preserve-3d;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    border: none;
    margin-bottom: 15px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    color: var(--primary-color);
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transform: translateZ(30px);
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    transform: translateZ(20px);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed) cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    transform-style: preserve-3d;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
    transform: scaleX(0) translateZ(-1px);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

.contact-link:hover::after {
    transform: scaleX(1) translateZ(-1px);
    transform-origin: left;
}

.contact-cta {
    text-align: center;
    margin-top: 60px;
    transform-style: preserve-3d;
}

.contact-cta h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-dark), #364152);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateZ(20px);
}

.contact-cta .button-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff1a1a, #cc0000);
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--modern-shadow);
    border: none;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 200px;
    text-align: center;
}

.contact-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.3);
    background: linear-gradient(135deg, #cc0000, #ff1a1a);
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.3),
        transparent
    );
    transition: 0.5s;
}

.contact-button:hover::before {
    left: 100%;
}

.contact-button.home-button {
    background: linear-gradient(135deg, #cc0000, #ff1a1a);
}

/* Footer */
footer {
    background: var(--gradient-light);
    padding: 40px 0;
    position: relative;
    transform-style: preserve-3d;
}

.footer-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    transform-style: preserve-3d;
    border: none;
}

.copyright {
    color: var(--text-light);
    font-size: 14px;
    position: relative;
    transform-style: preserve-3d;
    border: none;
    text-align: right;
    margin-left: auto;
}

.copyright::after,
.copyright::before {
    display: none;
}

/* Responsiivisuus */
@media (max-width: 768px) {
    .tech-stack,
    .process,
    .why-us,
    .pricing {
        padding: 60px 0;
    }

    .tech-stack h2,
    .process h2,
    .why-us h2,
    .pricing h2 {
        font-size: 2rem;
    }

    .tech-item,
    .process-step,
    .why-us-item,
    .pricing-card {
        padding: 20px;
    }

    .price {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .tech-grid,
    .process-steps,
    .why-us-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}

.loading-logo {
    width: auto;
    height: 300px;
    opacity: 0;
    transform: scale(1.5);
}

/* Kielivalintanappi */
.language-selector {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.language-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.language-btn.active {
    background: white;
    color: #dc2626;
    border: 2px solid #dc2626;
}

/* Responsiivisuus kielivalintanapille */
@media (max-width: 768px) {
    .language-selector {
        right: 10px;
        padding: 10px;
    }

    .language-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .language-selector {
        right: 5px;
        padding: 8px;
    }

    .language-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Punateemaiset osiot */
.custom-websites,
.mobile-design,
.performance {
    background: linear-gradient(135deg, #991b1b, #dc2626);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    margin: 0;
    animation: gradientMove 20s ease infinite;
    background-size: 200% 200%;
    will-change: background-position;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.custom-websites::before,
.mobile-design::before,
.performance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulseGlow 6s ease-in-out infinite;
    will-change: opacity;
}

@keyframes pulseGlow {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
}

.section-content {
    position: relative;
    transition: transform 0.6s ease-in-out;
}

.section-content:hover {
    transform: translateY(-5px);
}

.section-image img {
    animation: floatImage 8s ease-in-out infinite;
    will-change: transform;
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.section-badge {
    position: relative;
    overflow: hidden;
}

.section-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: shineEffect 4s infinite;
    will-change: transform;
}

@keyframes shineEffect {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

.feature-list li {
    position: relative;
    transition: transform 0.3s ease;
}

.feature-list li:hover {
    transform: translateX(10px) scale(1.05);
}

.feature-list li i {
    animation: iconPulse 3s infinite;
    will-change: transform;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.section-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.section-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transition: 0.5s;
}

.section-cta:hover::before {
    left: 100%;
}

.custom-websites .section-badge,
.mobile-design .section-badge,
.performance .section-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.custom-websites h2,
.mobile-design h2,
.performance h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.custom-websites .highlight,
.mobile-design .highlight,
.performance .highlight {
    color: #fecaca;
}

.custom-websites p,
.mobile-design p,
.performance p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.custom-websites .feature-list,
.mobile-design .feature-list,
.performance .feature-list {
    list-style: none;
    margin-bottom: 30px;
}

.custom-websites .feature-list li,
.mobile-design .feature-list li,
.performance .feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: white;
}

.custom-websites .feature-list li i,
.mobile-design .feature-list li i,
.performance .feature-list li i {
    color: #fecaca;
    margin-right: 10px;
}

.custom-websites .section-cta,
.mobile-design .section-cta,
.performance .section-cta {
    display: inline-block;
    background: white;
    color: #991b1b;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.custom-websites .section-cta:hover,
.mobile-design .section-cta:hover,
.performance .section-cta:hover {
    background: transparent;
    color: white;
}

.custom-websites .section-image,
.mobile-design .section-image,
.performance .section-image {
    position: relative;
    z-index: 2;
}

.custom-websites .section-image img,
.mobile-design .section-image img,
.performance .section-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* Teknologiat osio */
.tech-stack {
    background: linear-gradient(135deg, #991b1b, #dc2626);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    margin: 0;
    animation: gradientMove 20s ease infinite;
    background-size: 200% 200%;
    will-change: background-position;
}

.tech-stack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulseGlow 6s ease-in-out infinite;
    will-change: opacity;
}

.tech-stack h2 {
    color: white;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.tech-stack .section-description {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

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

.tech-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.tech-item i {
    font-size: 3rem;
    color: #fecaca;
    margin-bottom: 20px;
}

.tech-item h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.tech-item p {
    color: rgba(255, 255, 255, 0.9);
}

/* Projektin vaiheet */
.process {
    background: linear-gradient(135deg, #991b1b, #dc2626);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    margin: 0;
    animation: gradientMove 20s ease infinite;
    background-size: 200% 200%;
    will-change: background-position;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulseGlow 6s ease-in-out infinite;
    will-change: opacity;
}

.process h2 {
    color: white;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.process .section-description {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 20px;
}

.process-step {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.step-number {
    background: #fecaca;
    color: #991b1b;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
    font-size: 1.2rem;
}

.process-step h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.process-step p {
    color: rgba(255, 255, 255, 0.9);
}

/* Miksi valita meidät */
.why-us {
    background: linear-gradient(135deg, #991b1b, #dc2626);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    margin: 0;
    animation: gradientMove 20s ease infinite;
    background-size: 200% 200%;
    will-change: background-position;
}

.why-us::before,
.why-us::after {
    display: none;
}

.why-us h2 {
    color: white;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.why-us-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.why-us-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.why-us-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.why-us-item:hover::before {
    opacity: 1;
}

.why-us-item i {
    font-size: 2.5rem;
    color: #fecaca;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.why-us-item:hover i {
    transform: scale(1.2);
}

.why-us-item h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
}

.why-us-item h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #fecaca;
    transition: width 0.3s ease;
}

.why-us-item:hover h3::after {
    width: 80px;
}

.why-us-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-top: 15px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .why-us {
        padding: 60px 0;
    }

    .why-us h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .why-us-item {
        padding: 30px 20px;
    }

    .why-us-item i {
        font-size: 2rem;
    }

    .why-us-item h3 {
        font-size: 1.3rem;
    }

    .why-us-item p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }
}

/* Hinnoittelu */
.pricing {
    background: linear-gradient(135deg, #991b1b, #dc2626);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    margin: 0;
    animation: gradientMove 20s ease infinite;
    background-size: 200% 200%;
    will-change: background-position;
}

.pricing::before,
.pricing::after {
    display: none;
}

.pricing h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    line-height: 1.4;
    white-space: pre-line;
}

.pricing .section-description {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 40px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
    min-height: 500px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.pricing-card h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.price {
    color: #fecaca;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    padding: 5px 0;
}

.pricing-cta {
    display: inline-block;
    background: white;
    color: #991b1b;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.pricing-cta:hover {
    background: transparent;
    color: white;
}

/* Responsiivisuus */
@media (max-width: 768px) {
    .tech-stack,
    .process,
    .why-us,
    .pricing {
        padding: 60px 0;
    }

    .tech-stack h2,
    .process h2,
    .why-us h2,
    .pricing h2 {
        font-size: 2rem;
    }

    .tech-item,
    .process-step,
    .why-us-item,
    .pricing-card {
        padding: 20px;
    }

    .price {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .tech-grid,
    .process-steps,
    .why-us-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }
}

/* Osioiden väliset täytteet */
.section-divider {
    position: relative;
    height: 150px;
    overflow: hidden;
    margin: -60px 0;
    z-index: 1;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.9), rgba(220, 38, 38, 0.9));
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transform: skewY(-3deg);
    z-index: -1;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    background-size: 100% 100%;
    opacity: 0.2;
    animation: wave 20s linear infinite;
}

@keyframes wave {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1440px;
    }
}

/* Lisää dividerit osioiden väliin */
.tech-stack,
.process,
.why-us,
.pricing,
.custom-websites,
.mobile-design,
.performance {
    position: relative;
}

.tech-stack::before,
.process::before,
.why-us::before,
.pricing::before,
.custom-websites::before,
.mobile-design::before,
.performance::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: inherit;
    clip-path: polygon(0 0, 100% 100%, 100% 100%, 0% 100%);
}

.tech-stack::after,
.process::after,
.why-us::after,
.pricing::after,
.custom-websites::after,
.mobile-design::after,
.performance::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: inherit;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

/* Päivitetyt marginaalit */
.tech-stack,
.process,
.why-us,
.pricing,
.custom-websites,
.mobile-design,
.performance {
    margin: 0;
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

/* Poista ylimääräiset dividerit */
.why-us::before,
.why-us::after,
.pricing::before,
.pricing::after {
    display: none;
}

/* Varmista saumaton liitos */
.why-us + .pricing {
    margin-top: -1px;
}

/* Lisää kiiltävä efekti */
.section-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: skewX(-25deg);
    animation: shine 8s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 200%;
    }
    100% {
        left: 200%;
    }
}

/* Responsiivisuus */
@media (max-width: 768px) {
    .section-divider {
        height: 100px;
        margin: -40px 0;
    }

    .tech-stack::before,
    .process::before,
    .why-us::before,
    .pricing::before,
    .custom-websites::before,
    .mobile-design::before,
    .performance::before,
    .tech-stack::after,
    .process::after,
    .why-us::after,
    .pricing::after,
    .custom-websites::after,
    .mobile-design::after,
    .performance::after {
        height: 50px;
    }

    .tech-stack,
    .process,
    .why-us,
    .pricing,
    .custom-websites,
    .mobile-design,
    .performance {
        padding: 100px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .custom-websites,
    .mobile-design,
    .performance {
        animation: none;
        background-size: 100%;
    }

    .custom-websites::before,
    .mobile-design::before,
    .performance::before {
        animation: none;
    }

    .section-image img {
        animation: none;
    }

    .section-badge::after {
        animation: none;
    }

    .feature-list li i {
        animation: none;
    }

    .section-content:hover {
        transform: none;
    }
}

.cta-button.primary {
    background: #dc2626;
    color: #fff;
    border: none;
    text-decoration: none;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button.primary:hover {
    background: #991b1b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.why-us .section-description {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-button.home-button {
    background: linear-gradient(135deg, #cc0000, #ff1a1a);
    margin-top: 20px;
    display: inline-block;
}

.contact-button.home-button:hover {
    background: linear-gradient(135deg, #ff1a1a, #cc0000);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.3);
}

@media (max-width: 1200px) {
    .nav-links {
        left: 40%;
    }
}

@media (max-width: 992px) {
    .nav-links {
        left: 20%;
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
        min-height: 70px;
        padding: 35px 0 40px;
    }

    .nav-content {
        flex-direction: column;
        padding: 10px;
        gap: 40px;
    }

    .logo-container {
        margin: 0;
    }

    .nav-links {
        position: static;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 5px;
        margin-top: 30px;
    }

    .nav-link {
        font-size: 13px;
        padding: 8px 12px;
        width: calc(33.33% - 12px);
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .logo {
        height: 50px;
        margin: 0;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 25px;
        letter-spacing: -0.5px;
        text-align: center;
        padding: 0 15px;
        line-height: 1.3;
    }

    .pricing h2 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 30px 0 35px;
    }

    .nav-content {
        padding: 8px;
        gap: 35px;
    }

    .nav-links {
        gap: 10px;
        padding: 5px;
        margin-top: 25px;
    }

    .nav-link {
        width: calc(50% - 10px);
        padding: 8px 12px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .pricing h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.6rem;
        padding: 0 8px;
        line-height: 1.4;
    }

    .pricing h2 {
        font-size: 1.5rem;
    }
} 