/*
================================================
HOLOSTREAM THEME
================================================
*/

/* --- Root Variables & Base Styles --- */
:root {
    --cyan: #00F9FF;
    --purple: #A259FF;
    --black: #0B0B0B;
    --dark-grey: #1a1a1a;
    --light-grey: #888;
    --white: #f0f0f0;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Share Tech Mono', monospace;
    --header-height: 80px;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    color: var(--white);
    line-height: 1.2;
    font-weight: 400;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Global Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 100px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--cyan);
    color: var(--black);
    border-color: var(--cyan);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--white);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-grey);
    max-width: 600px;
    margin: 0 auto;
}


/* --- Custom Cursor --- */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-outline {
    opacity: 1;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--cyan);
    transition: transform 0.08s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--cyan);
    transition: width 0.2s, height 0.2s, border-color 0.2s, transform 0.2s;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    border-color: var(--purple);
    transform: translate(-50%, -50%) scale(1.2);
}


/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-logo img {
    max-width: 100px;
    animation: pulse 2s infinite ease-in-out;
}

.preloader-glitch-text {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    margin-top: 2rem;
    color: var(--white);
    letter-spacing: 0.2em;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* --- Glitch Effect --- */
.glitch-effect,
.glitch-btn-text {
    position: relative;
    display: inline-block;
}

.glitch-effect::before,
.glitch-effect::after,
.glitch-btn-text::before,
.glitch-btn-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    overflow: hidden;
    color: var(--white);
}

.section-header .glitch-effect::before,
.section-header .glitch-effect::after {
    background: transparent;
}


.glitch-effect::before,
.glitch-btn-text::before {
    left: 2px;
    text-shadow: -1px 0 var(--purple);
    animation: glitch 3s infinite linear alternate-reverse;
}

.glitch-effect::after,
.glitch-btn-text::after {
    left: -2px;
    text-shadow: -1px 0 var(--cyan);
    animation: glitch 2s infinite linear alternate-reverse;
}

@keyframes glitch {
    0% {
        clip-path: inset(85% 0 1% 0);
    }

    5% {
        clip-path: inset(45% 0 35% 0);
    }

    10% {
        clip-path: inset(15% 0 75% 0);
    }

    15% {
        clip-path: inset(65% 0 25% 0);
    }

    20% {
        clip-path: inset(30% 0 50% 0);
    }

    25% {
        clip-path: inset(90% 0 5% 0);
    }

    30% {
        clip-path: inset(10% 0 88% 0);
    }

    35% {
        clip-path: inset(70% 0 15% 0);
    }

    40% {
        clip-path: inset(40% 0 45% 0);
    }

    45% {
        clip-path: inset(80% 0 10% 0);
    }

    50% {
        clip-path: inset(20% 0 70% 0);
    }

    55% {
        clip-path: inset(55% 0 30% 0);
    }

    60% {
        clip-path: inset(95% 0 2% 0);
    }

    65% {
        clip-path: inset(25% 0 60% 0);
    }

    70% {
        clip-path: inset(75% 0 12% 0);
    }

    75% {
        clip-path: inset(5% 0 92% 0);
    }

    80% {
        clip-path: inset(60% 0 20% 0);
    }

    85% {
        clip-path: inset(35% 0 58% 0);
    }

    90% {
        clip-path: inset(88% 0 8% 0);
    }

    95% {
        clip-path: inset(18% 0 78% 0);
    }

    100% {
        clip-path: inset(68% 0 28% 0);
    }
}

.glitch-btn:hover .glitch-btn-text::before,
.glitch-btn:hover .glitch-btn-text::after {
    animation: none;
    clip-path: none;
}

.glitch-btn-text::before,
.glitch-btn-text::after {
    color: var(--black);
}

.btn-primary:hover .glitch-btn-text::before,
.btn-primary:hover .glitch-btn-text::after {
    color: var(--cyan);
}


/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    background-color: rgba(11, 11, 11, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: top 0.3s ease, background-color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
    background-color: rgba(11, 11, 11, 0.9);
}

.header.hidden {
    top: -100px;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    max-height: 40px;
    transition: transform var(--transition-fast);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    font-family: var(--font-secondary);
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cyan);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--cyan);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle,
.nav-close {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    background: radial-gradient(ellipse at bottom, rgba(162, 89, 255, 0.1), transparent 60%),
        radial-gradient(ellipse at top right, rgba(0, 249, 255, 0.1), transparent 70%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--light-grey);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    perspective: 1000px;
}

