/* ============================================
   Connect Tech Lab - Professional Light Design
   Inspired by AICM / Modern SaaS
   ============================================ */

/* CSS Variables */
:root {
    /* Light Mode (Default) */
    --bg-primary: #f5f3f7;
    --bg-secondary: #ebe8ef;
    --bg-tertiary: #e0dce6;
    --bg-gradient: linear-gradient(135deg, #f8f6fa 0%, #ebe7f0 50%, #e5e1eb 100%);
    --text-primary: #1a1625;
    --text-secondary: #4a4458;
    --text-tertiary: #7a7389;
    --accent-primary: #8b7fba;
    --accent-secondary: #a594d0;
    --accent-light: rgba(139, 127, 186, 0.1);
    --accent-glow: rgba(139, 127, 186, 0.3);
    --border-color: rgba(139, 127, 186, 0.15);
    --card-bg: rgba(255, 255, 255, 0.6);
    --card-bg-hover: rgba(255, 255, 255, 0.85);
    --card-shadow: 0 4px 24px rgba(139, 127, 186, 0.1);
    --card-shadow-hover: 0 12px 40px rgba(139, 127, 186, 0.2);
    --header-bg: rgba(245, 243, 247, 0.85);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #13111a;
    --bg-secondary: #1a1725;
    --bg-tertiary: #221f2e;
    --bg-gradient: linear-gradient(135deg, #13111a 0%, #1a1725 50%, #221f2e 100%);
    --text-primary: #f5f3f7;
    --text-secondary: #b8b3c4;
    --text-tertiary: #8a8499;
    --border-color: rgba(139, 127, 186, 0.2);
    --card-bg: rgba(26, 23, 37, 0.7);
    --card-bg-hover: rgba(34, 31, 46, 0.9);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 12px 40px rgba(139, 127, 186, 0.15);
    --header-bg: rgba(19, 17, 26, 0.85);
}

/* ============================================
   Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-gradient);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background var(--transition-normal), color var(--transition-normal);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

a:hover {
    color: var(--accent-primary);
}

ul {
    list-style: none;
}

/* ============================================
   Animated Background - Soft & Professional
   ============================================ */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-gradient);
}

/* Soft gradient mesh */
.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(165, 148, 208, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 80%, rgba(139, 127, 186, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 70%, rgba(180, 170, 210, 0.08) 0%, transparent 35%);
    animation: meshFloat 20s ease-in-out infinite;
}

@keyframes meshFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 15px); }
}

/* Aurora/Glow effect - soft ambient lighting */
.aurora {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    background:
        radial-gradient(ellipse at 70% 25%, rgba(175, 160, 215, 0.15) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 55%, rgba(195, 180, 230, 0.1) 0%, transparent 35%);
    filter: blur(80px);
    animation: auroraMove 35s ease-in-out infinite;
}

@keyframes auroraMove {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(-20px, 15px) scale(1.03); opacity: 0.8; }
}

/* Soft ambient glow - very subtle backdrop */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: orbFloat 40s ease-in-out infinite;
}

.glow-orb-1 {
    top: 5%;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(175, 160, 215, 0.35) 0%, transparent 70%);
}

.glow-orb-2 {
    bottom: 10%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(190, 175, 225, 0.3) 0%, transparent 70%);
    animation-delay: -15s;
}

.glow-orb-3 {
    top: 45%;
    left: 40%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(200, 185, 235, 0.2) 0%, transparent 70%);
    animation-delay: -25s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(20px, -30px); }
    66% { transform: translate(-15px, 20px); }
}

/* Hide particles and shooting stars */
.particles,
.particle,
.shooting-star {
    display: none;
}

/* ============================================
   MODERN FLOATING SHAPES - BOLD & VISIBLE
   ============================================ */

/* Base polygon style - SOLID & VISIBLE */
.polygon {
    position: absolute;
    z-index: 1;
}

