/* ══════════════════════════════════════
   NEXURESOFT THEME CORE
   Centralized styling for all pages
══════════════════════════════════════ */

:root {
    --bg: #0a0a0a;
    --bg2: #121212;
    --bg3: #1a1a1a;
    --surface: rgba(255, 255, 255, 0.04);
    --surface2: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.07);
    --border2: rgba(255, 255, 255, 0.12);

    --red: #FF3D2E;
    --amber: #FF9F1C;
    --green: #2ECC8A;
    --blue: #3B9EFF;
    --purple: #A855F7;
    --cyan: #06C8E8;
    --pink: #F43F8E;
    --orange: #FF6B35;

    --text: #E8E8F0;
    --text2: #9090A8;
    --text3: #5A5A72;

    --nav-h: 72px;
    --radius: 14px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; font-size: 16px; }
body {
    background: #0a0a0a;
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

/* ════════════════ CURSOR ════════════════ */
#cur { position: fixed; width: 9px; height: 9px; background: var(--red); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); transition: width .2s, height .2s, background .2s; }
#cur-ring { position: fixed; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(255,61,46,.3); pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); transition: all .1s ease; }
@media(pointer:coarse) { #cur, #cur-ring { display: none; } }

/* ════════════════ PROGRESS ════════════════ */
#prog { position: fixed; top: 0; left: 0; height: 2px; z-index: 2000; width: 0%; background: linear-gradient(90deg, var(--red), var(--amber), var(--green), var(--blue), var(--purple)); }

/* ════════════════ SHARED UI ════════════════ */
.sec { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.sec-dark { background: var(--bg); }
.sec-dark2 { background: var(--bg2); }
.container { max-width: 1300px; margin: 0 auto; padding: 0 2rem; }

h1, h2, h3, h4, h5, h6 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; }

.gradient-text { background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.5)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.red-grad { background: linear-gradient(135deg, var(--red), var(--orange)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ════════════════ NAVIGATION ════════════════ */
#nav {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%); width: calc(100% - 48px); max-width: 1400px; height: 72px; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between; padding: 0 2rem;
    background: rgba(14, 14, 14, 0.85); backdrop-filter: blur(30px) saturate(2);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 100px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

#nav::after {
    content: ''; position: absolute; inset: 0; border-radius: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 50%, rgba(255, 61, 46, 0.05));
    pointer-events: none;
}

#nav.scrolled { top: 12px; background: rgba(14, 14, 14, 0.85); border-color: rgba(255, 61, 46, 0.2); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); height: 64px; }

.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 48px; width: auto; display: block; transition: transform .3s; }
.logo:hover .logo-img { transform: scale(1.05); }
.logo-words { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: 'Manrope', sans-serif; font-size: 1.15rem; font-weight: 900; letter-spacing: -.03em; color: #fff; }
.logo-name .hi {
    background: linear-gradient(90deg, var(--red), var(--amber));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: logoPulse 3s infinite alternate;
}
@keyframes logoPulse { from { filter: drop-shadow(0 0 0px var(--red)); } to { filter: drop-shadow(0 0 5px rgba(255, 61, 46, 0.4)); } }

.nav-links { display: flex; gap: 0.2rem; list-style: none; position: relative; }
.nav-links li { position: relative; }
.nav-links a {
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.92rem; font-weight: 600; color: var(--text2);
    text-decoration: none; padding: 0.6rem 0.8rem; border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: block;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); }
.nav-links li.active a { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* Dropdown */
.nav-item { position: relative; display: flex; align-items: center; }
.dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
    background: rgba(18, 18, 18, 0.95); backdrop-filter: blur(30px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px;
    padding: 0.6rem; min-width: 260px; opacity: 0; visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    z-index: 1000; display: flex; flex-direction: column; gap: 0.2rem; list-style: none;
}
.dropdown-menu::before { content: ''; position: absolute; top: -20px; left: 0; right: 0; height: 20px; }
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.dropdown-item {
    color: var(--text2) !important; font-size: 0.82rem !important; font-weight: 600; padding: 0.6rem 0.8rem !important;
    border-radius: 12px; display: flex !important; flex-direction: row !important; align-items: center !important; gap: 0.9rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important; border: 1px solid transparent; white-space: nowrap; text-decoration: none;
}
.dropdown-item:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.05); color: #fff !important; transform: translateX(4px); }
.dropdown-item i { width: 32px; height: 32px; display: flex !important; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.03); border-radius: 8px; font-size: 0.95rem; transition: all 0.3s; flex-shrink: 0; }
.dropdown-item:nth-child(1) i { color: #3B9EFF; background: rgba(59, 158, 255, 0.1); }
.dropdown-item:nth-child(2) i { color: #A855F7; background: rgba(168, 85, 247, 0.1); }
.dropdown-item:nth-child(3) i { color: #2ECC8A; background: rgba(46, 204, 138, 0.1); }
.dropdown-item:nth-child(4) i { color: #FFD21F; background: rgba(255, 210, 31, 0.1); }
.dropdown-item:nth-child(5) i { color: #FF3D2E; background: rgba(255, 61, 46, 0.1); }
.dropdown-item:nth-child(6) i { color: #06C8E8; background: rgba(6, 200, 232, 0.1); }
.dropdown-item:hover i { transform: scale(1.1); background: rgba(255, 255, 255, 0.1); }

.nav-link.dropdown-toggle::after { content: '▾'; margin-left: 4px; font-size: 0.7rem; transition: transform 0.3s; display: inline-block; }
.nav-item:hover .dropdown-toggle::after { transform: rotate(180deg); }

/* Mobile Menu */
.ham { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: .5rem; }
.ham span { display: block; width: 22px; height: 1.5px; background: var(--text2); transition: .3s; }
.ham.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

.mob-menu {
    display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 99;
    background: rgba(8, 8, 16, .97); backdrop-filter: blur(24px); border-bottom: 1px solid var(--border);
    padding: 1.2rem; flex-direction: column; gap: .2rem; opacity: 0; transform: translateY(-8px); transition: .3s;
}
.mob-menu.open { display: flex; opacity: 1; transform: translateY(0); }
.mob-menu a { font-size: .95rem; font-weight: 600; color: var(--text2); text-decoration: none; padding: .8rem 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .ham { display: flex; }
    #nav { padding: 0 1.5rem; }
}

/* ════════════════ REVEAL SYSTEM ════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s, transform .75s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.on { opacity: 1; transform: none; }
.d1 { transition-delay: .1s }
.d2 { transition-delay: .2s }
.d3 { transition-delay: .3s }
.d4 { transition-delay: .4s }
.d5 { transition-delay: .5s }
.d6 { transition-delay: .6s }

/* ════════════════ TYPOGRAPHY ════════════════ */
.sec-eyebrow {
    display: inline-flex; align-items: center; gap: .65rem; font-family: 'JetBrains Mono', monospace;
    font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: .9rem;
}
.sec-eyebrow::before { content: ''; display: block; width: 20px; height: 2px; background: var(--red); border-radius: 2px; }

.sec-h2 {
    font-family: 'Manrope', sans-serif; font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-weight: 900;
    line-height: 1.06; letter-spacing: -.035em; color: #fff; margin-bottom: .9rem;
}
.sec-desc { font-size: clamp(.86rem, 1.2vw, .98rem); line-height: 1.8; color: var(--text2); }

.hero-colorful {
    background: linear-gradient(90deg, var(--red), var(--amber), var(--green), var(--blue), var(--purple), var(--pink), var(--red));
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: chromaFlow 5s linear infinite;
    filter: drop-shadow(0 0 28px rgba(255, 61, 46, 0.22));
}

/* ════════════════ COMPONENTS ════════════════ */
/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .card-grid {
        /* If 3 cards, use 3 cols */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* V-Card */
.v-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.v-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--red), var(--orange));
    opacity: 0;
    transition: 0.4s;
}
.v-card:hover {
    background: var(--surface2);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.v-card:hover::before {
    opacity: 1;
}
.v-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 61, 46, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--red);
    margin-bottom: 1.5rem;
    transition: 0.4s;
}
.v-card:hover .v-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #fff;
    box-shadow: 0 10px 20px rgba(255,61,46,0.3);
}
.v-card h3, .v-card h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

/* ════════════════ ANIMATIONS ════════════════ */
@keyframes chromaFlow { 0% { background-position: 0% } 100% { background-position: 300% } }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: translateY(0) } }
@keyframes livePulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46, 204, 138, .5) } 60% { opacity: .7; box-shadow: 0 0 0 6px rgba(46, 204, 138, 0) } }

