/* Base styles */
:root {
    --background-primary: #0a0b1e;
    --background-secondary: #12142b;
    --text-primary: #ffffff;
    --text-secondary: #8b8fab;
    --accent-color: #6d3aff;
    --accent-color-rgb: 109, 58, 255;
    --accent-gradient: linear-gradient(135deg, #6d3aff 0%, #8b5cf6 50%, #d946ef 100%);
    --border-color: #2a2c4a;
    --success-color: #00ff9d;
    --error-color: #ff4444;
    --glow-color: rgba(109, 58, 255, 0.5);
    --card-bg: rgba(18, 20, 43, 0.8);
    --glass-effect: backdrop-filter: blur(10px);
}

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

/* Clean spacing */
section + section,
.faq-item + .faq-item,
.step-card + .step-card {
    margin-top: 0;
    border-top: none;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background: linear-gradient(135deg, #0a0b1e 0%, #12142b 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: var(--background-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .navbar {
        justify-content: center;
        padding: 0.75rem;
    }

    .nav-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
}

/* Main Content */
.main-content {
    margin-top: 60px;
    padding: 2rem 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
    background: var(--background-primary);
    margin-bottom: 2rem;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 auto;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    max-width: 800px;
    line-height: 1.2;
    text-align: center;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto;
    color: var(--text-secondary);
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 400;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
        min-height: 250px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
        min-height: 200px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
}

.free-badge {
    display: none;
}

.free-badge .sparkle {
    display: none;
}

@keyframes pulse {
    0%, 100% {
        transform: none;
        box-shadow: none;
    }
}

@keyframes sparkle {
    0%, 100% { transform: none; opacity: 0; }
}

/* Upload Section */
.upload-container {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.upload-area {
    border: 2px dashed var(--accent-color);
    border-radius: 8px;
    padding: 2rem 1rem;
    margin: 1rem auto;
    max-width: 600px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(139, 92, 246, 0.05);
}

.upload-area:hover {
    border-color: var(--accent-color);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.upload-area p {
    margin: 1rem 0;
    color: var(--text-secondary);
}

.upload-button {
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(var(--accent-color-rgb), 0.3);
}

.upload-button:hover {
    background-color: #7c4deb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.upload-button:active {
    transform: translateY(0);
}

/* Results Section */
.results-section {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

.results-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.result-card {
    background: var(--background-secondary);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.score-emoji {
    font-size: 64px;
    line-height: 1;
}

.score-details {
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    .results-section {
        padding: 0.5rem;
    }

    .result-card {
        padding: 1.5rem;
    }

    .result-content {
        gap: 1rem;
        margin: 1rem 0;
    }

    .score-emoji {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .logo-text {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .nav-links a {
        font-size: 0.95rem;
    }
}

/* Navbar Styles */
.navbar {
    background: var(--background-primary);
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    z-index: 1001;
}

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

.nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-links a i {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.nav-links a span {
    font-size: 0.9rem;
}

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

/* Mobile Navigation */
@media (max-width: 768px) {
    /* Remove all previous mobile navigation styles */
    .navbar {
        justify-content: center;
        padding: 0.75rem;
    }

    .nav-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    /* COMPLETELY NEW MOBILE NAVIGATION */
    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        background-color: var(--background-primary);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 8px 0;
        margin: 0;
        z-index: 1000;
        height: 60px;
        width: 100%;
    }

    .nav-links a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        text-decoration: none;
        padding: 4px 0;
        margin: 0;
    }

    .nav-links a i {
        font-size: 22px;
        display: block;
        margin-bottom: 4px;
        color: var(--text-primary);
    }

    .nav-links a span {
        font-size: 10px;
        display: block;
        color: var(--text-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    body {
        padding-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .nav-links a i {
        font-size: 20px;
    }

    .nav-links a span {
        font-size: 9px;
    }
}

/* Clean up conflicting styles */
.nav-link,
.nav-links a.nav-link,
.nav-links a[href],
.nav-links a[href] i,
.nav-links a[href] span {
    text-decoration: none;
}

/* Remove any conflicting styles */
.nav-link,
.nav-links a.nav-link {
    all: unset;
}

/* Ensure icons are visible */
.nav-links a i.fas,
.nav-links a i.fa,
.nav-links a i.far {
    display: block !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.15rem !important;
    color: var(--text-primary) !important;
}

/* Ensure text is visible */
.nav-links a span {
    display: block !important;
    font-size: 0.55rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    text-align: center !important;
    color: var(--text-primary) !important;
}

/* Blog page specific mobile adjustments */
.blog-hero {
    padding-top: 4rem;
    text-align: center;
    background: var(--accent-gradient);
    padding: 4rem 1rem 2rem;
}

@media (max-width: 768px) {
    .blog-hero {
        padding-top: 3.5rem;
    }

    .blog-hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .blog-hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding-top: 3rem;
    }

    .blog-hero h1 {
        font-size: 1.5rem;
    }

    .blog-hero p {
        font-size: 0.9rem;
    }
}

/* Main Content Section */
main {
    background: var(--background-primary);
    min-height: calc(100vh - 70px);
    padding-top: 0.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Main Content Container */
.main-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

/* Upload and Results Common Styles */
.upload-section,
.results-section {
    width: 100%;
    max-width: 800px;
    margin: 0.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.upload-container,
.results-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Container Styles */
.container,
.container-sm,
.container-lg {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 1200px;
}

.container-sm {
    max-width: 800px;
}

.container-lg {
    max-width: 1400px;
}

/* Section Styles */
section {
    padding: 2.5rem 1rem;
    margin: 0;
    width: 100%;
    border: none;
    border-bottom: none;
    position: relative;
    background: var(--background-primary);
    box-shadow: none;
}

section > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Headers */
section h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-section {
    background: var(--background-primary);
    text-align: center;
    padding: 2rem 1rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
}

.hero-section h1 {
    margin: 0 auto 1rem;
    font-size: 2rem;
    line-height: 1.3;
    color: var(--text-primary);
    max-width: 600px;
    padding: 0 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0.5rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        max-width: 100%;
        padding: 0 0.75rem;
    }

    .hero-section p {
        font-size: 1.1rem;
        max-width: 100%;
        padding: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1.25rem 0;
    }

    .hero-section h1 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-section p {
        font-size: 0.95rem;
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* Upload Section */
.upload-section {
    width: 100%;
    max-width: 800px;
    margin: 0.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upload-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.upload-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--accent-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-container:hover::before {
    opacity: 0.3;
}

.upload-container i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.upload-container:hover i {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.upload-container p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    text-align: center;
    margin: 0;
    max-width: 80%;
    line-height: 1.6;
}

.file-limits {
    font-size: 0.95rem !important;
    opacity: 0.7;
    margin-top: 0.5rem !important;
    color: var(--text-secondary) !important;
}

.upload-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1rem 0;
    min-width: 200px;
    box-shadow: 0 4px 15px var(--glow-color);
    position: relative;
    overflow: hidden;
}

.upload-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.2));
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-color);
}

.upload-btn:hover::before {
    transform: translateX(100%) rotate(45deg);
}

.upload-btn:active {
    transform: translateY(0);
}

/* Upload States */
.upload-container.drag-over {
    border-style: solid;
    background: rgba(var(--accent-color-rgb), 0.05);
    transform: scale(1.02);
}

.upload-container.uploading {
    pointer-events: none;
    opacity: 0.8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .upload-section {
        margin: 0.25rem auto 1rem;
        padding: 0 1rem;
    }

    .upload-container {
        min-height: 280px;
        padding: 2rem;
    }

    .upload-content {
        gap: 1.25rem;
        padding: 0.5rem;
    }

    .upload-container i {
        font-size: 3rem;
        margin-bottom: 0.75rem;
    }

    .upload-container p {
        font-size: 1.1rem;
        max-width: 90%;
    }

    .upload-btn {
        padding: 0.9rem 2rem;
        font-size: 1.1rem;
        min-width: 180px;
        border-radius: 0.5rem;
    }

    .file-limits {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .upload-section {
        margin: 0.25rem auto 0.5rem;
        padding: 0 1rem;
    }

    .upload-container {
        min-height: 250px;
        padding: 1.5rem;
    }

    .upload-content {
        padding: 0.25rem;
        gap: 1rem;
    }

    .upload-container p {
        font-size: 1rem;
        max-width: 95%;
    }

    .upload-btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
        min-width: 160px;
    }

    .file-limits {
        font-size: 0.85rem !important;
        margin-top: 0.5rem !important;
    }
}

/* Results Section */
.results-section {
    width: 100%;
    max-width: 800px;
    margin: 0.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.results-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-container {
    margin-bottom: 2.5rem;
}

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

.score-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.score-emoji-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(var(--accent-color-rgb), 0.1);
    border-radius: 50%;
    margin: 2rem auto;
}

.score-emoji {
    font-size: 4rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.score-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin: 2.5rem 0;
}

.score-fill {
    width: 0;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 6px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px var(--glow-color);
}

.score-details {
    text-align: center;
    margin-top: 2.5rem;
}

.score-message {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.confidence {
    font-size: 1.2rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

#analyze-another {
    margin-top: 2.5rem;
}

@media (max-width: 768px) {
    .results-section {
        margin: 0.5rem auto;
    }

    .results-container {
        padding: 1.5rem;
    }

    .score-header h2 {
        font-size: 1.8rem;
    }

    .score-emoji-container {
        width: 90px;
        height: 90px;
        margin: 1.5rem auto;
    }

    .score-emoji {
        font-size: 3.5rem;
    }

    .score-message {
        font-size: 1.2rem;
    }

    .confidence {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .results-section {
        margin: 0.25rem auto;
        padding: 0 1rem;
    }

    .results-container {
        padding: 1.5rem;
    }

    .score-header h2 {
        font-size: 1.6rem;
    }

    .score-emoji-container {
        width: 80px;
        height: 80px;
        margin: 1.25rem auto;
    }

    .score-emoji {
        font-size: 3rem;
    }

    .score-bar {
        height: 10px;
        margin: 1.5rem 0;
    }

    .score-message {
        font-size: 1.1rem;
    }

    .confidence {
        font-size: 1rem;
    }
}

/* Results Section Mobile Improvements */
@media (max-width: 768px) {
    .results-section {
        width: 100%;
        padding: 0.25rem;
    }

    .results-container {
        width: 100%;
        padding: 1.5rem;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .score-container {
        width: 100%;
        text-align: center;
    }

    .score-emoji-container {
        display: flex;
        justify-content: center;
        margin: 1rem 0;
    }

    .score-emoji {
        font-size: 3rem;
    }

    .score-bar {
        width: 100%;
        margin: 1rem auto;
    }

    .score-details {
        width: 100%;
        text-align: center;
    }

    .score-message {
        font-size: 1rem;
        margin: 0.5rem 0;
    }

    .confidence {
        font-size: 0.9rem;
    }

    #analyze-another {
        width: 100%;
        max-width: 300px;
        margin: 1.5rem auto 0;
    }
}

@media (max-width: 480px) {
    .results-container {
        padding: 1rem;
    }

    .score-emoji {
        font-size: 2.5rem;
    }

    .score-message {
        font-size: 0.9rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .main-content {
        padding: 0;
        width: 100vw;
        overflow-x: hidden;
    }

    .upload-section,
    .results-section {
        padding: 0 16px;
        width: 100%;
        max-width: none;
        margin: 0.5rem 0;
        box-sizing: border-box;
    }

    .upload-container,
    .results-container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 1.5rem;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .upload-section,
    .results-section {
        padding: 0 12px;
    }

    .upload-container,
    .results-container {
        padding: 1rem;
    }
}

/* Loading Animation */
.loading-animation {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0.25rem auto;
    padding: 0.5rem;
    text-align: center;
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.analysis-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.progress-ring-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    filter: drop-shadow(0 0 10px var(--glow-color));
}

.progress-ring__circle-bg,
.progress-ring__circle-fg {
    fill: none;
    stroke-width: 6;
}

.progress-ring__circle-bg {
    stroke: rgba(var(--accent-color-rgb), 0.1);
}

.progress-ring__circle-fg {
    stroke: url(#gradient);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease;
    filter: drop-shadow(0 0 8px var(--glow-color));
    animation: progressPulse 2s ease-in-out infinite;
}

.progress-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.progress-percentage {
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px var(--glow-color));
}

.analysis-step {
    color: var(--text-secondary);
    font-size: 1rem;
    opacity: 0.9;
    max-width: 80%;
    margin: 0 auto;
}

/* Loading Animation Effects */
.analysis-container::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--accent-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.1;
    animation: glow 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { 
        stroke-width: 6;
        filter: drop-shadow(0 0 8px var(--glow-color));
    }
    50% { 
        stroke-width: 8;
        filter: drop-shadow(0 0 15px var(--glow-color));
    }
}

/* Scanline effect */
.analysis-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.5;
    animation: scanline 2s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .loading-animation {
        margin: 0.25rem auto;
        padding: 0.5rem;
    }

    .analysis-container {
        padding: 1.5rem;
        gap: 1rem;
    }

    .progress-ring-container {
        transform: scale(0.9);
    }

    .progress-content {
        gap: 0.75rem;
    }

    .progress-percentage {
        font-size: 1.75rem;
    }

    .analysis-step {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .analysis-container {
        padding: 1.25rem;
        gap: 0.75rem;
    }

    .progress-ring-container {
        transform: scale(0.85);
    }

    .progress-percentage {
        font-size: 1.5rem;
    }

    .analysis-step {
        font-size: 0.85rem;
        max-width: 90%;
    }
}

/* How It Works Section */
.how-it-works-section {
    background: var(--background-primary);
    padding: 5rem 0;
    position: relative;
    margin-top: 0;
    border: none;
    border-top: none;
    border-bottom: none;
    box-shadow: none;
}

.how-it-works-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
}

.how-it-works-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    background: var(--background-primary);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    background: var(--background-primary);
}

.step-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.step-card h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
    text-align: center;
    margin: 0 auto;
    max-width: 280px;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #8e7aff);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(var(--accent-color-rgb), 0.3);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.step-card:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    .how-it-works-section {
        padding: 3rem 1rem;
    }
    
    .how-it-works-section h2 {
        font-size: 1.8rem;
    }
}

/* FAQ Section */
.faq-section {
    background: var(--background-primary);
    padding: 5rem 0;
    position: relative;
    border: none;
    border-top: none;
    border-bottom: none;
    box-shadow: none;
}

.faq-section::before,
.faq-section::after {
    display: none;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
    background: var(--background-primary);
}

.faq-item {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.faq-item summary {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    list-style: none;
    text-align: left;
    transition: background-color 0.3s ease;
}

.faq-item[open] summary {
    background: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color);
}

.faq-content {
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
    text-align: left;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-item summary:hover {
    background: rgba(var(--accent-color-rgb), 0.1);
}

/* About Section Styling */
.about-section {
    background: var(--background-secondary);
    margin: 0;
    padding: 3rem 1rem;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--text-primary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.analysis-features {
    list-style-type: none;
    padding: 0;
    margin: 2rem 0;
}

.analysis-features li {
    margin: 1rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.analysis-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Ad-friendly spacing */
.ad-space {
    max-width: 970px;
    margin: 1rem auto;
    min-height: 90px;
    background: var(--background-secondary);
    border-radius: 0.5rem;
    overflow: hidden;
}

.ad-space-large {
    min-height: 250px;
}

/* Container Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    border: none;
    background: var(--background-primary);
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    background: var(--background-primary);
}

/* Ad Containers */
.ad-container {
    margin: 20px auto;
}

.ad-horizontal {
    max-width: 728px;
    min-height: 90px;
    width: 100%;
}

.ad-vertical {
    width: 160px;
    min-height: 600px;
    position: absolute;
    top: 0;
}

.ad-left {
    left: -180px;
}

.ad-right {
    right: -180px;
}

/* Responsive adjustments for ads */
@media (max-width: 1200px) {
    .ad-vertical {
        display: none;
    }
}

@media (max-width: 768px) {
    .ad-horizontal {
        max-width: 100%;
    }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    :root {
        --primary-color: #0052cc;
        --text-primary: #000;
        --text-secondary: #333;
        --border-color: #666;
    }
}

/* Privacy and Terms Pages */
.privacy-section,
.terms-section {
    padding-top: 2rem;
}

.privacy-section h1,
.terms-section h1 {
    font-size: 2.4rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.privacy-section p,
.terms-section p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
}

.privacy-content,
.terms-content {
    background: var(--background-secondary);
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(var(--accent-color-rgb), 0.1);
}

.privacy-content h2,
.terms-content h2 {
    color: var(--text-primary);
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border: none;
}

.privacy-content h2:first-child,
.terms-content h2:first-child {
    margin-top: 0;
}

.privacy-content p,
.terms-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 1rem 0;
    text-align: left;
}

.privacy-content ul,
.terms-content ul {
    list-style-type: none;
    padding: 0;
    margin: 1rem 0;
}

.privacy-content li,
.terms-content li {
    color: var(--text-secondary);
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.privacy-content li::before,
.terms-content li::before {
    content: "•";
    color: var(--accent-color);
}

/* Remove all lines and borders */
*,
*::before,
*::after {
    border: none !important;
    outline: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Ensure clean spacing */
section + section,
.faq-item + .faq-item,
.step-card + .step-card,
.result-card + .result-card {
    margin-top: 0;
    border-top: none;
}

/* Free Badge */
.free-badge {
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 0 2rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    animation: pulse 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.free-badge .sparkle {
    font-size: 1.4rem;
    animation: sparkle 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: none;
        box-shadow: none;
    }
}

@keyframes sparkle {
    0%, 100% { transform: none; opacity: 0; }
}

.hero-section h1 {
    margin-top: 1rem;
}

@media (max-width: 1200px) {
    .ad-vertical {
        display: none;
    }
}

@media (max-width: 768px) {
    .ad-horizontal {
        max-width: 100%;
        padding: 10px;
    }
    
    .ad-space {
        padding: 10px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-around;
        background: var(--background-primary);
        box-shadow: 0 -2px 10px var(--shadow-color);
        padding: 1rem;
        z-index: 1000;
    }

    .nav-links a {
        font-size: 0.9rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-links a:before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 1.2rem;
    }

    .nav-links a[href="#how-it-works"]:before { content: "\f085"; }
    .nav-links a[href="#faq"]:before { content: "\f059"; }
    .nav-links a[href="#about"]:before { content: "\f05a"; }

    .hero-section {
        padding: 5rem 1rem 1.5rem;
    }

    .main-content {
        padding: 6rem 1rem 2rem;
    }

    .upload-section,
    .loading-animation,
    .results-section {
        width: 95%;
        margin: 0 auto;
    }

    .results-container {
        padding: 1.5rem;
    }

    .ai-score-container {
        padding: 1rem;
    }

    .score-display {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .score-bar {
        width: 100%;
        margin: 1rem 0;
    }

    .upload-container {
        padding: 2rem 1rem;
    }

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

    /* Touch feedback */
    .upload-btn.touch-active {
        transform: scale(0.98);
        background: var(--accent-color);
    }

    .score-display {
        padding: 1rem;
    }

    .score-points {
        font-size: 0.8rem;
    }

    /* Adjust sections for mobile */
    .how-it-works-section,
    .faq-section,
    .about-section {
        margin-top: 4rem;
        padding-top: 1rem;
    }

    /* Make FAQs easier to tap */
    summary {
        padding: 1.2rem;
        margin: -1.2rem;
    }

    details {
        padding: 1.2rem;
    }

    /* Improve touch targets */
    button,
    [role="button"] {
        min-height: 44px;
        min-width: 44px;
    }

    /* Prevent text selection while dragging on mobile */
    .upload-container {
        user-select: none;
        -webkit-user-select: none;
    }

    .analyze-another-btn {
        width: 90%;
        margin: 2rem auto;
    }

    .legal-links-section {
        padding: 3rem 1rem;
    }

    .legal-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .legal-btn {
        display: block;
        text-align: center;
    }

    footer {
        margin-bottom: 70px; /* Add space for bottom navigation */
    }

    .legal-links-section {
        margin-bottom: -2rem; /* Reduce gap between section and footer */
    }
}

/* Add smooth touch momentum scrolling for iOS */
@supports (-webkit-overflow-scrolling: touch) {
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Legal Section */
.legal-links-section {
    padding: 3rem 2rem;
    background: var(--background-primary);
    text-align: center;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-item h3 {
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.legal-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.legal-btn {
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.legal-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

/* Footer */
footer {
    background: var(--background-secondary);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 50%;
}

.social-icon:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Futuristic Animations */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 15px var(--glow-color); }
    50% { box-shadow: 0 0 30px var(--glow-color); }
}

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

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Interactive Elements */
.upload-container, .step-card, .faq-item {
    position: relative;
    overflow: hidden;
}

.upload-container::after,
.step-card::after,
.faq-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0;
    animation: scanline 2s linear infinite;
    pointer-events: none;
}

.upload-container:hover::after,
.step-card:hover::after,
.faq-item:hover::after {
    opacity: 0.5;
}

/* Glowing Elements */
.score-emoji {
    animation: float 3s ease-in-out infinite;
}

.upload-btn, .hero-section h1 {
    animation: glow 2s ease-in-out infinite;
}

/* High-tech Hover Effects */
.step-card {
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: perspective(1000px) rotateX(5deg) translateY(-5px);
}

.step-icon {
    position: relative;
    z-index: 1;
}

.step-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: var(--accent-gradient);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover .step-icon::before {
    opacity: 0.3;
}

/* Modern Loading Animation */
.progress-ring-container {
    position: relative;
}

.progress-ring-container::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0.1;
    animation: glow 2s ease-in-out infinite;
}

/* Interactive FAQ Items */
.faq-item summary {
    position: relative;
    overflow: hidden;
}

.faq-item summary::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 1.5rem;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    transform: translateY(-75%) rotate(45deg);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::before {
    transform: translateY(-25%) rotate(-135deg);
}

/* High-tech Score Bar */
.score-bar {
    position: relative;
    overflow: visible;
}

.score-bar::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--accent-gradient);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.1;
    animation: glow 2s ease-in-out infinite;
}

/* Futuristic Button Effects */
.upload-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: translateX(-100%) rotate(45deg);
    animation: buttonGlow 2s infinite;
}

@keyframes buttonGlow {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* High-tech Text Effects */
.hero-section h1 {
    position: relative;
    display: inline-block;
}

.hero-section h1::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.5;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { opacity: 0.5; filter: blur(0px); }
    50% { opacity: 0.8; filter: blur(1px); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .step-card:hover {
        transform: translateY(-5px);
    }
    
    .upload-container::after,
    .step-card::after,
    .faq-item::after {
        animation: none;
    }
}

/* Particle Effects */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, var(--glow-color) 0%, transparent 10px),
        radial-gradient(circle at 80% 70%, var(--glow-color) 0%, transparent 10px),
        radial-gradient(circle at 40% 80%, var(--glow-color) 0%, transparent 8px),
        radial-gradient(circle at 60% 20%, var(--glow-color) 0%, transparent 8px);
    filter: blur(4px);
    opacity: 0.1;
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* Enhanced Loading Animation */
.loading-animation {
    position: relative;
}

.loading-animation::after {
    content: '';
    position: absolute;
    inset: -20px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, var(--accent-color), transparent) border-box;
    -webkit-mask: 
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-ring__circle-fg {
    stroke: url(#gradient);
    filter: drop-shadow(0 0 8px var(--glow-color));
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { stroke-width: 6; }
    50% { stroke-width: 8; }
}

/* Add this SVG to your HTML for the gradient */
.progress-ring defs {
    background: var(--accent-gradient);
}

/* Cyber Grid Background */
main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, var(--background-primary) 1px, transparent 1px) 0 0 / 50px 50px,
        linear-gradient(0deg, var(--background-primary) 1px, transparent 1px) 0 0 / 50px 50px;
    opacity: 0.05;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* Enhance Existing Animations */
.upload-btn:hover::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    border-radius: inherit;
    z-index: -1;
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; filter: blur(3px); }
    50% { opacity: 0.8; filter: blur(6px); }
}

/* High-tech Card Hover Effects */
.step-card:hover,
.faq-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 10px 40px rgba(var(--accent-color-rgb), 0.2),
        0 0 20px rgba(var(--accent-color-rgb), 0.1);
}

/* Enhance Score Display */
.score-emoji {
    position: relative;
    z-index: 1;
}

.score-emoji::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.1;
    filter: blur(10px);
    animation: emojiGlow 3s ease-in-out infinite;
}

@keyframes emojiGlow {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.2); opacity: 0.2; }
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 1rem;
    background: var(--background-primary);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, var(--glow-color) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--glow-color) 0%, transparent 50%);
    opacity: 0.05;
    filter: blur(40px);
    pointer-events: none;
}

