/*
================================================
Retro Space Arcade Theme
================================================
*/

/* --- VARIABLES & SETUP --- */
:root {
    --color-background: #010409;
    --color-background-secondary: #0d1117;
    --color-border: #30363d;
    --color-primary: #58a6ff;
    --color-secondary: #f778ba;
    --color-text: #c9d1d9;
    --color-text-muted: #8b949e;
    --color-white: #ffffff;
    --color-success: #3fb950;
    --font-heading: 'Bungee', cursive;
    --font-body: 'Roboto Mono', monospace;
    --header-height: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-white);
    line-height: 1.2;
    font-weight: 400;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
    text-shadow: 0 0 5px var(--color-secondary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- BACKGROUND & DECORATIVE ELEMENTS --- */
.starfield-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

@function random_range($min, $max) {
    $rand: random();
    $random_range: $min + floor($rand * (($max - $min) + 1));
    @return $random_range;
}

.stars {
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow: 1391px 1999px #FFF, 1729px 1270px #FFF, 795px 1433px #FFF, 47px 1106px #FFF, 936px 82px #FFF, 1506px 147px #FFF, 1478px 843px #FFF, 116px 1419px #FFF, 1690px 1812px #FFF, 1122px 1746px #FFF, 1845px 1239px #FFF, 1500px 1782px #FFF, 1374px 351px #FFF, 1421px 1894px #FFF, 555px 1302px #FFF, 888px 1935px #FFF, 58px 1236px #FFF, 1755px 556px #FFF, 1226px 85px #FFF, 876px 105px #FFF, 1184px 175px #FFF, 831px 22px #FFF, 75px 1869px #FFF, 655px 827px #FFF, 1788px 30px #FFF, 1024px 307px #FFF, 147px 621px #FFF, 1928px 1045px #FFF, 508px 137px #FFF, 134px 1700px #FFF, 521px 1007px #FFF, 199px 1395px #FFF, 1354px 1799px #FFF, 706px 1693px #FFF, 1865px 653px #FFF, 525px 717px #FFF, 629px 1215px #FFF, 1740px 1974px #FFF, 1335px 432px #FFF, 1128px 1361px #FFF, 1383px 1416px #FFF, 1580px 1943px #FFF, 915px 1283px #FFF, 1416px 1818px #FFF, 1041px 163px #FFF, 1641px 1059px #FFF, 1146px 1198px #FFF, 659px 1032px #FFF;
    animation: animStar 50s linear infinite;
}

.stars2 {
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: 1841px 1664px #FFF, 1982px 153px #FFF, 1011px 48px #FFF, 246px 1762px #FFF, 1303px 1782px #FFF, 1318px 1493px #FFF, 1492px 788px #FFF, 290px 486px #FFF, 814px 1050px #FFF, 581px 1007px #FFF, 579px 1842px #FFF, 167px 803px #FFF, 1152px 643px #FFF, 1141px 87px #FFF, 353px 166px #FFF, 1122px 1195px #FFF, 1692px 1445px #FFF, 1639px 572px #FFF, 729px 1461px #FFF, 1288px 1341px #FFF, 1799px 1473px #FFF, 619px 1918px #FFF, 143px 1629px #FFF, 893px 1034px #FFF, 1022px 1478px #FFF, 862px 1269px #FFF, 1261px 812px #FFF, 1744px 198px #FFF, 1780px 1083px #FFF, 1058px 1787px #FFF, 1876px 1280px #FFF, 1238px 1902px #FFF, 1838px 1561px #FFF, 1675px 1238px #FFF, 1205px 1856px #FFF, 32px 1380px #FFF, 650px 1750px #FFF, 764px 356px #FFF, 1332px 1655px #FFF, 520px 453px #FFF, 1233px 933px #FFF, 580px 647px #FFF, 44px 104px #FFF, 516px 1374px #FFF, 1155px 134px #FFF, 134px 1851px #FFF;
    animation: animStar 100s linear infinite;
}

.stars3 {
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow: 260px 1032px #FFF, 110px 1000px #FFF, 86px 807px #FFF, 1801px 1116px #FFF, 1032px 1297px #FFF, 1172px 147px #FFF, 1017px 22px #FFF, 1020px 153px #FFF, 990px 1121px #FFF, 1358px 895px #FFF, 908px 108px #FFF, 24px 849px #FFF, 142px 1335px #FFF, 1109px 1196px #FFF, 26px 1569px #FFF, 1141px 714px #FFF, 1459px 111px #FFF, 1133px 1545px #FFF, 1202px 1008px #FFF, 856px 1416px #FFF, 1438px 363px #FFF, 1981px 1599px #FFF, 101px 1162px #FFF, 1128px 461px #FFF, 1106px 1684px #FFF, 705px 1470px #FFF, 963px 699px #FFF, 1572px 1318px #FFF, 951px 379px #FFF, 1497px 1919px #FFF, 1720px 1898px #FFF, 1319px 1005px #FFF, 1883px 174px #FFF, 1137px 728px #FFF, 1930px 1095px #FFF, 521px 878px #FFF, 1957px 1585px #FFF, 1515px 122px #FFF, 114px 1530px #FFF, 1290px 1269px #FFF;
    animation: animStar 150s linear infinite;
}

@keyframes animStar {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-2000px);
    }
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.3),
            rgba(0, 0, 0, 0.3) 1px,
            transparent 1px,
            transparent 3px);
    pointer-events: none;
    z-index: 1;
    animation: scan 10s linear infinite;
}

