/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Enhanced CSS Variables */
:root {
    /* Light Theme Colors */
    --primary-bg-light: #ffffff;
    --secondary-bg-light: #f8fafc;
    --card-bg-light: #ffffff; /* Updated: Changed to a solid white */
    --text-color-light: #1e293b;
    --text-secondary-light: #64748b;
    --accent-color-light: #3b82f6;
    --accent-secondary-light: #8b5cf6;
    --border-color-light: rgba(226, 232, 240, 0.5);
    --shadow-light: rgba(0, 0, 0, 0.1);

    /* Dark Theme Colors */
    --primary-bg-dark: #0f172a;
    --secondary-bg-dark: #1e293b;
    --card-bg-dark: rgba(20, 29, 47, 0.7);
    --text-color-dark: #f1f5f9;
    --text-secondary-dark: #94a3b8;
    --accent-color-dark: #60a5fa;
    --accent-secondary-dark: #a78bfa;
    --border-color-dark: rgba(71, 85, 105, 0.5);
    --shadow-dark: rgba(0, 0, 0, 0.3);

    /* Default to dark theme */
    --primary-bg: var(--primary-bg-dark);
    --secondary-bg: var(--secondary-bg-dark);
    --card-bg: var(--card-bg-dark);
    --text-color: var(--text-color-dark);
    --text-secondary: var(--text-secondary-dark);
    --accent-color: var(--accent-color-dark);
    --accent-secondary: var(--accent-secondary-dark);
    --border-color: var(--border-color-dark);
    --shadow: var(--shadow-dark);

    /* Enhanced Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-text: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);

    /* Status Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;

    /* Spacing System */
    --container-padding: 2rem;
    --section-padding: 6rem 0;
    --border-radius: 1rem;
    --border-radius-lg: 1.5rem;
    --border-radius-xl: 2rem;
    /* New variable for navbar curve */
    --navbar-radius: 1.5rem;

    /* Enhanced Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Typography Scale */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 9999;
}

/* Light theme overrides */
[data-theme="light"] {
    --primary-bg: var(--primary-bg-light);
    --secondary-bg: var(--secondary-bg-light);
    --card-bg: var(--card-bg-light);
    --text-color: var(--text-color-light);
    --text-secondary: var(--text-secondary-light);
    --accent-color: var(--accent-color-light);
    --accent-secondary: var(--accent-secondary-light);
    --border-color: var(--border-color-light);
    --shadow: var(--shadow-light);

    .navbar {
        background: var(--card-bg-light);
        border-bottom: 1px solid var(--border-color-light);
    }
}

/* Enhanced Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    font-weight: 900; 
    line-height: 1.1;
}
h2 { 
    font-size: clamp(2rem, 4vw, 3rem); 
    font-weight: 800; 
}
h3 { 
    font-size: clamp(1.5rem, 3vw, 2rem); 
    font-weight: 700; 
}
h4 { 
    font-size: clamp(1.25rem, 2.5vw, 1.5rem); 
    font-weight: 600; 
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: var(--font-size-lg);
    line-height: 1.7;
}

/* Enhanced Gradient Text */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.highlight {
    color: var(--accent-color);
    font-weight: 700;
}

/* Enhanced Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
    user-select: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: var(--font-size-lg);
}

.btn-glow {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--shadow);
}

.btn-primary:hover {
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.btn:active {
    transform: translateY(-1px);
}

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

/* Enhanced Button Ripple Effect */
.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

/* Enhanced Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: var(--card-bg);
    /* backdrop-filter: blur(20px); -- Removed for solid color */
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    /* New style for the curved header */
    border-bottom-left-radius: var(--navbar-radius);
    border-bottom-right-radius: var(--navbar-radius);
    box-shadow: 0 10px 30px var(--shadow);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px var(--shadow-light);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: var(--font-size-xl);
    color: var(--text-color);
    text-decoration: none;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.nav-subtitle {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 15px var(--shadow);
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
}