/* ════════════════ BUTTONS ════════════════ */
.btn-glow {
    background: linear-gradient(135deg, var(--red), var(--orange)); color: #fff; border: none;
    padding: 1rem 2rem; border-radius: 12px; font-weight: 800; cursor: none; transition: 0.3s; text-decoration: none; display: inline-block;
}
.btn-glow:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(255, 61, 46, 0.3); }

/* ════════════════ POPUP ════════════════ */
.popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.5s; }
.popup-overlay.active { opacity: 1; visibility: visible; }
.popup-card { background: rgba(12,12,28,0.95); border: 1px solid var(--border2); border-radius: 20px; width: 90%; max-width: 420px; padding: 2rem; position: relative; transform: scale(0.9) translateY(20px); transition: 0.5s; }
.popup-overlay.active .popup-card { transform: scale(1) translateY(0); }
.popup-close { position: absolute; top: 1.2rem; right: 1.2rem; background: rgba(255,255,255,0.05); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pform-input { width: 100%; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem; color: #fff; margin-bottom: 1rem; font-family: inherit; outline: none; transition: 0.3s; }
.pform-input:focus { border-color: var(--red); background: rgba(255, 255, 255, 0.05); }
.pform-btn { width: 100%; background: linear-gradient(135deg, var(--red), var(--orange)); color: #fff; padding: 1rem; border: none; border-radius: 10px; font-weight: 800; cursor: pointer; transition: 0.3s; }

/* ════════════════ WHATSAPP ════════════════ */
.wa-float { position: fixed; bottom: 30px; left: 30px; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px; z-index: 999; box-shadow: 0 10px 30px rgba(37,211,102,0.4); text-decoration: none; transition: 0.4s; }
.wa-float:hover { transform: scale(1.1) translateY(-5px); }

/* ════════════════ FOOTER ════════════════ */
footer { padding: 4rem 0 2rem; border-top: 1px solid var(--border); margin-top: 4rem; }
.foot-wrap { display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
.foot-copy { color: var(--text2); font-size: 0.9rem; max-width: 500px; }
.foot-social { display: flex; gap: 1.5rem; }
.foot-social a { color: var(--text2); font-size: 1.25rem; transition: 0.3s; }
.foot-social a:hover { color: var(--red); transform: translateY(-3px); }

@media (min-width: 768px) {
    .foot-wrap { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ════════════════ UTILS for Blog Content ════════════════ */
.row { display: flex; flex-wrap: wrap; margin: 0 -0.75rem; }
.col-md-6, .col-md-4, .col-md-12 { padding: 0 0.75rem; width: 100%; }
@media (min-width: 768px) {
    .col-md-6 { width: 50%; }
    .col-md-4 { width: 33.333%; }
}
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2.5rem; }
.text-center { text-align: center; }
.img-fluid { max-width: 100%; height: auto; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: 0 10px 30px rgba(0,0,0,0.25); }

.alert { padding: 1.25rem; border-radius: 12px; margin-bottom: 1.5rem; border: 1px solid transparent; }
.alert-info { background: rgba(59, 158, 255, 0.1); border-color: rgba(59, 158, 255, 0.2); color: var(--blue); }
.alert-heading { color: #fff; margin-bottom: 0.5rem; font-size: 1.1rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.card-body { padding: 0; }
.card-header { padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.bg-primary { background: var(--red) !important; }
.text-white { color: #fff !important; }
/* ════════════════ GLASS PAGES ════════════════ */
.page-hero {
    padding: clamp(8rem, 15vh, 12rem) 0 clamp(4rem, 8vh, 6rem);
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(255, 61, 46, 0.08), transparent 70%);
    position: relative;
    overflow: hidden;
}

.glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 4rem 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--amber);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.glass-icon {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.4s ease;
}

.glass-card:hover .glass-icon {
    transform: scale(1.1) rotate(5deg);
}

.glass-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.glass-desc {
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
    flex-grow: 1;
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    background: var(--amber);
    color: #000;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.3s;
    width: fit-content;
}

.btn-glass:hover {
    opacity: 0.95;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 159, 28, 0.3);
}

/* Category Pill Navigation */
.cat-pill-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.cat-pill {
    padding: 0.7rem 1.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text2);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: none;
    transition: all 0.3s;
}

.cat-pill:hover, .cat-pill.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--amber);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .glass-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }
    .page-hero {
        padding-top: 10rem;
    }
}
