/* ========================================
   GenoScene Homepage Styles
   Responsive design with modern UI
   ======================================== */
/* Navbar */
.navbar {
  background: rgba(15, 23, 42, 0.5); /* لون مع شفافية نصفية */
  padding: 15px 20px;
  width: 100%;
  position: fixed; /* يخلي الـ navbar ثابت في الأعلى أثناء التمرير */
  top: 0; 
  left: 0;
  backdrop-filter: blur(3px); /* تأثير الزجاجي */
  -webkit-backdrop-filter: blur(6px); /* لدعم Safari */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* ظل خفيف */
  z-index: 1000; /* للتأكد إنه فوق باقي العناصر */
}



.nav-container {
  display: flex;
  justify-content: space-between; /* يخلي الزرار على اليمين */
  align-items: center;
}
.nav-logo {
  font-size: 25px;
  font-weight: 800;
  background: linear-gradient(135deg, #22d3ee, #14b8a6);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-btn {
  text-decoration: none;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
  padding: 8px 20px;
  border-radius: 20px;
  color: white;
  font-weight: 600;
  transition: background 0.3s;
}

.login-btn:hover {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

/* CSS Variables for consistent theming */
:root {
    --primary-blue: #3b82f6;
    --primary-cyan: #22d3ee;
    --gradient-blue-cyan: linear-gradient(135deg, #3b82f6, #22d3ee);
    --dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --border-radius-large: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--dark-bg);
    overflow-x: hidden;
}

/* Container for consistent max-width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========================================
   Hero Section Styles
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/dna-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

/* Dark overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.8) 0%,
        rgba(15, 23, 42, 0.6) 50%,
        rgba(15, 23, 42, 0.8) 100%
    );
    z-index: 1;
}

/* Hero content container */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

/* Main hero title */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* Gradient text for "The Code of Life" */
.gradient-text {
    background: var(--gradient-blue-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Hero subtitle */
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero buttons container */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Button Styles
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

/* Primary button (filled) */
.btn-primary {
    background: var(--gradient-blue-cyan);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary button (outlined) */
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-cyan);
    transform: translateY(-2px);
}

/* Large button variant */
.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    min-width: 200px;
}

/* ========================================
   About Section Styles
   ======================================== */

.about-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0b1220 100%);
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 3rem;
    box-shadow: var(--shadow-large);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
}

/* Subtle background pattern */
.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 20% 80%,
        rgba(34, 211, 238, 0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-cyan);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ========================================
   DNA Structure Section Styles
   ======================================== */

.dna-structure-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #0b1220 0%, #0a0f1a 100%);
}

.dna-structure-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 3rem;
    box-shadow: var(--shadow-large);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.1) 0%, transparent 50%);
}

.dna-structure-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 80% 20%,
        rgba(34, 211, 238, 0.05) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.dna-structure-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.dna-structure-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.dna-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.dna-diagrams-panel {
    position: relative;
    z-index: 1;
}

.dna-images-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dna-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(20, 184, 166, 0.1));
}

.dna-image-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.dna-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(34, 211, 238, 0.1), transparent, rgba(20, 184, 166, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.dna-image-wrapper:hover::before {
    opacity: 1;
}

.dna-structure-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dna-image-wrapper:hover .dna-structure-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2;
}

.dna-image-wrapper:hover .image-overlay {
    transform: translateY(0);
}

.image-label {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    display: block;
}

.primary-image {
    border: 2px solid rgba(34, 211, 238, 0.3);
}

.secondary-image {
    border: 2px solid rgba(20, 184, 166, 0.3);
}

.dna-description {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
}

.dna-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
}

.dna-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.fact-item {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(20, 184, 166, 0.1));
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.fact-item:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(20, 184, 166, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.2);
}

.fact-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-cyan);
    line-height: 1;
}

.fact-unit {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
}

.fact-text {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.3;
}

.dna-components-panel {
    position: relative;
    z-index: 1;
}

.component-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.component-item:hover {
    background: rgba(34, 211, 238, 0.05);
    border-color: rgba(34, 211, 238, 0.2);
    transform: translateY(-2px);
}

.component-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sugar-icon {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: white;
}

