/* ===========================
   THEME VARIABLES & ROOT STYLES
   =========================== */
   :root {
    --transition-speed-fast: 0.2s;
    --transition-speed-med: 0.4s;
    --transition-speed-slow: 0.6s;
    --key-border-radius: 8px;
}

.light-theme {
    --bg-color: #e0e5ec;
    --light-shadow: #ffffff;
    --dark-shadow: #a3b1c6;
    --text-color: #555;
    --headline-color: #1c1c1c;
    --accent-color: #6366f1;
    --accent-light-shadow: #818cf8;
    --accent-dark-shadow: #4f46e5;
    --black-color: #2c2c2c;
    --black-light-shadow: #3b3b3b;
    --black-dark-shadow: #1d1d1d;
    --hero-gradient: linear-gradient(145deg, #f0f2f5, #d9dde4);
    --footer-shadow-inset: inset 8px 8px 16px var(--dark-shadow), inset -8px -8px 16px var(--light-shadow);
}

.dark-theme {
    --bg-color: #2c3038;
    --light-shadow: #373c46;
    --dark-shadow: #21252a;
    --text-color: #b0b8c4;
    --headline-color: #ffffff;
    --accent-color: #818cf8;
    --accent-light-shadow: #a0a8ff;
    --accent-dark-shadow: #6366f1;
    --black-color: #1c1c1c;
    --black-light-shadow: #2a2a2a;
    --black-dark-shadow: #0e0e0e;
    --hero-gradient: linear-gradient(145deg, #3a3f4a, #1e2126);
    --footer-shadow-inset: inset 4px 4px 8px var(--dark-shadow), inset -4px -4px 8px var(--light-shadow);
}

/* ===========================
   GLOBAL STYLES
   =========================== */
body {
    margin: 0;
    background: var(--hero-gradient);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    transition: background-color var(--transition-speed-med) ease, color var(--transition-speed-med) ease;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 9999;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--headline-color);
    outline-offset: 2px;
}

/* ===========================
   NAVIGATION BAR
   =========================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.navbar__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}

.navbar__menu {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: relative;
}

.navbar__links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.navbar__cta {
    position: absolute;
    right: 0;
}

.navbar__search-input {
    position: absolute;
    width: calc(100% - 60px);
    height: 35px;
    border: none;
    border-radius: 8px;
    background-color: rgba(224, 229, 236, 0.8);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    padding: 0 15px;
    color: #333;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s;
    line-height: normal;
    box-sizing: border-box;
    outline: none;
}

.navbar--search-mode .navbar__content {
    opacity: 0;
    visibility: hidden;
}

.navbar--search-mode .navbar__search-input {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}
.shake-animation {
    animation: shake 0.5s;
}

/* Search Results Highlighting */
.search-highlight {
    background-color: rgba(255, 235, 59, 0.5);
    padding: 2px 4px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.search-result-section {
    animation: highlightSection 1s ease-out;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    padding: 10px;
    margin: -10px;
}

@keyframes highlightSection {
    0% { background-color: rgba(99, 102, 241, 0.3); }
    100% { background-color: rgba(99, 102, 241, 0.1); }
}

.navbar__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--headline-color);
    text-decoration: none;
}

.navbar__links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar__links a:hover {
    color: var(--headline-color);
}

.navbar__cta {
    padding: 8px 20px;
    background-color: var(--headline-color);
    color: var(--bg-color);
    border-radius: var(--key-border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.navbar__cta:hover {
    background-color: var(--accent-color);
}

.navbar__cta:active {
    transform: scale(0.95);
}

.navbar__burger-menu {
    display: none;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1011;
    flex-direction: column;
    justify-content: space-around;
}

.navbar__burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--headline-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.navbar--open .navbar__burger-menu span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.navbar--open .navbar__burger-menu span:nth-child(2) {
    opacity: 0;
}
.navbar--open .navbar__burger-menu span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
}

@media (min-width: 993px) {
    .hero {
        padding-top: 140px;
    }
}

.hero__content {
    margin-bottom: 40px;
    transition: transform 0.1s ease-out;
    position: relative;
    z-index: 1;
}

.hero__headline {
    font-family: 'Inter', sans-serif;
    font-size: 17vw;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--headline-color);
    margin: 0 0 15px 0;
    text-shadow: -3px -3px 6px var(--light-shadow), 6px 6px 12px var(--dark-shadow);
    line-height: 0.9;
    transition: color var(--transition-speed-med) ease;
}

