/*
--- DATA DISCO THEME ---
Colors:
- Graphite: #0A0A0A
- Neon Magenta: #FF00C8
- Aqua: #00FFF7
- White: #FFFFFF
- Light Gray: #CCCCCC
- Darker Gray: #1a1a1a
- Glass Background: rgba(26, 26, 26, 0.5)
*/

/* --- 1. ROOT VARIABLES & RESET --- */
:root {
    --graphite: #0A0A0A;
    --neon-magenta: #FF00C8;
    --aqua: #00FFF7;
    --white: #FFFFFF;
    --light-gray: #CCCCCC;
    --darker-gray: #1a1a1a;
    --glass-bg: rgba(26, 26, 26, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);

    --font-primary: 'Poppins', sans-serif;
    --header-height: 80px;

    --shadow-aqua: 0 0 5px var(--aqua), 0 0 15px var(--aqua), 0 0 30px var(--aqua);
    --shadow-magenta: 0 0 5px var(--neon-magenta), 0 0 15px var(--neon-magenta), 0 0 30px var(--neon-magenta);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--graphite);
    color: var(--light-gray);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    color: var(--white);
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--aqua);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--neon-magenta);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- 2. HEADER & NAVIGATION --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease, top 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.9);
}

.header.hidden {
    top: -100px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-image: linear-gradient(90deg, var(--aqua), var(--neon-magenta));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- 3. BUTTONS & CTAs --- */
.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;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-primary {
    background-color: var(--neon-magenta);
    color: var(--white);
    border-color: var(--neon-magenta);
    box-shadow: 0 0 10px rgba(255, 0, 200, 0.5);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--neon-magenta);
    box-shadow: 0 0 20px rgba(255, 0, 200, 0.8);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--aqua);
    box-shadow: 0 0 10px rgba(0, 255, 247, 0.3);
}

.btn-secondary:hover {
    background-color: var(--aqua);
    color: var(--graphite);
    box-shadow: 0 0 20px rgba(0, 255, 247, 0.7);
}

/* --- 4. MOBILE NAVIGATION --- */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.35s ease-in-out;
}

.bar-top {
    top: 0;
}

.bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.bar-bottom {
    bottom: 0;
}

.mobile-toggle[aria-expanded="true"] .bar-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .bar-middle {
    opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .bar-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: var(--darker-gray);
    z-index: 999;
    padding-top: 120px;
    padding-left: 40px;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav li a {
    font-size: 1.2rem;
    color: var(--white);
    font-weight: 500;
}

.mobile-nav .btn {
    margin-top: 20px;
}

.body-no-scroll {
    overflow: hidden;
}

/* --- 5. HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-glow-1,
.hero-glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.3;
}

.hero-glow-1 {
    width: 50vw;
    height: 50vw;
    background: var(--neon-magenta);
    top: -10%;
    left: -10%;
    animation: pulseGlow1 10s infinite alternate;
}

.hero-glow-2 {
    width: 40vw;
    height: 40vw;
    background: var(--aqua);
    bottom: -15%;
    right: -15%;
    animation: pulseGlow2 12s infinite alternate;
}

@keyframes pulseGlow1 {
    from {
        transform: scale(0.8) translate(0, 0);
        opacity: 0.2;
    }

    to {
        transform: scale(1.2) translate(50px, 50px);
        opacity: 0.4;
    }
}

@keyframes pulseGlow2 {
    from {
        transform: scale(1.2) translate(0, 0);
        opacity: 0.4;
    }

    to {
        transform: scale(0.9) translate(-50px, -50px);
        opacity: 0.25;
    }
}


.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.hero-content h1 .highlight {
    background: linear-gradient(90deg, var(--aqua), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--light-gray);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* --- 6. GENERIC SECTION STYLING --- */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(0, 255, 247, 0.1);
    color: var(--aqua);
    border: 1px solid var(--aqua);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

/* --- 7. SERVICES SECTION --- */
.services-section {
    background-color: var(--darker-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            rgba(0, 255, 247, 0.3),
            transparent 30%);
    animation: rotate 6s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

@keyframes rotate {
    100% {
        transform: rotate(1turn);
    }
}


.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--aqua), var(--neon-magenta));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--graphite);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--white);
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.card-link {
    font-weight: 600;
    color: var(--aqua);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-link i {
    transition: transform 0.3s ease;
}

.card-link:hover i {
    transform: translateX(5px);
}

/* --- 8. ABOUT US / OUR PROCESS SECTION --- */
.about-section {
    overflow: hidden;
}

.about-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80vw;
    height: 80vw;
    max-width: 1000px;
    max-height: 1000px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 0, 200, 0.1) 0%, rgba(255, 0, 200, 0) 60%);
    z-index: -1;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content .btn {
    margin-top: 2rem;
}

