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

/* STARK THEME - Inspired by Tony Stark's Arc Reactor */
:root {
    --primary-color: #00d9ff;
    --secondary-color: #0099ff;
    --accent-color: #00ffff;
    --success-color: #00ff88;
    --warning-color: #ffaa00;
    --danger-color: #ff0055;
    --dark-bg: #0a0e1a;
    --card-bg: rgba(10, 20, 40, 0.9);
    --text-primary: #e0f3ff;
    --text-secondary: #8899aa;
    --border-color: rgba(0, 217, 255, 0.3);
    --glow-color: rgba(0, 217, 255, 0.6);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Grid removed - clean solid background for both themes */
    opacity: 0.5;
}



/* Navigation - Stark Style */
.navbar {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    max-width: 100vw;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 0 40px var(--glow-color), 0 5px 20px rgba(0, 0, 0, 0.5);
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Mobile navbar - NOT sticky, much smaller */
@media (max-width: 768px) {
    .navbar {
        position: relative !important;
        padding: 0.25rem 0 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }
    
    .nav-container {
        padding: 0 0.75rem !important;
    }
    
    .logo {
        font-size: 1rem !important;
        gap: 0.25rem !important;
    }
    
    .logo-icon {
        font-size: 1.2rem !important;
    }
    
    .logo-image {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Remove top padding from body on mobile since header is not sticky */
    body {
        padding-top: 0 !important;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

/* Stark Logo with Arc Reactor Effect */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

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

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background: rgba(0, 243, 255, 0.1);
}

.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: rgba(0, 243, 255, 0.1);
    transform: translateY(-2px);
}

.signup-btn {
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--glow-color);
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--primary-color);
}

/* Stark Button Style */
.btn-admin {
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 0 20px var(--glow-color), inset 0 0 10px rgba(0, 217, 255, 0.2);
    position: relative;
    overflow: hidden;
}



.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--primary-color), inset 0 0 20px rgba(0, 217, 255, 0.3);
    border-color: var(--accent-color);
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 243, 255, 0.1);
    border: 2px solid rgba(0, 243, 255, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.badge-icon {
    font-size: 1.2rem;
}

.badge-text {
    color: #00f3ff;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
    line-height: 1.2;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    line-height: 1.6;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.6);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #00f3ff;
    transform: translateY(-3px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00f3ff, #bf00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px #00ff88;
}

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

/* Hero Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 0.5rem 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-badge {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
}

/* Upload Section */
.upload-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.upload-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .upload-section {
        margin: 0 1rem;
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .upload-section {
        margin: 0 0.5rem;
        padding: 1.5rem 1rem;
        border-radius: 10px;
    }
}

/* Floating Demo Button */
.floating-demo-btn {
    position: fixed;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    z-index: 1000;
    cursor: pointer;
}

.demo-btn-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.demo-btn-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.demo-icon {
    font-size: 18px;
    animation: bounce 2s infinite;
}

.demo-text {
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Pulse animation */
.demo-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50px;
    opacity: 0.3;
    animation: pulse 2s infinite;
    z-index: 1;
}

/* Flash animation */
.demo-flash {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: white;
    border-radius: 50px;
    opacity: 0;
    animation: flash 3s infinite;
    z-index: 0;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
}

@keyframes flash {
    0%, 70%, 100% {
        opacity: 0;
    }
    80%, 90% {
        opacity: 0.8;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-1px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-15px) rotate(10deg);
        opacity: 1;
    }
}

@keyframes scoreGlow {
    0% {
        filter: brightness(1) saturate(1);
        transform: scale(1);
    }
    100% {
        filter: brightness(1.2) saturate(1.3);
        transform: scale(1.05);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-demo-btn {
        left: 20px;
        top: auto;
        bottom: 20px;
        transform: translateY(0);
    }
    
    .demo-btn-content {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        padding: 12px 16px;
        font-size: 12px;
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6) !important;
    }
    
    .demo-text {
        font-size: 11px;
    }
    
    .demo-icon {
        font-size: 16px;
    }
}

