:root { 
    --primary: #0CABDC;
    --primary-contrast: #D4F7FB;
    --second-color: #105e82;
    --dark-1: #042846;
    --dark-2: #001C33;
    --text-white: #FFFFFF;
    --text-light: #F5FAFC;
    --text-dark: #0D171C;
    --bright: #F7B267;
    --neutral: #6E7E8E;
    --negative: #F76C6C;
    --positive: #38E4A0;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: var(--dark-1);
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    margin: 0;
    padding: 0;
}

.title-h2 {
    font-size: 40px;
    line-height: 48px;
    font-weight: 400;
    color: var(--dark-1);
}

.header {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header--hero {
    background: transparent;
    backdrop-filter: none;
}

.header--hero .logo-text,
.header--hero .nav a,
.header--hero .lang-btn,
.header--hero .lang-icon {
    color: var(--text-white);
}

.header--mini {
    position: fixed;
    background: rgba(0, 12, 32, 0.75);
    backdrop-filter: blur(10px);
    /*border-bottom: 1px solid rgba(212, 247, 251, 0.15); */
}

.header--mini .logo-block {
    display: block;
}

.header--mini .nav, .header--mini .lang-switch {
    display: none;
}

.header--mini .header-inner {
    padding: 14px 40px;
}

.header--mini .logo-text,
.header--mini .nav a,
.header--mini .lang-btn,
.header--mini .lang-icon {
    color: var(--text-white);
}
.logo-block {
    display: none;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 16px;
    font-weight: 400;
}

.nav {
    display: flex;
    gap: 36px;
}

.nav a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-white);
    transition: opacity 0.2s ease, color 0.2s ease;
}

.nav a:hover {
    color: var(--primary);
}

.lang-switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-icon {
    font-size: 16px;
    color: var(--text-white);
    opacity: 0.85;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/*.lang-btn:hover {*/
/*    color: var(--primary);*/
/*}*/

.lang-dropdown {
    position: absolute;
    right: 0;
    top: 28px;
    background: rgba(0, 12, 32, 0.92);
    padding: 6px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    display: none;
    min-width: 130px;
}

.lang-dropdown.open {
    display: block;
}

.lang-dropdown button {
    width: 100%;
    background: none;
    border: none;
    color: var(--primary-contrast);
    font-size: 14px;
    text-align: left;
    padding: 6px 14px;
    cursor: pointer;
}

.lang-dropdown button:hover {
    background: rgba(16, 94, 130, 0.6);
}

.hero-content, .about-container, .projects-container {
    max-width: 1400px;
    padding: 0 20px;
}

.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('../img/hero-bg.png') center/cover no-repeat;
    background-attachment: fixed;
    color: var(--text-white);
}
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: 90px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 124px;
    font-weight: 800;
    line-height: 140px;
    /*letter-spacing: 1px;*/
    margin: 0;
    margin-bottom: 18px;
    color: var(--text-white);
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 40px;
    color: var(--text-light);
    text-align: center;
    max-width: 340px;
    margin: 40px auto 40px;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid var(--primary);
    color: var(--text-light);
    font-size: 18px;
    text-decoration: none;
    transition: 0.25s ease;
    background: rgba(12, 171, 220, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    margin-bottom: 4px;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary);
    color: var(--text-light);
}

@media (max-width: 840px) {
    .hero-title {
        font-size: 48px;
        line-height: 45px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 540px) {
    .hero {
        height: 80vh;
    }
    .hero-title {
        font-size: 38px;
        line-height: 45px;
    }
    .hero-logo {
        width: 60px;
    }
}
.about {
    background: var(--text-white); 
    padding: 100px 0;
}

.about-container {
    margin: 0 auto;
    display: flex;
    align-items: top;
    justify-content: space-between;
    gap: 60px;
}

.about-title {
    flex: 1;
    margin-top: 18px;
}

.about-text {
    max-width: 712px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--dark-1);
    flex: 1.5;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: left;
        gap: 30px;
        padding: 0 20px;
    }
    
    .about {
        padding: 40px 0;
    }

    .about-title {
        flex: none;
        width: 100%;
        text-align: left;
        margin: 0;
    }

    .about-text {
        max-width: 100%;
        width: 100%;
        font-size: 16px;
        line-height: 1.6;
    }
}