/* Flip letter animation */
.flip-letter-static,
.flip-letter {
    display: inline;
}

.flip-letter {
    display: inline-block;
    transform-style: preserve-3d;
    transform-origin: 50% 100%;
    position: relative;
    perspective: 1000px;
}

.hero__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* ===========================
   BUTTONS
   =========================== */
.cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.1s ease-in-out;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.cta-button--primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: -4px -4px 8px var(--light-shadow), 4px 4px 8px var(--dark-shadow);
}

.cta-button--primary:active {
    box-shadow: inset -2px -2px 5px var(--accent-light-shadow), inset 2px 2px 5px var(--accent-dark-shadow);
}

.cta-button--secondary {
    background-color: var(--bg-color);
    color: var(--text-color);
    box-shadow: -4px -4px 8px var(--light-shadow), 4px 4px 8px var(--dark-shadow);
}

.cta-button--secondary:active {
    box-shadow: inset -2px -2px 5px var(--light-shadow), inset 2px 2px 5px var(--dark-shadow);
}

.cta-button--large {
    padding: 40px 80px;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transition: all 0.5s ease-in-out;
}

.cta-button--large:hover {
    border-radius: 30% 70% 70% 30% / 30% 70% 30% 70%;
}

/* ===========================
   KEYBOARD
   =========================== */
.keyboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background-color: var(--bg-color);
    border-radius: 15px;
    box-shadow: 12px 12px 24px var(--dark-shadow), -12px -12px 24px var(--light-shadow);
    transition: transform 0.1s ease-out, background-color var(--transition-speed-med) ease, box-shadow var(--transition-speed-med) ease;
    position: relative;
    z-index: 1;
}

.keyboard__row {
    display: flex;
    gap: 8px;
}

.key {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.1s ease-in-out, background-color var(--transition-speed-med) ease, color var(--transition-speed-med) ease, box-shadow var(--transition-speed-med) ease;
    box-shadow: -4px -4px 8px var(--light-shadow), 4px 4px 8px var(--dark-shadow);
}

.key:active, .key.pressed {
    box-shadow: inset -2px -2px 5px var(--light-shadow), inset 2px 2px 5px var(--dark-shadow);
    font-size: 12px;
}

.key--orange {
    background-color: var(--accent-color);
    color: white;
    box-shadow: -4px -4px 8px var(--light-shadow), 4px 4px 8px var(--dark-shadow);
}

.key--orange:active, .key--orange.pressed {
    box-shadow: inset -2px -2px 5px var(--accent-light-shadow), inset 2px 2px 5px var(--accent-dark-shadow);
}

.key--black {
    background-color: var(--black-color);
    color: #d1d1d1;
    box-shadow: -4px -4px 8px var(--light-shadow), 4px 4px 8px var(--dark-shadow);
}

.key--black:active, .key--black.pressed {
    box-shadow: inset -2px -2px 5px var(--black-light-shadow), inset 2px 2px 5px var(--black-dark-shadow);
}

.key--wide { width: calc(45px * 1.6); }
.key--wider { width: calc(45px * 2); }
.key--widest { width: calc(45px * 2.5); }
.key--spacebar { width: 257px; }

.key--word {
    font-size: 11px;
    text-transform: uppercase;
}

.key--word:active, .key--word.pressed {
    font-size: 10px;
}

.key--double {
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    padding: 4px 7px;
    font-size: 14px;
}

.key--double span {
    font-size: 11px;
    font-weight: normal;
}

.key .icon {
    width: 24px;
    height: 24px;
}