/* Stark Upload Card */
.upload-card {
    background: var(--card-bg);
    border: 3px dashed var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 30px var(--glow-color), inset 0 0 20px rgba(0, 217, 255, 0.05);
    position: relative;
    overflow: hidden;
}



.upload-card:hover {
    border-color: var(--primary-color);
    background: rgba(0, 217, 255, 0.08);
    box-shadow: 0 0 50px var(--primary-color), inset 0 0 30px rgba(0, 217, 255, 0.1);
    transform: translateY(-5px);
}

.upload-card.dragover {
    border-color: var(--accent-color);
    background: rgba(0, 217, 255, 0.15);
    transform: scale(1.02);
    box-shadow: 0 0 60px var(--primary-color), inset 0 0 40px rgba(0, 217, 255, 0.2);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.upload-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Stark Upload Button */
.btn-upload {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px var(--glow-color), inset 0 0 15px rgba(0, 217, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}



.btn-upload:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px var(--primary-color), inset 0 0 25px rgba(0, 217, 255, 0.3);
    border-color: var(--accent-color);
}

#fileInput {
    display: none;
}

/* Preview Section */
.preview-section {
    display: none;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

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

.preview-wrapper {
    padding-top: 100px;
    margin-top: -80px;
    scroll-margin-top: 80px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding-top: 2rem;
}

/* Mobile responsive adjustments for preview wrapper */
@media (max-width: 768px) {
    .preview-wrapper {
        padding-top: 80px;
        margin-top: -60px;
        scroll-margin-top: 60px;
    }
}

/* Stark Preview Card */
.preview-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    animation: slideIn 0.5s ease-out;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 30px var(--glow-color), inset 0 0 20px rgba(0, 217, 255, 0.05);
    position: relative;
}



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

.preview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.image-info {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Results Section */
.results-section {
    display: none;
    padding: 2rem 0;
    margin: 0 auto;
    max-width: 1400px;
}

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

.score-display {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.score-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .results-section {
        padding: 1rem 0;
    }
    
    .score-display {
        padding: 2.5rem 1.5rem;
        margin: 0 1rem 2rem 1rem;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .results-section {
        padding: 0.5rem 0;
    }
    
    .score-display {
        padding: 2rem 1rem;
        margin: 0 0.5rem 1.5rem 0.5rem;
        border-radius: 10px;
    }
}

.score-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    position: relative;
    box-shadow: 
        0 0 50px var(--border-color),
        0 0 100px var(--border-color),
        inset 0 0 30px var(--border-color);
    animation: scoreGlow 2s ease-in-out infinite alternate;
    background: conic-gradient(
        var(--primary-color) 0deg,
        var(--primary-color) calc(var(--score) * 3.6deg),
        var(--border-color) calc(var(--score) * 3.6deg),
        var(--border-color) 360deg
    );
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 170px;
    height: 170px;
    background: linear-gradient(
        135deg,
        #1a1a1a 0%,
        #2d2d2d 50%,
        #1a1a1a 100%
    );
    border-radius: 50%;
    z-index: 1;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Speedometer markings */
.score-circle::after {
    content: '';
    position: absolute;
    width: 190px;
    height: 190px;
    top: 5px;
    left: 5px;
    background: conic-gradient(
        from 180deg,
        #ef4444 0deg,
        #ef4444 60deg,
        #f59e0b 60deg,
        #f59e0b 120deg,
        #fbbf24 120deg,
        #fbbf24 180deg,
        #10b981 180deg,
        #10b981 360deg
    );
    border-radius: 50%;
    z-index: 0;
    opacity: 0.8;
    mask: radial-gradient(
        transparent 75px,
        black 75px,
        black 90px,
        transparent 90px
    );
    -webkit-mask: radial-gradient(
        transparent 75px,
        black 75px,
        black 90px,
        transparent 90px
    );
}

.score-value {
    position: relative;
    z-index: 1;
}

/* Floating stars around score */
.floating-stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    color: #FFD700;
    font-size: 20px;
    animation: float 3s ease-in-out infinite;
    text-shadow: 0 0 10px #FFD700;
}

.star:nth-child(1) {
    top: -30px;
    left: 20px;
    animation-delay: 0s;
}

.star:nth-child(2) {
    top: -20px;
    right: 25px;
    animation-delay: 0.5s;
}

.star:nth-child(3) {
    bottom: -25px;
    left: 30px;
    animation-delay: 1s;
}

.star:nth-child(4) {
    bottom: -20px;
    right: 20px;
    animation-delay: 1.5s;
}

.star:nth-child(5) {
    top: 50%;
    left: -35px;
    animation-delay: 2s;
}

.star:nth-child(6) {
    top: 50%;
    right: -35px;
    animation-delay: 2.5s;
}

.score-label {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.score-grade {
    display: inline-block;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2rem;
}

.score-grade.excellent {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.score-grade.good {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.score-grade.fair {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
    border: 2px solid var(--warning-color);
}

.score-grade.poor {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
}

/* Criteria Cards */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 2rem 2rem 2rem;
    padding: 0 1rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .criteria-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 1rem;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .criteria-grid {
        gap: 1rem;
        margin: 1.5rem 0.5rem;
    }
}

.criteria-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.criteria-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}
}

.criteria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.criteria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.criteria-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.criteria-score {
    font-weight: bold;
    font-size: 1.2rem;
}

.criteria-score.high {
    color: var(--success-color);
}

.criteria-score.medium {
    color: var(--warning-color);
}

.criteria-score.low {
    color: var(--danger-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 1s ease-out;
}

.criteria-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Recommendations */
.recommendations-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
}

.recommendations-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendation-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.recommendation-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.recommendation-content h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

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

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-secondary {
    padding: 1rem 2rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* Stark Primary Button */
.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px var(--glow-color), inset 0 0 15px rgba(0, 217, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}



.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px var(--primary-color), inset 0 0 25px rgba(0, 217, 255, 0.3);
    border-color: var(--accent-color);
}

/* Loading Spinner */
.loading {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
    margin: 1rem auto 4rem auto;
    max-width: 600px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--glow-color);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 20px;
    z-index: 100;
}