@keyframes scan {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 50px;
    }
}

.wireframe-ship {
    width: 50px;
    height: 50px;
    position: absolute;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2358a6ff' stroke-width='1'%3E%3Cpath d='M12 2L2 22h20L12 2zm0 0v7M2 22l10-8 10 8'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 5px var(--color-primary));
}

.ship-1 {
    offset-path: path("M-100,150 Q200,50 500,200 T900,100 T1540,250");
    animation: fly 15s linear infinite;
}

.ship-2 {
    offset-path: path("M1540,700 Q1200,850 900,650 T500,750 T-100,600");
    animation: fly 20s linear infinite 3s;
    transform: rotate(180deg);
}

@keyframes fly {
    100% {
        offset-distance: 100%;
    }
}


/* --- UTILITIES (GLITCH, ANIMATIONS) --- */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-background);
    overflow: hidden;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--color-secondary);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--color-primary), 2px 2px var(--color-secondary);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(10% 0 80% 0);
    }

    20% {
        clip-path: inset(50% 0 10% 0);
    }

    40% {
        clip-path: inset(25% 0 60% 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
    }

    80% {
        clip-path: inset(40% 0 45% 0);
    }

    100% {
        clip-path: inset(70% 0 20% 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(75% 0 15% 0);
    }

    20% {
        clip-path: inset(10% 0 85% 0);
    }

    40% {
        clip-path: inset(55% 0 20% 0);
    }

    60% {
        clip-path: inset(5% 0 90% 0);
    }

    80% {
        clip-path: inset(60% 0 30% 0);
    }

    100% {
        clip-path: inset(30% 0 50% 0);
    }
}

.animate-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-in.is-visible {
    opacity: 1;
}

.animate-in[data-animation="fade-in-up"] {
    transform: translateY(50px);
}

.animate-in[data-animation="fade-in-right"] {
    transform: translateX(-50px);
}

.animate-in[data-animation="fade-in-left"] {
    transform: translateX(50px);
}

.animate-in.is-visible[data-animation="fade-in-up"],
.animate-in.is-visible[data-animation="fade-in-right"],
.animate-in.is-visible[data-animation="fade-in-left"] {
    transform: translate(0, 0);
}


/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    border: 2px solid;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

.btn-primary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
    box-shadow: 0 0 15px var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-background);
    box-shadow: 0 0 15px var(--color-secondary);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.2rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: rgba(1, 4, 9, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo img {
    height: 80px;
    filter: drop-shadow(0 0 5px var(--color-primary)) brightness(0) invert(1);
}

.nav-main ul {
    display: flex;
    gap: 2rem;
}

.nav-main a {
    color: var(--color-text);
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 700;
    position: relative;
    padding: 5px 0;
}

.nav-main a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.nav-main a:hover::after,
.nav-main a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-main a.active {
    color: var(--color-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-mobile {
    display: none;
    background-color: var(--color-background-secondary);
    padding: 2rem;
    border-top: 1px solid var(--color-border);
}

.nav-mobile ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.nav-mobile li {
    width: 100%;
    text-align: center;
}

.nav-mobile a {
    font-size: 1.2rem;
}

.nav-mobile a.btn {
    width: 100%;
    margin-top: 1rem;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--color-background-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--color-border);
    position: relative;
}

.footer-container {
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 40px;
}

.footer-column .logo img {
    height: 80px;
    margin-bottom: 1rem;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a,
.footer-contact a {
    color: var(--color-text-muted);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-secondary);
}

.footer-contact p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
    text-align: center;
    color: var(--color-text-muted);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-content {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--color-text-muted);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* --- SERVICES SECTION --- */
.services-section {
    background: rgba(13, 17, 23, 0.5);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: transparent;
    aspect-ratio: 1 / 1.2;
    perspective: 1000px;
    border: 1px solid var(--color-border);
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: var(--color-background-secondary);
}

.service-card-back {
    transform: rotateY(180deg);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 60px;
    height: 60px;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon svg {
    color: var(--color-secondary);
    filter: drop-shadow(0 0 10px var(--color-secondary));
}

.service-title {
    font-size: 1.5rem;
}

.service-card-back p {
    font-size: 0.9rem;
    margin-top: 1rem;
    color: var(--color-text-muted);
}

/* --- INDUSTRIES SECTION --- */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.industry-item {
    background: var(--color-background-secondary);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px var(--color-primary);
    border-color: var(--color-primary);
}

.industry-icon {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.industry-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.industry-item p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- ROI CALCULATOR SECTION --- */
.calculator-section {
    background: radial-gradient(circle, rgba(13, 17, 23, 0.8) 0%, var(--color-background) 70%);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    background: var(--color-background-secondary);
    border: 1px solid var(--color-border);
    padding: 3rem;
}

.calculator-info .section-title {
    font-size: 2rem;
}

.calculator-console {
    border: 1px solid var(--color-border);
    padding: 1.5rem;
}

.console-screen {
    background: #000;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    height: 150px;
    border: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

#console-output p {
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 2s steps(40, end);
    animation-fill-mode: forwards;
}

#console-output .line2 {
    animation-delay: 1s;
}

#console-output .line3 {
    animation-delay: 2s;
}

#console-output .line4 {
    animation-delay: 3s;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

.console-inputs .input-group {
    margin-bottom: 1rem;
}

.console-inputs label {
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.console-inputs select,
.console-inputs input[type="range"] {
    width: 100%;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.5rem;
    font-family: var(--font-body);
}

.console-inputs input[type="range"] {
    padding: 0;
}

#traffic-value {
    color: var(--color-secondary);
    font-weight: 700;
}


/* --- TESTIMONIALS --- */
.testimonials-section {
    background: rgba(13, 17, 23, 0.5);
    border-top: 1px solid var(--color-border);
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    border-left: 3px solid var(--color-primary);
    padding: 2rem;
    background: var(--color-background-secondary);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-border);
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    text-align: right;
}

.author-name {
    display: block;
    font-weight: 700;
    color: var(--color-white);
}

.author-title {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}


/* --- CTA SECTION --- */
.cta-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
    background: var(--color-background);
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.cta-text {
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--color-text-muted);
}