.dark-theme .sun-icon { display: block; }
.dark-theme .moon-icon { display: none; }
.light-theme .sun-icon { display: none; }
.light-theme .moon-icon { display: block; }

/* ===========================
   SERVICES SECTION
   =========================== */
.services-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-item:not(.service-item--right) {
    align-items: flex-start;
}

.service-item h3 {
    font-size: 4rem;
    color: var(--headline-color);
    margin: 0 0 15px 0;
    font-weight: 700;
}

.service-item p {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    max-width: 700px;
}

.service-item--right {
    text-align: right;
    align-items: flex-end;
}

.service-item--right p {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

/* ===========================
   LATEST PROJECTS SECTION
   =========================== */
.projects-section {
    padding: 100px 20px;
}

.projects-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.projects-title {
    font-size: 4rem;
    color: var(--headline-color);
    margin: 0;
    font-weight: 700;
    text-align: center;
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(0,0,0,0.1);
}

.projects-container::-webkit-scrollbar {
    height: 6px;
}

.projects-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
}

.projects-container::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.project-card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.project-video {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.project-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-link {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dark-theme .project-link {
    background: rgba(50, 50, 50, 0.95);
    color: var(--accent-color);
}

.project-link svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .projects-header {
        text-align: center;
    }

    .projects-title {
        font-size: 2.8rem;
    }

    .project-video {
        height: 400px;
    }

    .project-link {
        width: 48px;
        height: 48px;
        top: 16px;
        right: 16px;
    }

    .project-link svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .projects-title {
        font-size: 2.2rem;
    }

    .project-video {
        height: 300px;
    }

    .project-link {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
    }

    .project-link svg {
        width: 20px;
        height: 20px;
    }
}

/* ===========================
   PRODUCTS ZOOM SECTION
   =========================== */
.products-zoom-section {
    min-height: 300vh;
    position: relative;
    padding-top: 100px;
}

.products-zoom-title {
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
    text-align: center;
    z-index: 2;
    pointer-events: none;
    will-change: transform, opacity;
}

.products-zoom-title h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--headline-color);
    margin: 0;
    transform-origin: 51% 52%; /* Zoom slightly lower into the whitespace of 'O' in Products */
    will-change: transform, opacity;
    /* Improve text rendering during massive zoom */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Prevent pixelation during extreme scaling */
    image-rendering: -webkit-optimize-contrast;
}

.products-zoom-content {
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
    margin: 0 auto;
    z-index: 1;
    pointer-events: none;
}

.product-zoom-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    transform: scale(0.1);
    opacity: 0;
    pointer-events: auto;
    will-change: transform, opacity;
}

.product-zoom-card h3 {
    font-size: 3rem;
    color: var(--headline-color);
    margin: 0 0 20px 0;
    font-weight: 700;
}

.product-zoom-card p {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.8;
    margin: 0 0 30px 0;
}

@media (max-width: 768px) {
    .products-zoom-title h1 {
        font-size: 3rem;
    }

    .product-zoom-card h3 {
        font-size: 2rem;
    }

    .product-zoom-card p {
        font-size: 1rem;
    }
}

/* ===========================
   PRICING SECTION
   =========================== */
.pricing-section {
    padding: 100px 0 100px;
    overflow: hidden;
}

.pricing-section-header {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.pricing-section-header.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-section__title {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--headline-color);
    margin: 0 auto 25px auto;
    position: relative;
    max-width: 450px;
    height: 11rem;
}

.pricing-section__title span {
    position: absolute;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

#pricing-title-plans {
    opacity: 0;
    transform: translateX(-100%);
    top: 0;
    left: 0;
}

#pricing-title-pricing {
    opacity: 0;
    transform: translateX(100%);
    top: 5rem;
    right: 0;
}

.pricing-section__title--light {
    color: var(--text-color);
}

.currency-selector {
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 5px;
    box-shadow: inset -2px -2px 5px var(--light-shadow), inset 2px 2px 5px var(--dark-shadow);
}

