/* ==========================================================================
   Multiwave-Demo — Neon Dark Mode Theme
   ========================================================================== */

:root {
    --bg-dark: #05070d;
    --bg-panel: #0d1120;
    --bg-panel-alt: #10152a;
    --neon-cyan: #00f2fe;
    --neon-purple: #a259ff;
    --neon-pink: #ff007f;
    --text-primary: #f2f5ff;
    --text-secondary: #9aa3c0;
    --border-glow: rgba(0, 242, 254, 0.25);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* Utility text ------------------------------------------------------ */

.text-neon-gradient {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.highlight-cyan {
    color: var(--neon-cyan);
}

/* Buttons ------------------------------------------------------------ */

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    color: #05070d;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.55);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glow);
}

.btn-secondary:hover {
    background: rgba(0, 242, 254, 0.08);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Header -------------------------------------------------------------- */

.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 7, 13, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.03em;
}

.logo-neon {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}

.nav-menu ul {
    display: flex;
    gap: 36px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
}

.mobile-nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Section headers ------------------------------------------------------ */

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-tagline {
    display: inline-block;
    color: var(--neon-purple);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
}

/* Badge ------------------------------------------------------------------ */

.badge-neon {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(162, 89, 255, 0.1);
    border: 1px solid rgba(162, 89, 255, 0.4);
    color: var(--neon-purple);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

/* Hero -------------------------------------------------------------------- */

.hero-section {
    position: relative;
    padding: 120px 0 100px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15), rgba(162, 89, 255, 0.08) 45%, transparent 70%);
    filter: blur(20px);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.glass-card-hero {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 60px rgba(0, 242, 254, 0.12), 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.glass-header {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.glass-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.title-line {
    width: 60%;
    height: 18px;
}

.text-line {
    width: 100%;
}

.text-line-short {
    width: 70%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.skeleton-block {
    height: 90px;
    border-radius: 10px;
}

.block-cyan {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(0, 242, 254, 0.05));
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.block-purple {
    background: linear-gradient(135deg, rgba(162, 89, 255, 0.25), rgba(162, 89, 255, 0.05));
    border: 1px solid rgba(162, 89, 255, 0.3);
}

.pulse-button-mock {
    width: 130px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    animation: pulse-glow 2.4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 242, 254, 0.4); }
    50% { box-shadow: 0 0 24px rgba(162, 89, 255, 0.6); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Services ------------------------------------------------------------ */

.services-section {
    padding: 100px 0;
    background: var(--bg-panel);
}

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

.service-card {
    background: var(--bg-panel-alt);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 36px 28px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-cyan {
    color: var(--neon-cyan);
    background: rgba(0, 242, 254, 0.1);
}

.icon-purple {
    color: var(--neon-purple);
    background: rgba(162, 89, 255, 0.1);
}

.icon-green {
    color: #39ff88;
    background: rgba(57, 255, 136, 0.1);
}

.service-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Portfolio ------------------------------------------------------------- */

.portfolio-section {
    padding: 100px 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-glow);
}

.filter-btn.active {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    color: #05070d;
    border-color: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
}

.portfolio-item {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-item:hover {
    transform: translateY(-6px);
}

.portfolio-img-container {
    position: relative;
    height: 200px;
}

.portfolio-mock-img {
    height: 100%;
    width: 100%;
    padding: 16px;
    background: linear-gradient(145deg, #10152a, #171d38);
}

.mock-ui-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-row {
    height: 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.header-mock {
    width: 50%;
    height: 14px;
}

.chart-mock {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: transparent;
}

.bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--neon-cyan), transparent);
}

.bar-1 { height: 40%; }
.bar-2 { height: 75%; }
.bar-3 { height: 55%; }

.hero-mock {
    width: 80%;
    height: 20px;
    background: var(--neon-purple);
}

.button-mock {
    width: 35%;
    height: 24px;
    background: var(--neon-cyan);
    border-radius: 6px;
}

.grid-mock {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: transparent;
}

.card-mock {
    border-radius: 8px;
    background: rgba(162, 89, 255, 0.15);
    border: 1px solid rgba(162, 89, 255, 0.3);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 13, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    padding: 10px 22px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    color: #05070d;
    font-weight: 600;
    font-size: 0.9rem;
}

.portfolio-info {
    padding: 20px 22px;
}

.portfolio-category {
    color: var(--neon-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.portfolio-project-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-top: 6px;
}

/* Calculator ------------------------------------------------------------- */

.calculator-section {
    position: relative;
    padding: 100px 0;
    background: var(--bg-panel);
    overflow: hidden;
}

.calculator-bg-glow {
    position: absolute;
    bottom: -300px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(162, 89, 255, 0.15), transparent 70%);
    filter: blur(10px);
}

.calculator-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.calc-group {
    margin-bottom: 32px;
}

.calc-label {
    display: block;
    font-weight: 500;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.neon-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.neon-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.7);
    cursor: pointer;
}

.neon-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.7);
    cursor: pointer;
}

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

.checkbox-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #05070d;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.neon-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--bg-panel-alt);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.summary-card {
    background: var(--bg-panel-alt);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.1);
    position: sticky;
    top: 100px;
}

.summary-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.price-display {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    margin: 16px 0;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.divider-glow {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
    margin-bottom: 24px;
}

.summary-features {
    text-align: left;
    margin-bottom: 28px;
}

.summary-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.feature-status.check {
    color: #39ff88;
    font-weight: 700;
}

/* Contact ------------------------------------------------------------------ */

.contact-section {
    padding: 100px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-block p {
    color: var(--text-secondary);
    margin: 20px 0 32px;
    max-width: 460px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.method-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-method-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-method-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-form-block {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 40px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.neon-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 8px;
    background: var(--bg-panel-alt);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.neon-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
}

.neon-input::placeholder {
    color: #5a6488;
}

/* Footer -------------------------------------------------------------------- */

.main-footer {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-container p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 24px;
}

.social-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--neon-cyan);
}

/* Project detail pages -------------------------------------------------------- */

.project-hero {
    padding: 160px 0 80px;
    text-align: center;
}

.project-hero .section-tagline {
    margin-bottom: 16px;
}

.project-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    margin-bottom: 20px;
}

.project-hero p {
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto;
}

.project-cover {
    height: 320px;
    border-radius: 16px;
    margin: 60px auto 0;
    max-width: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-details {
    padding: 80px 0 120px;
}

.project-meta-grid {
    max-width: 1000px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-meta-item {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.project-meta-item h4 {
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.project-body {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.project-body h2 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 36px 0 14px;
}

.project-body p {
    margin-bottom: 16px;
}

.back-to-portfolio {
    display: block;
    text-align: center;
    margin-top: 48px;
    color: var(--neon-cyan);
    font-weight: 600;
}

@media (max-width: 720px) {
    .project-meta-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive ------------------------------------------------------------------ */

@media (max-width: 900px) {
    .hero-container,
    .calculator-wrapper,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-visual {
        order: -1;
    }

    .summary-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(5, 7, 13, 0.97);
        backdrop-filter: blur(12px);
        transform: translateY(-140%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 12px 24px 24px;
    }

    .nav-menu ul li {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .header-actions #header-cta-btn {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

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