.phosphate-icon {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
}

.base-icon {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

.component-content h4 {
    color: var(--primary-cyan);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.component-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.base-pairing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.base-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.base-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.base-card:hover::before {
    left: 100%;
}

.base-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.base-card.adenine:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    animation: glow 2s ease-in-out infinite;
}

.base-card.thymine:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    animation: glow 2s ease-in-out infinite;
}

.base-card.guanine:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    animation: glow 2s ease-in-out infinite;
}

.base-card.cytosine:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
    animation: glow 2s ease-in-out infinite;
}

/* Add floating animation to base cards */
.base-card:nth-child(1) {
    animation: float 6s ease-in-out infinite;
}

.base-card:nth-child(2) {
    animation: float 6s ease-in-out infinite 1.5s;
}

.base-card:nth-child(3) {
    animation: float 6s ease-in-out infinite 3s;
}

.base-card:nth-child(4) {
    animation: float 6s ease-in-out infinite 4.5s;
}

.base-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    color: white;
}

.adenine .base-icon {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.thymine .base-icon {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.guanine .base-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.cytosine .base-icon {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.base-card h4 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.base-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.base-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bond-count {
    background: linear-gradient(135deg, #22d3ee, #14b8a6);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.base-type {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Advanced DNA Analysis Section */
.dna-advanced-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.advanced-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-cyan);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.advanced-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #22d3ee, #14b8a6);
    border-radius: 2px;
}

.analysis-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
    transition: left 0.6s ease;
}

.step-item:hover::before {
    left: 100%;
}

.step-item:hover {
    transform: translateY(-8px);
    background: rgba(34, 211, 238, 0.05);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22d3ee, #14b8a6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.3);
}

.step-content {
    position: relative;
    z-index: 1;
}

.step-content h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

/* ========================================
   App Section Styles
   ======================================== */

.app-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, #0a0f1a 0%, var(--dark-bg) 100%);
}

.app-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-large);
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.app-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.app-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Footer Styles
   ======================================== */