.currency-button {
    padding: 8px 15px;
    font-weight: 500;
    color: var(--text-color);
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.currency-button.active {
    color: var(--accent-color);
    background-color: var(--bg-color);
    box-shadow: -2px -2px 5px var(--light-shadow), 2px 2px 5px var(--dark-shadow);
}

.package-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.package-selector__button {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: -4px -4px 8px var(--light-shadow), 4px 4px 8px var(--dark-shadow);
}

.package-selector__button:hover {
    color: var(--headline-color);
}

.package-selector__button.active {
    box-shadow: inset -2px -2px 5px var(--light-shadow), inset 2px 2px 5px var(--dark-shadow);
    color: var(--accent-color);
}

.package-details-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.package-details-container.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.package-detail {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.package-detail.active {
    display: block;
    opacity: 1;
}

.pricing-card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 8px 8px 16px var(--dark-shadow), -8px -8px 16px var(--light-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color var(--transition-speed-med) ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 24px var(--dark-shadow), -12px -12px 24px var(--light-shadow);
}

.pricing-card h3 {
    font-size: 1.7rem;
    color: var(--headline-color);
    margin: 0 0 10px 0;
}

.pricing-card__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0 0 15px 0;
}

.pricing-card__price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.pricing-card__value-indicator {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    margin: -10px 0 15px 0;
    opacity: 0.8;
}

.pricing-card__value-indicator .value-amount {
    font-weight: 600;
    color: var(--accent-color);
    opacity: 1;
}

.pricing-card__perfect-for {
    font-style: italic;
    color: var(--text-color);
    margin: 0 0 25px 0;
    font-size: 0.95rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
    flex-grow: 1;
}

.pricing-card ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    position: relative;
    padding-right: 25px;
}

.pricing-card ul li .info-icon {
    position: absolute;
    right: 0;
    top: 6px;
}

.pricing-card ul li.category {
    font-weight: 700;
    color: var(--headline-color);
    margin-top: 15px;
    margin-bottom: 8px;
    list-style-type: none;
    padding-right: 0;
}

.pricing-card ul li.category:first-child {
    margin-top: 0;
}

.pricing-card ul li:not(.category) {
    padding-left: 20px;
}

.pricing-card ul li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-right: 12px;
    margin-top: 4px;
    color: var(--accent-color);
}

/* ===========================
   HORIZONTAL SCROLL SECTION
   =========================== */
.horizontal-scroll-wrapper {
    position: relative;
    height: 400vh;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-x: hidden;
}

