/* --- 1. RESET & VARIABLES --- */
:root {
    --primary-color: #00F0FF;
    /* Cyber Cyan */
    --secondary-color: #7000FF;
    /* Electric Purple */
    --accent-color: #FF0055;
    /* Neon Pink */
    --dark-bg: #05050A;
    /* Deep Space Black */
    --card-bg: #0F0F16;
    --text-main: #FFFFFF;
    --text-muted: #8D99AE;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass: rgba(15, 15, 22, 0.7);
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-width: 1200px;
    --header-height: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Background Mesh Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(112, 0, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.08), transparent 25%);
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- 2. TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header span.sub-title {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

/* --- 3. UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    box-shadow: 0 10px 30px rgba(112, 0, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #fff;
    opacity: 0.2;
    transition: 0.4s;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.4);
}

.btn i {
    margin-left: 10px;
}

/* --- 4. HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    /* Ensures white logo on dark bg */
}

.nav-menu ul {
    display: flex;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

/* --- 5. HERO SECTION --- */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-content {
    width: 50%;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

/* 3D Visual Element */
.hero-visual {
    width: 50%;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.cube-wrapper {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateBox 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary-color);
}

.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 rotateBox {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* --- 6. SERVICES SECTION --- */
.services {
    padding: 120px 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    filter: blur(80px);
    opacity: 0;
    transition: 0.5s;
    z-index: -1;
}

.service-card:hover::after {
    opacity: 0.6;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.service-link {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.service-link i {
    margin-left: 5px;
    transition: 0.3s;
}

.service-link:hover i {
    margin-left: 10px;
    color: var(--primary-color);
}

/* --- 7. CALCULATOR SECTION --- */
.calculator-section {
    padding: 100px 0;
    background: #0A0A0E;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-main);
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.calc-result {
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.1), rgba(0, 240, 255, 0.1));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.result-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 10px 0;
}

/* --- 8. TESTIMONIALS --- */
.testimonials {
    padding: 120px 0;
}

.testimonial-wrapper {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 40px;
    scrollbar-width: none;
}

.testimonial-wrapper::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 350px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.t-stars {
    color: #FFD700;
    margin-bottom: 20px;
}

.t-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.t-avatar {
    width: 50px;
    height: 50px;
    background: var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

/* --- 9. LEGAL & TEXT PAGES LAYOUT --- */
.legal-page-content {
    padding: 150px 0 100px;
}

.legal-box {
    background: var(--card-bg);
    padding: 60px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.legal-box h2 {
    color: var(--primary-color);
    margin-top: 40px;
    font-size: 1.8rem;
}

.legal-box p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.legal-box ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 30px;
    color: var(--text-muted);
}

/* --- 10. FOOTER --- */
.footer {
    background: #020205;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-text {
    color: var(--text-muted);
    max-width: 300px;
    font-size: 0.9rem;
}

.footer-title {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: #555;
    font-size: 0.85rem;
}

/* --- 11. RESPONSIVE --- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        margin-bottom: 50px;
    }

    .hero-visual {
        position: relative;
        width: 100%;
        height: 400px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .calc-container {
        grid-template-columns: 1fr;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #0a0a0e;
        padding: 100px 40px;
        transition: 0.4s;
        border-left: 1px solid var(--border-color);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    .header-actions {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 300px;
    }

    .cube-wrapper,
    .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);
    }
}

/* Animation Utilities */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}