/* Shape 1 - Large purple pentagon top-right */
.polygon-1 {
    top: 50px;
    right: 50px;
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    opacity: 0.85;
    animation: shape1Float 12s ease-in-out infinite;
}

/* Shape 2 - Diamond on the left */
.polygon-2 {
    top: 250px;
    left: 30px;
    width: 160px;
    height: 160px;
    background: linear-gradient(45deg, #c4b5fd 0%, #a78bfa 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    opacity: 0.8;
    animation: shape2Float 10s ease-in-out infinite;
}

/* Shape 3 - Hexagon bottom-right */
.polygon-3 {
    bottom: 100px;
    right: 80px;
    width: 180px;
    height: 180px;
    background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.75;
    animation: shape3Float 14s ease-in-out infinite;
}

/* Shape 4 - Triangle top-left */
.polygon-4 {
    top: 80px;
    left: 120px;
    width: 140px;
    height: 140px;
    background: linear-gradient(120deg, #ddd6fe 0%, #c4b5fd 100%);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    opacity: 0.9;
    animation: shape4Float 8s ease-in-out infinite;
}

/* Shape 5 - Rectangle bottom-left */
.polygon-5 {
    bottom: 150px;
    left: 60px;
    width: 180px;
    height: 100px;
    background: linear-gradient(90deg, #a78bfa 0%, #c4b5fd 100%);
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    opacity: 0.7;
    animation: shape5Float 16s ease-in-out infinite;
}

/* ANIMATIONS - Smooth floating */
@keyframes shape1Float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 40px) rotate(10deg); }
}

@keyframes shape2Float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(40px, -30px) rotate(-15deg); }
}

@keyframes shape3Float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-25px, -35px) rotate(8deg); }
}

@keyframes shape4Float {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    50% { transform: translate(25px, 30px) rotate(15deg) scale(1.1); }
}

@keyframes shape5Float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -15px) rotate(5deg); }
    50% { transform: translate(35px, 10px) rotate(-5deg); }
    75% { transform: translate(15px, 25px) rotate(3deg); }
}

/* ============================================
   Header - Clean & Minimal
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    transition: transform var(--transition-normal);
}

.logo:hover {
    color: var(--accent-primary);
}

.logo:hover .logo-icon {
    transform: rotate(90deg);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

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

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

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--card-bg-hover);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.theme-toggle svg {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.theme-toggle:hover svg {
    color: var(--accent-primary);
}

/* Dark mode default - show sun to switch to light */
.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

/* ============================================
   Hero Section - Clean with 3D Space
   ============================================ */
.hero {
    padding: var(--spacing-3xl) 0;
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 6px 16px;
    background: var(--accent-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

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

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* 3D Animation Container */
.hero-visual {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide default glow bars */
.hero-visual .glow-bar {
    display: none;
}

/* Hero Visual - Professional Network Graphic */
.hero-visual-fallback {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Central Hub Circle */
.hero-visual-fallback::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    box-shadow:
        0 0 60px rgba(139, 92, 246, 0.5),
        0 0 100px rgba(139, 92, 246, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.2);
    animation: hubPulse 3s ease-in-out infinite;
}

/* Orbiting Ring */
.hero-visual-fallback::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border: 2px dashed rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    animation: orbitSpin 20s linear infinite;
}

@keyframes hubPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 0 60px rgba(139, 92, 246, 0.5),
            0 0 100px rgba(139, 92, 246, 0.3),
            0 20px 40px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow:
            0 0 80px rgba(139, 92, 246, 0.6),
            0 0 120px rgba(139, 92, 246, 0.4),
            0 25px 50px rgba(0, 0, 0, 0.25);
    }
}

@keyframes orbitSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating profile cards around the hub */
.hero-visual::before {
    content: '👤';
    position: absolute;
    top: 15%;
    right: 20%;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: floatCard1 4s ease-in-out infinite;
}