.projects {
    background: var(--text-white);
    padding-bottom: 100px;
}

.projects-container {
    margin: 0 auto;
    max-width: 1400px;
    align-items: top;
    justify-content: space-between;
    display: flex;
    /*align-items: flex-start;*/
    gap: 60px;
    padding: 0 40px;
}

.projects-title {
    flex: 0 0 auto;
    margin: 0;
}

.slider-wrapper {
    position: relative;
    flex: 1;
    padding-bottom: 70px;
    max-width: 712px;
}

.slider {
    display: flex;
    gap: 36px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.slider::-webkit-scrollbar {
    display: none;
}

.project-card {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: 0.25s;
}

.project-card-bg {
    background: rgba(212, 247, 251, 0.1);
}

.project-img {
    width: 100%;
}

.project-info h3 {
    color: var(--dark-1);
    font-size: 28px;
    margin: 10px 0 20px 0;
    font-weight: 400;
}

.project-info p {
    color: var(--dark-1);
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
}

.platform-icons {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

.icon img {
    width: 35px;
    cursor: pointer;
    transition: 0.2s ease;
}
.icon:hover img {
    transform: scale(1.1);
}

.tooltip {
    position: relative;
    z-index: 999;
}

.tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 130%;
    left: 150%;
    transform: translateX(-50%);
    background: rgba(0,0,0,1);
    color: var(--text-light);
    padding: 6px 10px;
    font-size: 16px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
}
.tooltip:hover::after {
    opacity: 1;
}

.slider-controls {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.slider-btn {
    width: 56px;
    height: 56px;
    border: 1px solid var(--primary);
    background: rgba(12, 171, 220, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: var(--text-light);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
}

.slider-btn img {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.slider-btn:hover {
    background: var(--primary);
}

.slider-btn:disabled {
    opacity: 0.35;
    cursor: default;
}


.contact-section {
    position: relative;
    padding: 120px 0;
    background: 
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/assets/img/contact-bg.png') center/cover no-repeat;
    overflow: hidden;
    background-attachment: fixed;
}

.contact-window {
    position: absolute;
    top: 80px;
    left: 0;
    width: 420px;
    height: 580px;
    border: 1px solid rgba(245,250,252,1);
    box-sizing: border-box;
    overflow: hidden;
}

.contact-window::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/assets/img/contact-bg-window.png') center/cover no-repeat;
    filter: none;
}

.contact-bg {
    width: 480px;
    height: 640px;
    background: url('/assets/img/contact-bg-window.png') center/cover no-repeat;
    border: 1px solid rgba(245,250,252,1);
    z-index: 1;
    flex-shrink: 0;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 20px;
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.section-title {
    font-size: 40px;
    color: var(--text-white);
    margin-bottom: 14px;
}

.contact-text {
    color: var(--text-white);
    opacity: 1;
    font-size: 18px;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}
.form-container {
    width: 720px;
    margin-left: auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 20px;
    font-size: 18px;
    color: var(--text-white);
    background: rgba(245,250,252,0.4);
    border: 1px solid rgba(245,250,252,1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    outline: none;
    transition: 0.25s;
    font-weight: 400;
    font-family: Poppins, sans-serif;
    font-size: 18px;
}

/*.contact-form input:focus,*/
/*.contact-form textarea:focus {*/
/*    border-color: var(--primary);*/
/*}*/

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-submit {
    width: 200px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.8);
    opacity: 1;
    font-weight: 400;
    font-family: Poppins, sans-serif;
    font-size: 18px;
}
.footer { 
    background: var(--dark-1); 
    padding: 20px 40px; 
    font-weight: 400; 
    font-family: Poppins, sans-serif; 
    font-size: 16px; 
} 

.footer-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    color: var(--text-light); 
} 
    
.footer-left { 
    font-size: 16px; 
    letter-spacing: 0.3px; 
} 

.footer-right { 
    display: flex; 
    gap: 32px; 
} 
    
.footer-right a { 
    color: var(--text-light); 
    text-decoration: none; 
    font-size: 16px; 
    transition: 0.25s ease; 
} 

.footer-right a:hover { 
    color: var(--primary); 
} 

.footer-center { 
    display: flex; 
    gap: 20px; 
} 

.footer-icon img { 
    width: 24px; 
    opacity: 0.8; 
    transition: 0.25s ease; 
} 

.footer-icon:hover img { 
    opacity: 1; 
} 

.footer-email { 
    color: var(--text-light); 
    margin-left: 110px; 
    text-decoration: none; 
    font-size: 16px; 
    transition: 0.25s; 
} 

.footer-email:hover { 
    color: var(--primary); 
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        font-size: 14px;
    }
    
    .footer-left {
        font-size: 14px;
    }
    
    .footer-right a {
        font-size: 14px;
    }
    
    .footer-icon img { 
        width: 18px; 
    } 

    .footer-email {
        margin-left: 0;
        font-size: 14px;
    }

    .footer-center {
        justify-content: center;
        font-size: 14px;
    }
}

.legal-section {
    padding: 120px 20px;
    background: var(--dark-2);
    font-weight: 400;
    font-family: Poppins, sans-serif;
    font-size: 18px;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    /*background: var(--dark-1);*/
    backdrop-filter: blur(8px);
}

.legal-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    color: var(--text-white)!important;
}

.legal-content {
    color: var(--text-white);
    opacity: 1;
    line-height: 1.7;
    font-size: 18px;
}
/* ===========================
   MOBILE ADAPTATION
   =========================== */

/* ========== 768px ========== */
@media (max-width: 768px) {

    /* Projects layout */
    .projects {
        padding-bottom: 20px;
    }
    
    .projects-container {
        flex-direction: column;
        padding: 0 20px;
        gap: 30px;
    }

    .projects-title {
        margin-bottom: 10px;
    }
    
    .header--mini .header-inner {
        justify-content: center;
    }
    
    .header-inner {
        justify-content: center;
    }

    .slider-wrapper {
        max-width: 100%;
        padding-bottom: 60px;
    }

    .slider {
        gap: 20px;
    }
    .slider-controls {
        display: none;
    }

    .project-card {
        flex: 0 0 80%;
        max-width: 60%;
    }

    /* Contact form: remove left window */
    .contact-container {
        flex-direction: column;
        padding: 80px 20px;
        gap: 40px;
    }

    .contact-bg,
    .contact-window {
        display: none !important;
    }
    
    .contact-section {
        padding: 0;
    }

    .form-container {
        width: 100%;
        margin: 0;
    }
}

/* ========== 480px ========== */
@media (max-width: 480px) {

    .title-h2 {
        font-size: 32px;
        line-height: 1.2;
    }

    /* Slider */
    .project-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .header--mini .header-inner {
        justify-content: center;
    }
    
    .header-inner {
        justify-content: center;
    }

    .projects {
        padding-bottom: 20px;
    }
    
    .project-info h3 {
        font-size: 22px;
    }

    .project-info p {
        font-size: 16px;
    }
    .slider-controls {
        display: none;
    }

    /* Contact form */
    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
        padding: 12px 16px;
    }
    
     .contact-section {
        padding: 0;
    }

    .contact-submit {
        width: 100%;
        font-size: 16px;
        padding: 14px 0;
    }
}

/* ========== 320px (very small screens) ========== */
@media (max-width: 320px) {

    .title-h2 {
        font-size: 26px;
    }
    
    .header--mini .header-inner {
        justify-content: center;
    }
    
    .header-inner {
        justify-content: center;
    }

    .slider {
        gap: 14px;
    }
    .slider-controls {
        display: none;
    }
    
    .projects {
        padding-bottom: 20px;
    }
    
    .project-card {
        flex: 0 0 100%;
    }

    .project-info h3 {
        font-size: 20px;
    }

    .project-info p {
        font-size: 15px;
        line-height: 1.4;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
    }
    
     .contact-section {
        padding: 0;
    }

    .contact-submit {
        font-size: 14px;
    }
}

