:root {
    --bg: #f8faff;
    --surface: #ffffff;
    --surface-soft: #eef4ff;
    --text: #0e1838;
    --muted: #66708e;
    --blue: #087cf0;
    --blue-2: #00b8ee;
    --violet: #6627ea;
    --line: #dfe6f4;
    --shadow: 0 24px 70px rgba(35, 58, 119, .12);
    --radius: 26px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    font-family: "Alexandria", sans-serif;
    line-height: 1.8;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.section { padding: 105px 0; scroll-margin-top: 90px; }

.page-loader {
    position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; gap: 18px;
    background: #fff; transition: opacity .45s ease, visibility .45s ease;
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-brand { font-size: 2rem; font-weight: 800; color: var(--blue); text-align: center; }
.loader-track { width: 230px; height: 7px; background: #e8edfa; border-radius: 999px; overflow: hidden; }
.loader-track span { display: block; width: 45%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--blue),var(--violet)); animation: loading 1.1s infinite ease-in-out; }
@keyframes loading { 0% { transform: translateX(240%); } 100% { transform: translateX(-230%); } }

.site-header {
    position: fixed; inset: 0 0 auto; z-index: 1000; border-bottom: 1px solid transparent;
    transition: .3s ease;
}
.site-header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(18px); border-color: var(--line); box-shadow: 0 10px 35px rgba(38,60,120,.08); }
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand img { width: 178px; height: 58px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: .91rem; font-weight: 600; }
.main-nav a { position: relative; color: #243257; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: -12px; width: 0; height: 3px; border-radius: 5px; background: linear-gradient(90deg,var(--blue-2),var(--violet)); transition: .25s; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 13px; padding: 11px; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--text); }

.btn { min-height: 50px; padding: 12px 24px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; font-weight: 700; transition: transform .25s, box-shadow .25s, background .25s; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { color: #fff; background: linear-gradient(120deg,var(--blue),var(--violet)); box-shadow: 0 14px 35px rgba(67,67,223,.25); }
.btn-light { background: #fff; border-color: var(--line); box-shadow: 0 10px 28px rgba(39,64,130,.08); }

.hero { min-height: 100vh; position: relative; isolation: isolate; display: grid; align-items: center; padding: 140px 0 80px; overflow: hidden; background: radial-gradient(circle at 90% 20%,rgba(0,190,238,.16),transparent 28%), radial-gradient(circle at 10% 28%,rgba(102,39,234,.13),transparent 30%), linear-gradient(180deg,#fff,#f4f7ff); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 75px; align-items: center; }
.hero-copy { position: relative; z-index: 3; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 700; font-size: .9rem; }
.eyebrow::before, .section-kicker::before { content: ""; width: 26px; height: 3px; background: linear-gradient(90deg,var(--blue),var(--violet)); border-radius: 99px; }
.hero h1 { margin: 18px 0 22px; font-size: clamp(2.6rem,5.2vw,5rem); line-height: 1.25; letter-spacing: -.04em; }
.hero h1 span { color: transparent; background: linear-gradient(100deg,var(--blue),var(--violet)); -webkit-background-clip: text; background-clip: text; }
.hero p { max-width: 670px; color: var(--muted); font-size: 1.04rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 42px; }
.hero-stats div { padding: 16px; background: rgba(255,255,255,.72); border: 1px solid rgba(210,220,241,.85); border-radius: 18px; box-shadow: 0 12px 32px rgba(37,55,107,.07); }
.hero-stats strong { display: block; font-size: 1.35rem; color: var(--blue); }
.hero-stats span { color: var(--muted); font-size: .76rem; }
.hero-visual { position: relative; z-index: 3; }
.editor-card { border: 1px solid rgba(255,255,255,.8); border-radius: 30px; padding: 14px; background: rgba(255,255,255,.66); backdrop-filter: blur(20px); box-shadow: 0 45px 100px rgba(44,55,120,.23); transform: perspective(1200px) rotateY(-7deg) rotateX(2deg); animation: cardFloat 5s ease-in-out infinite; }
@keyframes cardFloat { 50% { transform: perspective(1200px) rotateY(-4deg) rotateX(0) translateY(-12px); } }
.editor-topbar { height: 45px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; color: #66708e; font-size: .82rem; }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #c5cee4; }
.preview-screen { min-height: 300px; position: relative; overflow: hidden; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg,#0b1849,#1752b7 48%,#6a20d9); }
.preview-screen::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg,transparent,rgba(0,212,255,.3),transparent 35%); animation: spin 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.play-button { width: 82px; height: 82px; border-radius: 24px; display: grid; place-items: center; position: relative; z-index: 3; background: linear-gradient(135deg,rgba(255,255,255,.28),rgba(255,255,255,.12)); border: 1px solid rgba(255,255,255,.45); box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.play-button span { width: 0; height: 0; border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-right: 21px solid #fff; transform: translateX(-2px); }
.preview-tag { position: absolute; bottom: 18px; right: 18px; z-index: 3; color: #fff; font-size: .8rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 7px 12px; border-radius: 999px; }
.pulse-ring { position: absolute; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; animation: pulse 2.4s infinite; }
.ring-one { width: 160px; height: 160px; }.ring-two { width: 240px; height: 240px; animation-delay: .8s; }
@keyframes pulse { 0% { transform: scale(.75); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
.timeline { height: 150px; position: relative; padding: 20px 18px; background: #101a3b; border-radius: 0 0 20px 20px; }
.timeline-ruler { height: 7px; margin-bottom: 20px; background: repeating-linear-gradient(90deg,#4c5779 0 1px,transparent 1px 18px); }
.track { display: flex; gap: 5px; height: 28px; margin-bottom: 9px; }
.track span { display: block; flex: 1; border-radius: 6px; background: linear-gradient(90deg,#1794f4,#23c5f0); }
.track-b span { background: linear-gradient(90deg,#6331e9,#9a47f6); }
.playhead { position: absolute; top: 12px; bottom: 9px; width: 2px; background: #ff4a71; animation: playhead 4.8s linear infinite; }
.playhead::before { content: ""; position: absolute; top: -2px; right: -5px; border-top: 8px solid #ff4a71; border-left: 6px solid transparent; border-right: 6px solid transparent; }
@keyframes playhead { from { right: 10%; } to { right: 88%; } }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(4px); z-index: 0; }
.glow-one { width: 420px; height: 420px; right: -120px; top: 90px; background: rgba(0,186,239,.12); animation: drift 7s infinite alternate; }
.glow-two { width: 330px; height: 330px; left: -100px; bottom: 20px; background: rgba(102,39,234,.1); animation: drift 9s infinite alternate-reverse; }
@keyframes drift { to { transform: translate(35px,-25px) scale(1.08); } }
.floating-frame { position: absolute; z-index: 1; width: 115px; height: 70px; border-radius: 18px; border: 1px solid rgba(67,93,178,.16); background: rgba(255,255,255,.58); box-shadow: 0 18px 50px rgba(50,66,130,.12); backdrop-filter: blur(12px); display: grid; place-items: center; color: var(--blue); font-weight: 800; animation: bob 5s ease-in-out infinite; }
.frame-one { top: 22%; left: 4%; }.frame-two { top: 18%; right: 4%; animation-delay: .8s; }.frame-three { bottom: 12%; right: 44%; animation-delay: 1.4s; }
@keyframes bob { 50% { transform: translateY(-18px) rotate(2deg); } }

.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading h2, .about-copy h2, .contact-copy h2 { margin: 12px 0 15px; font-size: clamp(2rem,4vw,3.35rem); line-height: 1.35; }
.section-heading p, .about-copy>p, .contact-copy>p { color: var(--muted); }
.about { background: #fff; }
.about-grid { display: block; }
.about-copy { max-width: 920px; margin-inline: auto; padding: 48px; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(145deg,#ffffff,#f7f9ff); box-shadow: 0 20px 60px rgba(32,54,113,.08); }
.skill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.skill-list span { padding: 9px 13px; border-radius: 999px; color: #334166; background: #f0f4fd; border: 1px solid #e1e8f6; font-size: .8rem; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; }
.about-points article { padding: 18px; border-radius: 18px; background: #f8faff; border: 1px solid var(--line); }
.about-points p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; }

.services { background: linear-gradient(180deg,#f8faff,#f1f5ff); }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.service-card, .project-card, .price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 15px 45px rgba(32,54,113,.08); transition: .28s ease; }
.service-card { padding: 28px; }
.service-card:hover, .project-card:hover, .price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service-icon { width: 55px; height: 55px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 20px; color: #fff; font-weight: 800; background: linear-gradient(135deg,var(--blue),var(--violet)); }
.service-card h3 { margin: 0 0 8px; }.service-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.portfolio { background: #fff; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-btn { border: 1px solid var(--line); background: #fff; color: #425075; padding: 10px 18px; border-radius: 999px; }
.filter-btn.active { color: #fff; border-color: transparent; background: linear-gradient(120deg,var(--blue),var(--violet)); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; align-items: start; }
.project-card { max-width: 360px; width: 100%; justify-self: center; }
.project-card { overflow: hidden; }
.project-thumb { aspect-ratio: 9 / 16; min-height: 0; position: relative; display: grid; place-items: center; overflow: hidden; }
.project-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent,rgba(5,15,50,.55)); }
.gradient-a { background: linear-gradient(145deg,#0bb8e8,#2747bd 52%,#7026dc); }.gradient-b { background: linear-gradient(145deg,#ff8e62,#f34375 45%,#6d26e6); }.gradient-c { background: linear-gradient(145deg,#06c6a6,#0c82d5 50%,#253b92); }
.project-play { position: relative; z-index: 2; width: 70px; height: 70px; border-radius: 22px; color: #fff; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.2); backdrop-filter: blur(12px); }
.project-thumb>span { position: absolute; z-index: 2; bottom: 18px; right: 18px; color: #fff; font-weight: 700; }
.project-info { padding: 22px; }.project-info h3 { margin: 0; }.project-info p { margin: 6px 0 0; color: var(--muted); font-size: .82rem; }
.project-card.is-hidden { display: none; }

.pricing { background: linear-gradient(180deg,#f3f6ff,#edf3ff); }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.price-card { padding: 30px; position: relative; }
.price-card.featured { border: 2px solid rgba(70,80,225,.5); transform: translateY(-12px); }
.price-card.featured:hover { transform: translateY(-18px); }
.popular { position: absolute; top: 16px; left: 16px; padding: 6px 10px; border-radius: 999px; color: #fff; font-size: .72rem; background: linear-gradient(120deg,var(--blue),var(--violet)); }
.price-card h3 { font-size: 1.45rem; margin: 0 0 7px; }.price-card>p { color: var(--muted); }.price-card>strong { display: block; margin: 23px 0; color: var(--blue); font-size: 1.35rem; }
.price-card>strong span { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; }.price-card li { padding: 9px 0; border-bottom: 1px dashed #d9e1f1; color: #445173; }.price-card li::before { content: "✓"; color: var(--blue); margin-left: 8px; }
.price-card .btn { width: 100%; }

.contact {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 8%, rgba(255,255,255,.18) 0 17%, transparent 17.2%),
        linear-gradient(115deg, #173b82 0%, #287de1 48%, #39c6df 100%);
}
.contact::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    left: -170px;
    bottom: -230px;
    background: rgba(255,255,255,.08);
}
.contact .container { position: relative; z-index: 1; }
.contact-copy { color: #fff; }
.contact-copy .section-kicker { color: #fff; }
.contact-copy .section-kicker::before { background: linear-gradient(90deg,#8cefff,#8e63ff); }
.contact-copy>p { color: rgba(255,255,255,.82); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 75px; align-items: center; }
.whatsapp-contact { display: inline-flex; align-items: center; gap: 14px; margin-top: 25px; padding: 14px 18px; border-radius: 18px; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.32); backdrop-filter: blur(12px); }
.wa-icon { width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #17c96b; font-size: 1.5rem; }
.whatsapp-contact small, .whatsapp-contact strong { display: block; }
.contact-form { padding: 30px; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.55); border-radius: 28px; box-shadow: 0 28px 70px rgba(7,35,88,.24); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 8px; margin-bottom: 14px; font-size: .86rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid #d9e1f0; border-radius: 13px; background: #fff; padding: 13px 14px; outline: none; color: var(--text); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8,124,240,.09); }
.form-note { min-height: 22px; margin: 10px 0 0; color: #187b44; font-size: .83rem; }

.site-footer { padding: 30px 0; border-top: 1px solid var(--line); background: #f8faff; }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 25px; color: var(--muted); font-size: .8rem; }
.footer-wrap img { width: 145px; height: 46px; object-fit: contain; }

.floating-whatsapp { position: fixed; left: 22px; bottom: 22px; z-index: 900; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; color: #fff; background: #19c66a; box-shadow: 0 18px 38px rgba(25,198,106,.3); }
.floating-whatsapp svg { width: 30px; height: 30px; fill: #fff; }.floating-whatsapp span { direction: ltr; font-weight: 700; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 48px; height: 48px; border: 0; border-radius: 15px; color: #fff; background: linear-gradient(135deg,var(--blue),var(--violet)); opacity: 0; pointer-events: none; transform: translateY(15px); transition: .25s; }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }

.video-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: rgba(6,13,38,.72); backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transition: .25s; }
.video-modal.open { opacity: 1; visibility: visible; }
.video-modal-panel { width: min(430px,100%); position: relative; padding: 14px; background: #fff; border-radius: 26px; }
.modal-close { position: absolute; top: -15px; left: -12px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; color: #fff; background: #1b2750; font-size: 1.5rem; }
.demo-video { aspect-ratio: 9 / 16; position: relative; display: grid; place-items: center; text-align: center; color: #fff; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg,#102052,#197ed5 55%,#6b25e7); }
.demo-video p { position: absolute; left: 22px; right: 22px; bottom: 28px; margin: 0; font-size: .82rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }.delay-1 { transition-delay: .12s; }.delay-2 { transition-delay: .24s; }

@media (max-width: 980px) {
    .main-nav { position: fixed; inset: 88px 16px auto; display: grid; gap: 0; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-15px); transition: .25s; }
    .main-nav.open { opacity: 1; visibility: visible; transform: none; }
    .main-nav a { padding: 13px; border-bottom: 1px solid #eef2fa; }
    .main-nav a::after { display: none; }
    .menu-toggle { display: block; }.nav-cta { display: none; }
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 125px; }.hero-grid { gap: 45px; }.hero-copy { text-align: center; }.hero p { margin-inline: auto; }.hero-actions { justify-content: center; }
    .hero-visual { width: min(700px,100%); margin-inline: auto; }.editor-card { transform: none; }
    .services-grid, .portfolio-grid, .pricing-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 650px) {
    .section { padding: 78px 0; }
    .about-copy { padding: 30px 22px; }.brand img { width: 142px; }.nav-wrap { min-height: 76px; }.main-nav { inset-block-start: 76px; }
    .hero h1 { font-size: 2.65rem; }.hero-stats { grid-template-columns: 1fr; }.floating-frame { display: none; }
    .preview-screen { min-height: 220px; }.timeline { height: 125px; }
    .services-grid, .portfolio-grid, .pricing-grid, .about-points, .field-row { grid-template-columns: 1fr; }
    .footer-wrap { flex-direction: column; text-align: center; }
    .floating-whatsapp span { display: none; }.floating-whatsapp { width: 54px; height: 54px; justify-content: center; padding: 0; }
}

/* Dynamic portfolio videos */
.project-video-thumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0e3f87, #0f8ed8 55%, #6330db);
}

.project-preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease, filter .45s ease;
}

.project-card:hover .project-preview-video {
    transform: scale(1.035);
    filter: brightness(.82);
}

.project-video-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(7, 18, 56, .62));
}

.project-video-thumb .project-play,
.project-video-thumb > span {
    z-index: 2;
}

.portfolio-empty {
    margin-top: 24px;
    padding: 34px;
    text-align: center;
    border: 1px dashed #cbd7ec;
    border-radius: 24px;
    background: #f8fbff;
    color: #52617f;
}

.portfolio-empty strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1.15rem;
}

.portfolio-empty code {
    direction: ltr;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 7px;
    background: #eaf1ff;
    color: #174b9d;
}

.modal-video {
    display: block;
    width: 100%;
    max-height: 78vh;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    border-radius: 18px;
    background: #07122e;
}

.modal-title {
    margin: 13px 5px 3px;
    text-align: center;
    color: var(--text);
    font-size: 1rem;
}