.process-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.process-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.process-list i {
    color: var(--aqua);
    margin-top: 5px;
    font-size: 1.2rem;
}

.about-visual {
    perspective: 1000px;
}

.visual-cube-wrapper {
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.visual-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spin-cube 20s infinite linear;
}

@keyframes spin-cube {
    from {
        transform: rotateY(0) rotateX(0);
    }

    to {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

.visual-cube .face {
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--glass-bg);
    border: 2px solid var(--aqua);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: inset 0 0 20px rgba(0, 255, 247, 0.3);
}

.visual-cube .face i {
    font-size: 3rem;
    color: var(--aqua);
    text-shadow: var(--shadow-aqua);
}

.visual-cube .face span {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.face.front {
    transform: rotateY(0deg) translateZ(125px);
}

.face.back {
    transform: rotateY(180deg) translateZ(125px);
}

.face.right {
    transform: rotateY(90deg) translateZ(125px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(125px);
}

.face.top {
    transform: rotateX(90deg) translateZ(125px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(125px);
}

/* --- 9. DATA VISUALIZER SECTION --- */
.data-vis-section {
    background-color: var(--darker-gray);
}

.dashboard-mockup {
    background: var(--graphite);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.dots {
    display: flex;
    gap: 8px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dots span:nth-child(1) {
    background-color: #ff5f56;
}

.dots span:nth-child(2) {
    background-color: #ffbd2e;
}

.dots span:nth-child(3) {
    background-color: #27c93f;
}

.dash-title {
    color: var(--light-gray);
    margin: 0 auto;
    font-weight: 500;
}

.dashboard-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "main side-kpi"
        "main side-chart";
    gap: 20px;
}

.chart-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 25px;
}

.chart-panel h4 {
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 500;
}

.main-chart {
    grid-area: main;
}

.side-chart {
    grid-area: side-chart;
}

.side-kpi {
    grid-area: side-kpi;
}

.line-chart {
    height: 300px;
    position: relative;
}

/* For demo purposes; JS will handle real chart drawing */
.line-chart::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(var(--glass-border) 0 1px, transparent 1px 100%),
        repeating-linear-gradient(90deg, var(--glass-border) 0 1px, transparent 1px 100%);
    background-size: 20% 25%;
    opacity: 0.5;
}

.bar-chart {
    height: 150px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-around;
}

.bar-item {
    width: var(--bar-value, 0%);
    height: 20px;
    background-color: var(--bar-color, var(--aqua));
    border-radius: 5px;
    position: relative;
    animation: growBar 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    transform-origin: left;
}

@keyframes growBar {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.bar-label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--graphite);
    font-weight: 700;
    font-size: 0.8rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.kpi-item {
    text-align: center;
}

.kpi-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--aqua);
    line-height: 1.2;
}

.kpi-label {
    font-size: 0.85rem;
    color: var(--light-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 10. TESTIMONIALS SECTION --- */
.testimonial-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: linear-gradient(145deg, var(--darker-gray), #111);
    border: 1px solid var(--glass-border);
    padding: 35px;
    border-radius: 15px;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 3rem;
    color: var(--neon-magenta);
    opacity: 0.1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--white);
}

.author-title {
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* --- 11. CTA SECTION --- */
.cta-section {
    background: var(--darker-gray);
    text-align: center;
    padding: 80px 0;
}

.cta-background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 400px;
    background: radial-gradient(circle, var(--aqua) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.1;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 2rem;
}

/* --- 12. FOOTER --- */
.footer {
    background-color: #050505;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.footer-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--aqua);
    bottom: -150px;
    left: -100px;
    opacity: 0.1;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--neon-magenta);
    top: -100px;
    right: -100px;
    opacity: 0.1;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-about-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--light-gray);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--white);
    background-color: var(--neon-magenta);
    border-color: var(--neon-magenta);
}

