@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg: #060a14; --bg2: #0a0f1e; --bg3: #0f1628;
  --pink: #ff2d6b; --purple: #a020f0;
  --orange: #ff6a00; --blue: #00cfff;
  --grad-1: linear-gradient(135deg, var(--pink), var(--purple));
  --grad-2: linear-gradient(135deg, var(--orange), var(--pink));
  --grad-3: linear-gradient(135deg, var(--blue), var(--purple));
  --text: #ffffff; --text2: rgba(255,255,255,0.6);
  --text3: rgba(255,255,255,0.3); --border: rgba(255,255,255,0.07);
  --radius: 12px; --radius-lg: 20px;
  --font-head: 'Syne', sans-serif; --font-body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); overflow-x: hidden; scroll-behavior: smooth; }
h1, h2, h3, h4, .font-head { font-family: var(--font-head); }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: var(--font-body); outline: none; border: none; }

/* 1. KATANA PRELOADER */
#preloader { position: fixed; inset: 0; z-index: 10000; overflow: hidden; background: transparent; }
.pre-top { position: absolute; top:0; left:0; width:100%; height:50vh; background: var(--bg2); transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1); }
.pre-bot { position: absolute; bottom:0; left:0; width:100%; height:50vh; background: var(--bg2); transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1); }
.pre-slash { position: absolute; top: 50%; left: -20%; right: -20%; height: 3px; background: #fff; box-shadow: 0 0 20px #fff, 0 0 40px var(--blue); transform: rotate(-15deg) scaleX(0); z-index: 10001; transition: transform 0.4s ease-out; }

/* 2. CUSTOM CURSOR */
#cursor { position: fixed; width: 8px; height: 8px; background: #fff; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); z-index: 9999; }
#cursor-ring { position: fixed; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); z-index: 9998; transition: width 0.3s, height 0.3s; }
body.hov #cursor-ring { width: 60px; height: 60px; border-color: var(--pink); box-shadow: 0 0 15px rgba(255,45,107,0.3); }
@media (max-width: 768px) { #cursor, #cursor-ring { display: none; } }

/* 3. NAV */
nav { position: fixed; top: 0; width: 100%; padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; transition: 0.3s; }
nav.scrolled { background: rgba(6, 10, 20, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
nav .logo { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; background: var(--grad-3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
nav .links { display: flex; gap: 40px; font-weight: 500; font-size: 0.95rem; }
nav .links a:hover { color: var(--blue); }
.btn { padding: 14px 28px; border-radius: var(--radius); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: 0.3s; color: #fff; }
.btn:hover { filter: brightness(1.2); transform: scale(1.05); }
.btn-grad-1 { background: var(--grad-1); }
.btn-grad-2 { background: var(--grad-2); }
.btn-grad-3 { background: var(--grad-3); }
.btn-outline { background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
@media (max-width: 768px) { nav .links { display: none; } }

/* 4. HERO SECTION */
#hero { height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; padding: 0 5%; }
#hero h1 { font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -2px; }
.neon-grad { display: inline-block; background: var(--grad-2); background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 3s linear infinite; }
@keyframes shimmer { to { background-position: -200% center; } }
#hero p { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--text2); margin-bottom: 40px; }
.hero-btns { display: flex; gap: 20px; }

.scroll-down-arrow { position: absolute; bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.scroll-down-arrow span { font-size: 1.1rem; letter-spacing: 12px; font-weight: 800; writing-mode: vertical-rl; transform: rotate(180deg); color: var(--text2); animation: glowA 2s infinite alternate; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.scroll-down-arrow .line { width: 6px; height: 120px; background: var(--grad-3); animation: stretch 2.5s infinite ease-in-out; border-radius: 5px; box-shadow: 0 0 20px var(--blue); }
@keyframes stretch { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes glowA { from { color: rgba(255,255,255,0.4); } to { color: #fff; text-shadow: 0 0 25px var(--blue); } }


/* 5. RIGHT SCROLL TRACK */
#scroll-track { position: fixed; right: 24px; top: 20%; bottom: 20%; width: 2px; background: rgba(255,255,255,0.07); z-index: 100; border-radius: 4px; }
#scroll-indicator { width: 100%; height: 0%; background: var(--grad-1); transition: height 0.05s linear; box-shadow: 0 0 10px var(--pink); border-radius: 4px; }
@media (max-width: 768px) { #scroll-track { display: none; } }

/* 6. GENERAL SECTION UTILS */
.sec { padding: 100px 5%; display: flex; flex-direction: column; align-items: center; position: relative; }
.sec-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; margin-bottom: 60px; text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; width: 100%; max-width: 1200px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; width: 100%; max-width: 1000px; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

/* REVEAL ANIMATIONS */
.pre-reveal { opacity: 0; transition: opacity 1.6s cubic-bezier(0.1, 1, 0.2, 1), transform 1.6s cubic-bezier(0.1, 1, 0.2, 1); }
.pre-reveal--left  { transform: translateX(-150px) scale(0.85); }
.pre-reveal--right { transform: translateX(150px) scale(0.85); }
.pre-reveal--up    { transform: translateY(150px) scale(0.95); }
.pre-reveal.revealed { opacity: 1; transform: translate(0,0) scale(1); }

/* 7. CARDS & WHY US */
.card { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 30px; text-align: center; backdrop-filter: blur(10px); transition: border-color 0.4s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.card .icon { font-size: 3rem; margin-bottom: 20px; text-shadow: 0 0 20px currentColor; }
.card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card p { color: var(--text2); line-height: 1.6; }
.card:hover { border-color: rgba(255,255,255,0.25); box-shadow: 0 25px 60px rgba(0,0,0,0.6); z-index: 10; }

/* 8. REVIEWS MARQUEE */
#reviews { overflow: hidden; max-width: 100vw; }
/* SEAMLESS MARQUEE */
.marquee-wrap { display: flex; width: 100%; overflow: hidden; margin-bottom: 25px; }
.marquee-track { display: flex; gap: 20px; padding-right: 20px; min-width: 100%; flex-shrink: 0; }
.track-left { animation: scrollLeftFlawless 25s linear infinite; }
.track-right { animation: scrollRightFlawless 25s linear infinite; }
@keyframes scrollLeftFlawless { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes scrollRightFlawless { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.rev-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07); padding: 30px; border-radius: var(--radius-lg); width: 350px; flex-shrink: 0; transition: border-color 0.4s ease, transform 0.4s ease; backdrop-filter: blur(10px); }
.rev-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
.rev-card .avat { width: 45px; height: 45px; border-radius: 50%; background: var(--grad-3); display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.1rem; margin-bottom: 20px; }
.rev-card h4 { margin-bottom: 8px; font-size: 1.2rem; color: #fff; }
.rev-card p { color: var(--text2); font-size: 1rem; line-height: 1.5; }
.rev-card p:nth-child(3) { color: #ffd700; margin-bottom: 12px; letter-spacing: 3px; font-size: 1.1rem; }

/* 9. 3D SCROLL PRISM */
#prism-section { position: relative; height: 300vh; background: var(--bg2); }
.prism-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.prism-scene { perspective: 1500px; width: 450px; height: 500px; margin-top: 80px; }
#prism { width: 450px; height: 500px; position: relative; transform-style: preserve-3d; transition: transform 0.05s linear; margin-top: 40px; }
.prism-face { position: absolute; inset: 0; background: rgba(10, 15, 30, 0.95); border: 2px solid rgba(106, 163, 240, 0.6); border-radius: 40px; padding: 60px 40px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; backdrop-filter: blur(20px); box-shadow: inset 0 0 50px rgba(0,207,255,0.2), 0 30px 60px rgba(0,0,0,0.6); }
.prism-face h3 { font-size: 2.5rem; color: var(--blue); margin-bottom: 25px; text-shadow: 0 0 20px rgba(0,207,255,0.5); }
.prism-face p { font-size: 1.3rem; line-height: 1.7; }
.pf-num { font-family: var(--font-head); font-size: 8rem; font-weight: 900; color: rgba(255,255,255,0.04); position: absolute; top: -10px; right: 30px; }
.face-1 { transform: rotateY(0deg) translateZ(350px); border-color: var(--blue); box-shadow: inset 0 0 50px rgba(0,207,255,0.2), 0 0 40px rgba(0,207,255,0.3); }
.face-2 { transform: rotateY(120deg) translateZ(350px); border-color: var(--pink); box-shadow: inset 0 0 50px rgba(255,45,107,0.2), 0 0 40px rgba(255,45,107,0.3); }
.face-2 h3 { color: var(--pink); text-shadow: 0 0 10px rgba(255,45,107,0.5); }
.face-3 { transform: rotateY(240deg) translateZ(350px); border-color: var(--orange); box-shadow: inset 0 0 50px rgba(255,106,0,0.2), 0 0 40px rgba(255,106,0,0.3); }
.face-3 h3 { color: var(--orange); text-shadow: 0 0 10px rgba(255,106,0,0.5); }

/* 10. PRICING */
.p-card { display: flex; flex-direction: column; align-items: center; position: relative; }
.p-card.pop { border-color: var(--pink); box-shadow: 0 0 30px rgba(255,45,107,0.15); background: rgba(255,45,107,0.05); }
.p-card .price { font-family: var(--font-head); font-size: 3.5rem; font-weight: 800; margin: 20px 0; color: #fff; }
.p-card p { margin-bottom: 12px; font-size: 1rem; color: #ccc; }
.p-card button { margin-top: auto; width: 100%; border-radius: 8px; }
.badge { position: absolute; top: -15px; background: var(--grad-2); padding: 5px 15px; border-radius: 100px; font-size: 0.8rem; font-weight: bold; color: #fff; box-shadow: 0 5px 15px rgba(255,106,0,0.3); }

/* 11. FORMS */
.form-grid .card { text-align: left; }
.form-grid h3 { font-size: 1.8rem; margin-bottom: 25px; color: #fff; }
form { display: flex; flex-direction: column; gap: 15px; }
input, select, textarea { width: 100%; padding: 15px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; font-size: 1rem; transition: border-color 0.3s; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
textarea { resize: vertical; min-height: 100px; }
form .btn { width: 100%; border-radius: 8px; }
select option { background: var(--bg2); color: #fff; }

/* 12. PORTFOLIO CTA */
#portfolio-cta { background: var(--bg2); padding: 120px 5%; margin: 50px 0; }
#portfolio-cta::before { content: ''; position: absolute; top: -50px; left: -50px; width: 300px; height: 300px; background: var(--purple); filter: blur(150px); opacity: 0.15; pointer-events: none; }
#portfolio-cta::after { content: ''; position: absolute; bottom: -50px; right: -50px; width: 300px; height: 300px; background: var(--blue); filter: blur(150px); opacity: 0.15; pointer-events: none; }

/* 13. FOOTER */
footer { padding: 60px 5%; border-top: 1px solid var(--border); text-align: center; color: var(--text3); }
footer h2 { color: #fff; font-size: 2rem; margin-bottom: 10px; }
footer p { margin-bottom: 10px; }
footer a:hover { color: #fff; }

/* 14. LIVE CHAT WIDGET */
#chat-bubble { position: fixed; bottom: 28px; right: 28px; width: 65px; height: 65px; background: var(--grad-1); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1000; box-shadow: 0 10px 30px rgba(255,45,107,0.4); text-decoration: none; border: none; transition: transform 0.3s; }
#chat-bubble:hover { transform: scale(1.1); }
.chat-notif { position: absolute; top: -5px; right: -5px; background: var(--orange); color: #fff; width: 22px; height: 22px; border-radius: 50%; font-size: 0.75rem; font-weight: bold; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 10px var(--orange); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
#chat-window { position: fixed; bottom: 100px; right: 28px; width: 340px; background: rgba(10, 15, 30, 0.98); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 20px 50px rgba(0,0,0,0.6); display: none; flex-direction: column; z-index: 1001; backdrop-filter: blur(20px); overflow: hidden; }
#chat-window.open { display: flex; }
.cw-header { background: rgba(255,255,255,0.05); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-head); font-weight: 700; border-bottom: 1px solid var(--border); }
#chat-close { background: transparent; color: #fff; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
#chat-messages { padding: 20px; height: 250px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { padding: 12px 16px; border-radius: 12px; max-width: 85%; font-size: 0.95rem; line-height: 1.4; }
.chat-msg--bot { background: rgba(255,255,255,0.08); align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-msg--user { background: var(--pink); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; box-shadow: 0 5px 15px rgba(255,45,107,0.3); }
.cw-input-row { display: flex; border-top: 1px solid var(--border); padding: 10px; background: rgba(0,0,0,0.3); }
.cw-input-row input { flex: 1; background: transparent; border: none; padding: 10px; font-size: 0.95rem; color: #fff; }
.cw-input-row button { width: 45px; height: 45px; border-radius: 50%; background: var(--blue); color: #000; font-weight: bold; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.cw-input-row button:hover { transform: scale(1.1); }

/* Inlined Portfolio CSS */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; width: 100%; max-width: 1200px; padding: 0 5%; margin: 20px auto; }
.demo-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; text-align: left; transition: 0.3s; }
.demo-card:hover { border-color: rgba(255,255,255,0.2); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.demo-preview { height: 250px; background: var(--grad-3); display: flex; align-items: center; justify-content: center; position: relative; }
.demo-preview h2 { font-family: var(--font-head); font-size: 3rem; color: rgba(255,255,255,0.3); letter-spacing: 5px; text-transform: uppercase; }
.demo-info { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.demo-tag { font-size: 0.8rem; color: var(--blue); font-weight: bold; text-transform: uppercase; margin-bottom: 10px; letter-spacing: 2px; }
.demo-title { font-family: var(--font-head); font-size: 1.8rem; margin-bottom: 20px; color: #fff; }
.demo-btn { margin-top: auto; padding: 12px 20px; background: rgba(255,255,255,0.1); color: #fff; border-radius: 8px; font-weight: bold; text-align: center; border: 1px solid rgba(255,255,255,0.2); transition: 0.3s; }
.demo-btn:hover { background: #fff; color: #000; }

/* V7 - INTERACTIVE BANNERS */
.interactive-banner { padding: 80px 5%; margin: 20px 0; }
.banner-box { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 60px; text-align: center; border-radius: var(--radius-lg); width: 100%; max-width: 1000px; backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.banner-box h2 { font-size: 2.5rem; margin-bottom: 20px; color: #fff; }
.banner-box p { font-size: 1.2rem; color: var(--text2); margin-bottom: 40px; }
.banner-btns { display: flex; gap: 20px; justify-content: center; }
@media (max-width: 768px) { .banner-btns { flex-direction: column; } .banner-box { padding: 40px 20px; } }

/* V7 - TXT ROTATOR */
.txt-rotate > .wrap { border-right: 0.08em solid #fff; animation: blink-caret 0.7s step-end infinite; }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: #fff; } }