.horizontal-track {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.scroll-section {
    display: flex;
    align-items: center;
}

.scroll-section__title-container {
    flex-shrink: 0;
    width: 45vw;
    padding: 0 40px;
    box-sizing: border-box;
}

.scroll-section__title {
    font-size: 8vw;
    font-weight: 700;
    line-height: 1.1;
    color: var(--headline-color);
    text-align: left;
    margin: 0;
}

.scroll-section__content {
    display: flex;
    padding: 20px;
    gap: 30px;
}

.scroll-section__content .pricing-card {
    flex: 0 0 320px;
    width: 320px;
}

/* ===========================
   PERSONALISE BUTTON
   =========================== */
.personalise-button-container {
    text-align: center;
    padding: 100px 20px;
}

/* ===========================
   POPUP MODAL
   =========================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-modal {
    width: 90%;
    max-width: 800px;
    height: 85vh;
    max-height: 700px;
    background: var(--bg-color-translucent, rgba(224, 229, 236, 0.7));
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease, background-color var(--transition-speed-med) ease;
}

.dark-theme .popup-modal {
    --bg-color-translucent: rgba(44, 48, 56, 0.7);
}

.popup-overlay.active .popup-modal {
    transform: scale(1);
}

.popup-header {
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.popup-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--headline-color);
}

.popup-close-btn {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.popup-footer {
    margin-top: auto;
    padding: 15px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 15px;
}

.popup-price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.popup-actions {
    display: flex;
    gap: 15px;
}

.popup-total {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--headline-color);
}

.popup-total span {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-color);
}

.popup-wizard-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 25px 15px;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.wizard-step {
    display: none;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    min-height: 0;
}

.wizard-step.active {
    display: flex;
}

.wizard-step h3 {
    margin: 0 0 15px 0;
    color: var(--headline-color);
    text-align: center;
    flex-shrink: 0;
    padding: 0 10px;
}

.wizard-progress-bar {
    display: flex;
    justify-content: space-between;
    margin: 0 10px 25px 10px;
    position: relative;
}

.progress-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--bg-color);
    box-shadow: inset -2px -2px 5px var(--light-shadow), inset 2px 2px 5px var(--dark-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.progress-step.active {
    background-color: var(--accent-color);
    color: white;
    box-shadow: -2px -2px 5px var(--accent-light-shadow), 2px 2px 5px var(--accent-dark-shadow);
}

.progress-line {
    position: absolute;
    height: 4px;
    background-color: var(--bg-color);
    box-shadow: inset -1px -1px 2px var(--light-shadow), inset 1px 1px 2px var(--dark-shadow);
    top: 50%;
    left: 15px;
    right: 15px;
    transform: translateY(-50%);
    z-index: 1;
}

.base-packages, .feature-list, .summary-list, .ecommerce-selection, .ongoing-services, .additional-features {
    overflow-y: auto !important;
    overflow-x: hidden;
    flex-grow: 1;
    flex-shrink: 1;
    padding: 5px 10px;
    position: relative;
    max-height: 100%;
    min-height: 0;
}

/* Custom scrollbar for better visibility */
.base-packages::-webkit-scrollbar,
.feature-list::-webkit-scrollbar,
.summary-list::-webkit-scrollbar,
.ecommerce-selection::-webkit-scrollbar,
.ongoing-services::-webkit-scrollbar,
.additional-features::-webkit-scrollbar {
    width: 8px;
}

.base-packages::-webkit-scrollbar-track,
.feature-list::-webkit-scrollbar-track,
.summary-list::-webkit-scrollbar-track,
.ecommerce-selection::-webkit-scrollbar-track,
.ongoing-services::-webkit-scrollbar-track,
.additional-features::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.base-packages::-webkit-scrollbar-thumb,
.feature-list::-webkit-scrollbar-thumb,
.summary-list::-webkit-scrollbar-thumb,
.ecommerce-selection::-webkit-scrollbar-thumb,
.ongoing-services::-webkit-scrollbar-thumb,
.additional-features::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.base-packages::-webkit-scrollbar-thumb:hover,
.feature-list::-webkit-scrollbar-thumb:hover,
.summary-list::-webkit-scrollbar-thumb:hover,
.ecommerce-selection::-webkit-scrollbar-thumb:hover,
.ongoing-services::-webkit-scrollbar-thumb:hover,
.additional-features::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color-hover);
}

