/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



:root {
    /* Colors */
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent: #f093fb;
    --text-primary: #0f1419;
    --text-secondary: #536471;
    --text-tertiary: #8b98a5;
    --bg-primary: #ffffff;
    --bg-secondary: #f7f9fc;
    --bg-tertiary: #ffffff;
    --border-color: #e1e8ed;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Spacing */
    --container-max: 1280px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==================== ANIMATED BACKGROUND ==================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    bottom: -150px;
    right: -150px;
    animation-delay: -10s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.02);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: 0.9375rem;
    transition: color var(--transition-base);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width var(--transition-base);
}

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

.nav-link-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--primary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

.title-line:nth-child(1) {
    animation-delay: 0.1s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.title-line:nth-child(3) {
    animation-delay: 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    animation: fadeInUp 0.8s ease-out 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    animation: floatCard 6s infinite ease-in-out;
}

.floating-card.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 50%;
    right: 5%;
    animation-delay: -2s;
}

.floating-card.card-3 {
    bottom: 15%;
    left: 20%;
    animation-delay: -4s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
    font-weight: var(--font-weight-medium);
}

.score-display {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.score-number {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-label {
    font-size: 1.25rem;
    color: var(--text-tertiary);
}

.quality-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.quality-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

.quality-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--width, 0%);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    animation: fillBar 1.5s ease-out forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }
    to {
        width: var(--width);
    }
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: var(--primary);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* ==================== SECTIONS ==================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

/* ==================== FEATURES SECTION ==================== */
.features {
    padding: 6rem 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

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

.feature-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

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

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    transition: transform var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.steps-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.step {
    position: relative;
    background: white;
    border-radius: var(--radius-2xl);
    padding: 3rem 2rem;
    text-align: center;
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.step-number {
    font-size: 4rem;
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.step-title {
    font-size: 1.75rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

.step-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.step-visual {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.url-input-demo {
    width: 100%;
    max-width: 250px;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 2px solid var(--primary);
    animation: pulse 2s infinite;
}

.demo-text {
    color: var(--text-tertiary);
    font-family: 'Courier New', monospace;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.analysis-demo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 200px;
}

.scanning-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

.scanning-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scan 1.5s infinite;
}

.scanning-bar:nth-child(2)::after {
    animation-delay: 0.3s;
}

.scanning-bar:nth-child(3)::after {
    animation-delay: 0.6s;
}

@keyframes scan {
    to {
        left: 100%;
    }
}

.results-demo {
    display: flex;
    gap: 0.75rem;
}

.result-item {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--success), #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    animation: popIn 0.5s ease-out;
}

.result-item:nth-child(2) {
    animation-delay: 0.2s;
}

.result-item:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==================== ANALYZER SECTION ==================== */
.analyzer-section {
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.analyzer-container {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--border-color);
}

.analyzer-header {
    text-align: center;
    margin-bottom: 3rem;
}

.analyzer-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
}

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

.analyzer-input-wrapper {
    margin-bottom: 3rem;
}

.input-group {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-tertiary);
    pointer-events: none;
}

.github-input {
    flex: 1;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all var(--transition-base);
    background: white;
}

.github-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.analyze-btn {
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

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

.analyze-btn.loading .btn-text {
    opacity: 0;
}

.analyze-btn.loading .btn-loader {
    opacity: 1;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    opacity: 0;
    animation: spin 0.8s linear infinite;
}

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

.input-hint {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-align: center;
}

/* Loading State */
.loading-state {
    display: none;
    text-align: center;
    padding: 3rem 0;
}

.loading-state.active {
    display: block;
}

.loader-visual {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: rotate 1.5s linear infinite;
}

.loader-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: var(--secondary);
    animation-duration: 1.2s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: var(--accent);
    animation-duration: 1s;
}

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

.loading-text {
    font-size: 1.25rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.loading-step.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.step-icon {
    font-size: 1.25rem;
}

/* Results Section */
.results-section {
    display: none;
}

.results-section.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

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

.score-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.score-header {
    margin-bottom: 2rem;
}

.score-header h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
}

.score-date {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.score-circle {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    position: relative;
}

.score-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: var(--bg-secondary);
    stroke-width: 12;
}

.score-progress {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 534;
    stroke-dashoffset: 534;
    transition: stroke-dashoffset 2s ease-out;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.score-value .score-number {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-value .score-max {
    font-size: 1.5rem;
    color: var(--text-tertiary);
}

.rating-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
    font-size: 1.125rem;
}

.rating-badge.excellent {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.rating-badge.good {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.rating-badge.average {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.rating-badge.needs-improvement {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.metric-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.metric-icon {
    font-size: 1.5rem;
}

.metric-label {
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.metric-score {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.metric-max {
    font-size: 1rem;
    color: var(--text-tertiary);
}

.metric-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    width: calc(var(--score) * 5%);
    transition: width 1s ease-out;
}

/* Profile Stats */
.profile-stats {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 3rem;
}

.stats-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

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

.stat-box .stat-label {
    display: block;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-box .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Skills Section */
.skills-section {
    margin-bottom: 3rem;
}

.skills-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.5rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base);
}

.skill-badge:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
}

.skill-percentage {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Recommendations */
.recommendations {
    margin-bottom: 3rem;
}

.recommendations-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.5rem;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-item {
    background: white;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.recommendation-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.recommendation-item.priority-high {
    border-left-color: var(--error);
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05), white);
}

.recommendation-item.priority-medium {
    border-left-color: var(--warning);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05), white);
}

.recommendation-item.priority-low {
    border-left-color: var(--primary);
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05), white);
}

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

.recommendation-title {
    font-weight: var(--font-weight-semibold);
    font-size: 1.125rem;
}

.priority-badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
}

