/*
================================================
NEURAL SINGULARITY THEME
================================================
*/

/* 1. VARIABLES & ROOT
------------------------------------------------ */
:root {
    --color-background: #0a0514;
    --color-surface: #100a26;
    --color-primary: #0abcf9;
    --color-secondary: #d600ff;
    --color-text: #e0e0e0;
    --color-text-muted: #a0a0c0;
    --color-border: rgba(49, 38, 89, 0.5);
    --color-glow: rgba(10, 188, 249, 0.2);
    --color-success: #00f5c3;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --container-width: 1200px;
}

/* 2. BASE & RESET
------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: #fff;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. LAYOUT & HELPERS
------------------------------------------------ */
.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.subtitle {
    display: block;
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* 4. PRELOADER
------------------------------------------------ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader .loader-logo img {
    width: 80px;
    animation: pulse 1.5s infinite ease-in-out;
}

.neural-loader {
    display: flex;
    margin-top: 2rem;
}

.neural-loader .dot {
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    margin: 0 5px;
    animation: bounce 1.4s infinite ease-in-out both;
    box-shadow: 0 0 10px var(--color-primary);
}

.neural-loader .dot:nth-child(2) {
    animation-delay: -0.16s;
}

.neural-loader .dot:nth-child(3) {
    animation-delay: -0.32s;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}


/* 5. HEADER & NAVIGATION
------------------------------------------------ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.header.scrolled {
    background-color: rgba(10, 5, 20, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    height: 40px;
    transition: transform var(--transition-speed) ease;
}

.nav-logo:hover img {
    transform: rotate(15deg);
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-secondary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}


/* 6. BUTTONS
------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    overflow: hidden;
    position: relative;
}

.btn span {
    z-index: 2;
}

.btn i {
    z-index: 2;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    box-shadow: 0 5px 20px rgba(13, 185, 246, 0.3), 0 5px 20px rgba(214, 0, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(13, 185, 246, 0.4), 0 8px 25px rgba(214, 0, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
    box-shadow: 0 5px 20px var(--color-glow);
}

/* 7. HERO SECTION
------------------------------------------------ */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle, rgba(16, 10, 38, 0.9) 0%, var(--color-background) 70%);
}

.particle-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10"><circle cx="1" cy="1" r="1" fill="%231a123a"/></svg>');
    animation: moveParticles 60s linear infinite;
    z-index: -1;
}

@keyframes moveParticles {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 1000px 500px;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.neural-sphere-container {
    position: relative;
    width: 500px;
    height: 500px;
    perspective: 1000px;
}

.neural-sphere {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotateSphere 40s linear infinite;
}

.neural-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--color-primary);
}

.core-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--color-secondary) 0%, rgba(214, 0, 255, 0) 70%);
    border-radius: 50%;
    animation: corePulse 4s infinite ease-in-out;
}

@keyframes rotateSphere {
    from {
        transform: rotateY(0deg) rotateX(10deg);
    }

    to {
        transform: rotateY(360deg) rotateX(10deg);
    }
}

@keyframes corePulse {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.scroll-down-indicator .mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--color-text-muted);
    border-radius: 20px;
    position: relative;
    margin-bottom: 5px;
}

.scroll-down-indicator .wheel {
    width: 4px;
    height: 8px;
    background: var(--color-text-muted);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}


/* 8. SERVICES SECTION
------------------------------------------------ */
.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card-flip {
    background-color: transparent;
    perspective: 1500px;
    height: 350px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card-flip:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 40px rgba(10, 5, 20, 0.5);
    transition: box-shadow var(--transition-speed);
}

.service-card-flip:hover .card-front {
    box-shadow: 0 0 60px var(--color-glow);
}


.card-front .card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    text-shadow: 0 0 15px var(--color-primary);
}

.card-front h3 {
    margin-bottom: 1rem;
}

.card-front .flip-indicator {
    position: absolute;
    bottom: 20px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.card-front .flip-indicator i {
    margin-left: 5px;
    transition: transform var(--transition-speed);
}

.service-card-flip:hover .flip-indicator i {
    transform: rotate(360deg);
}


.card-back {
    transform: rotateY(180deg);
    justify-content: flex-start;
    padding-top: 3rem;
}

.card-back h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.card-back p {
    font-size: 0.9rem;
}


/* 9. ABOUT SECTION
------------------------------------------------ */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.stats-counter {
    display: flex;
    gap: 2rem;
    margin: 2.5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem 0;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-primary);
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.about-visual {
    position: relative;
}

.data-flow-animation svg {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.line-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 4s ease-out forwards;
}

.animation-delay-2 {
    animation-delay: 0.5s;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.node {
    fill: var(--color-secondary);
    stroke: var(--color-background);
    stroke-width: 3px;
    animation: pulseNode 3s infinite ease-in-out;
}

.node:nth-child(2) {
    animation-delay: 0.5s;
}

.node:nth-child(3) {
    animation-delay: 1s;
}

.node:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes pulseNode {

    0%,
    100% {
        r: 6;
        opacity: 0.7;
    }

    50% {
        r: 9;
        opacity: 1;
    }
}

.data-pulse {
    fill: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}


/* 10. PROCESS SECTION
------------------------------------------------ */
.process-section {
    background-color: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.process-timeline {
    position: relative;
    margin-top: 5rem;
    display: flex;
    justify-content: space-between;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-border);
    transform: translateY(-50%);
    z-index: 1;
}

.process-timeline::after {
    /* Animated line */
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: translateY(-50%);
    z-index: 2;
    animation: expandLine 2s ease-out forwards;
    animation-timeline: view();
}

@keyframes expandLine {
    to {
        width: 100%;
    }
}

.timeline-item {
    width: 23%;
    position: relative;
    z-index: 3;
}

.timeline-item::before {
    /* Connection dot */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--color-surface);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-speed);
}