.feature-group-header {
    color: var(--headline-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-left: 5px;
    opacity: 0.8;
}

.feature-group-header:first-child {
    margin-top: 0;
}

.package-card {
    padding: 18px;
    margin-bottom: 15px;
    border-radius: 10px;
    background-color: var(--bg-color);
    box-shadow: -4px -4px 8px var(--light-shadow), 4px 4px 8px var(--dark-shadow);
    cursor: pointer;
    transition: all var(--transition-speed-fast) ease;
    border: 2px solid transparent;
}

.package-card:hover {
    transform: translateY(-3px);
    box-shadow: -6px -6px 12px var(--light-shadow), 6px 6px 12px var(--dark-shadow);
}

.package-card.selected {
    box-shadow: inset -2px -2px 5px var(--light-shadow), inset 2px 2px 5px var(--dark-shadow);
    border-color: var(--accent-color);
}

.package-card h4 {
    margin: 0 0 5px 0;
    color: var(--headline-color);
}

.package-card .pkg-desc {
    margin: 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.package-card .pkg-price {
    margin: 10px 0 0 0;
    color: var(--headline-color);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

.summary-list p {
    text-align: center;
    color: var(--text-color);
}

.feature-item, .summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: var(--bg-color);
    box-shadow: -3px -3px 6px var(--light-shadow), 3px 3px 6px var(--dark-shadow);
}

.feature-item label {
    display: flex;
    align-items: center;
    flex-grow: 1;
    cursor: pointer;
    margin-right: 15px;
}

.feature-item input[type="checkbox"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.feature-item .feature-name, .summary-item .feature-name {
    flex-grow: 1;
    color: var(--text-color);
}

.feature-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.feature-price {
    font-weight: 500;
    color: var(--headline-color);
}

.info-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--text-color);
    color: var(--bg-color);
    font-size: 12px;
    font-weight: bold;
    font-style: italic;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.info-icon-placeholder {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.email-prompt-container {
    padding: 15px 10px 0 10px;
    margin-top: auto;
}

.email-prompt-container label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
}

.email-prompt-container input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: var(--bg-color);
    box-shadow: inset -2px -2px 5px var(--light-shadow), inset 2px 2px 5px var(--dark-shadow);
    color: var(--headline-color);
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    text-align: center;
}

.email-prompt-container input:focus {
    outline: none;
    box-shadow: inset -2px -2px 5px var(--light-shadow), inset 2px 2px 5px var(--dark-shadow), 0 0 0 2px var(--accent-color);
}

#popup-status {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 1.2em;
}

#popup-status.success { color: #065f46; }
.dark-theme #popup-status.success { color: #6ee7b7; }
#popup-status.error { color: #991b1b; }
.dark-theme #popup-status.error { color: #fca5a5; }

/* ===========================
   CONTACT SECTION
   =========================== */
.contact-section {
    padding: 100px 20px;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-section__title {
    font-size: 4rem;
    color: var(--headline-color);
    margin-bottom: 15px;
}

.contact-section__subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 40px;
    border-radius: 20px;
    background-color: var(--bg-color);
    box-shadow: 12px 12px 24px var(--dark-shadow), -12px -12px 24px var(--light-shadow);
    text-align: left;
}

#form-status {
    margin-top: 20px;
    padding: 10px;
    border-radius: 8px;
    display: none;
    font-weight: 500;
}

#form-status.success {
    background-color: #d1fae5;
    color: #065f46;
    display: block;
}

#form-status.error {
    background-color: #fee2e2;
    color: #991b1b;
    display: block;
}

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

.form-group:last-child {
    align-items: center;
}

.form-group label {
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: var(--bg-color);
    box-shadow: inset -3px -3px 7px var(--light-shadow), inset 3px 3px 7px var(--dark-shadow);
    color: var(--headline-color);
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: box-shadow var(--transition-speed-fast) ease, background-color var(--transition-speed-med) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: inset -2px -2px 5px var(--light-shadow), inset 2px 2px 5px var(--dark-shadow), 0 0 0 2px var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    padding: 60px 20px;
    box-shadow: var(--footer-shadow-inset);
    transition: box-shadow var(--transition-speed-med) ease, background-color var(--transition-speed-med) ease;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer__column {
    color: var(--text-color);
}

.footer__logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--headline-color);
    margin: 0 0 15px 0;
}

.footer__description {
    line-height: 1.6;
    margin: 0;
}

.footer__heading {
    font-size: 1.2rem;
    color: var(--headline-color);
    margin: 0 0 20px 0;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

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

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

.footer__socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    color: var(--text-color);
    border-radius: 50%;
    background-color: var(--bg-color);
    box-shadow: -4px -4px 8px var(--light-shadow), 4px 4px 8px var(--dark-shadow);
    transition: all 0.2s ease-in-out;
}

.social-icon:hover {
    color: var(--accent-color);
}

.social-icon:active {
    box-shadow: inset -2px -2px 5px var(--light-shadow), inset 2px 2px 5px var(--dark-shadow);
}

/* ===========================
   THEME TOGGLE & BACK TO TOP
   =========================== */
