/* ============================================
   VRITY - Immersive VR Learning Platform
   Main Stylesheet
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Colors */
    --clr-primary: #1a0a3e;
    --clr-primary-deep: #0d0521;
    --clr-primary-mid: #2a1060;
    --clr-accent: #00e5ff;
    --clr-accent-glow: rgba(0, 229, 255, 0.35);
    --clr-accent-alt: #7c4dff;
    --clr-accent-alt-glow: rgba(124, 77, 255, 0.3);
    --clr-white: #ffffff;
    --clr-text: #c8c2e0;
    --clr-text-light: #e8e4f5;
    --clr-bg-dark: #080316;
    --clr-bg-card: rgba(255, 255, 255, 0.04);
    --clr-border: rgba(255, 255, 255, 0.08);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #080316 0%, #1a0a3e 40%, #12063a 70%, #0d0521 100%);
    --gradient-accent: linear-gradient(135deg, #00e5ff, #7c4dff);
    --gradient-btn: linear-gradient(135deg, #00e5ff 0%, #00b8d4 100%);
    --gradient-btn-secondary: linear-gradient(135deg, rgba(124, 77, 255, 0.15), rgba(0, 229, 255, 0.08));

    /* Typography */
    --ff-heading: 'Poppins', sans-serif;
    --ff-body: 'Inter', sans-serif;

    /* Spacing */
    --nav-height: 80px;
    --container-max: 1280px;
    --section-pad: 100px;

    /* Transitions */
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Animation easing (easing-only, no duration) */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-nav: 0 4px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--clr-accent-glow);
    --shadow-btn: 0 4px 20px rgba(0, 229, 255, 0.3);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--ff-body);
    background: var(--clr-bg-dark);
    color: var(--clr-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: background var(--transition-smooth), box-shadow var(--transition-smooth), backdrop-filter var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(8, 3, 22, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-nav);
    border-bottom: 1px solid var(--clr-border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.navbar__logo {
    font-family: var(--ff-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    cursor: pointer;
}

.navbar__logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
    opacity: 0.4;
}

/* Nav Links */
.navbar__menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.navbar__link {
    font-family: var(--ff-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text);
    position: relative;
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: width var(--transition-smooth), left var(--transition-smooth);
}

.navbar__link:hover {
    color: var(--clr-white);
}

.navbar__link:hover::after {
    width: 100%;
    left: 0;
}

/* Nav CTA */
.navbar__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 26px;
    font-family: var(--ff-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--clr-primary-deep);
    background: var(--gradient-btn);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-btn);
}

.navbar__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 229, 255, 0.45);
}

.navbar__cta:active {
    transform: translateY(0);
}

/* Hamburger */
.navbar__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--clr-border);
    border-radius: 10px;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    transition: border-color var(--transition-fast);
}

.navbar__hamburger:hover {
    border-color: var(--clr-accent);
}

.navbar__hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--clr-white);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.navbar__hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.navbar__mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(8, 3, 22, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
    z-index: 999;
}

.navbar__mobile-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.navbar__mobile-menu .navbar__link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--clr-text-light);
}

.navbar__mobile-menu .navbar__cta {
    margin-top: 16px;
    padding: 14px 36px;
    font-size: 1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    padding-top: var(--nav-height);
    overflow: hidden;
}

/* Ambient background effects */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite alternate-reverse;
}

/* Floating grid lines */
.hero__grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 80%);
}

/* Floating particles container */
.hero__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.hero__particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--clr-accent);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s ease-in-out infinite;
}

.hero__particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.hero__particle:nth-child(2) {
    left: 25%;
    top: 60%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.hero__particle:nth-child(3) {
    left: 45%;
    top: 30%;
    animation-delay: 2.5s;
    animation-duration: 6s;
}

.hero__particle:nth-child(4) {
    left: 70%;
    top: 70%;
    animation-delay: 0.5s;
    animation-duration: 10s;
}

.hero__particle:nth-child(5) {
    left: 85%;
    top: 15%;
    animation-delay: 3s;
    animation-duration: 8s;
}

.hero__particle:nth-child(6) {
    left: 60%;
    top: 85%;
    animation-delay: 1.5s;
    animation-duration: 7.5s;
}

.hero__particle:nth-child(7) {
    left: 35%;
    top: 50%;
    animation-delay: 4s;
    animation-duration: 9.5s;
}

.hero__particle:nth-child(8) {
    left: 90%;
    top: 45%;
    animation-delay: 2s;
    animation-duration: 6.5s;
}

/* Hero layout */
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* ---------- Hero Content (Left) ---------- */
.hero__content {
    max-width: 600px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--gradient-btn-secondary);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s var(--ease-smooth) 0.3s forwards;
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--clr-accent);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