.timeline-item:hover::before {
    background: var(--color-primary);
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 15px var(--color-primary);
}

.timeline-content {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    transition: all var(--transition-speed);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-top: -80px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-top: 80px;
}

.timeline-step {
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
}

.timeline-content h3 {
    margin-bottom: 1rem;
    color: #fff;
}


/* 11. TESTIMONIALS SECTION
------------------------------------------------ */
.testimonial-slider-wrapper {
    position: relative;
    margin-top: 4rem;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    flex: 0 0 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.1;
}

.testimonial-card p {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.author-info h4 {
    color: #fff;
    margin-bottom: 0.2rem;
}

.author-info span {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-border);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed);
    pointer-events: all;
}

.slider-controls button:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}


/* 12. CTA SECTION
------------------------------------------------ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
}

.cta-container {
    text-align: center;
}

.cta-container h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-container p {
    color: #fff;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-container .btn {
    background: #fff;
    color: var(--color-background);
}

.cta-container .btn:hover {
    background: var(--color-surface);
    color: #fff;
}


/* 13. FOOTER
------------------------------------------------ */
.footer {
    background-color: var(--color-surface);
    padding: 80px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding-bottom: 40px;
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 40px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-secondary);
}

.footer-about p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-muted);
    transition: all var(--transition-speed);
}

.footer-social a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--color-text-muted);
    transition: all var(--transition-speed);
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.footer-contact ul li i {
    color: var(--color-primary);
    margin-top: 5px;
}

.footer-contact ul li a {
    color: var(--color-text-muted);
}

.footer-contact ul li a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-legal a {
    color: var(--color-text-muted);
    margin: 0 10px;
}

.footer-legal a:hover {
    color: #fff;
}

/* 14. MISC COMPONENTS
------------------------------------------------ */
/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--color-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Live Chat Widget */
.live-chat-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 30px var(--color-glow);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
}

/* 15. PAGE SPECIFIC STYLES
------------------------------------------------ */
/* Page Header (for subpages) */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
    background-color: var(--color-surface);
    position: relative;
    overflow: hidden;
}

.page-header .particle-background {
    opacity: 0.5;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--color-text);
}

/* Legal Pages */
.legal-content .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.legal-content h2 {
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
    color: var(--color-primary);
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.contact-info-block h3 {
    margin-bottom: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-background);
    border-radius: 50%;
}

.info-text h4 {
    margin-bottom: 0.2rem;
}

.info-text p,
.info-text a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.contact-form h3 {
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-primary);
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-glow);
}

.contact-form button {
    margin-top: 1.5rem;
    width: 100%;
}

/* Success Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
}

.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: all var(--transition-speed);
    width: 90%;
    max-width: 450px;
}

.popup.show .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.popup-icon {
    font-size: 4rem;
    color: var(--color-success);
    margin-bottom: 1.5rem;
}

.popup-content h3 {
    margin-bottom: 1rem;
}


/* 16. ANIMATIONS
------------------------------------------------ */
/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Up */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 17. RESPONSIVENESS
------------------------------------------------ */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    /* Hide complex 3D on tablets for performance */

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-visual {
        order: -1;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / 3;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section-padding {
        padding: 80px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--color-surface);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 1.5rem 0;
        display: block;
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--color-background);
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .header-actions .btn {
        display: none;
    }

    /* Hide button in header on mobile */

    .process-timeline {
        flex-direction: column;
        gap: 2rem;
    }

    .process-timeline::before,
    .process-timeline::after {
        left: 10px;
        top: 0;
        width: 2px;
        height: 100%;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        padding-left: 40px;
    }

    .timeline-item::before {
        left: 10px;
        top: 20px;
        transform: translateY(-50%);
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-top: 0;
    }

    .slider-controls {
        display: none;
    }

    /* Simpler interaction for mobile */
    .testimonial-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .testimonial-card {
        scroll-snap-align: center;
    }

    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 0;
    }

    .form-row .form-group {
        margin-bottom: 1.5rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-about {
        grid-column: auto;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}