/* --- MOCK LIVE CHAT --- */
.live-chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1001;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-background);
    font-size: 2rem;
    font-family: var(--font-heading);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px var(--color-primary);
    transition: transform 0.3s ease;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

.chat-window {
    width: 350px;
    background: var(--color-background-secondary);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.chat-window.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1rem;
    margin: 0;
}

#chat-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1rem;
    flex-grow: 1;
    height: 300px;
    overflow-y: auto;
}

.message {
    margin-bottom: 1rem;
}

.message p {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    max-width: 80%;
    margin: 0;
}

.message.received p {
    background: var(--color-border);
    border-bottom-left-radius: 3px;
}

.message.sent {
    text-align: right;
}

.message.sent p {
    background: var(--color-primary);
    color: var(--color-background);
    border-bottom-right-radius: 3px;
}

.chat-footer {
    padding: 1rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 0.5rem;
}

.chat-footer input {
    flex-grow: 1;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    padding: 0.5rem;
    color: var(--color-text);
    border-radius: 5px;
}

.chat-footer button {
    background: var(--color-primary);
    border: none;
    color: var(--color-background);
    padding: 0 1rem;
    border-radius: 5px;
    cursor: pointer;
}

/* --- CONTACT PAGE --- */
.contact-page-section {
    background: var(--color-background-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--color-background);
    padding: 3rem;
    border: 1px solid var(--color-border);
}

.contact-heading {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-label {
    display: block;
    font-family: var(--font-heading);
    color: var(--color-secondary);
    margin-bottom: 0.25rem;
}

.contact-info a {
    font-size: 1.1rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--color-text);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--color-background-secondary);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}


/* --- POPUP --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 4, 9, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-background-secondary);
    padding: 3rem;
    border: 1px solid var(--color-border);
    text-align: center;
    position: relative;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.popup-icon {
    width: 80px;
    height: 80px;
    border: 3px solid var(--color-success);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--color-success);
    position: relative;
}

.popup-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

#popup-close-btn {
    margin-top: 1.5rem;
}

.pixel-explosion {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: explode 0.5s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}


/* --- LEGAL PAGES --- */
.page-header {
    padding: 120px 0;
    text-align: center;
    background: var(--color-background-secondary);
    position: relative;
    border-bottom: 1px solid var(--color-border);
}

.page-title {
    font-size: 3.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 1rem auto 0;
}

.legal-content {
    background: var(--color-background);
}

.legal-content .container {
    max-width: 800px;
    background: var(--color-background-secondary);
    padding: 3rem;
    border: 1px solid var(--color-border);
}

.legal-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--color-secondary);
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .testimonial-slider {
        grid-template-columns: 1fr;
    }

    .calculator-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-about .logo {
        justify-content: center;
    }
}


@media (max-width: 768px) {

    .nav-main,
    .header-actions .btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-mobile {
        display: none;
        /* Initially hidden */
    }

    body.nav-open .nav-mobile {
        display: block;
        /* Show when body has class */
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title,
    .page-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 80%;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .calculator-wrapper,
    .contact-wrapper,
    .legal-content .container {
        padding: 1.5rem;
    }
}