/* =========================================
   PIXORU — Clean, Human, Editorial CSS
   Inspired by Locomotive, Basic/Dept
   ========================================= */

:root {
    --indigo: #2D1B69;
    --teal: #00D4AA;
    --coral: #FF6B5A;
    --dark: #0f0a1e;
    --white: #fff;
    --off-white: #f7f7fb;
    --gray: #6b6b8a;
    --border: #e4e4ed;
    --font-h: 'Space Grotesk', sans-serif;
    --font-b: 'Inter', sans-serif;
}

/* === Scroll Progress === */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
    background: linear-gradient(90deg, var(--teal), var(--coral));
    width: 0%; transition: none;
    pointer-events: none;
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-b);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: var(--font-b); }

/* === Nav === */
.nav {
    position: fixed; top: 3px; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 48px;
    transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 16px 48px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(45,27,105,0.06);
}

/* Animated SVG Logo */
.logo-svg { height: 30px; width: auto; }
.logo-svg .logo-letter { transition: fill 0.3s; }
.logo-svg .logo-arrow {
    transition: transform 0.4s cubic-bezier(0.19,1,0.22,1), fill 0.3s;
    transform-origin: center;
}
.nav-logo:hover .logo-arrow {
    transform: translate(3px, -3px);
    fill: var(--coral);
}
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-link {
    font-family: var(--font-h); font-size: 15px; font-weight: 500;
    color: var(--gray); transition: color 0.2s;
}
.nav-link:hover { color: var(--dark); }
.cta-link {
    font-family: var(--font-h); font-size: 15px; font-weight: 600;
    color: var(--white); background: var(--indigo);
    padding: 10px 24px; border-radius: 8px;
    transition: background 0.2s;
}
.cta-link:hover { background: var(--coral); }
.cta-link span { margin-left: 4px; }

/* === Hero === */
.hero {
    min-height: 100vh;
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
    align-items: center;
    padding: 140px 48px 80px;
    max-width: 1400px; margin: 0 auto;
}
.hero-eyebrow {
    font-family: var(--font-h); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 4px; color: var(--teal);
    margin-bottom: 20px;
}
.hero h1 {
    font-family: var(--font-h); font-size: clamp(36px, 5vw, 64px);
    font-weight: 700; line-height: 1.1; color: var(--dark);
    margin-bottom: 24px;
}
.h-line { display: block; overflow: hidden; }
.h-line.accent { color: var(--indigo); }
.h-line.accent em {
    font-style: normal;
    background: linear-gradient(135deg, var(--teal), var(--coral));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero-body {
    font-size: 18px; color: var(--gray); line-height: 1.7;
    max-width: 480px; margin-bottom: 36px;
}
.hero-cta-row { display: flex; align-items: center; gap: 24px; }

.hero-visual { position: relative; }

/* Floating P watermark */
.hero-watermark {
    position: absolute; top: -40px; right: -60px; width: 350px; height: 350px;
    pointer-events: none; z-index: 0;
    animation: floatWatermark 8s ease-in-out infinite;
}
@keyframes floatWatermark {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

/* Animated Logo Visual */
.hero-logo-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transform: rotate(1.5deg);
    transition: transform 0.4s cubic-bezier(0.19,1,0.22,1);
}
.hero-logo-container:hover { transform: rotate(0deg) scale(1.05); }

.hero-animated-logo {
    width: 200px;
    height: auto;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 20px 30px rgba(0, 212, 170, 0.4));
    animation: floatingLogo 6s ease-in-out infinite;
}
@keyframes floatingLogo {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

.glow-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--teal);
    opacity: 0;
    animation: pulseRing 4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    pointer-events: none;
}
.glow-ring.delay-1 { animation-delay: 1.3s; border-color: var(--coral); }
.glow-ring.delay-2 { animation-delay: 2.6s; border-color: var(--indigo); }

