/* Global Settings */
:root {
    --bg-dark: #050510;
    --bg-card: rgba(20, 20, 30, 0.6);
    --primary: #5856d6;
    /* Vibrant Purple */
    --accent: #2ac3de;
    /* Cyan */
    --tech-text: #f0f1f5;
    --muted-text: #a0a0b0;
    --gradient: linear-gradient(120deg, var(--primary), #8e44ad, var(--accent));
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--tech-text);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.7;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.h-100 {
    height: 100%;
}

.highlight {
    color: var(--accent);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Background Effects */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('../img/hero_bg_futuristic.png') no-repeat center center/cover;
    opacity: 0.15;
    z-index: -2;
    filter: saturate(1.2);
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(88, 86, 214, 0.1), transparent 60%);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(5, 5, 16, 0.7);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: 0.3s;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--muted-text);
    position: relative;
}

.nav-links a:not(.btn-nav):hover {
    color: #fff;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: #fff !important;
    font-weight: 600;
}

.btn-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(88, 86, 214, 0.4);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background: #fff;
    margin: 6px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    padding-bottom: 50px;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(42, 195, 222, 0.1);
    border: 1px solid rgba(42, 195, 222, 0.3);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-tagline {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 300;
}

.typing-text {
    border-right: 2px solid var(--accent);
    padding-right: 4px;
}

.hero-desc {
    color: var(--muted-text);
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.4s;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(88, 86, 214, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(88, 86, 214, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

/* 3D Visual */
.hero-visual {
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    position: relative;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(88, 86, 214, 0.2) 0%, transparent 70%);
    filter: blur(40px);
}

.cube-container {
    width: 250px;
    height: 250px;
}

.cube-wrapper {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 20s infinite linear;
}

.cube {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(5, 5, 16, 0.4);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    box-shadow: inset 0 0 50px rgba(42, 195, 222, 0.2);
    backdrop-filter: blur(5px);
}

.front {
    transform: rotateY(0deg) translateZ(100px);
}

.back {
    transform: rotateY(180deg) translateZ(100px);
}

.right {
    transform: rotateY(90deg) translateZ(100px);
}

.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.top {
    transform: rotateX(90deg) translateZ(100px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotate3d {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(180deg);
    }
}

/* About Section */
.about-section {
    padding: 120px 0;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.img-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.img-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 16, 0.8), transparent);
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin: 10px 0 24px;
    line-height: 1.2;
}

.sub-heading {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
}

.about-text p {
    color: var(--muted-text);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.stats-grid {
    display: flex;
    gap: 40px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #fff;
    font-family: var(--font-heading);
}

.stat-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* Services Section */
.services-section {
    padding: 120px 0;
    background: linear-gradient(to bottom, var(--bg-dark), #090915);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin: 10px 0 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card-container {
    perspective: 1500px;
    height: 380px;
}

.service-card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
}

.service-card-container:hover .service-card {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--glass-border);
}

.card-front {
    background: var(--bg-card);
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent);
    font-size: 2rem;
    border: 1px solid var(--glass-border);
}

.card-front h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
    font-family: var(--font-heading);
}

.short-desc {
    color: var(--muted-text);
    font-size: 0.95rem;
}

.card-back {
    background: #11111e;
    /* Solid dark for readability */
    /* Or gradient */
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    transform: rotateY(180deg);
    align-items: flex-start;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

.card-back h3 {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.card-back p {
    color: #ddd;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.link-arrow {
    margin-top: auto;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-arrow:hover {
    gap: 12px;
    color: var(--accent);
}

/* Why Us */
.why-us-section {
    padding: 100px 0;
}

.features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.feature-box:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--gradient);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(to top, #000, var(--bg-dark));
}

.contact-wrapper {
    display: flex;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.contact-info {
    flex: 2;
    background: #0d0d1a;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    opacity: 0.15;
}

.info-header h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.info-header p {
    color: var(--muted-text);
}

.info-links {
    margin: 40px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.info-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--muted-text);
    margin-bottom: 4px;
}

.info-item strong {
    font-size: 1.1rem;
    color: #fff;
}

.contact-form-container {
    flex: 3;
    background: #151525;
    padding: 60px;
}

.form-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #fff;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--muted-text);
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 14px 16px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
}

.select-wrapper {
    position: relative;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: 80px 0 30px;
    background: #020205;
    border-top: 1px solid var(--glass-border);
    color: var(--muted-text);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
}

.social-links a:hover {
    background: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* Response */
@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 60px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        height: 300px;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #0d0d1a;
        flex-direction: column;
        padding-top: 100px;
        transition: 0.3s;
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1000;
    }

    .hero-title {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}