/*
Theme Name: Codeverse
Theme URI: https://launchkraftsolutions.com
Author: Launch Kraft Solutions
Description: Premium Light Blush White Theme powered by GSAP.
Version: 6.0.0
Text Domain: codeverse
*/

:root {
    /* Color Palette - Light Blush White System */
    --bg-dark: #FFF8F8;        /* Light Blush Off-White Canvas */
    --bg-surface: #FFFFFF;     /* Pure Crisp White */
    --bg-surface-elevated: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-hover: rgba(255, 255, 255, 0.95);

    /* Brand & Accent Colors - Rose Blush */
    --primary: #E11D48;        /* Vibrant Rose Accent */
    --primary-indigo: #BE123C; /* Deep Rose */
    --accent-cyan: #F43F5E;    /* Soft Blush Glow */
    --accent-teal: #0D9488;    /* Precision Teal */
    --accent-purple: #9333EA;

    /* Typography Colors - High Contrast Slate */
    --text-heading: #0F172A;   /* Deep Slate */
    --text-body: #334155;      /* Dark Charcoal Body */
    --text-muted: #64748B;     /* Muted Slate */
    --text-dim: #94A3B8;

    /* Borders & Lines */
    --border-glass: #FCE7F3;
    --border-glass-hover: #FDA4AF;
    --border-subtle: #F1F5F9;

    /* Typography & Spacing */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-glass: 0 10px 30px rgba(225, 29, 72, 0.05), 0 4px 12px rgba(15, 23, 42, 0.03);
    --shadow-glow: 0 0 35px rgba(225, 29, 72, 0.15);
    --shadow-hover: 0 20px 45px rgba(225, 29, 72, 0.12);

    /* Animation Transitions */
    --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET & BASE STYLES */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* AMBIENT LIGHT BLUSH LIGHTING LAYER */
.bg-lighting-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.radial-glow-1 {
    position: absolute;
    top: -150px;
    right: -100px;
    width: 850px;
    height: 850px;
    background: radial-gradient(circle, rgba(251, 113, 133, 0.18) 0%, rgba(244, 63, 94, 0.06) 45%, transparent 70%);
    filter: blur(80px);
    animation: floatGlow1 18s infinite alternate ease-in-out;
}

.radial-glow-2 {
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(254, 205, 211, 0.25) 0%, rgba(225, 29, 72, 0.05) 50%, transparent 70%);
    filter: blur(90px);
    animation: floatGlow2 22s infinite alternate ease-in-out;
}

@keyframes floatGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, 80px) scale(1.1); }
}

@keyframes floatGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, -60px) scale(1.15); }
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(225, 29, 72, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

/* CUSTOM MAGNETIC CURSOR */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.4);
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(225, 29, 72, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

.custom-cursor.active {
    width: 20px;
    height: 20px;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 25px rgba(244, 63, 94, 0.5);
}

.cursor-follower.active {
    width: 70px;
    height: 70px;
    border-color: var(--accent-cyan);
    background: rgba(244, 63, 94, 0.06);
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* TYPOGRAPHY SCALE */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

h1 { font-size: clamp(2.75rem, 5.5vw, 4.75rem); }
h2 { font-size: clamp(2.25rem, 3.8vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-body);
    font-size: 1.075rem;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* UI BUTTONS & BADGES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-indigo) 100%);
    color: #FFFFFF;
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(225, 29, 72, 0.45);
    color: #FFFFFF;
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-heading);
    border-color: var(--border-glass);
    box-shadow: var(--shadow-glass);
}

.btn-secondary:hover {
    background: #FFF1F2;
    border-color: var(--border-glass-hover);
    color: var(--primary);
    transform: translateY(-3px);
}

.badge-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 9999px;
    background: #FFF1F2;
    border: 1px solid #FECDD3;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.825rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.1);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
    100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

.gradient-text {
    background: linear-gradient(135deg, #0F172A 0%, var(--primary) 60%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* SPOTLIGHT MOUSE-TRACKING CARD (LIGHT BLUSH THEME) */
.spotlight-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-glass);
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(251, 113, 133, 0.1), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* HEADER & NAVIGATION */
header#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 248, 248, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 16px 0;
    transition: var(--transition-base);
}

header#main-header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 25px rgba(225, 29, 72, 0.08);
    border-bottom-color: var(--border-glass-hover);
}

nav.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-body);
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    transition: var(--transition-fast);
    border-radius: 2px;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-body);
    background: var(--bg-surface);
    padding: 8px 18px;
    border-radius: 9999px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
}