.nav-indicator {
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link.active .nav-indicator {
    width: 80%;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: var(--font-size-xl);
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.theme-toggle:hover {
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
    transform: rotate(180deg);
}

.theme-tooltip {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--text-color);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px var(--shadow);
}

.theme-toggle:hover .theme-tooltip {
    opacity: 1;
    visibility: visible;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* Enhanced Page Transitions */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    animation: pageEnter 0.8s ease forwards;
}

@keyframes pageEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-toast);
    transition: opacity 0.5s ease;
}

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

.loading-logo-container {
    position: relative;
    margin-bottom: 2rem;
}

.loading-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.loading-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 2s infinite;
    opacity: 0.3;
}

.loading-text {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.loading-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin: 0 auto 1rem;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: loadingProgress 2s ease-in-out infinite;
}

.loading-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loadingGlow 2s ease-in-out infinite;
}

.loading-percentage {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 600;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes loadingGlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.1; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
}

/* Enhanced Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

.shape-5 {
    width: 80px;
    height: 80px;
    bottom: 40%;
    right: 20%;
    animation-delay: 3s;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 2rem;
    color: var(--accent-color);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-title {
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    animation: slideInLeft 1s ease forwards;
    opacity: 0;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.hero-description {
    font-size: var(--font-size-xl);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-feature i {
    color: var(--accent-color);
    font-size: var(--font-size-lg);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

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

.hero-stats .stat-number {
    font-size: var(--font-size-2xl);
    font-weight: 900;
    color: var(--text-color);
    display: block;
}

.hero-stats .stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Enhanced Encryption Demo */
.encryption-demo {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 20px 60px var(--shadow);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    max-width: 450px;
    width: 100%;
}

.demo-card {
    width: 100%;
}

.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.demo-dots {
    display: flex;
    gap: 0.5rem;
}

.demo-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.8;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.demo-title {
    font-weight: 600;
    color: var(--text-color);
    font-size: var(--font-size-base);
}

.demo-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success-color);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.encryption-method {
    margin-bottom: 1.5rem;
}

.encryption-method label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.demo-select {
    width: 100%;
    padding: 0.75rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: var(--font-size-sm);
}

.file-list {
    margin-bottom: 1.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
}

.file-icon {
    color: var(--accent-color);
    font-size: var(--font-size-xl);
    width: 24px;
    text-align: center;
}

.file-info {
    flex: 1;
}

.file-name {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    font-size: var(--font-size-sm);
}

.file-size {
    display: block;
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
}

.encryption-progress {
    width: 80px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 2s ease;
}

.file-status {
    width: 24px;
    text-align: center;
}

.file-status.encrypted {
    color: var(--success-color);
}

.file-status.encrypting {
    color: var(--accent-color);
}

.file-status.pending {
    color: var(--text-secondary);
}

.demo-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.encryption-info {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
}

