
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
   
    background-color: black; 
    font-family: sans-serif;
    color: white;
}


#star-canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}


.logo-link {
    position: fixed;
    top: 2em;
    left: 2em;
    display: block;
    width: 5em;
    height: 5em;
    z-index: 1000;
}

.logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.1);
}


.menu-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
    position: absolute;
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
    position: absolute;
}


.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease;
    z-index: 1000;
}

.side-menu.open {
    right: 0;
}

.side-menu a {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.side-menu a:hover {
    color: #00ffff;
}


.home-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25em; 
}

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

.otsikko {
font-family: 'Inter', sans-serif;
font-weight: 800;
    font-size: 4em;
    background: linear-gradient(135deg, #00f, #0ff, #006400);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 9s ease-in-out infinite;
    margin: 0;
}


.alaotsikko {
    color: aliceblue;
    font-size: 1.2rem;
    margin: 0;
 font-family: 'Dancing Script', cursive;
 margin-bottom: 1em;
}


.sosiaalit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.social-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid hsl(221, 32%, 58%);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-card:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(56,189,248,0.6);
}

.icon {
    width: 40px;
    height: 40px;
}


.email-text {
    text-align: center;
    margin-top: 1rem;
}

.email-link {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 1.2rem; 
    letter-spacing: 0.04em;
    transition: color 0.3s;
}

.email-link:hover {
    color: hsl(190, 95%, 55%);
}


.footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #ffffff;
    opacity: 0.7;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0; 
    animation: slideUpFade 0.6s forwards;
}


.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }


.email-link {
    position: relative;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    display: inline-block;
    opacity: 0;
    animation: slideUpFade 0.6s forwards;
    animation-delay: 0.5s; 
}

.email-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #006400);
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineSlide 0.6s forwards;
    animation-delay: 1.4s; 
}

@keyframes underlineSlide {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}


@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


.videos {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;     
    gap: 3rem;
    padding: 6rem 1rem 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden;
}


.videos h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}


html, body {
    margin: 0;
    padding: 0;
}


body.home-page {
    overflow: hidden;
}


body.retket {
    overflow-y: auto;
    min-height: 100vh;
}



/* puhelin setit */

@media (max-width: 768px) {

    
    .home-content {
        gap: 0.6rem;
        padding: 0 1rem;
    }

    
    .otsikko {
        font-size: 2.6rem;
    }

    .alaotsikko {
        font-size: 1rem;
    }

    
    .sosiaalit {
        gap: 0.7rem;
    }

    .social-card {
        width: 64px;
        height: 64px;
    }

    .icon {
        width: 32px;
        height: 32px;
    }

    
    .email-link {
        font-size: 1rem;
    }

    
    .logo-link {
        width: 4.5em;
        height: 4.5em;
        top: 1.5em;
        left: 1.5em;
    }

    
    .videos {
        padding-top: 5rem;
        gap: 2rem;
    }

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


.info {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 1.5rem 4rem;
    text-align: center;
}

.info h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.info p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.info h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}


.faq {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.faq-item {
    background: rgba(20, 20, 30, 0.8);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.faq-question {
    width: 100%;
    padding: 1rem 1.2rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-question:hover {
    color: #00ffff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 1.2rem 1rem;
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}


.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #00ffff;
}


.faq-item.active .faq-icon {
    transform: rotate(45deg); 
}



/* mobiili video ongelmat */

.video-card {
    width: 100%;       
    max-width: 500px;  
    box-sizing: border-box;
    text-align: left;  
    padding: 0 1rem;   
}

.video-card h3 {
    font-size: 1rem;           
    word-wrap: break-word;     
    overflow-wrap: break-word;
    margin-bottom: 0.5rem;
}


@media (max-width: 480px) {
    .video-card {
        max-width: 100%;      
    }

    .video-card h3 {
        font-size: 0.9rem;    
    }
}

.video-card img {
    width: 100%;       
    height: auto;      
    border-radius: 8px;
}