.loading.active {
    display: block;
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border: 5px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-right-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

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

.loading h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Section */
.features {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

/* Stark Feature Card */
.feature-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 25px var(--glow-color), inset 0 0 15px rgba(0, 217, 255, 0.05);
    position: relative;
    overflow: hidden;
}



.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px var(--primary-color), inset 0 0 25px rgba(0, 217, 255, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border-top: 2px solid var(--border-color);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    margin-top: 4rem;
    padding: 2rem 0 1rem 0;
}

.footer-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.footer-nav a:hover {
    color: var(--primary-color);
    background: rgba(0, 243, 255, 0.1);
}

.footer-contact {
    display: flex;
    align-items: center;
}

.footer-email {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(0, 243, 255, 0.05);
}

.footer-email:hover {
    background: rgba(0, 243, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--glow-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-nav-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .footer-nav a {
        width: 100%;
        text-align: center;
    }
    
    .footer-contact {
        width: 100%;
        justify-content: center;
    }
    
    .footer-email {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

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

    .preview-grid {
        grid-template-columns: 1fr;
        padding-top: 1rem;
    }

    .hamburger-menu {
        display: flex !important;
    }

    .nav-menu {
        position: fixed !important;
        top: 50px !important;
        right: -100% !important;
        width: 60% !important;
        max-width: 220px !important;
        height: calc(100vh - 50px) !important;
        background: rgba(10, 20, 40, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        flex-direction: column !important;
        padding: 0.75rem 0 !important;
        transition: right 0.3s ease !important;
        border-left: 2px solid var(--primary-color) !important;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5) !important;
        overflow-y: auto !important;
        z-index: 999 !important;
        gap: 0 !important;
    }

    .nav-menu.active {
        right: 0 !important;
    }

    .nav-menu li {
        width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .nav-menu li a {
        display: block !important;
        padding: 0.75rem 1.5rem !important;
        border-bottom: 1px solid rgba(0, 217, 255, 0.1) !important;
        transition: all 0.3s ease !important;
        font-size: 0.9rem !important;
    }

    .nav-menu li a:hover {
        background: rgba(0, 217, 255, 0.1) !important;
        padding-left: 2rem !important;
    }

    .nav-auth {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 0.75rem !important;
        border-top: 2px solid rgba(0, 217, 255, 0.2) !important;
        margin-top: 0.75rem !important;
    }

    .nav-auth button {
        width: 100%;
    }

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

    .action-buttons {
        flex-direction: column;
    }
    
    /* Optimize for mobile performance - reduce animations */
    body::before,
    body::after {
        opacity: 0.3;
    }
    
    /* Simplify shadows on mobile */
    .navbar,
    .upload-card,
    .preview-card,
    .feature-card,
    .btn-primary,
    .btn-upload,
    .btn-admin {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    }
}

/* ========================================
   UPGRADE MODAL STYLES
   ======================================== */

.upgrade-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.upgrade-modal-overlay.active {
    opacity: 1;
}

.upgrade-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.3);
    border: 1px solid rgba(0, 217, 255, 0.2);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.upgrade-header {
    background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
    padding: 2rem;
    text-align: center;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.upgrade-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upgrade-header h2 {
    color: white;
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.upgrade-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.upgrade-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.upgrade-content {
    padding: 2rem;
}

.usage-stats {
    text-align: center;
    margin-bottom: 2rem;
}

.usage-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    position: relative;
}

.usage-circle svg {
    width: 100%;
    height: 100%;
}

.usage-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.usage-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b6b;
}

.usage-limit {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
}

.usage-message {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.usage-message strong {
    color: #ff6b6b;
}

.upgrade-benefits {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.upgrade-benefits h3 {
    color: #00d9ff;
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
}

.upgrade-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upgrade-benefits li {
    padding: 0.75rem 0;
    color: var(--text-primary);
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.upgrade-benefits li:last-child {
    border-bottom: none;
}

.upgrade-benefits strong {
    color: #00d9ff;
}

.upgrade-pricing {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 153, 204, 0.1) 100%);
    border-radius: 15px;
}

.price-tag {
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #00d9ff;
}

.price-period {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

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

.price-savings strong {
    color: #4ade80;
}

.upgrade-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.btn-upgrade-primary {
    background: linear-gradient(135deg, #00d9ff 0%, #0099cc 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.btn-upgrade-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.4);
}

.btn-upgrade-secondary {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upgrade-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.upgrade-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Usage Indicator on Dashboard */
.usage-indicator {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.usage-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.usage-icon {
    font-size: 2rem;
}

.usage-details h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.usage-details p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.usage-progress {
    flex: 1;
    max-width: 200px;
}

.usage-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.usage-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d9ff 0%, #0099cc 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.usage-progress-fill.warning {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
}

.usage-progress-fill.danger {
    background: linear-gradient(90deg, #ff6b6b 0%, #ee5a52 100%);
}

.usage-count {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.usage-count strong {
    color: var(--text-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .upgrade-modal {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .upgrade-header {
        padding: 1.5rem;
    }
    
    .upgrade-header h2 {
        font-size: 1.5rem;
    }
    
    .upgrade-content {
        padding: 1.5rem;
    }
    
    .usage-circle {
        width: 120px;
        height: 120px;
    }
    
    .usage-number {
        font-size: 2rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .usage-indicator {
        flex-direction: column;
        gap: 1rem;
    }
    
    .usage-progress {
        width: 100%;
        max-width: 100%;
    }
}
/* Logo Image Styles */
.logo-img {
    height: 100px;
    width: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px var(--primary-color));
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05) rotate(3deg);
}

.logo span {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
}

/* Footer Logo Image */
.footer-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-img {
    height: 80px;
    width: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px var(--primary-color));
}

.footer-logo a span {
    font-size: 1.6rem;
}

/* Mobile adjustments for larger logo */
@media (max-width: 768px) {
    .logo-img {
        height: 60px;
        width: 60px;
    }
    
    .logo span {
        font-size: 1.3rem;
    }
    
    .footer-logo-img {
        height: 50px;
        width: 50px;
    }
    
    .footer-logo a span {
        font-size: 1.2rem;
    }
}