.hero-visual::after {
    content: '💼';
    position: absolute;
    bottom: 20%;
    left: 15%;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: floatCard2 5s ease-in-out infinite;
}

@keyframes floatCard1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, 15px); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -10px); }
}

/* ============================================
   Buttons - Clean & Professional
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: var(--card-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    color: var(--bg-primary);
}

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

.btn-secondary:hover {
    background: var(--card-bg);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

/* Legacy button styles for form pages */
.btn-icon {
    font-size: 1.25rem;
}

.btn-subtext {
    display: none;
}

.btn-inline {
    padding: var(--spacing-sm) var(--spacing-lg);
}

/* ============================================
   Sections - Clean Cards
   ============================================ */
.how-it-works,
.categories,
.why-section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: var(--spacing-2xl);
    letter-spacing: -0.02em;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.step {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.step:hover {
    transform: translateY(-8px);
    background: var(--card-bg-hover);
    box-shadow: var(--card-shadow-hover);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--accent-light);
    color: var(--accent-primary);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.step-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Category Cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

.category-card {
    padding: var(--spacing-xl);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.category-card:hover {
    transform: translateY(-8px);
    background: var(--card-bg-hover);
    box-shadow: var(--card-shadow-hover);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.category-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.category-list {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.category-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li:hover {
    color: var(--accent-primary);
    padding-left: 8px;
}

/* Why Cards */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

.why-card {
    padding: var(--spacing-xl);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.why-card:hover {
    transform: translateY(-8px);
    background: var(--card-bg-hover);
    box-shadow: var(--card-shadow-hover);
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.why-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--spacing-xl) 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.footer-content {
    text-align: center;
}

.footer-text {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* ============================================
   Form Styles
   ============================================ */
.form-page {
    padding: var(--spacing-2xl) 0;
    min-height: calc(100vh - 140px);
    position: relative;
}

.form-container {
    max-width: 680px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.form-section {
    background: var(--card-bg);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.form-section:hover {
    background: var(--card-bg-hover);
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.form-label .required {
    color: #e55;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

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

/* Fix autofill background color bug */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active,
.form-select:-webkit-autofill,
.form-textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #1a1725 inset !important;
    -webkit-text-fill-color: #f5f3f7 !important;
    box-shadow: 0 0 0 1000px #1a1725 inset !important;
    caret-color: #f5f3f7 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Light mode autofill */
[data-theme="light"] .form-input:-webkit-autofill,
[data-theme="light"] .form-input:-webkit-autofill:hover,
[data-theme="light"] .form-input:-webkit-autofill:focus,
[data-theme="light"] .form-input:-webkit-autofill:active,
[data-theme="light"] .form-select:-webkit-autofill,
[data-theme="light"] .form-textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #f5f3f7 inset !important;
    -webkit-text-fill-color: #1a1625 !important;
    box-shadow: 0 0 0 1000px #f5f3f7 inset !important;
    caret-color: #1a1625 !important;
}

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

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a7389' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Checkbox and Radio */
.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.checkbox-item:hover,
.radio-item:hover {
    border-color: var(--accent-primary);
    background: var(--accent-light);
}

.checkbox-item input,
.radio-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

.checkbox-item span,
.radio-item span {
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Form Submit */
.form-submit {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.btn-submit {
    padding: 16px 48px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--card-shadow);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Success Message */
.success-message {
    display: none;
    text-align: center;
    padding: var(--spacing-2xl);
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.success-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.success-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.success-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: var(--spacing-md);
        padding-top: var(--spacing-sm);
        border-top: 1px solid var(--border-color);
    }

    .hero {
        padding: var(--spacing-2xl) 0;
        min-height: auto;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .steps,
    .category-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: var(--spacing-md);
    }

    .checkbox-group,
    .radio-group {
        flex-direction: column;
    }

    .checkbox-item,
    .radio-item {
        width: 100%;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* Scrollbar - Subtle */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Selection */
::selection {
    background: var(--accent-light);
    color: var(--text-primary);
}