@keyframes pulseRing {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 0.3; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* === Buttons === */
.btn-main {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 14px 32px; border-radius: 8px;
    background: var(--coral); color: var(--white);
    font-family: var(--font-h); font-weight: 600; font-size: 15px;
    border: none; cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.btn-main:hover { background: #e55a4a; transform: translateY(-2px); }
.btn-text {
    font-family: var(--font-h); font-weight: 600; font-size: 15px;
    color: var(--indigo); border-bottom: 2px solid var(--teal);
    padding-bottom: 2px;
    transition: color 0.2s;
}
.btn-text:hover { color: var(--teal); }
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: 8px; width: 100%;
    border: 2px solid var(--border); color: var(--dark);
    font-family: var(--font-h); font-weight: 600; font-size: 15px;
    background: transparent; cursor: pointer;
    transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--indigo); background: var(--indigo); color: var(--white); }

/* === Ticker === */
.ticker {
    background: var(--indigo); padding: 14px 0; overflow: hidden;
}
.ticker-track {
    display: flex; white-space: nowrap; width: max-content;
    animation: tickerScroll 20s linear infinite;
}
.ticker-track span {
    font-family: var(--font-h); font-size: 16px; font-weight: 600;
    color: var(--teal); margin-right: 48px; letter-spacing: 2px;
}
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === Section Intro === */
.section-intro { max-width: 700px; margin-bottom: 64px; }
.label {
    font-family: var(--font-h); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 4px; color: var(--teal);
    margin-bottom: 12px;
}
.section-intro h2 {
    font-family: var(--font-h); font-size: clamp(28px, 4vw, 48px);
    font-weight: 700; line-height: 1.15; color: var(--dark);
}

/* === Work Section === */
.work {
    padding: 120px 48px; max-width: 1400px; margin: 0 auto;
}
.project {
    display: grid; grid-template-columns: 7fr 5fr; gap: 64px;
    align-items: center; margin-bottom: 100px;
}
.project--reverse { grid-template-columns: 5fr 7fr; }
.project--reverse .project-image { order: 2; }
.project--reverse .project-details { order: 1; }

.project-image {
    border-radius: 12px; overflow: hidden;
    position: relative; display: block;
}
.project-image::after {
    content: 'View Project \2192';
    position: absolute; inset: 0;
    background: rgba(45,27,105,0.8);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-h); font-size: 18px; font-weight: 700;
    color: var(--teal); letter-spacing: 1px;
    opacity: 0; transition: opacity 0.4s;
}
.project-image:hover::after { opacity: 1; }
.project-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19,1,0.22,1);
}
.project-image:hover img { transform: scale(1.05); }
.project-type {
    font-family: var(--font-h); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px; color: var(--teal);
    margin-bottom: 8px; display: block;
}
.project-details h3 {
    font-family: var(--font-h); font-size: clamp(28px, 3vw, 40px);
    font-weight: 700; margin-bottom: 16px; color: var(--dark);
}
.project-details p { font-size: 16px; color: var(--gray); margin-bottom: 20px; line-height: 1.7; }
.project-link {
    font-family: var(--font-h); font-weight: 600; font-size: 15px;
    color: var(--coral); transition: color 0.2s;
}
.project-link:hover { color: var(--indigo); }

/* === Services Section === */
.services {
    padding: 120px 48px; max-width: 1400px; margin: 0 auto;
    background: var(--off-white); border-radius: 24px;
    margin-bottom: 0;
    padding-left: 80px; padding-right: 80px;
}
.services-list { display: flex; flex-direction: column; }
.svc {
    display: flex; gap: 32px; align-items: center;
    padding: 40px 0; border-bottom: 1px solid var(--border);
    transition: padding-left 0.4s cubic-bezier(0.19,1,0.22,1), background 0.3s;
    cursor: default;
}
.svc:first-child { border-top: 1px solid var(--border); }
.svc:hover { padding-left: 20px; background: rgba(0,212,170,0.03); }
.svc-num {
    font-family: var(--font-h); font-size: 14px; font-weight: 700;
    color: var(--teal); flex-shrink: 0;
}
.svc h3 {
    font-family: var(--font-h); font-size: 24px; font-weight: 700;
    color: var(--dark); margin-bottom: 8px;
}
.svc p { font-size: 16px; color: var(--gray); max-width: 500px; }
.svc-arrow {
    margin-left: auto; flex-shrink: 0;
    font-size: 24px; color: var(--border);
    transition: transform 0.3s, color 0.3s;
}
.svc:hover .svc-arrow {
    transform: translateX(8px);
    color: var(--teal);
}

