:root {
    --primary-color: #0f172a;
    /* Slate 900 */
    --secondary-color: #1e293b;
    /* Slate 800 */
    --accent-cyan: #06b6d4;
    /* Cyan 500 */
    --accent-gold: #fbbf24;
    /* Amber 400 */
    --text-light: #f8fafc;
    /* Slate 50 */
    --text-dim: #94a3b8;
    /* Slate 400 */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Roboto', system-ui, -apple-system, sans-serif;
    --transition-speed: 0.3s;
}

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

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-dim);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), #3b82f6);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-dim);
    color: var(--text-light);
}

.btn-outline:hover {
    border-color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent-cyan);
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-only {
    display: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at top right, #1e293b 0%, var(--primary-color) 60%);
    position: relative;
    overflow: hidden;
}

/* Animated Grid Background */
.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 span {
    display: block;
    background: linear-gradient(to right, #fff, var(--text-dim));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text .highlight {
    color: var(--accent-cyan);
    -webkit-text-fill-color: var(--accent-cyan);
}

.hero-visual {
    position: relative;
}

/* Card Float Animation */
.card-showcase {
    position: relative;
    width: 100%;
    height: 400px;
    perspective: 1000px;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateY(-5deg);
    }

    50% {
        transform: translateY(-20px) rotateY(5deg);
    }
}

/* Features/Types Section */
.cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.features-section {
    padding: 8rem 0;
    background: var(--primary-color);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(6, 182, 212, 0.3);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.pvc .card-icon {
    color: var(--accent-cyan);
}

.pasting .card-icon {
    color: var(--accent-gold);
}

/* Footer */
footer {
    background: #020617;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 2rem auto 0;
    }

    .cta-group .btn {
        width: 100%;
        text-align: center;
    }

    /* Mobile Navigation */
    .mobile-toggle {
        display: flex;
        z-index: 1002;
        /* Ensure above the menu */
    }

    .mobile-toggle.active {
        position: fixed;
        top: 25px;
        right: 2rem;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    /* Hamburger Animation */
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero {
        padding-top: 100px;
    }
}

/* ============================================
   PAGE-SPECIFIC STYLES
   ============================================ */


/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    object-fit: cover;
}

.hero-slide.active {
    opacity: 1;
}

/* Types Page Styles */
.type-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: radial-gradient(circle at top, #1e293b 0%, var(--primary-color) 70%);
}

.type-section {
    padding: 5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.type-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.type-content.reverse {
    direction: rtl;
}

.type-content.reverse .type-text {
    direction: ltr;
}

.type-visual {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.specs-list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.spec-icon {
    color: var(--accent-cyan);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 3rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-light);
}

@media(max-width: 768px) {

    .type-content,
    .type-content.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .type-visual {
        height: 300px;
    }

    .specs-list {
        grid-template-columns: 1fr;
    }
}

/* Data Collection Page Styles */
.selection-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem;
    background: radial-gradient(circle at center, #1e293b 0%, var(--primary-color) 100%);
}

.role-cards {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.role-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    width: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.role-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.role-card h3 {
    font-size: 1.8rem;
    margin: 1rem 0;
}

.role-card .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.workflow-section {
    display: none;
    padding: 5rem 0;
    background: var(--primary-color);
    animation: fadeIn 0.5s ease-out;
    scroll-margin-top: 120px;
}

.workflow-section.active {
    display: block;
}

.step-list {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.step-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.step-number {
    background: var(--accent-cyan);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-family: var(--font-heading);
}

.pasting .step-number {
    background: var(--accent-gold);
    color: black;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Technology Page Styles */
.tech-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: radial-gradient(circle at top, #1e293b 0%, var(--primary-color) 70%);
}

.tech-section {
    padding: 5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.tech-item h3 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list li::before {
    content: "?";
    color: var(--accent-cyan);
    font-weight: bold;
}

.security-showcase {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
    padding: 4rem;
    border-radius: 20px;
    margin-top: 3rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.security-badge {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: transform 0.3s;
}

.security-badge:hover {
    transform: scale(1.05);
}

.security-badge .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

@media(max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .security-showcase {
        padding: 2rem;
    }
}

/* Contact Page Styles */
.contact-hero {
    padding: 10rem 0 5rem;
    text-align: center;
    background: radial-gradient(circle at top, #1e293b 0%, var(--primary-color) 70%);
}

.contact-section {
    padding: 5rem 0;
    background: var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-wrapper h2 {
    margin-bottom: 2rem;
    color: var(--accent-cyan);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    margin-top: 1rem;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-icon {
    transition: transform 0.3s ease;
}

.btn-submit:hover .submit-icon {
    transform: translateX(5px);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-card p {
    color: var(--text-dim);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.faq-section {
    padding: 5rem 0;
    background: var(--secondary-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(6, 182, 212, 0.3);
}

.faq-item h3 {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.faq-item p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

@media(max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-form-wrapper {
        padding: 2rem;
    }
}

/* Fix dropdown option colors */
.form-group select option {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 0.5rem;
}

.form-group select option:hover,
.form-group select option:checked {
    background: var(--accent-cyan);
    color: white;
}

/* Verification System Styles */
.verification-input-group {
    display: flex;
    gap: 1rem;
}

.verification-input-group input {
    flex: 1;
    letter-spacing: 2px;
    font-size: 1.1rem;
    text-align: center;
}

.verification-input-group button {
    white-space: nowrap;
    padding: 0 1.5rem;
    height: 48px;
    /* Match input height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-timer {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verification-timer.active {
    color: var(--primary-color);
}

.verification-timer.expired {
    color: #ef4444;
}

/* Quote Page Styles */
.quote-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background: radial-gradient(circle at top right, #1e293b 0%, var(--primary-color) 100%);
}

.quote-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.quote-card .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.quote-card .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quote-card .form-group.full {
    grid-column: 1 / -1;
}

.quote-card label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.quote-card input,
.quote-card select,
.quote-card textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

.quote-card input:focus,
.quote-card select:focus,
.quote-card textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.success-banner {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #10b981;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    object-fit: contain;
}

.hero-slide.active {
    opacity: 1;
}