/* Returnvoid Design System v2.1 - Expanded */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Outfit:wght@300;400;500;700&display=swap');
@import url('https://fonts.cdnfonts.com/css/rez');

:root {
    --color-bg: #020617;
    --color-surface: #0f1729;
    --color-surface-hover: #1e293b;
    --color-primary: #3b82f6;
    --color-primary-glow: rgba(59, 130, 246, 0.4);
    --color-accent: #06b6d4;
    --color-accent-glow: rgba(6, 182, 212, 0.4);
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: rgba(148, 163, 184, 0.1);

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-brand: 'REZ', sans-serif;
    /* New Brand Font */

    --glass-bg: rgba(15, 23, 41, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: background 0.3s;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: white;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-header.center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-top: 15px;
}

.bg-darker {
    background: rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    color: white;
    border: none;
    box-shadow: 0 0 20px var(--color-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px var(--color-primary-glow);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
}

.btn-primary-full {
    width: 100%;
    display: block;
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px;
}

.btn-outline-full {
    width: 100%;
    display: block;
    border: 1px solid var(--color-border);
    color: white;
    padding: 12px;
}

.btn-outline-full:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}


/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.3s;
}

.navbar.glass {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navbar Logo */
.logo {
    font-size: 1.8rem;
    font-weight: 400;
    /* Regular weight for Rez */
    letter-spacing: 2px;
    font-family: var(--font-brand);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--color-primary);
    text-shadow: 0 0 10px var(--color-primary-glow);
}

.btn-nav {
    padding: 8px 20px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary) !important;
    border-radius: 4px;
}

.btn-nav:hover {
    background: var(--color-primary-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    /* Shift upwards to top */
    padding-top: 180px;
    /* Clear navbar + space */
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.hero-content {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--color-primary);
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    display: block;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* About & Process */
.split-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.check-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.code-block {
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #a5b4fc;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.01);
    transition: 0.3s;
}

.step:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--color-primary);
}

.step-icon {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

/* Pricing Cards (NEW) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--glass-bg);
    text-align: center;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--color-primary);
    transform: scale(1.05);
    z-index: 5;
    background: rgba(59, 130, 246, 0.05);
}

.popular-tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-primary);
    padding: 5px 15px;
    font-size: 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tier-name {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.price span {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.tier-desc {
    color: var(--color-text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.tier-features {
    margin-bottom: 30px;
    text-align: left;
}

.tier-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text);
}

.tier-features li:last-child {
    border-bottom: none;
}

/* Testimonials (NEW) */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--color-primary);
    border-radius: 8px;
}

.stars {
    color: #fbbf24;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.client-info strong {
    display: block;
    color: white;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--color-accent);
}

/* FAQ (NEW) */
.faq-wrapper {
    max-width: 800px;
    margin: 40px auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    padding: 20px 0;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.3s ease;
    color: var(--color-text-muted);
    padding-bottom: 0;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    height: auto;
    opacity: 1;
    padding-bottom: 20px;
}

.toggle {
    font-weight: 300;
    font-size: 1.5rem;
}

.faq-item.active .toggle {
    transform: rotate(45deg);
}


/* Skills Bars (NEW) */
.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 40px auto;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.skill-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    width: 0;
    transition: width 1s ease-out;
}

/* Cards & Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--glass-bg);
    border: var(--glass-border);
    padding: 40px;
    border-radius: 12px;
    position: relative;
    transition: 0.4s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.6);
    border-color: var(--color-primary);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--color-primary-glow));
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image {
    height: 200px;
    background: #111;
    position: relative;
}

/* Placeholders for images with Tech Grid Pattern */
.card-image {
    height: 200px;
    background-color: #0f172a;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
    overflow: hidden;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
}

.src-1,
.src-2,
.src-3 {
    /* Base overrides if needed, but keeping unified tech look for now */
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.7rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-accent);
    border-radius: 4px;
    margin-bottom: 10px;
    width: fit-content;
}

.link-arrow {
    margin-top: auto;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Contact */
.contact-container {
    max-width: 1000px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-panel {
    background: rgba(59, 130, 246, 0.1);
    padding: 50px;
    backdrop-filter: blur(10px);
}

.contact-form {
    padding: 50px;
    background: rgba(15, 23, 42, 0.9);
}

.contact-detail {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    align-items: center;
}

.contact-detail .icon {
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px;
    font-family: var(--font-body);
}

option {
    background-color: #0f1729;
    /* Dark background for options */
    color: white;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    margin-top: 100px;
    text-align: center;
    color: var(--color-text-muted);
}

.footer-logo {
    font-size: 2rem;
    font-family: var(--font-brand);
    color: white;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

/* Responsive Media Queries */
@media(max-width: 900px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Futuristic Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #020617;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    width: 300px;
}

.loader-content .glitch-text {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: var(--font-brand);
}

.loader-status {
    color: var(--color-primary);
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    animation: blink 1s infinite;
}

.progress-bar-wrapper {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--color-primary);
    animation: loadProgress 2s ease-in-out forwards;
    box-shadow: 0 0 10px var(--color-primary);
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    40% {
        width: 30%;
    }

    70% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@media(max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Simplified for now */
    .mobile-menu-toggle {
        display: block;
        width: 30px;
        cursor: pointer;
    }

    .mobile-menu-toggle .bar {
        display: block;
        width: 100%;
        height: 2px;
        background: white;
        margin: 6px 0;
    }
}