/* === Pricing Section === */
.pricing {
    padding: 120px 48px; max-width: 1200px; margin: 0 auto;
}
.pricing-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan {
    padding: 40px 32px; border: 1px solid var(--border); border-radius: 16px;
    background: var(--white); position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(45,27,105,0.1); }
.plan--pop {
    background: var(--indigo); color: var(--white);
    border-color: var(--indigo);
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(45,27,105,0.2);
}
.plan--pop:hover { transform: scale(1.03) translateY(-6px); }
.plan--pop h3, .plan--pop .plan-desc { color: var(--white); }
.plan--pop .plan-price { color: var(--teal); }
.plan--pop ul li { color: rgba(255,255,255,0.8); }
.plan--pop ul li::before { color: var(--teal); }
.pop-label {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--coral); color: var(--white);
    padding: 4px 16px; border-radius: 6px;
    font-family: var(--font-h); font-size: 12px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
}
.plan h3 {
    font-family: var(--font-h); font-size: 22px; font-weight: 700;
    margin-bottom: 4px;
}
.plan-price {
    font-family: var(--font-h); font-size: 36px; font-weight: 700;
    color: var(--indigo); margin-bottom: 8px;
}
.plan-desc { font-size: 14px; color: var(--gray); margin-bottom: 24px; }
.plan ul { margin-bottom: 28px; }
.plan ul li {
    font-size: 15px; color: var(--gray); padding: 6px 0;
    display: flex; align-items: center; gap: 8px;
}
.plan ul li::before {
    content: '✓'; font-weight: 700; color: var(--teal); font-size: 14px;
}
.pricing-footnote {
    text-align: center; margin-top: 28px;
    font-size: 14px; color: var(--gray); font-style: italic;
}

/* === Contact Section === */
.contact {
    padding: 120px 48px; background: var(--dark);
}
.contact-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 5fr 7fr; gap: 80px;
    align-items: start;
}
.contact .label { color: var(--teal); }
.contact h2 {
    font-family: var(--font-h); font-size: clamp(28px, 4vw, 44px);
    font-weight: 700; color: var(--white); line-height: 1.2;
    margin-bottom: 32px;
}
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-info a {
    display: flex; align-items: center; gap: 10px;
    font-size: 15px; color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.contact-info a i { font-size: 20px; color: var(--teal); }
.contact-info a:hover { color: var(--white); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 16px 20px; border-radius: 10px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
    color: var(--white); font-size: 15px;
    transition: border-color 0.2s; width: 100%; outline: none;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.35); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--teal); }
.contact-form select { cursor: pointer; appearance: none; color: rgba(255,255,255,0.5); }
.contact-form select option { background: var(--dark); color: var(--white); }

/* === Footer === */
.footer {
    padding: 24px 48px; background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-left span { font-family: var(--font-h); font-size: 14px; font-weight: 600; color: var(--teal); }
.footer-right { display: flex; align-items: center; gap: 24px; }
.footer-right span, .footer-right a { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-right a:hover { color: var(--teal); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; gap: 48px; padding: 120px 32px 60px; }
    .hero-visual { max-width: 500px; }
    .project { grid-template-columns: 1fr; gap: 32px; }
    .project--reverse .project-image { order: 0; }
    .project--reverse .project-details { order: 0; }
    .pricing-row { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .plan--pop { transform: none; }
    .plan--pop:hover { transform: translateY(-6px); }
    .contact-inner { grid-template-columns: 1fr; gap: 48px; }
    .services { padding-left: 48px; padding-right: 48px; }
}
@media (max-width: 768px) {
    .nav { padding: 16px 24px; }
    .nav.scrolled { padding: 12px 24px; }
    .nav-right { gap: 16px; }
    .nav-link { display: none; }
    .hero { padding: 100px 24px 48px; }
    .work, .pricing { padding: 80px 24px; }
    .services { padding: 80px 24px; margin: 0 24px; border-radius: 16px; }
    .contact { padding: 80px 24px; }
    .footer { padding: 20px 24px; }
    .footer-inner { flex-direction: column; gap: 12px; }
    .hero-card { transform: rotate(0deg); }
}
