@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&display=swap');


.hero {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #fff;
}

.hero-logo {
    position: relative;
    transform: rotate(15deg);
    height: 110px;
    opacity: 0;
}

.hero .container {
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin: 0 0 20px 0;
    opacity: 0;
}

.hero p {
    font-size: 24px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
}


body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f0f4f8;
    color: #333;
}

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

header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    /* Removed single color to allow spans to control it */
    cursor: pointer;
    margin-right: auto;
}

.logo-koodi {
    color: rgb(26, 136, 232); /* Original Blue */
    transition: color 0.3s ease;
}

.logo-ios {
    color: #004e92; /* Rich Dark Blue (Less contrast/harshness than black) */
    transition: color 0.3s ease;
}

.logo::before {
    content: '{';
    color: rgb(26, 136, 232);
    margin-right: 0; /* Tightened spacing */
}

.logo::after {
    content: '}';
    color: rgb(26, 136, 232);
    margin-left: 0; /* Tightened spacing */
}

/* Hover Effects: Swap Colors */
.logo:hover .logo-koodi {
    color: #004e92;
}

.logo:hover .logo-ios {
    color: rgb(26, 136, 232);
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0066cc;
}

.lang-switch {
    display: flex;
    align-items: center;
    margin-left: 20px;
    gap: 10px;
}

.lang-switch-mobile {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

/* Language Button & Wrapper */
.lang-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 40px; /* Space from desktop nav items */
    margin-right: 25px; /* Space from mobile burger */
}

.lang-btn {
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.2s ease;
    user-select: none;
    text-decoration: none !important;
}

.lang-btn:hover {
    transform: scale(1.2);
}

/* Red Glassmorphic Notice */
.lang-notice {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(220, 20, 60, 0.85); /* Crimson red with opacity */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    z-index: 1001;
    pointer-events: none;
}

.lang-notice.show {
    opacity: 1;
    visibility: visible;
    top: 35px;
}

.notice-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.notice-arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(220, 20, 60, 0.85);
}


.apps {
    padding: 100px 0;
    z-index: 1;
}

.apps h2, .trust h2 {
    font-weight: 400;
}

.apps h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

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

.app-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    z-index:1;
}

.app-card:hover {
    transform: translateY(-10px);
    cursor: pointer;
}

.app-icon {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.app-info {
    padding: 20px;
}

.app-info h3 {
    margin-top: 0;
}

.app-info p {
    margin-bottom: 0;
}

.contact {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
    z-index: 2;
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    font-weight: 400;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
    background: #f9fafb;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.btn-submit {
    background-color: #0066cc;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.btn-submit:hover {
    background-color: #0052a3;
}

.contact-status {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.contact-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

footer {
    position:relative;
    background-color: #0f172a;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    z-index:1; /* */
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

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

    .app-grid {
        grid-template-columns: 1fr;
    }
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1;
    pointer-events: none;
}

/* Non-selectable text */
body {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}


/* Arrow styling */
#next {
    position: absolute;
    width: 100%;
    height: 67px;
    margin: auto;
    background: url("img/arrow.png") center center no-repeat;
    opacity: 0.7;
    margin-top: calc(90vh - 30px);
    transition: 1s;
    cursor: pointer;
    z-index:1;
}

#next:hover {
    opacity: 1;
}

/* Update existing burger menu styles */


.nav-extras {
    display: flex;
    align-items: center;
    gap: 20px;
}

.burger {
    display: none;  /* Hide by default */
    cursor: pointer;
}

.burger div {
    transition: 0.3s;
    background-color: rgb(90, 12, 12);
    width: 20px;
    height: 2px;
    margin: 6px 0;
}

/* Add these new styles */
.burger.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.active div:nth-child(2) {
    opacity: 0;
}

.burger.active div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* .menu-mobile {
    position: fixed;
    right: -100%;
    top: 45px;
    width: 250px;
    height: calc(100vh - 45px);
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    transition: 0.3s;
}


.menu-mobile nav {
    display: flex;
    flex-direction: column;
    align-items: center;
} */

.menu-mobile {
    position: fixed;
    right: -100%;  /* Start hidden off-screen */
    top: 70px;
    width: 100%;
    height: auto;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    transition: 0.3s;
}

.menu-mobile nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-mobile nav a {
    color: #333;
    text-decoration: none;
    padding: 15px 0;
    width: 100%;
    text-align: center;
    transition: color 0.3s ease;
}

.menu-mobile.active {
    right: 0;
}

.menu-mobile nav a:hover {
    color: #0066cc;
}

.trust {
    padding: 60px 0;
    background: #0f172a;
    border-top: 1px solid rgba(255,255,255,0.05);
 }
 
 .trust-logo {
    height: 45px;
    opacity: 0.8;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
 }

.trust h2 {
    color: white;
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trust-logo:hover {
    opacity: 1;
}

@media only screen and (max-width: 785px) {
    .burger {
        display: block;
    }
    
    .nav-links {
        display: none;
    }

    .lang-wrapper {
        margin-left: auto; /* Push to right if nav-links are hidden */
        margin-right: 30px; /* Ensure space from burger */
    }
}

/* Flag Icons */
.lang-btn {
    width: 30px;
    height: 20px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 2px;
}

.flag-fi {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxOCAxMSI+PHJlY3Qgd2lkdGg9IjE4IiBoZWlnaHQ9IjExIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTAsNCBoNSB2LTQgaDMgdjQgaDEwIHYzIGgtMTAgdjQgaC0zIHYtNCBoLTUgeiIgZmlsbD0iIzAwMzU4MCIvPjwvc3ZnPg==');
}

.flag-en {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MCAzMCI+PGNsaXBQYXRoIGlkPSJzIj48cGF0aCBkPSJNMCAwIHYzMCBoNjAgdi0zMCB6Ii8+PC9jbGlwUGF0aD48Y2xpcFBhdGggaWQ9InQiPjxwYXRoIGQ9Ik0zMCAxNSBoMzAgdjE1IHogdjE1IGgtMzAgeiBoLTMwIHYtMTUgeiB2LTE1IGgzMCB6Ii8+PC9jbGlwUGF0aD48ZyBjbGlwLXBhdGg9InVybCgjcykiPjxwYXRoIGQ9Ik0wIDAgdjMwIGg2MCB2LTMwIHoiIGZpbGw9IiMwMTIxNjkiLz48cGF0aCBkPSJNMCAwIEw2MCAzMCBNNjAgMCBMMCAzMCIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjYiLz48cGF0aCBkPSJNMCAwIEw2MCAzMCBNNjAgMCBMMCAzMCIgY2xpcC1wYXRoPSJ1cmwoI3QpIiBzdHJva2U9IiNDODEwMkUiIHN0cm9rZS13aWR0aD0iNCIvPjxwYXRoIGQ9Ik0zMCAwIHYzMCBNMCAxNSBoNjAiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIxMCIvPjxwYXRoIGQ9Ik0zMCAwIHYzMCBNMCAxNSBoNjAiIHN0cm9rZT0iI0M4MTAyRSIgc3Ryb2tlLXdpZHRoPSI2Ii8+PC9nPjwvc3ZnPg==');
}