.hero__title {
    font-family: var(--ff-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--clr-white);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--ease-smooth) 0.5s forwards;
}

.hero__title .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--clr-text);
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 540px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--ease-smooth) 0.7s forwards;
}

.hero__tagline {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--ff-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-accent);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--ease-smooth) 0.9s forwards;
}

.hero__tagline-separator {
    width: 6px;
    height: 6px;
    background: var(--clr-accent-alt);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--clr-accent-alt-glow);
}

/* Hero Buttons */
.hero__buttons {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--ease-smooth) 1.1s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 34px;
    font-family: var(--ff-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--gradient-btn);
    color: var(--clr-primary-deep);
    box-shadow: var(--shadow-btn);
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

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

.btn--primary:hover::before {
    left: 100%;
}

.btn--primary:active {
    transform: translateY(-1px);
}

.btn--secondary {
    background: transparent;
    color: var(--clr-text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--clr-accent);
    color: var(--clr-accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.15);
}

.btn--secondary:active {
    transform: translateY(-1px);
}

.btn__icon {
    font-size: 1.1rem;
    transition: transform var(--transition-fast);
}

.btn:hover .btn__icon {
    transform: translateX(3px);
}

/* ---------- Hero Visual (Right) ---------- */
.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(40px);
    animation: fadeInRight 1s var(--ease-smooth) 0.6s forwards;
}

.hero__image-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
}

.hero__image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    animation: heroFloat 6s ease-in-out infinite;
}

/* Glow ring behind image */
.hero__image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.12) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

/* Floating decorative orbs */
.hero__orb {
    position: absolute;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
}

.hero__orb--1 {
    width: 60px;
    height: 60px;
    top: 8%;
    right: 5%;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.3), rgba(0, 229, 255, 0.05));
    border: 1px solid rgba(0, 229, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: orbFloat 5s ease-in-out infinite;
}

.hero__orb--2 {
    width: 40px;
    height: 40px;
    bottom: 15%;
    left: -5%;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.3), rgba(124, 77, 255, 0.05));
    border: 1px solid rgba(124, 77, 255, 0.25);
    backdrop-filter: blur(10px);
    animation: orbFloat 7s ease-in-out infinite reverse;
}

.hero__orb--3 {
    width: 24px;
    height: 24px;
    top: 35%;
    left: -10%;
    background: var(--clr-accent);
    opacity: 0.2;
    animation: orbFloat 4s ease-in-out infinite;
}

/* Stats bar */
.hero__stats {
    display: flex;
    gap: 36px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--clr-border);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--ease-smooth) 1.4s forwards;
}

.hero__stat {
    text-align: left;
}

.hero__stat-number {
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-white);
    line-height: 1.2;
}

.hero__stat-number .accent {
    color: var(--clr-accent);
}

.hero__stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--clr-text);
    margin-top: 4px;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-12px) translateX(6px);
    }

    50% {
        transform: translateY(-5px) translateX(-4px);
    }

    75% {
        transform: translateY(-18px) translateX(2px);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }

    20% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateY(-200px) scale(1);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    :root {
        --nav-height: 72px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero__content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__subtitle {
        max-width: 580px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__tagline {
        justify-content: center;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__visual {
        order: -1;
    }

    .hero__image-wrapper {
        max-width: 420px;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__orb--3 {
        display: none;
    }
}

/* ---------- Mobile Large ---------- */
@media (max-width: 768px) {
    .navbar__menu {
        display: none;
    }

    .navbar__cta-desktop {
        display: none;
    }

    .navbar__hamburger {
        display: flex;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 20px);
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero .container {
        gap: 40px;
    }

    .hero__title {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
    }

    .hero__subtitle {
        font-size: 0.95rem;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .hero__stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .hero__stat {
        text-align: center;
    }

    .hero__image-wrapper {
        max-width: 340px;
    }

    .hero__orb--1 {
        width: 40px;
        height: 40px;
    }

    .hero__orb--2 {
        width: 28px;
        height: 28px;
    }
}

/* ---------- Mobile Small ---------- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero__title {
        font-size: 1.65rem;
    }

    .hero__subtitle {
        font-size: 0.88rem;
    }

    .hero__badge {
        font-size: 0.7rem;
        padding: 6px 14px;
    }

    .hero__tagline {
        font-size: 0.82rem;
    }

    .btn {
        padding: 13px 28px;
        font-size: 0.88rem;
    }

    .hero__stat-number {
        font-size: 1.3rem;
    }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--clr-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--clr-primary-mid);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--clr-accent-alt);
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(0, 229, 255, 0.25);
    color: var(--clr-white);
}