/* ============================================
   SMART OASIS 2.0 — Premium Enhancement Styles
   Design upgrades by Antigravity
   ============================================ */

/* ── PAGE TRANSITION OVERLAY ── */
#page-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-transition-curtain {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #060b18 0%, #0f1b3d 50%, #060b18 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.page-transition-curtain.exit {
    transform-origin: top;
}

.page-transition-logo {
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.page-transition-logo svg {
    animation: transition-spin 1s linear infinite;
}

.page-transition-loader {
    width: 120px;
    height: 2px;
    background: rgba(0, 229, 200, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.page-transition-loader::after {
    content: '';
    position: absolute;
    left: -40%;
    top: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #00e5c8, transparent);
    animation: loader-sweep 0.8s ease-in-out infinite;
}

@keyframes loader-sweep {
    0% { left: -40%; }
    100% { left: 140%; }
}

@keyframes transition-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── ENHANCED NAVBAR ── */
.navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.navbar.scrolled {
    background: rgba(6, 11, 24, 0.92) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid rgba(0, 229, 200, 0.08) !important;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(0, 229, 200, 0.05);
}

/* Active nav link indicator */
.nav-link.active-section {
    color: var(--teal-bright) !important;
}

.nav-link.active-section::after {
    width: 100% !important;
    background: var(--teal-bright) !important;
    box-shadow: 0 0 8px rgba(0, 229, 200, 0.5);
}

/* Nav link animated underline for RTL */
.nav-link::after {
    left: auto !important;
    right: 0;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-link:hover::after {
    width: 100% !important;
    right: 0;
    left: auto;
}

/* Magnetic hover effect on CTA */
.nav-cta {
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.nav-cta:hover::before {
    left: 120%;
}

/* ── SCROLL PROGRESS INDICATOR ── */
#scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #00e5c8, #79c7c7, #3b82f6);
    z-index: 9998;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(0, 229, 200, 0.6);
}

/* ── SECTION NAVIGATION DOTS ── */
#section-nav-dots {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.section-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(121, 199, 199, 0.25);
    border: 1px solid rgba(121, 199, 199, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.section-dot::before {
    content: attr(data-label);
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(6, 11, 24, 0.9);
    color: var(--teal-accent);
    font-size: 11px;
    font-family: var(--font-mono);
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(121, 199, 199, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.section-dot:hover::before {
    opacity: 1;
}

.section-dot:hover {
    background: rgba(0, 229, 200, 0.5);
    transform: scale(1.4);
}

.section-dot.active {
    background: var(--teal-bright);
    box-shadow: 0 0 12px rgba(0, 229, 200, 0.6);
    transform: scale(1.2);
    height: 20px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    #section-nav-dots { display: none; }
}

/* ── ENHANCED HERO BADGE ── */
.hero-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
}

.hero-badge::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 229, 200, 0.4), rgba(121, 199, 199, 0.1), rgba(0, 229, 200, 0.4));
    background-size: 200% 200%;
    animation: badge-shimmer 3s ease infinite;
    z-index: -1;
}

@keyframes badge-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ── FLOATING PARTICLES (HERO) ── */
.hero-particles-extra {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.float-particle {
    position: absolute;
    border-radius: 50%;
    animation: float-up linear infinite;
    opacity: 0;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 0.5; }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* ── ENHANCED GLASS CARDS ── */
.glass-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover::after {
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 200, 0.3) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(0, 229, 200, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

/* ── TECH CARD ENHANCED ── */
.tech-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tech-card::before {
    height: 2px !important;
    background: linear-gradient(90deg, var(--teal-bright), #79c7c7, transparent) !important;
    transition: opacity 0.3s ease, height 0.3s ease !important;
}

.tech-card:hover::before {
    opacity: 1 !important;
    box-shadow: 0 0 20px rgba(0, 229, 200, 0.4);
}

.tech-card-icon {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.tech-card:hover .tech-card-icon {
    transform: scale(1.1) rotate(-3deg);
    background: rgba(0, 229, 200, 0.12) !important;
    box-shadow: 0 0 24px rgba(0, 229, 200, 0.2);
}

/* ── IMPACT CARDS ENHANCED ── */
.impact-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden;
    cursor: default;
}

.impact-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal-bright), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.impact-card:hover::before {
    transform: scaleX(1);
}

.impact-number {
    background: linear-gradient(135deg, var(--teal-bright), #79c7c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
}

.impact-card:hover .impact-number {
    filter: brightness(1.2);
    transform: scale(1.05);
    display: inline-block;
}

/* ── STEP CARDS ENHANCED ── */
.step-number {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 0 0 0 rgba(0, 229, 200, 0.3);
}

.step:hover .step-number {
    background: rgba(0, 229, 200, 0.1);
    box-shadow: 0 0 0 6px rgba(0, 229, 200, 0.1), 0 0 20px rgba(0, 229, 200, 0.2);
    border-color: var(--teal-bright);
    color: var(--teal-bright);
}

.step-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step:hover .step-icon {
    transform: scale(1.2) rotate(5deg);
}

.step-content {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ── TIMELINE LINE ANIMATED ── */
.timeline-line {
    position: relative;
    overflow: hidden;
}

.timeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(180deg, var(--teal-bright), transparent);
    animation: timeline-pulse 3s ease-in-out infinite;
}

@keyframes timeline-pulse {
    0% { top: -30%; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ── FUSION ENGINE ENHANCED ── */
.fusion-engine-ring {
    border: 1.5px solid rgba(0, 229, 200, 0.2) !important;
}

.fusion-engine-ring::before {
    box-shadow: 0 0 16px var(--teal-bright), 0 0 32px rgba(0, 229, 200, 0.3) !important;
}

.fusion-engine-core {
    background: radial-gradient(circle, rgba(0, 229, 200, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    justify-content: center;
}

/* ── ENHANCED BUTTONS ── */
.btn-primary {
    background: linear-gradient(135deg, #00e5c8, #79c7c7) !important;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn-primary:hover::after {
    left: 120%;
}

.btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 32px rgba(0, 229, 200, 0.4), 0 0 60px rgba(0, 229, 200, 0.1) !important;
}

.btn-secondary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(0, 229, 200, 0.15) !important;
}

/* ── ENHANCED SECTION LABELS ── */
.section-label {
    position: relative;
}

.section-label::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal-bright));
    margin-top: 0;
    position: absolute;
    right: -32px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

/* ── MOBILE MENU ENHANCED ── */
@media (max-width: 768px) {
    .nav-links {
        background: rgba(6, 11, 24, 0.97) !important;
        backdrop-filter: blur(32px) !important;
        -webkit-backdrop-filter: blur(32px) !important;
        border-left: 1px solid rgba(0, 229, 200, 0.12) !important;
    }

    .nav-links.open {
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
    }

    .nav-links .nav-link {
        font-size: 1rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        width: 100%;
        transition: all 0.3s ease;
    }

    .nav-links .nav-link:hover {
        padding-right: 8px;
        color: var(--teal-bright);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-toggle span {
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* ── SMOOTH HOVER CURSOR GLOW ON CARDS ── */
@media (hover: hover) {
    .tech-card,
    .impact-card,
    .step-content,
    .credential {
        --mouse-x: 50%;
        --mouse-y: 50%;
    }

    .tech-card:hover,
    .impact-card:hover {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                    0 0 0 1px rgba(0, 229, 200, 0.2),
                    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(0, 229, 200, 0.06) 0%, transparent 60%) !important;
    }
}

/* ── FOOTER ENHANCED ── */
.footer {
    background: linear-gradient(180deg, #060b18, #04080f) !important;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 200, 0.3), transparent);
}

.footer-links a {
    position: relative;
    padding-bottom: 2px;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--teal-bright);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* ── HERO SCROLL INDICATOR ENHANCED ── */
.hero-scroll-indicator {
    cursor: pointer;
    transition: opacity 0.4s ease;
    gap: 8px !important;
}

.hero-scroll-indicator:hover {
    opacity: 0.8;
}

.scroll-arrow {
    animation: bounce-smooth 2s cubic-bezier(0.45, 0, 0.55, 1) infinite !important;
    background: rgba(0, 229, 200, 0.05);
    border: 1px solid rgba(0, 229, 200, 0.15);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes bounce-smooth {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ── CONTACT FORM ENHANCED ── */
.form-group input,
.form-group textarea {
    transition: all 0.3s ease !important;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal-bright) !important;
    box-shadow: 0 0 0 3px rgba(0, 229, 200, 0.1), 0 0 20px rgba(0, 229, 200, 0.05) !important;
    transform: translateY(-1px);
}

/* ── REVEAL ANIMATIONS ENHANCED ── */
.reveal {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.reveal-right {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ── CUSTOM BACK TO TOP ── */
#back-to-top {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 44px;
    height: 44px;
    background: rgba(0, 229, 200, 0.1);
    border: 1px solid rgba(0, 229, 200, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 800;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(8px);
    color: var(--teal-bright);
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#back-to-top:hover {
    background: rgba(0, 229, 200, 0.2);
    border-color: rgba(0, 229, 200, 0.5);
    box-shadow: 0 0 20px rgba(0, 229, 200, 0.2);
    transform: translateY(-3px) scale(1.1);
}

@media (max-width: 768px) {
    #back-to-top { 
        bottom: 16px;
        left: 16px;
        width: 40px;
        height: 40px;
    }
}

/* ── SECTION TRANSITION BETWEEN SECTIONS ── */
.section {
    position: relative;
}

.section-separator {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
    overflow: hidden;
}

/* ── GLOWING SECTION DIVIDERS ── */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 200, 0.15), transparent);
}

/* ── CREDENTIAL CARDS ENHANCED ── */
.credential {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
}

.credential-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.credential:hover .credential-icon {
    transform: scale(1.2) rotate(-5deg);
}

/* ── COMPARISON CARD ENHANCED ── */
.comparison-card {
    overflow: hidden;
}

.comparison-img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.comparison-card:hover .comparison-img {
    transform: scale(1.03);
}

/* ── GLOW LINE BETWEEN NAV AND PAGE ── */
.navbar.scrolled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 200, 0.2), transparent);
}

/* ── HOVER MAGNETIC EFFECT ON FUSION NODES ── */
.fusion-node {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fusion-node:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 229, 200, 0.1);
}

/* ── AURORA BACKGROUND SECTION ── */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(0, 229, 200, 0.04) 0%, transparent 60%);
    pointer-events: none;
    animation: aurora-drift 12s ease-in-out infinite alternate;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 50%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(41, 57, 109, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: aurora-drift 15s ease-in-out infinite alternate-reverse;
    z-index: 1;
}

@keyframes aurora-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.1); }
}

/* ── SMOOTH ANCHOR SCROLLING VISUAL FEEDBACK ── */
:target {
    scroll-margin-top: 80px;
}

/* ── SKELETON LOADING SHIMMER (for any lazy-loaded content) ── */
@keyframes shimmer-wave {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

/* ── ABOUT IMAGERY STAGGERED HOVER ── */
.about-imagery {
    position: relative;
}

.about-img-1 {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    z-index: 2;
    position: relative;
}

.about-img-1:hover {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 200, 0.1);
    z-index: 3;
}

.about-img-2 {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.about-img-2:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 200, 0.1);
    z-index: 3;
    position: relative;
}
