* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0f1c;
    --secondary-bg: #1a2332;
    --accent-bg: #2a3441;
    --neon-blue: #00d4ff;
    --neon-purple: #8b5cf6;
    --neon-green: #10b981;
    --neon-orange: #f59e0b;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #1e293b 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-blue);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(30px) rotate(240deg); }
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;    
    gap: 1rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 0.5rem;
}

.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
    max-width: 600px;
}

.nav-tab {
    padding: 0.5rem 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
    text-align: center;
    flex: 1;
    min-width: 75px;
    max-width: 110px;
    /* Better touch targets with proper spacing */
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.nav-tab i {
    font-size: 0.9rem;
    margin-right: 0.25rem;
}

.nav-tab.active {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

/* Hero Section */
.hero {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0.2;
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.7)); }
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Glass Card System */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

/* Step Cards */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.step-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
    border-color: var(--neon-blue);
}

.step-number {
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Image Placeholder Templates */
.image-placeholder {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--accent-bg) 100%);
    border: 2px dashed var(--glass-border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-placeholder:hover {
    border-color: var(--neon-blue);
    background: linear-gradient(135deg, var(--accent-bg) 0%, var(--secondary-bg) 100%);
}

.placeholder-icon {
    font-size: 3rem;
    color: var(--neon-blue);
    margin-bottom: 1rem;
}

.placeholder-text {
    color: var(--text-secondary);
    text-align: center;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--secondary-bg), var(--accent-bg));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

/* Comparison Slider */
.comparison-slider {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin: 2rem 0;
    height: 300px;
    background: var(--secondary-bg);
}

.before-after {
    display: flex;
    height: 100%;
}

.before, .after {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.after {
    background: linear-gradient(135deg, var(--neon-green) 0%, #059669 100%);
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Interactive Calculator */
.calculator-widget {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.calc-input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.input-field {
    background: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.input-field:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.calc-button {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.calc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.calc-result {
    background: var(--secondary-bg);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid var(--neon-green);
}

/* Progress Timeline */
.timeline {
    position: relative;
    margin: 3rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--neon-blue), var(--neon-purple));
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--neon-blue);
    border-radius: 50%;
    border: 3px solid var(--primary-bg);
}

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
}

/* Interactive Hotspots */
.hotspot-container {
    position: relative;
    background: var(--secondary-bg);
    border-radius: 15px;
    margin: 2rem 0;
    min-height: 100px;
    height: 230px;
    overflow: hidden;
}

.hotspot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--neon-orange);
    border-radius: 50%;
    cursor: pointer;
    animation: pulse 2s infinite;
    border: 3px solid white;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.hotspot-tooltip {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hotspot:hover .hotspot-tooltip {
    opacity: 1;
}

/* Stats Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Feature Showcase */
.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
    align-items: center;
}

.feature-text h3 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-visual {
    height: 300px;
    background: linear-gradient(135deg, var(--secondary-bg), var(--accent-bg));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .nav-container {
        flex-direction: column;
        padding: 0 1rem;
        gap: 1rem;
    }

    .nav-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        width: 100%;
    }

    .nav-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-width: 80px;
        text-align: center;
        flex: 1;
        max-width: 120px;
    }

    .container {
        padding: 0 1rem;
    }

    .glass-card {
        padding: 1.5rem;
        margin: 1rem 0;
        border-radius: 15px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        top: -15px;
        left: 15px;
    }

    .feature-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline-item {
        padding-left: 50px;
        margin: 1.5rem 0;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 10px;
        width: 20px;
        height: 20px;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .calc-input-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .input-field {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 10px;
    }

    .calc-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        margin: 1.5rem 0;
        border-radius: 25px;
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
        text-align: center;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        border-radius: 15px;
    }

    .image-placeholder {
        padding: 1.5rem;
        margin: 1rem 0;
        border-radius: 15px;
        min-height: 150px;
    }

    .placeholder-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .placeholder-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .comparison-slider {
        height: 250px;
        margin: 1.5rem 0;
        border-radius: 15px;
    }

    .slider-handle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .before, .after {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .hotspot-container {
        min-height: 300px;
        margin: 1.5rem 0;
        border-radius: 15px;
    }

    .hotspot {
        width: 25px;
        height: 25px;
        border-width: 2px;
    }

    .hotspot-tooltip {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        bottom: 35px;
        white-space: normal;
        max-width: 120px;
        text-align: center;
    }

    .calculator-widget {
        padding: 1.5rem;
        margin: 1.5rem 0;
        border-radius: 15px;
    }

    .calc-result {
        padding: 1rem;
        margin: 1rem 0;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    /* Better touch targets */
    .nav-tab:hover, .nav-tab.active {
        transform: none; /* Remove hover animations on mobile */
    }

    .step-card:hover {
        transform: none;
    }

    .gallery-item:hover {
        transform: none;
    }

    /* Improved mobile interactions */
    .calc-button:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .nav-tab:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* Small Phone Optimization */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .nav-tab {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
        min-width: 70px;
        border-radius: 20px;
    }

    .glass-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .step-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        top: -12px;
        left: 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        left: 5px;
        width: 18px;
        height: 18px;
    }

    .calc-input-group {
        gap: 0.5rem;
    }

    .input-field {
        padding: 0.875rem;
        font-size: 16px;
    }

    .calc-button {
        padding: 0.875rem 1.25rem;
        margin: 1rem 0;
    }

    .image-placeholder {
        padding: 1.25rem;
        min-height: 120px;
    }

    .placeholder-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .placeholder-text {
        font-size: 0.85rem;
    }

    .comparison-slider {
        height: 200px;
    }

    .slider-handle {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .hotspot {
        width: 20px;
        height: 20px;
    }

    .hotspot-tooltip {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        max-width: 100px;
        bottom: 30px;
    }

    .feature-showcase {
        gap: 1rem;
    }

    .calculator-widget {
        padding: 1.25rem;
    }

    /* Improved text readability */
    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    p, li {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .step-card:hover,
    .gallery-item:hover,
    .stat-card:hover,
    .action-btn:hover {
        transform: none;
        box-shadow: none;
        border-color: inherit;
    }

    /* Larger touch targets */
    .nav-tab {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .calc-button {
        min-height: 48px;
    }

    .hotspot {
        min-width: 44px;
        min-height: 44px;
    }

    /* Better touch feedback */
    .nav-tab:active,
    .calc-button:active,
    .step-card:active {
        background-color: rgba(255, 255, 255, 0.1);
        transform: scale(0.98);
    }
}

/* Landscape phone optimization */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .nav-container {
        padding: 0.5rem 1rem;
    }

    .glass-card {
        margin: 0.75rem 0;
    }

    .timeline-item {
        margin: 1rem 0;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-blue { color: var(--neon-blue); }
.text-purple { color: var(--neon-purple); }
.text-green { color: var(--neon-green); }
.text-orange { color: var(--neon-orange); }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 4rem; }
.mt-3 { margin-top: 1.5rem; }

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .bg-animation,
    .floating-particle,
    .navbar {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .glass-card {
        border: 1px solid #ccc;
        background: white;
    }
}