/* 
    NOVAX - Premium Digital Solutions
    Main Stylesheet
*/

:root {
    --primary: #00f0ff;
    --secondary: #7000ff;
    --accent: #ff00c8;
    --bg-color: #050505;
    --bg-secondary: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

/* Enforce custom cursor */
a,
button,
input,
select,
textarea,
.option,
.select-trigger,
label {
    cursor: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn--primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.btn--secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.btn--block {
    display: block;
    width: 100%;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    display: none;
}

.custom-cursor.hover-active {
    width: 40px;
    height: 40px;
    background: rgba(0, 240, 255, 0.5);
    border: 2px solid var(--primary);
    transform: translate(-10px, -10px);
}

@media (min-width: 1024px) {
    .custom-cursor {
        display: block;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav__link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav__link:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav__link:not(.btn):hover {
    color: var(--primary);
}

.nav__link:not(.btn):hover::after {
    width: 100%;
}

/* Nav CTA Stylized */
.nav__list li:last-child .nav__link.btn {
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
    border: none;
}

.nav__list li:last-child .nav__link.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
    background: #00e0ff;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
}

.hero__title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero__actions {
    display: flex;
    gap: 20px;
}



/* About Section */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.about__text {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.about__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Performance: Instant Loading (v3.4) */
.lazy-bg {
    opacity: 1 !important;
    transition: none !important;
}

.feature-mockup {
    height: 180px;
    background-color: #0d1117;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.feature-mockup[data-bg*="scalability"] {
    background-color: #0a192f;
}

.feature-mockup[data-bg*="security"] {
    background-color: #0d1b2a;
}


/* Specific background-images are now handled via JS data-bg */


.feature-card:hover .feature-mockup {
    transform: scale(1.1);
}

.feature-content {
    padding: 20px;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}



/* Services Section */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-mockup {
    height: 200px;
    background-color: #0d1117;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease, opacity 0.8s ease-in-out;
}

.service-mockup[data-bg*="web"] {
    background-color: #112240;
}

.service-mockup[data-bg*="mobile"] {
    background-color: #0a192f;
}




.service-card:hover .service-mockup {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}



.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Value Prop */
.value-prop {
    background: var(--bg-secondary);
}

.value-prop__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.value-item h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Process Section */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 60px auto 0;
    padding-left: 80px;
}

.timeline__item {
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
    position: relative;
}

.timeline__icon {
    position: absolute;
    left: -80px;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--bg-main);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), inset 0 0 10px rgba(0, 240, 255, 0.2);
    color: var(--primary);
}

.timeline__icon .material-symbols-outlined {
    font-size: 28px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.timeline__step {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.timeline__content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.timeline__content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 60px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline__icon {
        left: -60px;
        width: 45px;
        height: 45px;
    }

    .timeline__icon .material-symbols-outlined {
        font-size: 20px;
    }
}

/* Projects Section */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.project-mockup {
    height: 220px;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease, opacity 0.8s ease-in-out;
}

.project-mockup[data-bg*="project1"] {
    background-color: #0b1423;
}

.project-mockup[data-bg*="project2"] {
    background-color: #161b22;
}


.project-card:hover .project-mockup {
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
}

/* Contact Section */
.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact__form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* Custom Select Styling */
.custom-select {
    position: relative;
    width: 100%;
    user-select: none;
}

.select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.custom-select.active .select-trigger {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.select-trigger .arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-bottom: 4px;
}

.custom-select.active .arrow {
    transform: rotate(-135deg);
    margin-bottom: -4px;
}

.select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-height: 300px;
    overflow-y: auto;
}

.custom-select.active .select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.option {
    padding: 12px 15px;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.option:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    padding-left: 20px;
}

.option.selected {
    background: rgba(0, 240, 255, 0.15);
    color: var(--primary);
    font-weight: 600;
}

/* Custom Scrollbar for Options */
.select-options::-webkit-scrollbar {
    width: 6px;
}

.select-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.select-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
}

.footer__logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer__social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer__social a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer__social a:hover {
    color: var(--primary);
}

.footer__nav h4 {
    margin-bottom: 20px;
}

.footer__nav ul {
    list-style: none;
}

.footer__nav li {
    margin-bottom: 10px;
}

.footer__nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer__nav a:hover {
    color: var(--primary);
}

/* Avant-Garde Visuals */
.mesh-gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.mesh-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--secondary);
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding-top: 80px;
        height: auto;
        min-height: 100vh;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero__title {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }

    .hero__actions {
        justify-content: center;
    }

    .about__features {
        grid-template-columns: 1fr;
    }

    .contact__container,
    .footer__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}