/* GLOBAL SETTINGS */
:root {
    --background-color: #121212;
    --surface-color: #1E1E1E;
    --primary-color: #BB86FC;
    --primary-variant-color: #3700B3;
    --text-color: #E0E0E0;
    --secondary-text-color: #757575;
    
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* HEADER */
.header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--surface-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

.header__logo {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.header__nav-list {
    display: none; /* Hidden on mobile */
}

.header__nav-link {
    color: var(--secondary-text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

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

.header__nav-link:hover::after, .header__nav-link:focus::after {
    width: 60%;
}

.header__nav-link:hover, .header__nav-link:focus {
    color: var(--text-color);
}

.header__nav-link--cta {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header__nav-link--cta:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}

.header__nav-link--cta::after {
    display: none;
}


.header__burger {
    display: block;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* FOOTER */
.footer {
    background-color: var(--surface-color);
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.footer__logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.footer__tagline {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    max-width: 250px;
}

.footer__title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    color: var(--secondary-text-color);
    font-size: 0.95rem;
}
.footer__link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer__list--contacts li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer__list--contacts i {
    color: var(--primary-color);
    font-size: 1rem;
}

.footer__text {
    color: var(--secondary-text-color);
    font-size: 0.95rem;
}

.footer__bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--secondary-text-color);
}

/* RESPONSIVE STYLES */

/* Tablet */
@media (min-width: 768px) {
    .header__burger {
        display: none;
    }

    .header__nav-list {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .footer__container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .footer__column--brand {
        grid-column: 1 / -1; /* Span full width */
        text-align: center;
        margin-bottom: 2rem;
    }
    .footer__tagline {
        margin: 0 auto;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .footer__container {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        text-align: left;
        gap: 3rem;
    }

    .footer__column--brand {
        grid-column: auto;
        text-align: left;
    }
}
/* GENERAL BUTTON STYLE */
.button {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    color: var(--background-color);
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(187, 134, 252, 0.2);
}

.button i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.button:hover i {
    transform: translateX(5px);
}

/* HERO SECTION (NEW) */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 0;
}

.hero__background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image:
        linear-gradient(to right, rgba(187, 134, 252, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(187, 134, 252, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: pan-grid 60s linear infinite;
}

@keyframes pan-grid {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 1200px 1200px;
    }
}

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

.hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-family: var(--font-secondary); /* Monospace font for code effect */
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    min-height: 1.2em; /* Reserve space to prevent layout shift */
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--secondary-text-color);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .hero {
        min-height: 100vh;
        text-align: left;
    }

    .hero__container {
        text-align: left;
    }
    
    .hero__content {
        margin: 0;
    }

    .hero__subtitle {
        margin: 0 0 2.5rem 0;
    }
}
/* MOBILE NAVIGATION STYLES */
@media (max-width: 767px) {
    .header__nav {
        position: fixed;
        top: 0;
        left: -100%; /* Start hidden */
        width: 80%;
        height: 100vh;
        background-color: var(--surface-color);
        box-shadow: 2px 0 10px rgba(0,0,0,0.5);
        transition: left 0.4s ease-in-out;
        z-index: 100;
        display: flex;
        flex-direction: column;
        padding: 6rem 2rem 2rem;
    }

    .header__nav--mobile-active {
        left: 0; /* Slide in */
    }

    .header__nav-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        width: 100%;
    }

    .header__nav-item {
        width: 100%;
    }

    .header__nav-link {
        font-size: 1.2rem;
    }

    .header__nav-link--cta {
        display: block;
        text-align: center;
        margin-top: 2rem;
    }
    
    .header__burger {
        z-index: 101; /* Keep burger above the slide-in menu */
    }
}
/* REUSABLE SECTION STYLES */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* DIRECTIONS SECTION */
.directions {
    padding: 6rem 0;
    background-color: var(--surface-color);
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(187, 134, 252, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.accordion__item {
    border-bottom: 1px solid rgba(187, 134, 252, 0.2);
}
.accordion__item:last-child {
    border-bottom: none;
}

.accordion__header {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    color: var(--text-color);
    font-size: 1.25rem;
    font-family: var(--font-primary);
    transition: background-color 0.3s ease;
}

.accordion__header:hover {
    background-color: rgba(187, 134, 252, 0.05);
}

.accordion__header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.accordion__icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.accordion__chevron {
    transition: transform 0.4s ease;
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background-color: var(--background-color);
}

.accordion__description {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--secondary-text-color);
    border-bottom: 1px solid rgba(187, 134, 252, 0.1);
}

.accordion__details {
    padding: 1.5rem;
}

.accordion__details-title {
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tech-list__item {
    background-color: rgba(187, 134, 252, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: var(--font-secondary);
}

.accordion__duration {
    display: inline-block;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
}

/* --- Active State --- */
.accordion__item.active .accordion__chevron {
    transform: rotate(180deg);
}

/* METHODOLOGY SECTION */
.methodology {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.methodology::before,
.methodology::after {
    content: '';
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    background-color: var(--primary-variant-color);
    filter: blur(150px);
    opacity: 0.15;
}

.methodology::before {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -150px;
}

.methodology::after {
    width: 300px;
    height: 300px;
    bottom: 5%;
    right: -100px;
}


.methodology__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.methodology__card {
    background: rgba(30, 30, 30, 0.5); /* Semi-transparent background */
    backdrop-filter: blur(15px); /* The "glass" effect */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.methodology__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(187, 134, 252, 0.3);
}

.methodology__card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    background-color: rgba(187, 134, 252, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.methodology__card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.methodology__card-text {
    color: var(--secondary-text-color);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .methodology__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* PROJECTS SECTION */
.projects {
    padding: 6rem 0;
    background-color: var(--surface-color);
}

.projects__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-card {
    background-color: var(--background-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card__image-wrapper {
    overflow: hidden;
    height: 250px; /* Fixed height for image container */
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, cropping if necessary */
    transition: transform 0.4s ease;
}

.project-card:hover .project-card__image {
    transform: scale(1.05);
}

.project-card__content {
    padding: 1.5rem;
}

.project-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-card__description {
    color: var(--secondary-text-color);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Make tech-list margin smaller inside cards */
.project-card .tech-list {
    margin-bottom: 0;
}


@media (min-width: 768px) {
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* PROCESS SECTION */
.process {
    padding: 6rem 0;
}

.process__timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* The connecting line for desktop */
.process__timeline::before {
    content: '';
    position: absolute;
    top: 40px; /* Aligns with the center of the icon wrapper */
    left: 12.5%; /* Start after half of the first item */
    width: 75%; /* Span across the middle two items */
    height: 2px;
    background-color: rgba(187, 134, 252, 0.2);
    z-index: 1;
}

.process__step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.process__icon-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background-color: var(--surface-color);
    border: 2px solid rgba(187, 134, 252, 0.2);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.process__step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: var(--background-color);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    line-height: 30px;
    text-align: center;
    border: 2px solid var(--background-color);
}

.process__step-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.process__step-description {
    color: var(--secondary-text-color);
    font-size: 0.95rem;
}

/* Responsive adjustments for mobile */
@media (max-width: 992px) {
    .process__timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    .process__timeline::before {
        display: none; /* Hide horizontal line */
    }
}

@media (max-width: 576px) {
    .process__timeline {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Vertical connecting line for mobile */
    .process__timeline::before {
        display: block;
        top: 40px;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: calc(100% - 80px); /* Full height minus top/bottom icon radius */
    }
}

/* CONTACT SECTION */
.contact {
    padding: 6rem 0;
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact__title,
.contact__subtitle {
    text-align: left;
    margin: 0;
}

.contact__subtitle {
    margin-top: 1rem;
}

.contact__form-container {
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(187, 134, 252, 0.2);
}

.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-group--checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--secondary-text-color);
}

.form-group--checkbox a {
    text-decoration: underline;
}

.contact__button {
    width: 100%;
}

.form-message {
    display: none; /* Hidden by default */
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    text-align: center;
}

#form-success-message {
    background-color: rgba(22, 163, 74, 0.2);
    color: #4ade80;
    border: 1px solid #4ade80;
}

#form-error-message {
    background-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid #f87171;
}

.form-message i {
    margin-right: 0.5rem;
}

@media (min-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* COOKIE POPUP */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--surface-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 2000;
    transform: translateY(0);
    transition: transform 0.5s ease-in-out;
}

.cookie-popup--hidden {
    transform: translateY(100%);
}

.cookie-popup__text {
    color: var(--secondary-text-color);
    text-align: center;
    font-size: 0.9rem;
}

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

.cookie-popup__button {
    padding: 0.5rem 1.5rem; /* Make button smaller */
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .cookie-popup {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.5rem 5%;
    }

    .cookie-popup__text {
        text-align: left;
    }
}

/* PAGES (privacy.html, etc.) */
.pages {
    padding: 4rem 0;
}

.pages .container {
    max-width: 800px; /* Limit width for better readability */
}

.pages h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
    line-height: 1.2;
}

.pages h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.pages p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--secondary-text-color);
    margin-bottom: 1.5rem;
}

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

.pages li {
    margin-bottom: 0.75rem;
    color: var(--secondary-text-color);
    line-height: 1.8;
}

.pages strong {
    color: var(--text-color);
    font-weight: 700;
}

.pages a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

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