.theme-toggle-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    color: var(--text-color);
    box-shadow: -4px -4px 8px var(--light-shadow), 4px 4px 8px var(--dark-shadow);
    transition: all var(--transition-speed-fast) ease;
}

.theme-toggle-button:hover {
    color: var(--accent-color);
}

.theme-toggle-button:active {
    transform: scale(0.95);
    box-shadow: inset -2px -2px 5px var(--light-shadow), inset 2px 2px 5px var(--dark-shadow);
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed-med) ease, visibility var(--transition-speed-med) ease, transform var(--transition-speed-med) ease;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===========================
   TOOLTIP
   =========================== */
.info-tooltip {
    position: fixed;
    z-index: 9999;
    width: 280px;
    padding: 12px 15px;
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: 8px;
    box-shadow: 8px 8px 16px var(--dark-shadow), -8px -8px 16px var(--light-shadow);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

.info-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1200px) {
    .keyboard {
        transform: scale(0.9);
    }
}

@media (max-width: 992px) {
    .hero__headline {
        font-size: 17vw;
    }
    .service-item h3, .contact-section__title {
        font-size: 3rem;
    }
    .pricing-section__title {
        font-size: 4.5rem;
        height: 9rem;
    }
    .projects-title {
        font-size: 3rem;
    }
    #pricing-title-pricing {
        top: 4rem;
    }
    .pricing-card {
        padding: 30px 25px;
    }
    .keyboard {
        transform: scale(0.75);
    }
    .horizontal-scroll-wrapper {
        height: auto; 
    }
    .sticky-container {
        position: relative;
        height: auto;
        overflow-x: auto;
        padding: 60px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .sticky-container::-webkit-scrollbar {
        display: none;
    }
    .sticky-container::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 60px;
        background: linear-gradient(to left, var(--bg-color), transparent);
        pointer-events: none;
        transition: opacity 0.3s ease-in-out;
    }
    .sticky-container.scrolled-to-end::after {
        opacity: 0;
    }
    .horizontal-track {
        flex-direction: row; 
        width: 1800px;
        height: auto;
        transform: none !important;
        padding-left: 20px;
    }
    .scroll-section {
        flex-direction: column;
        align-items: flex-start;
        width: auto;
    }
    .scroll-section__title-container {
        width: 100%;
        margin-bottom: 20px;
        padding-right: 20px;
    }
    .scroll-section__title {
        font-size: 10vw;
        text-align: left;
    }
    .scroll-section__content {
        width: auto; 
        overflow-x: visible;
    }
}

@media (max-width: 768px) {
    .hero__headline {
        font-size: 15vw;
    }
    .navbar {
        width: calc(100% - 40px);
        padding: 12px 20px;
    }
    .navbar__burger-menu {
        display: flex;
        position: relative;
        z-index: 1011;
    }
    .navbar__menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        max-width: 280px;
        height: 100vh;
        background-color: var(--bg-color);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 0;
        padding: 40px 20px;
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        transition: transform 0.4s ease-in-out, visibility 0.4s, opacity 0.4s;
        z-index: 1010;
    }
    .navbar--open .navbar__menu {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }
    .navbar__links {
        flex-direction: column;
        text-align: center;
        gap: 0;
        padding: 0;
        margin-bottom: 20px;
        order: 1;
    }
    .navbar__links li {
        padding: 15px 0;
    }
    .navbar__links a {
        font-size: 1.3rem;
        font-weight: 600;
    }
    .navbar__cta {
        position: static !important;
        display: block;
        font-size: 1.1rem;
        padding: 15px 30px;
        margin: 0 auto;
        text-align: center;
        width: fit-content;
        order: 2;
    }
    .keyboard {
        transform: scale(0.6);
        margin-top: -30px;
    }
    .cta-button--large {
        padding: 25px 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .hero__headline {
        font-size: 13vw;
    }
    .keyboard {
        transform: scale(0.5);
        margin-top: -60px;
    }
    .service-item h3, .contact-section__title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero__headline {
        font-size: 12vw;
    }
    .keyboard {
        transform: scale(0.4);
        margin-top: -90px;
    }
}