.scene {
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 20s infinite linear;
}

.face {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid var(--cyan);
    box-shadow: inset 0 0 20px rgba(0, 249, 255, 0.3);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-family: var(--font-secondary);
}

.face i {
    font-size: 3rem;
    color: var(--cyan);
}

.face.front {
    transform: rotateY(0deg) translateZ(150px);
}

.face.back {
    transform: rotateY(180deg) translateZ(150px);
}

.face.right {
    transform: rotateY(90deg) translateZ(150px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(150px);
}

.face.top {
    transform: rotateX(90deg) translateZ(150px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(150px);
}

@keyframes rotate-cube {
    from {
        transform: rotateX(0) rotateY(0);
    }

    to {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background-color: var(--white);
    border-radius: 2px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--dark-grey);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0, 249, 255, 0.1), transparent 40%);
    transition: opacity 0.5s;
    opacity: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 249, 255, 0.2);
    border-color: var(--cyan);
}

.service-card-inner {
    transform: translateZ(20px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--cyan);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.service-description {
    color: var(--light-grey);
    margin-bottom: 1.5rem;
    min-height: 100px;
}

.service-link {
    color: var(--cyan);
    font-family: var(--font-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* --- Process Section --- */
.process-section {
    background-color: var(--dark-grey);
    position: relative;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--purple), var(--cyan));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 1;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--black);
    border: 4px solid var(--purple);
    top: 20px;
    border-radius: 50%;
    z-index: 2;
    transition: background-color var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--cyan);
    border-color: var(--cyan);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: var(--black);
    padding: 20px 30px;
    border-radius: 6px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-step {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--cyan);
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--light-grey);
}

/* --- Industries Section --- */
.industries-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.industry-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all var(--transition-slow);
}

.industry-item:hover {
    border-color: rgba(162, 89, 255, 0.5);
    background: radial-gradient(circle, rgba(162, 89, 255, 0.1), transparent 70%);
    transform: translateY(-5px);
}

.industry-item i {
    font-size: 3rem;
    color: var(--purple);
    margin-bottom: 1.5rem;
    display: block;
}

.industry-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.industry-item p {
    color: var(--light-grey);
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--dark-grey);
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slider {
    display: flex;
    overflow: hidden;
}

.testimonial-slide {
    min-width: 100%;
    transition: transform 0.5s ease-in-out;
    padding: 0 40px;
}

.testimonial-content {
    background-color: var(--black);
    padding: 2.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-content::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 2rem;
    color: var(--purple);
    opacity: 0.3;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--light-grey);
}

.testimonial-author {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    font-size: 1.1rem;
    font-family: var(--font-primary);
    font-weight: 600;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--light-grey);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.prev-btn,
.next-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: none;
    transition: all var(--transition-fast);
}

.prev-btn:hover,
.next-btn:hover {
    border-color: var(--cyan);
    background-color: var(--cyan);
    color: var(--black);
}

/* --- Calculator Section --- */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--dark-grey);
    padding: 4rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-content .section-title {
    font-size: 2rem;
}

.calculator-form .form-group {
    margin-bottom: 1.5rem;
}

.calculator-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-grey);
    font-size: 0.9rem;
}

.calculator-form input {
    width: 100%;
    background: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 12px;
    color: var(--white);
    font-size: 1rem;
}

.calculator-results {
    margin-top: 2rem;
    text-align: center;
    background: var(--black);
    padding: 1.5rem;
    border-radius: 6px;
}

.calculator-results p {
    color: var(--light-grey);
}

.calculator-results h3 {
    color: var(--cyan);
    font-size: 2.5rem;
    font-family: var(--font-secondary);
}

/* --- CTA Section --- */
.cta-section {
    padding: 60px 0;
}

