/* --- RESET & VARIABLES --- */
:root {
    --primary: #00f3ff;
    --primary-dark: #00a8b0;
    --secondary: #bd00ff;
    --secondary-dark: #7a00a3;
    --bg-dark: #050505;
    --bg-panel: #0a0a0a;
    --bg-card: #111111;
    --text-main: #ffffff;
    --text-muted: #888888;
    --border: #333333;
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --glow: 0 0 20px rgba(0, 243, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Grid Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title-small {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    margin: 0 auto;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    display: inline-block;
    /* transform: translateX(-50%); */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-cyber {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transition: left 0.3s var(--ease);
    z-index: -1;
}

.btn-cyber:hover {
    color: var(--bg-dark);
}

.btn-cyber:hover::before {
    left: 0;
}

.btn-primary {
    background: var(--secondary);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-dark);
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.5);
}

/* --- HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: padding 0.3s ease, background 0.3s ease;
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
}

.desktop-nav .nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-head);
    font-size: 0.9rem;
    position: relative;
    color: var(--text-main);
}

.nav-link span {
    color: var(--primary);
    margin-right: 5px;
    font-size: 0.8rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* --- MOBILE NAV --- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s var(--ease);
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-link {
    font-family: var(--font-head);
    font-size: 2rem;
    margin: 20px 0;
    color: var(--text-muted);
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--primary);
    transform: translateX(10px);
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3D Visual in Hero */
.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1000px;
    opacity: 0;
    animation: fadeIn 1s forwards 1s;
}

.cube-wrapper {
    width: 300px;
    height: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateX(60deg) rotateZ(45deg);
    animation: rotateCube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.face-1 {
    transform: translateZ(150px);
}

.face-2 {
    transform: rotateY(90deg) translateZ(150px);
}

.face-3 {
    transform: rotateY(180deg) translateZ(150px);
}

.face-4 {
    transform: rotateY(-90deg) translateZ(150px);
}

.face-5 {
    transform: rotateX(90deg) translateZ(150px);
}

.face-6 {
    transform: rotateX(-90deg) translateZ(150px);
}

/* --- SERVICES SECTION --- */
.services-section {
    padding: 100px 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: 0.4s var(--ease);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card .overlay-link {
    margin-top: 20px;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    opacity: 0;
    transform: translateX(-20px);
    transition: 0.3s ease;
}

.service-card:hover .overlay-link {
    opacity: 1;
    transform: translateX(0);
}

/* --- CALCULATOR SECTION --- */
.calculator-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-panel), var(--bg-dark));
}

.calc-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-card);
    padding: 50px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-head);
    font-size: 0.9rem;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--secondary);
    background: rgba(189, 0, 255, 0.05);
}

.result-box {
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid var(--primary);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.roi-display {
    font-size: 4rem;
    font-family: var(--font-head);
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    margin: 10px 0;
}

/* --- PROCESS SECTION --- */
.process-section {
    padding: 100px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: var(--bg-card);
    padding: 20px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.timeline-content:hover {
    border-color: var(--secondary);
}

/* --- TESTIMONIALS --- */
.reviews-section {
    padding: 100px 0;
    background: var(--bg-panel);
}

.review-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 40px;
    scrollbar-width: none;
}

.review-slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 350px;
    background: var(--bg-card);
    padding: 30px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
}

.review-stars {
    color: #ffcc00;
    margin-bottom: 15px;
}

/* --- FOOTER --- */
.main-footer {
    background: #000;
    padding: 80px 0 20px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo-img {
    height: 60px;
    margin-bottom: 20px;
    filter: grayscale(100%) brightness(200%);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.contact-list i {
    color: var(--secondary);
    margin-top: 4px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: black;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- PAGE HEADER (Inner Pages) --- */
.page-header-section {
    padding: 150px 0 80px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.05) 0%, transparent 70%);
}

.breadcrumbs {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumbs span {
    color: var(--primary);
}

.page-content {
    padding-bottom: 100px;
}

.content-wrapper p {
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.8;
}

.content-wrapper h2 {
    color: var(--primary);
    margin: 40px 0 20px;
    font-size: 1.5rem;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes rotateCube {
    0% {
        transform: translate(-50%, -50%) rotateX(60deg) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(60deg) rotateZ(360deg);
    }
}

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {

    .hero-grid,
    .calc-wrapper,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
        left: 0 !important;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
        right: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}