.footer {
    background: #020617;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-version {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ========================================
   Main Application Styles (from styles.css)
   ======================================== */

:root {
  --bg: #0f172a;
  --card: #111827;
  --ink: #e5e7eb;
  --muted: #9ca3af;
  --accent: #22d3ee;
  --good: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
  --primary: #3b82f6;
  --secondary: #6366f1;
}

body {
  background: linear-gradient(180deg, #0b1024, #0f172a 40%, #020617 100%);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
}

.wrap {
  max-width: 1200px;
  margin: 24px auto;
  padding: 16px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #22d3ee, #14b8a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

.lang {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang button {
  background: #1f2937;
  border: 1px solid #374151;
  color: #e5e7eb;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.lang button:hover {
  background: #374151;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.card:hover::before {
  left: 100%;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 968px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

input[type="text"], input[type="file"] {
  background: #0b1220;
  border: 1px solid #1f2937;
  color: #e5e7eb;
  padding: 12px 16px;
  border-radius: 10px;
  min-width: 220px;
  flex: 1;
  transition: border-color 0.3s;
  font-size: 14px;
}

input[type="text"]:focus, input[type="file"]:focus {
  outline: none;
  border-color: #22d3ee;
}

.btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn.muted {
  background: #1f2937;
  color: #e5e7eb;
  border: 1px solid #374151;
}

.btn.muted:hover {
  background: #374151;
}

.btn.accent {
  background: linear-gradient(135deg, #14b8a6, #22d3ee);
}

.section-title {
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0 0 20px;
  font-size: 1.5rem;
  color: #22d3ee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title svg {
  width: 24px;
  height: 24px;
}

.avatar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  background: radial-gradient(
    ellipse at 50% -20%,
    rgba(34, 211, 238, 0.1),
    transparent 60%
  );
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.avatar-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(34, 211, 238, 0.1),
    transparent 50%,
    rgba(34, 211, 238, 0.1)
  );
  pointer-events: none;
}

.generated-face {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.generated-face:hover {
  transform: scale(1.02);
}

.face-placeholder {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.chart {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  height: 180px;
  padding: 16px;
  border-radius: 12px;
  background: #0b1220;
  border: 1px solid #1f2937;
  margin-bottom: 20px;
}

.bar {
  width: 30%;
  background: linear-gradient(
    180deg,
    rgba(34, 211, 238, 0.8),
    rgba(34, 211, 238, 0.35)
  );
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 10px 10px 4px 4px;
  position: relative;
  transition: height 0.5s ease;
}

.bar span {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: #022c33;
  font-weight: 800;
}

.bar::after {
  content: attr(data-label);
  position: absolute;
  bottom: -26px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.traits-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .traits-list {
    grid-template-columns: 1fr;
  }
}

.trait-pill {
  background: #0b1220;
  border: 1px solid #1f2937;
  color: #e5e7eb;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.trait-pill:hover {
  transform: translateY(-2px);
  border-color: #22d3ee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.trait-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 968px) {
  .trait-details {
    grid-template-columns: 1fr;
  }
}

.trait-category {
  background: #0b1220;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 16px;
}

.trait-category h4 {
  margin-bottom: 12px;
  color: #22d3ee;
  font-size: 16px;
  font-weight: 600;
}

.probability-bar {
  margin-bottom: 12px;
}

.probability-bar .label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
}

.probability-bar .bar-container {
  background: #1f2937;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.probability-bar .bar-fill {
  background: linear-gradient(90deg, #14b8a6, #22d3ee);
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.file-upload {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.file-upload input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-info {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 6, 23, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(10px);
}

.processing-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #22d3ee;
  animation: spin 1s linear infinite;
}

.processing-text {
  color: #e5e7eb;
  font-size: 18px;
  font-weight: 500;
}

.hidden {
  display: none;
}

footer {
  color: #64748b;
  font-size: 13px;
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* إضافة أنماط للعناصر الجديدة */
.info-card {
  margin-bottom: 30px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), rgba(20, 184, 166, 0.05));
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.info-content p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: #e5e7eb;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-2px);
}

.feature-item svg {
  color: #22d3ee;
  flex-shrink: 0;
}

.feature-item span {
  font-size: 14px;
  font-weight: 500;
}

/* أنماط الإحصائيات */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-3px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #22d3ee;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.stat-label {
  font-size: 14px;
  color: #9ca3af;
  font-weight: 500;
}

/* Animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.6);
  }
}

/* RTL support */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .row {
  flex-direction: row-reverse;
}

[dir="rtl"] .traits-list {
  direction: rtl;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet styles */
@media (max-width: 768px) {
  .hero-content {
    padding: 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .about-card,
  .app-card,
  .dna-structure-card {
    padding: 2rem;
    margin: 0 1rem;
  }
  
  .about-title,
  .dna-structure-title {
    font-size: 2rem;
  }
  
  .app-title {
    font-size: 1.75rem;
  }
  
  .dna-content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .dna-images-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .dna-facts {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .base-pairing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .analysis-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .component-item {
    flex-direction: column;
    text-align: center;
  }
  
  .component-icon {
    align-self: center;
  }
}

/* Mobile styles */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .hero {
    background-attachment: scroll;
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .about-card,
  .app-card,
  .dna-structure-card {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
  
  .about-title,
  .dna-structure-title {
    font-size: 1.75rem;
  }
  
  .about-text {
    font-size: 1rem;
  }
  
  .app-title {
    font-size: 1.5rem;
  }
  
  .app-description {
    font-size: 1rem;
  }
  
  .base-pairing-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .base-card {
    padding: 1.5rem;
  }
  
  .dna-structure-subtitle {
    font-size: 1rem;
  }
}

/* ========================================
   Accessibility and Performance
   ======================================== */

/* Focus styles for keyboard navigation */
.btn:focus {
  outline: 2px solid var(--primary-cyan);
  outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero {
    background-attachment: scroll;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-secondary {
    border-width: 3px;
  }
  
  .about-card,
  .app-card {
    border-width: 2px;
  }
}

/* Print styles */
@media print {
  .hero {
    background: none;
    color: black;
  }
  
  .hero-overlay {
    display: none;
  }
  
  .btn {
    border: 1px solid black;
    background: white;
    color: black;
  }
}