.footer-col-title {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-gray);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--light-gray);
}

.contact-info li i {
    color: var(--aqua);
    margin-top: 5px;
}

.contact-info li a {
    color: var(--light-gray);
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-size: 0.9rem;
}

/* --- 13. SUBPAGES (Contact, Legal) --- */
.subpage main {
    padding-top: var(--header-height);
}

.page-header {
    padding: 120px 0;
    text-align: center;
    position: relative;
    background: var(--darker-gray);
}

.page-header-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 100%, rgba(0, 255, 247, 0.1), transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--light-gray);
}

.breadcrumbs a {
    color: var(--white);
    font-weight: 500;
}

.breadcrumbs i {
    font-size: 0.8rem;
}

.page-content {
    padding: 80px 0;
}

.content-wrapper.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--aqua);
    color: var(--aqua);
}

.legal-content p,
.legal-content li {
    color: var(--light-gray);
}

.legal-content ul {
    list-style: disc;
    padding-left: 25px;
    margin-top: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--white);
}

/* --- 14. CONTACT PAGE SPECIFIC STYLES --- */
.contact-section {
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: stretch;
}

.contact-info-panel {
    padding: 40px;
    background: var(--darker-gray);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    position: relative;
}

.panel-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(255, 0, 200, 0.2), transparent 50%);
    border-radius: 15px;
    pointer-events: none;
    z-index: 0;
}

.contact-info-panel h2,
.contact-info-panel p,
.contact-info-panel .contact-methods {
    position: relative;
    z-index: 1;
}

.contact-info-panel h2 {
    margin-bottom: 1rem;
}

.contact-info-panel>p {
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
}

.method-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aqua);
    font-size: 1.5rem;
}

.method-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.method-details p {
    margin-bottom: 0;
}

.method-details p a {
    color: var(--light-gray);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.optional {
    color: var(--light-gray);
    opacity: 0.7;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    background: var(--darker-gray);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--aqua);
    box-shadow: 0 0 10px rgba(0, 255, 247, 0.3);
}

textarea {
    resize: vertical;
}

.contact-form button[type="submit"] {
    grid-column: 1 / -1;
    justify-self: start;
}

/* --- 15. POPUP --- */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup:target {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--darker-gray);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup:target .popup-content {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--light-gray);
    line-height: 1;
}

.popup-icon {
    font-size: 4rem;
    color: #27c93f;
    margin-bottom: 1rem;
}

.popup-content h3 {
    margin-bottom: 0.5rem;
}

.popup-content p {
    margin-bottom: 2rem;
}

/* --- 16. ANIMATIONS & SCROLL EFFECTS --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: none !important;
}

.fade-in-up {
    transform: translateY(50px);
}

.fade-in-down {
    transform: translateY(-50px);
}

.fade-in-left {
    transform: translateX(-50px);
}

.fade-in-right {
    transform: translateX(50px);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}


/* --- 17. RESPONSIVENESS --- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-visual {
        margin-top: 40px;
    }

    .visual-cube-wrapper,
    .visual-cube,
    .visual-cube .face {
        width: 200px;
        height: 200px;
    }

    .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);
    }

    .dashboard-body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "side-kpi"
            "side-chart";
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    section {
        padding: 80px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .footer-top {
        text-align: center;
    }

    .footer-col {
        margin-bottom: 20px;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
}