.status-pill:hover {
    border-color: #25D366;
    background: #F0FDF4;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    z-index: 1003;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text-heading);
    transition: var(--transition-fast);
}

/* HERO SECTION */
section.hero-section {
    padding: 170px 0 90px;
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    margin: 24px 0 28px;
    color: var(--text-heading);
}

.hero-content p.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 44px;
    max-width: 620px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-trust-bar {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border-glass);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-item .trust-icon {
    color: #F59E0B;
    font-size: 1rem;
}

.trust-item .trust-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-body);
}

/* HERO VISUAL CARD */
.hero-visual-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-hover);
    padding: 28px;
    position: relative;
    transition: var(--transition-smooth);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.window-dots {
    display: flex;
    gap: 8px;
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-dots span:nth-child(1) { background-color: #EF4444; }
.window-dots span:nth-child(2) { background-color: #F59E0B; }
.window-dots span:nth-child(3) { background-color: #10B981; }

.dashboard-status {
    font-size: 0.775rem;
    font-family: monospace;
    color: var(--primary);
    background: #FFF1F2;
    border: 1px solid #FECDD3;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.metric-mini-card {
    background: var(--bg-dark);
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.metric-mini-card .m-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-mini-card .m-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-top: 6px;
}

/* PROOF & METRICS STRIP */
section.proof-section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
    background: var(--bg-surface);
    border-y: 1px solid var(--border-glass);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.metric-card {
    text-align: center;
    padding: 28px 20px;
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
}

.metric-sub {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* SECTION TITLES & HEADERS */
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 64px;
}

.section-header .subtitle {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
    display: block;
}

.section-header p {
    margin-top: 18px;
    font-size: 1.15rem;
    color: var(--text-body);
}

/* CAPABILITIES SECTION */
section.capabilities-section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

.capability-card {
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cap-icon-box {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: #FFF1F2;
    border: 1px solid #FECDD3;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    margin-bottom: 28px;
}

.capability-card h3 {
    margin-bottom: 14px;
}

.capability-card p {
    margin-bottom: 28px;
}

.cap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.cap-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-body);
    background: var(--bg-dark);
    padding: 5px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
}

/* PROCESS SECTION */
section.process-section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
    background: var(--bg-surface);
    border-y: 1px solid var(--border-glass);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.process-step-card {
    padding: 36px 28px;
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(225, 29, 72, 0.12);
    margin-bottom: 20px;
    line-height: 1;
}

.process-step-card h4 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.process-step-card p {
    font-size: 0.95rem;
    color: var(--text-body);
}

/* FEATURED PORTFOLIO */
section.portfolio-section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.portfolio-card {
    padding: 0;
    overflow: hidden;
}

.p-media-box {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.p-media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-card:hover .p-media-box img {
    transform: scale(1.08);
}

.p-details {
    padding: 36px;
}

.p-outcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFF1F2;
    border: 1px solid #FECDD3;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.825rem;
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 16px;
}

.p-details h3 {
    margin-bottom: 12px;
}

.p-details p {
    margin-bottom: 24px;
    font-size: 1rem;
}

/* TESTIMONIALS SECTION */
section.testimonials-section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
    background: var(--bg-surface);
    border-y: 1px solid var(--border-glass);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testi-stars {
    color: #F59E0B;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    gap: 6px;
}

.testimonial-card blockquote {
    font-size: 1.05rem;
    color: var(--text-body);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 28px;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-indigo));
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.author-info h5 {
    font-size: 1rem;
    color: var(--text-heading);
}

.author-info span {
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* CONTACT / INQUIRY SECTION */
section.contact-section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.contact-card {
    padding: 64px;
    max-width: 960px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-hover);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-heading);
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    background: var(--bg-dark);
    color: var(--text-heading);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
    background: var(--bg-surface);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* FOOTER */
footer {
    position: relative;
    z-index: 2;
    background: #FFF1F2;
    color: var(--text-heading);
    padding: 100px 0 40px;
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 340px;
    font-size: 0.95rem;
}

.footer-col h4 {
    color: var(--text-heading);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: var(--text-body);
    font-size: 0.925rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 36px;
    border-top: 1px solid rgba(225, 29, 72, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-body);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--primary);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .hero-grid,
    .capabilities-grid,
    .portfolio-grid,
    .testimonials-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .process-grid,
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .status-pill, .custom-cursor, .cursor-follower {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
    }

    .process-grid,
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .contact-card {
        padding: 36px 24px;
    }

    section {
        padding: 80px 0;
    }

    section.hero-section {
        padding: 130px 0 70px;
    }
}