.newsletter-card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.newsletter-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.newsletter-card p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin: 2rem 0 1rem;
    justify-content: center;
    position: relative;
}

.newsletter-form input[type="email"] {
    flex: 1;
    max-width: 300px;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-color-rgb), 0.2);
    outline: none;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.subscribe-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.subscribe-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--glow-color);
}

.subscribe-btn:hover::before {
    transform: translateX(100%);
}

.privacy-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Newsletter Success Message */
.newsletter-success {
    display: none;
    color: var(--success-color);
    font-size: 1.1rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(0, 255, 157, 0.1);
}

.newsletter-error {
    display: none;
    color: var(--error-color);
    font-size: 1.1rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 68, 68, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 3rem 1rem;
    }

    .newsletter-card {
        padding: 2rem 1.5rem;
    }

    .newsletter-card h2 {
        font-size: 2rem;
    }

    .newsletter-card p {
        font-size: 1.1rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-form input[type="email"] {
        max-width: 100%;
    }

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

@media (max-width: 480px) {
    .newsletter-section {
        padding: 2rem 1rem;
    }

    .newsletter-card {
        padding: 1.5rem 1rem;
    }

    .newsletter-card h2 {
        font-size: 1.75rem;
    }

    .newsletter-card p {
        font-size: 1rem;
    }
}

/* Social Share */
.social-share {
    text-align: center;
    padding: 2rem 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn i {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    width: 100%;
    height: 100%;
}

.share-btn.twitter { background: #1DA1F2; }
.share-btn.facebook { background: #4267B2; }
.share-btn.linkedin { background: #0077B5; }
.share-btn.pinterest { background: #E60023; }
.share-btn.reddit { background: #FF4500; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.telegram { background: #0088cc; }

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-btn:hover i {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .share-buttons {
        gap: 0.75rem;
    }
    
    .share-btn {
        width: 40px;
        height: 40px;
    }
    
    .share-btn i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .share-buttons {
        gap: 0.5rem;
    }
    
    .share-btn {
        width: 35px;
        height: 35px;
    }
    
    .share-btn i {
        font-size: 1rem;
    }
}

.social-share h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Testimonials */
.testimonials-section {
    padding: 5rem 1rem;
    background: var(--background-secondary);
}

.testimonials-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.testimonials-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    flex: 0 0 280px;
    width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 400px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.testimonial-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-info {
    margin-top: auto;
}

.testimonial-author {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.testimonial-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 1200px) {
    .testimonials-container {
        padding: 0 2rem;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .testimonials-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .testimonial-card {
        flex: 0 0 260px;
        width: 260px;
        padding: 1.5rem;
    }
}

/* Blog Section */
.blog-section {
    padding: 5rem 1rem;
    background: var(--background-primary);
}

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

.blog-card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.blog-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-content h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

.view-all-btn {
    display: block;
    width: fit-content;
    margin: 2rem auto 0;
    padding: 1rem 2rem;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--glow-color);
}

@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .blog-card {
        max-width: 100%;
    }
}

/* Article Modal Styles */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.article-modal.active {
    display: flex;
}

.article-content {
    background: var(--background-secondary);
    border-radius: 1.5rem;
    padding: 3rem;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.article-content h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    border-radius: 1rem;
    margin: 2rem 0;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.article-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color);
    border-radius: 2rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Modal Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.article-content {
    animation: modalFadeIn 0.3s ease-out;
}

/* Scrollbar Styling */
.article-content::-webkit-scrollbar {
    width: 8px;
}

.article-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

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

@media (max-width: 768px) {
    .article-modal {
        padding: 1rem;
    }

    .article-content {
        padding: 2rem;
        width: 95%;
    }

    .article-content h2 {
        font-size: 1.75rem;
    }

    .article-content p {
        font-size: 1rem;
    }

    .close-modal {
        top: 1rem;
        right: 1rem;
    }
}

.blog-hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    margin-bottom: 40px;
}

.blog-hero h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInDown 0.8s ease-out;
}

.blog-hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out;
}

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

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

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 1.8rem;
    }
    
    .blog-hero p {
        font-size: 1.1rem;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 1.5rem;
    }
}

.nav-links a i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        padding: 0.8rem 1rem;
        color: var(--text-primary);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .nav-links a i {
        width: 1.5rem;
        margin-right: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-links a {
        font-size: 1rem;
        padding: 1rem;
    }

    .nav-links a i {
        font-size: 1.2rem;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        background: var(--background-primary) !important;
        padding: 0.5rem !important;
        z-index: 1000 !important;
        height: 55px !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
        margin: 0 !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .nav-links a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        color: var(--text-primary) !important;
        text-decoration: none !important;
        padding: 0.25rem !important;
        width: 20% !important;
        text-align: center !important;
        margin: 0 !important;
        gap: 0.15rem !important;
    }

    .nav-links a i.fas,
    .nav-links a i.fa,
    .nav-links a i.far {
        display: inline-block !important;
        font-size: 1.1rem !important;
        margin: 0 !important;
        margin-bottom: 0.15rem !important;
        width: auto !important;
        height: auto !important;
        line-height: 1 !important;
        text-align: center !important;
        color: var(--text-primary) !important;
    }

    .nav-links a span {
        display: block !important;
        font-size: 0.55rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        color: var(--text-primary) !important;
    }

    body {
        padding-bottom: 65px !important;
    }

    /* Specific icon styles */
    .nav-links a[href="index.html"] i { display: inline-block !important; }
    .nav-links a[href="#how-it-works"] i { display: inline-block !important; }
    .nav-links a[href="#about"] i { display: inline-block !important; }
    .nav-links a[href="#faq"] i { display: inline-block !important; }
    .nav-links a[href="blog.html"] i { display: inline-block !important; }
}

@media (max-width: 480px) {
    .nav-links a {
        padding: 0.2rem !important;
    }

    .nav-links a i.fas,
    .nav-links a i.fa,
    .nav-links a i.far {
        font-size: 1.2rem !important;
    }

    .nav-links a span {
        font-size: 0.6rem !important;
    }
}

@media (max-width: 768px) {
    .nav-brand .logo-text {
        font-size: 1.5rem;
        font-weight: 900;
        padding: 0.5rem 1rem;
        letter-spacing: 1px;
        text-transform: uppercase;
    }
}

/* Desktop Navigation Styles */
@media (min-width: 769px) {
    .nav-links a i {
        font-size: 2.2rem !important;
        margin-bottom: 0.3rem !important;
    }

    .nav-links a span {
        font-size: 1rem !important;
    }

    .nav-links {
        gap: 2.5rem !important;
    }
}

/* Keep mobile styles unchanged */
@media (max-width: 768px) {
    .nav-links a i.fas,
    .nav-links a i.fa,
    .nav-links a i.far {
        font-size: 1.1rem !important;
        margin-bottom: 0.15rem !important;
    }

    .nav-links a span {
        font-size: 0.55rem !important;
    }
}

@media (min-width: 769px) {
    .privacy-section,
    .terms-section {
        padding-top: 120px !important;
        margin-top: 0 !important;
    }

    .privacy-section h1,
    .terms-section h1 {
        font-size: 2.4rem;
        margin-bottom: 1rem;
    }

    .privacy-section p,
    .terms-section p {
        font-size: 1.1rem;
    }
}

/* Keep mobile styles */
@media (max-width: 768px) {
    .privacy-section,
    .terms-section {
        padding-top: 2rem;
        margin-top: 0;
    }

    .privacy-section h1,
    .terms-section h1 {
        font-size: 1.8rem;
    }

    .privacy-section p,
    .terms-section p {
        font-size: 1rem;
    }
}