.priority-badge.high {
    background: var(--error);
    color: white;
}

.priority-badge.medium {
    background: var(--warning);
    color: white;
}

.priority-badge.low {
    background: var(--primary);
    color: white;
}

.recommendation-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Repository Highlights */
.repo-highlights {
    margin-bottom: 3rem;
}

.highlights-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.5rem;
}

.repo-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.repo-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.repo-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

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

.repo-name {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.repo-name:hover {
    color: var(--secondary);
}

.repo-stars {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.repo-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.repo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.repo-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.language-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.repo-updated {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.readme-status {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
}

.readme-status.complete {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.readme-status.partial {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.readme-status.missing {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color var(--transition-base);
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-visual {
        height: 400px;
        width: 100%;
    }

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        gap: 2rem;
    }

    .input-group {
        flex-direction: column;
    }

    .analyze-btn {
        width: 100%;
    }
}







.feature-card, .step, .analyzer-container, .metric-card, .recommendation-item, .repo-item {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color);
    backdrop-filter: none !important; 
    opacity: 1 !important;
}


/* ==================== COMPREHENSIVE RESPONSIVENESS ==================== */

/* 1. Large Desktops (Ultra-wide) */
@media (min-width: 1440px) {
    :root {
        --container-max: 1400px;
    }
    .hero-title {
        font-size: 5rem; /* Larger text for big screens */
    }
}

/* 2. Tablets & Small Laptops (MacBook Air/Pro size) */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 2.5rem;
    }
    
    .hero {
        flex-direction: column;
        padding-top: 10rem;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        width: 100%;
        height: 450px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

/* 3. Small Tablets & Large Phones (Portrait) */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        display: none; /* Hide nav links on mobile - recommend adding a burger menu later */
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .analyzer-container {
        padding: 1.5rem;
    }

    .input-group {
        flex-direction: column;
    }

    .github-input {
        width: 100%;
    }

    .analyze-btn {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr; /* Single column for readability */
    }

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

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

/* 4. Small Mobile Phones (iPhone SE size) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

    .score-circle {
        width: 150px;
        height: 150px;
    }

    .score-value .score-number {
        font-size: 2.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    /* Floating cards move to bottom or hide to save space */
    .floating-card {
        display: none; 
    }
}

/* 5. Landscape Mode Fix for Phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding-top: 5rem;
    }
    .hero-visual {
        display: none; /* Hide visual to show text clearly in landscape */
    }
}


/* ==================== TABLET & PHONE FIX ==================== */

@media (max-width: 1024px) {
    .hero {
        flex-direction: column !important;
        padding-top: 120px !important;
        overflow: hidden; /* Prevent horizontal scroll during blur animation */
    }

    .hero-visual {
        width: 100% !important;
        height: 300px !important;
        order: -1; /* Photo ko text ke upar le aayega responsive mein */
        margin-bottom: 20px;
    }

    /* Cards ko mobile pe bich mein aane se rokne ke liye static position */
    .floating-card {
        transform: scale(0.7) !important;
        opacity: 0.9;
        pointer-events: none; /* Scroll karte waqt click handle na kare */
    }

    /* Taaki Cards photo ke ekdum bich mein na ghuse */
    .card-1 { left: 110% !important; top: 0% !important; }
    .card-2 { right: 110% !important; top: 40% !important; }
    .card-3 { left: 110% !important; bottom: 0% !important; }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    /* Mobile pe floating cards ko bilkul hata do ya ekdum side mein rakho */
    .floating-card {
        display: none !important; 
    }
}