/* ==================== GLOBAL STYLES ==================== */

/* --- Fonts --- */
/* font-family: 'Inter', sans-serif; */
/* font-family: 'Poppins', sans-serif; */

/* --- Colors --- */
:root {
    --bg-color: #121828;
    --text-color: #F0F8FF; /* AliceBlue */
    --accent-color: #00FFFF; /* Aqua */
    --accent-hover-color: #00E0E0;
    --secondary-bg-color: #1B2235;
    --border-color: rgba(240, 248, 255, 0.1);
}

/* --- Base & Resets --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ==================== HEADER ==================== */
.header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(18, 24, 40, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

.header__logo {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.header__logo:hover {
    color: var(--text-color); /* Logo hover shouldn't change color */
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header__nav-link {
    font-size: 16px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__nav-link--button {
    border: 1px solid var(--accent-color);
    padding: 8px 16px;
    border-radius: 5px;
    color: var(--accent-color);
    transition: background-color 0.3s, color 0.3s;
}

.header__nav-link--button:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.header__nav-link--button::after {
    display: none; /* No underline for button */
}

.header__burger {
    display: none;
    color: var(--text-color);
}

/* Header responsiveness */
@media (max-width: 768px) {
    .header__nav {
        display: none; /* Will be handled by JS later */
    }
    .header__burger {
        display: block;
    }
}


/* ==================== FOOTER ==================== */
.footer {
    padding: 60px 0 20px;
    background-color: var(--secondary-bg-color);
    border-top: 1px solid var(--border-color);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer__logo {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.footer__logo:hover {
    color: var(--text-color);
}

.footer__tagline {
    font-size: 14px;
    opacity: 0.7;
    max-width: 200px;
}

.footer__title {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer__list li {
    margin-bottom: 10px;
}

.footer__link {
    font-size: 14px;
    opacity: 0.8;
}

.footer__list--contacts .footer__link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__icon {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    opacity: 0.6;
}

/* Footer responsiveness */
@media (max-width: 992px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__tagline {
        margin: 0 auto;
    }
    .footer__title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer__list--contacts .footer__link {
        justify-content: center;
    }
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for fixed header */
    overflow: hidden;
}

.hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 700px;
}

.hero__title {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero__subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 550px;
}

.hero__cta-button {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--bg-color);
    background-color: var(--accent-color);
    padding: 14px 32px;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero__cta-button:hover {
    background-color: var(--accent-hover-color);
    transform: translateY(-3px);
    color: var(--bg-color);
}

/* Hero responsiveness */
@media (max-width: 768px) {
    .hero {
        text-align: center;
        min-height: 80vh;
        padding-top: 100px;
    }
    .hero__title {
        font-size: 36px;
    }
    .hero__subtitle {
        font-size: 16px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==================== SHARED SECTION STYLES ==================== */
.section {
    padding: 80px 0;
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__eyebrow {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section__title {
    font-size: 36px;
    line-height: 1.3;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== HOW IT WORKS SECTION ==================== */
.works {
    background-color: var(--secondary-bg-color);
}

.works__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.works__card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.works__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.1);
}

.works__card-icon {
    margin-bottom: 20px;
}

.works__card-icon i {
    width: 48px;
    height: 48px;
    color: var(--accent-color);
}

.works__card-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.works__card-description {
    font-size: 15px;
    opacity: 0.8;
}

/* Works section responsiveness */
@media (max-width: 992px) {
    .works__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    .section__title {
        font-size: 28px;
    }
}

/* ==================== TECH TODAY SECTION ==================== */
.tech {
    padding-bottom: 100px;
}

.tech__tabs-header {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tech__tab-button {
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s, color 0.3s;
}

.tech__tab-button:hover {
    background-color: var(--secondary-bg-color);
}

.tech__tab-button--active {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.tech__tab-button--active:hover {
    background-color: var(--accent-hover-color);
    color: var(--bg-color);
}

.tech__tabs-content {
    position: relative;
}

.tech__tab-panel {
    display: none; /* Hidden by default */
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    animation: fadeIn 0.5s ease-in-out;
}

.tech__tab-panel--active {
    display: grid; /* Shown when active */
}

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

.tech__panel-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 8px;
}

.tech__panel-text h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.tech__panel-text p {
    margin-bottom: 25px;
    opacity: 0.9;
}

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

.tech__panel-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.tech__panel-list i {
    color: var(--accent-color);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.tech__panel-cta {
    display: inline-block;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.tech__panel-cta:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* Tech section responsiveness */
@media (max-width: 992px) {
    .tech__tab-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .tech__panel-image {
        margin-bottom: 30px;
    }
    .tech__panel-image img {
        margin: 0 auto;
    }
    .tech__panel-list {
        display: inline-block;
        text-align: left;
    }
}

/* ==================== FUTURE VIEW SECTION ==================== */
.future {
    background-color: var(--secondary-bg-color);
}

.future__timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* The vertical line */
.future__timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.future__item {
    position: relative;
    width: 50%;
    padding: 10px 40px;
    margin-bottom: 40px;
}

.future__item:nth-child(odd) {
    left: 0;
}

.future__item:nth-child(even) {
    left: 50%;
}

.future__dot {
    content: '';
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 3px solid var(--secondary-bg-color);
    z-index: 1;
}

.future__item:nth-child(odd) .future__dot {
    right: -8px;
}

.future__item:nth-child(even) .future__dot {
    left: -8px;
}

.future__content {
    background-color: var(--bg-color);
    padding: 20px 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.future__period {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.future__prediction {
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
}

.future__description {
    font-size: 15px;
    opacity: 0.8;
}

/* Future section responsiveness */
@media (max-width: 768px) {
    .future__timeline::before {
        left: 8px; /* Move line to the left */
        transform: translateX(0);
    }

    .future__item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }

    .future__item:nth-child(even) {
        left: 0;
    }

    .future__dot {
        top: 25px;
    }
    
    .future__item:nth-child(odd) .future__dot,
    .future__item:nth-child(even) .future__dot {
        left: 0;
    }
}

/* ==================== CASES SECTION ==================== */
.cases__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cases__card {
    display: block;
    background-color: var(--secondary-bg-color);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cases__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--text-color); /* prevent link color change */
}

.cases__card-image {
    overflow: hidden;
    height: 200px;
}

.cases__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cases__card:hover .cases__card-image img {
    transform: scale(1.05);
}

.cases__card-content {
    padding: 25px;
}

.cases__card-category {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.cases__card-title {
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
    margin-bottom: 20px;
}

.cases__card-tag {
    display: inline-block;
    font-size: 12px;
    background-color: var(--bg-color);
    padding: 4px 10px;
    border-radius: 4px;
    opacity: 0.8;
}

/* Cases section responsiveness */
@media (max-width: 992px) {
    .cases__grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    background-color: var(--secondary-bg-color);
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.contact__info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.contact__info p {
    margin-bottom: 30px;
    opacity: 0.8;
}

.contact__info-list {
    list-style: none;
}

.contact__info-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact__info-list i {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--accent-color);
    margin-top: 2px;
}

/* Form Styles */
.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.form__input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form__input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.2);
}

.form__group--captcha {
    max-width: 250px;
}

/* Custom Checkbox */
.form__group--checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}
.form__group--checkbox label {
    font-size: 13px;
    opacity: 0.8;
}
.form__group--checkbox a {
    color: var(--accent-color);
    text-decoration: underline;
}
.form__group--checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.form__group--checkbox input[type="checkbox"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
.form__group--checkbox input[type="checkbox"]:checked::after {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-color);
    font-size: 14px;
}


.form__button {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--accent-color);
    color: var(--bg-color);
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.form__button:hover {
    background-color: var(--accent-hover-color);
}
.form__button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Message */
.form-message {
    display: none; /* Hidden by default */
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
    grid-column: 2 / 3; /* Position in the form column */
}
.form-message--success {
    background-color: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--text-color);
}
.form-message--error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid red;
    color: var(--text-color);
}


/* Contact section responsiveness */
@media (max-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr;
    }
    .form-message {
        grid-column: 1 / 2;
    }
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background-color: var(--secondary-bg-color);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: none; /* Hidden by default, shown by JS */
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 200;
    animation: slideUp 0.5s ease-out;
}

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

.cookie-popup__text {
    font-size: 14px;
    opacity: 0.9;
}

.cookie-popup__text a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-popup__button {
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
}
.cookie-popup__button:hover {
    background-color: var(--accent-hover-color);
}

@media (max-width: 500px) {
    .cookie-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
        justify-content: center;
        text-align: center;
    }
}


/* ==================== POLICY PAGES STYLES ==================== */
.pages .container {
    max-width: 800px;
    padding-top: 120px; /* Offset for header */
    padding-bottom: 80px;
}

.pages h1 {
    font-size: 42px;
    margin-bottom: 30px;
    line-height: 1.2;
}

.pages h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.pages p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.9;
}

.pages ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.pages li {
    margin-bottom: 10px;
}

.pages a {
    color: var(--accent-color);
    text-decoration: underline;
}

.pages a:hover {
    text-decoration: none;
}

.pages strong {
    font-weight: 600;
}