.info-item i {
    color: var(--accent-color);
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    margin: 0 auto 0.5rem;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

/* Enhanced Stats Section */
.stats-section {
    padding: var(--section-padding);
    background: var(--secondary-bg);
}

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

.stat-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.stat-card:hover::before {
    opacity: 0.05;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px var(--shadow);
}

.stat-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

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

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.stat-unit {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.stat-label {
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.stat-description {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Enhanced Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    font-size: var(--font-size-xl);
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Page Headers */
.page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: var(--secondary-bg);
    position: relative;
    overflow: hidden;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.header-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    z-index: -1;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 2rem;
    color: var(--accent-color);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 2rem;
}

.page-title {
    margin-bottom: 1rem;
}

.page-description {
    font-size: var(--font-size-xl);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.header-stats .stat {
    text-align: center;
}

.header-stats .stat-number {
    font-size: var(--font-size-2xl);
    font-weight: 900;
    color: var(--accent-color);
    display: block;
}

.header-stats .stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 600;
}

.version-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.version-badge,
.release-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.version-badge {
    color: var(--accent-color);
}

.release-date {
    color: var(--text-secondary);
}

/* Enhanced Features Section */
.features-section {
    padding: var(--section-padding);
}

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

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card.premium {
    border: 2px solid var(--accent-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px var(--shadow);
}

.feature-icon {
    position: relative;
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
    display: inline-block;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.feature-card:hover .icon-glow {
    opacity: 1;
}

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

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

.feature-metrics {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.metric {
    text-align: center;
}

.metric-value {
    font-size: var(--font-size-xl);
    font-weight: 900;
    color: var(--accent-color);
    display: block;
}

.metric-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.feature-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.detail i {
    color: var(--success-color);
    width: 16px;
}

/* Large Feature Cards */
.feature-card-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 3rem;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

.feature-card-large:nth-child(even) {
    direction: rtl;
}

.feature-card-large:nth-child(even) > * {
    direction: ltr;
}

.feature-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px var(--shadow);
}

.feature-content {
    text-align: left;
}

.feature-highlights {
    margin: 2rem 0;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.highlight-item i {
    color: var(--success-color);
    font-size: var(--font-size-lg);
    margin-top: 0.25rem;
}

.highlight-content h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.highlight-content p {
    color: var(--text-secondary);
    margin: 0;
}

.feature-capabilities {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.capability {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.capability i {
    color: var(--accent-color);
    font-size: var(--font-size-lg);
    margin-top: 0.25rem;
}

.capability h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.capability p {
    color: var(--text-secondary);
    margin: 0;
}

/* Enhanced Visual Elements */
.feature-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.encryption-animation {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.data-visualization {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.data-blocks,
.encrypted-blocks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.block {
    width: 60px;
    height: 12px;
    border-radius: 4px;
    transition: all var(--transition-normal);
}

.block.original {
    background: var(--text-secondary);
    animation: pulse 2s infinite;
}

.block.encrypted {
    background: var(--gradient-primary);
    animation: shimmer 2s infinite;
}

.encryption-process {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.process-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.process-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--accent-color);
}

.encryption-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.detail-item i {
    color: var(--accent-color);
}

/* File Manager Demo */
.file-manager-demo {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    min-width: 300px;
}

.file-tree {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.folder-item {
    margin-bottom: 1rem;
}

.folder-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.folder-header i {
    color: var(--accent-color);
    font-size: var(--font-size-lg);
}

.folder-status {
    margin-left: auto;
    color: var(--success-color);
}

.folder-contents {
    margin-left: 1.5rem;
}

.file-actions {
    margin-left: auto;
}

.encryption-badge {
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.encryption-badge.encrypted {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.encryption-badge.encrypting {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
}

/* Technology Section */
.technology-section {
    padding: var(--section-padding);
    background: var(--secondary-bg);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 4rem;
}

.tech-category h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tech-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px var(--shadow);
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-xl);
    flex-shrink: 0;
}

.tech-info h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.tech-info p {
    color: var(--text-secondary);
    margin: 0;
}

/* Enhanced CTA Section */
.cta-section {
    padding: var(--section-padding);
    background: var(--secondary-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.cta-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: var(--font-size-xl);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.cta-feature i {
    color: var(--success-color);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Enhanced Footer */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-color);
}

.brand-tagline {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color var(--transition-normal);
}

.link-group a:hover {
    color: var(--accent-color);
}

.footer-social h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
}

.social-link:hover {
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.footer-info a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-badges {
    display: flex;
    gap: 1rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-secondary);
}

.badge i {
    color: var(--success-color);
}

/* Enhanced Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-fixed);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
    border-radius: 50%;
}

.back-to-top:hover .btn-glow {
    opacity: 1;
}

/* Enhanced Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

@keyframes slideInLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

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

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}


/* --- START PAGE-SPECIFIC STYLING --- */

/* --- Home Page (index.html) --- */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    z-index: 2;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* --- Features Page (features.html) --- */
.features-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
}

.feature-card-large {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
}

.feature-card-large:nth-child(even) {
    direction: rtl;
}

.feature-card-large:nth-child(even) > * {
    direction: ltr;
}

.feature-content {
    text-align: left;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 4rem;
}

.tech-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

/* --- Download Page (download.html) --- */
.download-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    /* Added to ensure cards of different sizes align properly */
    align-items: flex-start;
}

.download-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.platform-icon {
    font-size: 2.5rem;
    color: var(--text-color);
}

.platform-info {
    flex: 1;
}

.download-features {
    margin-bottom: 2rem;
}

.download-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.download-features .feature-item i {
    color: var(--success-color);
    min-width: 1rem;
}

.download-details {
    margin-bottom: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.download-details .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.download-details .detail-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: var(--font-size-sm);
}

.download-details .detail-value {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.download-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-options {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.option-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: all var(--transition-normal);
}

.option-link:hover {
    text-decoration: underline;
}

.download-info {
    margin-top: 1rem;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.download-info .info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-info .info-item i {
    color: var(--success-color);
    min-width: 1rem;
}

.requirements-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.requirement-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 2.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.release-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* --- Contact Page (contact.html) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-form {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: var(--font-size-base);
    transition: border-color 0.3s ease;
}

.form-group textarea {
    min-height: 150px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-checkbox input {
    width: auto;
}

.contact-details-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
}

.contact-info-card .info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-card .info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.contact-info-card .info-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-card .info-item a:hover {
    color: var(--accent-color);
}

.team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow);
}

.team-member-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--accent-color);
    object-fit: cover;
}

.team-member-card h4 {
    margin: 0;
    font-size: var(--font-size-lg);
}

.team-member-card p {
    margin: 0.5rem 0 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* New Accordion Styling for FAQ */
.faq-section .section-title {
    margin-bottom: 2rem;
}

.faq-container {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-color);
    padding: 2rem;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background: var(--secondary-bg);
}

.accordion-header .icon {
    transition: transform 0.3s ease;
}

.accordion-header.active .icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.accordion-content.active {
    max-height: 500px; /* A larger value to accommodate content */
    padding: 1.5rem;
}

/* Version List within Accordion */
.versions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    max-height: 300px; /* New: Set a maximum height */
    overflow-y: auto; /* New: Enable vertical scrolling */
    padding-right: 1rem; /* New: Add padding for the scrollbar */
}

.version-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    border: 1px solid transparent; /* Change to transparent to avoid jump on hover */
    transition: all 0.3s ease;
}

.version-card:hover {
    background: var(--card-bg);
    box-shadow: 0 5px 15px var(--shadow);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.version-info-group {
    display: flex;
    flex-direction: column;
}

.version-name {
    font-weight: 600;
    color: var(--text-color);
}

.version-date {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.version-card .btn-secondary {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.version-card .btn-secondary:hover {
    background: var(--accent-secondary);
    color: white;
}
/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .feature-card-large {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .release-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --section-padding: 4rem 0;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 30px var(--shadow);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

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

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

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

    .features-showcase {
        grid-template-columns: 1fr;
    }

    .header-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .version-info {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .download-grid {
        flex-direction: column;
    }
    
    .requirements-grid {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-features {
        align-items: center;
    }

    .encryption-details {
        flex-direction: column;
        gap: 1rem;
    }

    .data-visualization {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: rgba(0, 0, 0, 0.8);
        --border-color: #000000;
    }
    
    .btn-outline {
        border-width: 3px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .loading-screen,
    #particles-container {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* --- ACCORDION STYLING --- */
.accordion-item {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background: var(--secondary-bg);
}

.accordion-header .icon {
    transition: transform 0.3s ease;
}

.accordion-header.active .icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.accordion-content.active {
    max-height: 500px; /* A larger value to accommodate content */
    padding: 1.5rem;
}

/* Version List within Accordion */
.versions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    max-height: 1800px; /* New: Set a maximum height */
    overflow-y: auto; /* New: Enable vertical scrolling */
    padding-right: 1rem; /* New: Add padding for the scrollbar */
}

.version-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    border: 1px solid transparent; /* Change to transparent to avoid jump on hover */
    transition: all 0.3s ease;
}

.version-card:hover {
    background: var(--card-bg);
    box-shadow: 0 5px 15px var(--shadow);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.version-info-group {
    display: flex;
    flex-direction: column;
}

.version-name {
    font-weight: 600;
    color: var(--text-color);
}

.version-date {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.version-card .btn-secondary {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.version-card .btn-secondary:hover {
    background: var(--accent-secondary);
    color: white;
}