.cta-wrapper {
    background: linear-gradient(90deg, var(--purple) 0%, var(--cyan) 100%);
    padding: 4rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-title {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.cta-text {
    color: var(--dark-grey);
    font-size: 1.1rem;
}

.cta-action .btn {
    background-color: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.cta-action .btn:hover {
    background-color: transparent;
    color: var(--black);
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-grey);
    padding: 80px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-column .logo img {
    max-height: 40px;
    margin-bottom: 1.5rem;
}

.footer-about-text {
    color: var(--light-grey);
    margin-bottom: 1.5rem;
    max-width: 350px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    background-color: var(--cyan);
    color: var(--black);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-family: var(--font-secondary);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a,
.footer-contact ul li a {
    color: var(--light-grey);
    transition: color var(--transition-fast);
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover {
    color: var(--cyan);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-contact ul li i {
    color: var(--cyan);
    width: 20px;
    text-align: center;
}

.footer-contact ul li span {
    color: var(--light-grey);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--light-grey);
}

.footer-bottom ul {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom ul li a {
    color: var(--light-grey);
    font-size: 0.9rem;
}

.footer-bottom ul li a:hover {
    color: var(--white);
}

/* --- Page Header (for subpages) --- */
.page-header-section {
    padding: 160px 0 80px;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(162, 89, 255, 0.1), transparent 70%);
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-header-section p {
    font-size: 1.1rem;
    color: var(--light-grey);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Legal & Contact Pages --- */
.legal-page .page-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-page h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-page p {
    color: var(--light-grey);
    margin-bottom: 1rem;
}

.legal-page p strong {
    color: var(--white);
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info-block p {
    color: var(--light-grey);
    margin-bottom: 2rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-detail-item .icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 249, 255, 0.1);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.contact-detail-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-detail-item p,
.contact-detail-item p a {
    color: var(--light-grey);
}

.contact-detail-item p a:hover {
    color: var(--cyan);
}

.contact-form-wrapper {
    background: var(--dark-grey);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 0;
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-bottom-color: var(--cyan);
}

.contact-form label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--light-grey);
    transition: all var(--transition-fast);
    pointer-events: none;
}

.contact-form input:focus+label,
.contact-form textarea:focus+label,
.contact-form input:valid+label,
.contact-form textarea:valid+label {
    top: -15px;
    font-size: 0.8rem;
    color: var(--cyan);
}

.contact-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.contact-form select option {
    background: var(--black);
}

.contact-form .form-group {
    position: relative;
}

.contact-form .form-group::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 10px;
    pointer-events: none;
    color: var(--light-grey);
}

.contact-form .form-group:has(select:focus)::after {
    color: var(--cyan);
}

.contact-form .form-group:has(input)::after,
.contact-form .form-group:has(textarea)::after {
    content: none;
}

.contact-form select+label.select-label {
    top: -15px;
    font-size: 0.8rem;
    color: var(--light-grey);
}

.contact-form select:focus+label.select-label,
.contact-form select:valid+label.select-label {
    color: var(--cyan);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.popup-content {
    background: var(--dark-grey);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-fast);
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--light-grey);
    font-size: 1.5rem;
    cursor: none;
}

.popup-icon {
    font-size: 4rem;
    color: var(--cyan);
    margin-bottom: 1rem;
}

.popup-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.popup-content p {
    color: var(--light-grey);
    margin-bottom: 2rem;
}

.popup-close-btn {
    width: 100%;
}


/* --- Responsive Styles --- */

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--black);
        z-index: 1001;
        transition: right var(--transition-slow);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
    }

    .nav.show-menu {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 2rem;
        right: 2rem;
        font-size: 2rem;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--white);
        background: transparent;
        border: none;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--white);
        transition: all 0.3s ease-in-out;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: 3rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .process-timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
        padding-left: 80px;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 11px;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .calculator-content {
        text-align: center;
    }

    .cta-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about-text {
        margin: 0 auto 1.5rem;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 80px 0;
    }

    .hero-section {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .scene {
        width: 200px;
        height: 200px;
    }

    .cube {
        animation-duration: 15s;
    }

    .face {
        width: 200px;
        height: 200px;
    }

    .face i {
        font-size: 2rem;
    }

    .face span {
        font-size: 1rem;
    }

    .face.front {
        transform: rotateY(0deg) translateZ(100px);
    }

    .face.back {
        transform: rotateY(180deg) translateZ(100px);
    }

    .face.right {
        transform: rotateY(90deg) translateZ(100px);
    }

    .face.left {
        transform: rotateY(-90deg) translateZ(100px);
    }

    .face.top {
        transform: rotateX(90deg) translateZ(100px);
    }

    .face.bottom {
        transform: rotateX(-90deg) translateZ(100px);
    }

    .section-title,
    .page-title {
        font-size: 2rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    body {
        cursor: auto;
    }

    a,
    button {
        cursor: pointer;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .header .btn {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .calculator-wrapper {
        padding: 2rem;
    }

    .cta-wrapper {
        padding: 2rem;
    }

    .footer-bottom ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
}