/* CSS Variables */
 :root {
     --primary: #fe2c55;
     --secondary: #25f4ee;
     --accent1: #ff6b6b;
     --accent2: #4ecdc4;
     --accent3: #ffe66d;
     --dark: #1a1a1a;
     --light: #ffffff;
     --deep-purple: #6c63ff;
     --academic: #2c3e50;
 }

 /* Reset & Base Styles */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: system-ui, -apple-system, sans-serif;
     scroll-behavior: smooth;
 }

 body {
     background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
     color: var(--light);
     line-height: 2;
     margin: 0;
     padding: 1rem;
     direction: rtl;
     overflow-x: hidden;
 }

 li {
     text-align: right;
 }

 ul {
     padding-right: 1.5rem;
     padding-left: 0;
 }

 /* Layout */
 .container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 1rem;
 }

 .section {
     display: flex;
     flex-direction: column;
     align-items: center;
     width: 100%;
     max-width: 100%;
     margin: 0 auto;
     padding: 4rem 0;
 }

 @media (min-width: 768px) {
     .section {
         padding: 6rem 0;
     }
 }

 .section h1,
.section h2,
.section h3 {
width: 100%;
margin-bottom: 1rem;
text-align: center;
}

 .section:hover {
     transform: translateY(-5px);
 }

 /* Typography */
 h1 {
     font-size: clamp(2.5rem, 5vw, 4rem);
     line-height: 1.2;
     margin-bottom: 2rem;
     background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent1));
     -webkit-background-clip: text;
     background-clip: text;
     -webkit-text-fill-color: transparent;
     text-align: center;
 }

 h2 {
     font-size: clamp(1.8rem, 4vw, 2.5rem);
     margin-bottom: 1.5rem;
     color: var(--secondary);
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 1rem;
 }

 .emoji {
     font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
     font-size: 0.8em;
     display: inline-block;
     vertical-align: middle;
     line-height: 1;
     font-weight: normal;
     background: none;
     -webkit-background-clip: unset;
     background-clip: unset;
     -webkit-text-fill-color: initial;
 }

 .catchphrase {
     font-size: 1.5rem;
     color: var(--accent3);
     margin-bottom: 1rem;
     font-weight: bold;
     text-transform: uppercase;
     text-align: center;
     width: 100%;
     display: block;
 }

 /* Statistics Section */
 .stat-container {
     display: grid;
     grid-template-columns: 1fr;
     gap: 1.5rem;
     width: 100%;
 }

 @media (min-width: 768px) {
     .stat-container {
         grid-template-columns: repeat(2, 1fr);
     }
 }

 .stat-box {
     background: linear-gradient(145deg, var(--primary), var(--secondary));
     padding: 2.5rem;
     border-radius: 1.5rem;
     text-align: center;
     color: var(--light);
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
     transition: transform 0.3s ease;
     position: relative;
     overflow: hidden;
 }

 .stat-box::after {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
     animation: shine 2s infinite;
 }

 @keyframes shine {
     0% { transform: translateX(-100%); }
     100% { transform: translateX(100%); }
 }

 .stat-box:hover {
     transform: translateY(-5px);
 }

 .stat-number {
     font-size: 3rem;
     font-weight: bold;
     margin-bottom: 1rem;
 }

  /* Interactive Elements */
  .quiz-box {
     background: rgba(254, 44, 85, 0.1);
     border: 2px solid var(--primary);
     padding: 2.5rem;
     border-radius: 1.5rem;
     box-shadow: 0 8px 25px rgba(254, 44, 85, 0.1);
 }

 .warning-box {
     background: rgba(37, 244, 238, 0.1);
     border: 2px solid var(--secondary);
     padding: 2rem;
     border-radius: 15px;
     text-align: center;
     border: 1px solid var(--secondary);
 }

 .deep-dive-btn {
     display: block;
     width: fit-content;
     padding: 1rem 2rem;
     background: linear-gradient(45deg, var(--deep-purple), var(--accent2));
     color: white;
     text-decoration: none;
     border-radius: 50px;
     font-size: 1.1rem;
     margin: 1.5rem auto;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     text-align: center;
     box-shadow: 0 5px 15px rgba(0,0,0,0.2);
 }

 .deep-dive-btn:hover {
     transform: translateY(-3px);
     box-shadow: 0 8px 20px rgba(0,0,0,0.3);
 }

 .highlight {
     background: var(--primary);
     padding: 0.2rem 0.5rem;
     border-radius: 5px;
     color: var(--light);
 }

 .emoji-bullet {
     font-size: 1.2rem;
     margin-left: 0.5rem;
 }

 /* Cards & Containers */
 .card {
     background: rgba(255, 255, 255, 0.05);
     border-radius: 1.5rem;
     padding: 2rem;
     margin: 1rem 0;
     width: 100%;
     backdrop-filter: blur(10px);
     border: 1px solid rgba(255, 255, 255, 0.1);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     text-align: right;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
     display: flex;
     flex-direction: column;
     align-items: center;
 }

 .card:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
 }

/* Animations */
 @keyframes pulse {
     0% { transform: scale(1); }
     50% { transform: scale(1.05); }
     100% { transform: scale(1); }
 }

 @keyframes wave {
     0% { transform: translateX(-100%); }
     100% { transform: translateX(100%); }
 }

 .attention {
     animation: pulse 2s infinite;
     color: var(--primary);
 }

  /* Special Sections */

 .time-box {
     background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
     backdrop-filter: blur(10px);
     border: 1px solid rgba(255, 255, 255, 0.1);
     padding: 3rem 2rem;
     border-radius: 25px 25px 0 0; /* Rounded corners only on top */
     text-align: center;
     margin: 2rem auto 0 auto; /* Remove bottom margin */
     box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
     transition: transform 0.3s ease;
     position: relative;
     overflow: hidden;
     width: 100%;
     border-bottom: none; /* Remove bottom border */
 }

 /* connecting line animation */
 .time-box::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 50%;
     transform: translateX(-50%);
     width: 2px;
     height: 20px;
     background: linear-gradient(to bottom, var(--primary), var(--secondary));
     animation: pulseConnection 2s infinite;
 }

 .time-box + .card {
     border-radius: 0 0 25px 25px;
     margin-top: 0;
     border-top: none;
     padding-top: 3rem;
     position: relative;
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
 }

 /* connecting animation */
 @keyframes pulseConnection {
     0% { opacity: 0.4; height: 20px; }
     50% { opacity: 1; height: 30px; }
     100% { opacity: 0.4; height: 20px; }
 }

 .time-box:hover {
     transform: translateY(-3px);
 }

 .time-box:hover + .card {
     transform: translateY(-3px);
 }

 .time-highlight {
     font-size: 3.5rem;
     background: linear-gradient(45deg, var(--primary), var(--secondary));
     -webkit-background-clip: text;
     background-clip: text;
     -webkit-text-fill-color: transparent;
     font-weight: bold;
     margin: 1.5rem 0;
     display: inline-block;
     position: relative;
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
 }

 /* light theme support */
 body[data-theme="light"] .time-box {
     background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9));
     border: 1px solid rgba(0, 0, 0, 0.1);
     border-bottom: none;
 }

 body[data-theme="light"] .time-box + .card {
     border: 1px solid rgba(0, 0, 0, 0.1);
     border-top: none;
 }

 .time-box h3 {
     color: var(--accent3);
     font-size: 1.4rem;
     margin-bottom: 1rem;
     font-weight: 600;
 }

 .time-box p {
     font-size: 1.2rem;
     color: var(--light);
     margin-top: 1rem;
     opacity: 0.9;
 }

 /* Light theme support */
 body[data-theme="light"] .time-box {
     background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9));
     border: 1px solid rgba(0, 0, 0, 0.1);
 }

 body[data-theme="light"] .time-box p {
     color: var(--dark);
 }

 .fact-grid {
     display: grid;
     grid-template-columns: 1fr;
     gap: 2rem;
     margin: 2rem 0;
 }

 @media (min-width: 768px) {
     .fact-grid {
         grid-template-columns: repeat(2, 1fr);
         max-width: 1200px;
         margin: 2rem auto;
     }
 }

 .fact-item {
     background: rgba(255, 255, 255, 0.05);
     padding: 2.5rem;
     border-radius: 15px;
     text-align: center;
     transition: transform 0.3s ease;
     backdrop-filter: blur(10px);
     border: 1px solid rgba(255, 255, 255, 0.1);
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
 }

 .fact-item h3 {
     font-size: 1.5rem;
     margin-bottom: 1rem;
     color: var(--accent2);
 }

 .fact-item p {
     font-size: 1.2rem;
     line-height: 1.6;
 }

 .tip-container {
     display: grid;
     grid-template-columns: 1fr;
     gap: 2rem;
     margin: 2rem 0;
 }

 @media (min-width: 768px) {
     .tip-container {
         grid-template-columns: repeat(3, 1fr);
         max-width: 1200px;
         margin: 2rem auto;
     }
 }

 .tip-box {
     background: rgba(37, 244, 238, 0.1);
     padding: 2.5rem;
     border-radius: 15px;
     text-align: center;
     border: 1px solid var(--secondary);
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
 }

 .tip-box h3 {
     font-size: 1.5rem;
     margin-bottom: 1rem;
     color: var(--secondary);
 }

 .tip-box p {
     font-size: 1.2rem;
     line-height: 1.6;
 }

 .fact-item:hover,
 .tip-box:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
 }

 .philosophy-section {
     background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
     padding: 2rem;
     border-radius: 15px;
 }

 .quote {
     font-style: italic;
     color: var(--secondary);
     padding: 1rem;
     border-right: 3px solid var(--primary);
     margin: 1rem 0;
 }

 .cta-button {
     display: inline-block;
     padding: 1rem 2rem;
     background: linear-gradient(90deg, var(--primary), var(--secondary));
     color: var(--light);
     text-decoration: none;
     border-radius: 25px;
     margin: 1rem 0;
     transition: transform 0.3s ease;
 }

 .cta-button:hover {
     transform: scale(1.05);
 }

 /* Academic Section */
 .academic-section {
     background: transparent;
     padding: 4rem 0;
     width: 100%;
 }

 .academic-card {
     background: rgba(255, 255, 255, 0.05);
     border-radius: 1.5rem;
     padding: 3rem;
     margin: 2rem 0;
     box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
     backdrop-filter: blur(10px);
     border: 1px solid rgba(255, 255, 255, 0.1);
 }

 .academic-card h3 {
     color: var(--secondary);
     font-size: 2.2rem;
     margin-bottom: 2rem;
     text-align: center;
     border-bottom: 3px solid var(--secondary);
     padding-bottom: 1rem;
     text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
 }

 .academic-card h4 {
     color: var(--accent2);
     font-size: 1.5rem;
     margin: 2.5rem 0 1rem 0;
     border-right: 4px solid var(--accent2);
     padding: 0.8rem 1rem;
     border-radius: 0.3rem;
     background: rgba(78, 205, 196, 0.1);
 }

 .academic-card p {
     font-size: 1.1rem;
     line-height: 1.8;
     margin: 1.2rem 0;
     padding: 0 1rem;
 }

 .academic-card blockquote {
     font-size: 1.4rem;
     line-height: 1.6;
     color: var(--accent2);
     margin: 2.5rem 0;
     padding: 1.5rem 2rem;
     position: relative;
     font-style: italic;
 }

 .academic-card blockquote::before {
     content: '"';
     position: absolute;
     right: -0.7rem;
     top: -1rem;
     font-size: 4rem;
     color: var(--accent2);
     opacity: 0.3;
     font-family: serif;
 }

 /* Light theme support */
 body[data-theme="light"] .academic-card blockquote {
     color: var(--deep-purple);
 }

 body[data-theme="light"] .academic-card blockquote::before {
     color: var(--deep-purple);
 }

 .study-reference {
     font-style: italic;
     color: var(--accent3);
     text-align: left;
     margin: 1rem 0 2rem 0;
     font-size: 0.9rem;
     opacity: 0.8;
 }

 /* Light theme support */
 body[data-theme="light"] .academic-card {
     background: var(--card-bg);
     color: var(--text-primary);
     box-shadow: var(--box-shadow);
 }

 body[data-theme="light"] .academic-card h3 {
     color: var(--deep-purple);
     border-bottom-color: var(--deep-purple);
     text-shadow: none;
 }

 body[data-theme="light"] .academic-card h4 {
     color: var(--deep-purple);
     border-right-color: var(--deep-purple);
     background: rgba(108, 99, 255, 0.05);
 }

 body[data-theme="light"] .academic-card blockquote {
     background: rgba(254, 44, 85, 0.05);
     color: var(--text-primary);
 }

 body[data-theme="light"] .study-reference {
     color: var(--text-secondary);
 }

 /* Responsive adjustments */
 @media (max-width: 768px) {
     .academic-card {
         padding: 2rem;
     }

     .academic-card h3 {
         font-size: 1.8rem;
     }

     .academic-card h4 {
         font-size: 1.3rem;
     }

     .academic-card p {
         font-size: 1rem;
     }

     .academic-card blockquote {
         font-size: 1.1rem;
         padding: 1rem;
     }
 }

 /* Modern Time Calculator Styles */
.calculator-card {
background: rgba(255, 255, 255, 0.05);
border-radius: 1.5rem;
padding: 2.5rem;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
width: 100%;
margin: 4rem auto;
max-width: 800px;
}

@media (min-width: 768px) {
.calculator-card {
padding: 2rem;
max-width: 600px;
}
}

.calculator-card .title {
margin: 0 0 1.5rem 0;
font-size: 1.25rem;
text-align: right;
}

.slider-container {
margin: 1.5rem 0;
}

.modern-slider {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    outline: none;
    margin: 1.5rem 0;
}

.modern-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--light);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.modern-slider::-webkit-slider-thumb:hover {
transform: scale(1.1);
}

.modern-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--light);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    transition: transform 0.2s;
}

.modern-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.value-display {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
    text-align: right;
    margin: 1rem 0;
}

@media (min-width: 768px) {
    .value-display {
        font-size: 1.5rem;
    }
}

.result {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    text-align: right;
}

/* Desktop */
@media (min-width: 768px) {
.result {
font-size: 1.1rem;
}
}

.slider-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: right;
}

 /* Responsive Design */
 @media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .container { padding: 0 15px; }
    section { padding: 60px 0; }
    .academic-card { padding: 1.5rem; }
    .deep-dive-btn { padding: 1rem 2rem; }
    .stat-container { grid-template-columns: 1fr; }
 }

 @media (min-width: 768px) {
.section {
padding: 2rem;
max-width: 800px;
}
}

/* Smooth Scrolling */
html {
scroll-behavior: smooth;
scroll-padding-top: 2rem;
}

/* Loading Animation */
@keyframes fadeIn {
from {
 opacity: 0;
 transform: translateY(20px);
}
to {
 opacity: 1;
 transform: translateY(0);
}
}

.section {
animation: fadeIn 0.8s ease-out forwards;
}

.sticky-nav {
position: sticky;
top: 0;
background: rgba(26, 26, 26, 0.95);
backdrop-filter: blur(10px);
z-index: 1000;
padding: 1rem;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
left: 0;
right: 0;
width: 100vw;
margin-left: -1rem;
margin-right: -1rem;
}

.nav-container {
max-width: 800px;
margin: 0 auto;
display: flex;
justify-content: space-around;
gap: 1rem;
padding: 0 1rem;
}

.nav-container a {
color: var(--light);
text-decoration: none;
padding: 0.5rem 1rem;
border-radius: 20px;
transition: all 0.3s ease;
}

.nav-container a:hover {
background: var(--primary);
color: var(--light);
}

.share-container {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 100;
}

@media (max-width: 768px) {
.share-container {
 bottom: 80px;
 right: 1rem;
 left: auto;
}

.share-button {
 padding: 0.8rem 1.5rem;
 font-size: 0.9rem;
}
}

.share-button {
background: linear-gradient(45deg, var(--primary), var(--secondary));
color: white;
border: none;
padding: 1rem 2rem;
border-radius: 25px;
cursor: pointer;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
transition: transform 0.3s;
display: flex;
align-items: center;
gap: 0.5rem;
}

.share-button:hover {
transform: translateY(-3px);
}

:root[data-theme="light"] {
--primary: #fe2c55;
--secondary: #25f4ee;
--dark: #1a1a1a;
--light: #ffffff;
--bg: #f5f5f5;
--card-bg: #ffffff;
--text-primary: #1a1a1a;
--text-secondary: #4a5568;
--box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.theme-toggle {
position: fixed;
top: 1rem;
left: 1rem;
z-index: 1001;
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
padding: 0.5rem;
border-radius: 50%;
transition: transform 0.3s;
}

@media (max-width: 768px) {
.theme-toggle {
 top: auto;
 bottom: 5rem;
 left: 1rem;
}
}

.theme-toggle:hover {
transform: rotate(360deg);
}

body[data-theme="light"] {
background: var(--bg);
color: var(--dark);
}

body[data-theme="light"] .time-box {
background: var(--card-bg);
color: var(--text-primary);
box-shadow: var(--box-shadow);
border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .time-highlight {
color: var(--primary);
}

body[data-theme="light"] h1 {
background: linear-gradient(45deg, var(--primary), var(--secondary), var(--primary));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}

body[data-theme="light"] h2 {
color: var(--text-primary);
}

body[data-theme="light"] .card {
background: var(--card-bg);
box-shadow: var(--box-shadow);
border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .stat-box {
background: linear-gradient(145deg, var(--primary), var(--secondary));
color: var(--light);
}

body[data-theme="light"] .fact-item {
background: var(--card-bg);
box-shadow: var(--box-shadow);
color: var(--text-primary);
}

body[data-theme="light"] .tip-box {
background: rgba(37, 244, 238, 0.1);
border: 1px solid var(--secondary);
color: var(--text-primary);
}

body[data-theme="light"] .academic-card {
background: var(--card-bg);
color: var(--text-primary);
box-shadow: var(--box-shadow);
border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .calculator-card {
background: var(--card-bg);
color: var(--text-primary);
box-shadow: var(--box-shadow);
}

body[data-theme="light"] .slider-label {
color: var(--text-secondary);
}

body[data-theme="light"] .sticky-nav {
background: rgba(255, 255, 255, 0.95);
}

body[data-theme="light"] .nav-container a {
color: var(--text-primary);
}

body[data-theme="light"] .nav-container a:hover {
background: var(--primary);
color: var(--light);
}

body[data-theme="light"] blockquote {
color: var(--text-secondary);
border-color: var(--primary);
}

body[data-theme="light"] .attention {
color: var(--primary);
}

body[data-theme="light"] .study-reference {
color: var(--text-secondary);
}

.card p, .card ul {
width: 100%;
text-align: right;
}

.title-emoji {
font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-size: 0.9em;
vertical-align: middle;
display: inline-block;
margin-right: 0.2em;
}

.warning-heading {
color: var(--primary);
font-size: 1.8rem;
padding: 1rem;
margin: 1rem 0;
border-right: 4px solid var(--primary);
background: rgba(254, 44, 85, 0.1);
border-radius: 0.5rem;
}

/* Light theme support */
body[data-theme="light"] .warning-heading {
background: rgba(254, 44, 85, 0.15);
color: var(--primary);
}

.emphasis-text {
font-size: 1.3rem;
font-weight: bold;
color: var(--primary);
padding: 1rem;
margin: 1rem 0;
background: rgba(254, 44, 85, 0.1);
border-radius: 0.5rem;
border-right: 4px solid var(--primary);
text-align: right;
animation: pulse 2s infinite;
}

body[data-theme="light"] .emphasis-text {
background: rgba(254, 44, 85, 0.15);
color: var(--primary);
}

.testimonials-container {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
margin: 2rem 0;
}

@media (min-width: 768px) {
.testimonials-container {
 grid-template-columns: repeat(3, 1fr);
}
}

.testimonial-card {
background: rgba(255, 255, 255, 0.05);
padding: 2rem;
border-radius: 1.5rem;
position: relative;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
transition: transform 0.3s ease;
}

.testimonial-card:hover {
transform: translateY(-5px);
}

.quote-icon {
font-size: 2rem;
margin-bottom: 1rem;
opacity: 0.8;
}

.did-you-know-container {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
padding: 2rem 0;
width: 80%;
max-width: 1200px;
margin: 0 auto;
}

@media (min-width: 768px) {
.did-you-know-container {
 grid-template-columns: repeat(2, 1fr);
}
}

.fact-card {
background: rgba(255, 255, 255, 0.05);
border-radius: 1.5rem;
padding: 1.8rem;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
display: flex;
flex-direction: column;
align-items: center;
gap: 1.2rem;
text-align: center;
}

.fact-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.fact-card .fact-icon {
font-size: 2.5rem;
margin-bottom: 0.5rem;
}

.fact-card h3 {
color: var(--accent2);
font-size: 1.4rem;
margin-bottom: 1rem;
border-bottom: 2px solid var(--accent2);
padding-bottom: 0.5rem;
width: 100%;
}

.fact-card .fact-text {
font-size: 1.1rem;
line-height: 1.6;
margin-bottom: 1rem;
}

.fact-card .fact-source {
font-size: 0.9rem;
color: var(--accent3);
font-style: italic;
opacity: 0.8;
}

/* Variant styles for different fact types */
.fact-card.surprise {
border-right: 4px solid var(--primary);
}

.fact-card.danger {
border-right: 4px solid var(--accent1);
}

.fact-card.warning {
border-right: 4px solid var(--accent3);
}

.fact-card.info {
border-right: 4px solid var(--secondary);
}

/* Light theme support */
body[data-theme="light"] .fact-card {
background: var(--card-bg);
border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .fact-card h3 {
color: var(--deep-purple);
border-bottom-color: var(--deep-purple);
}

body[data-theme="light"] .fact-card .fact-source {
color: var(--text-secondary);
}

@media (max-width: 768px) {
.did-you-know-container {
 grid-template-columns: 1fr;
 padding: 1rem 0;
}

.fact-card {
 padding: 1.5rem;
}

.fact-card h3 {
 font-size: 1.3rem;
}

.fact-card .fact-text {
 font-size: 1rem;
}
}

.testimonial-text {
font-size: 1.1rem;
line-height: 1.6;
margin-bottom: 1.5rem;
text-align: right;
}

.testimonial-author {
font-style: italic;
color: var(--accent2);
text-align: left;
}

/* Light theme support */
body[data-theme="light"] .testimonial-card {
background: var(--card-bg);
border: 1px solid rgba(0, 0, 0, 0.1);
}

.meme-container {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
margin: 2rem 0;
}

@media (min-width: 768px) {
.meme-container {
 grid-template-columns: repeat(3, 1fr);
}
}

.meme-card {
background: rgba(255, 255, 255, 0.05);
border-radius: 1.5rem;
padding: 1.5rem;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
transition: transform 0.3s ease;
display: flex;
flex-direction: column;
min-height: 300px;
}

.meme-content {
text-align: center;
padding: 1.5rem 0;
font-size: 1.2rem;
line-height: 1.6;
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}

.meme-footer {
display: flex;
justify-content: space-around;
padding-top: 1rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
font-size: 0.9rem;
margin-top: auto;
}

.meme-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
font-size: 0.9rem;
}

.meme-tag {
color: var(--primary);
font-weight: bold;
}

.meme-views {
color: var(--accent2);
}

.meme-text {
margin: 0.5rem 0;
}

.meme-text.emphasis {
font-size: 1.4rem;
font-weight: bold;
color: var(--accent1);
margin: 1rem 0;
}

.meme-emoji {
font-size: 2.5rem;
margin: 1rem 0;
}

.meme-footer span {
display: flex;
align-items: center;
gap: 0.3rem;
}

/* Light theme support */
body[data-theme="light"] .meme-card {
background: var(--card-bg);
border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .meme-footer {
border-top-color: rgba(0, 0, 0, 0.1);
}

.comparison-container {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
margin: 2rem auto;
width: 100%;
max-width: 1400px;
padding: 0;
}

@media (min-width: 768px) {
.section {
 padding: 6rem 0;
}

.comparison-container {
 grid-template-columns: repeat(3, minmax(300px, 1fr));
 width: 85%;
 margin: 2rem auto;
 justify-content: center;
}
}

.comparison-card {
background: rgba(255, 255, 255, 0.05);
border-radius: 1.5rem;
padding: 2.5rem;
position: relative;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
transition: transform 0.3s ease;
width: 100%;
margin: 0 auto;
}

.comparison-card:hover {
transform: translateY(-5px);
}

.comparison-header {
font-size: 1.5rem;
font-weight: bold;
color: var(--primary);
text-align: center;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 2px solid var(--primary);
}

.vs-badge {
background: linear-gradient(45deg, var(--primary), var(--secondary));
color: white;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
margin: 1rem auto;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.alternative-container {
display: flex;
flex-direction: column;
gap: 1.5rem;
}

.alternative-item {
display: flex;
align-items: center;
gap: 1.5rem;
padding: 1.5rem;
background: rgba(255, 255, 255, 0.05);
border-radius: 1rem;
transition: transform 0.2s ease;
}

.alternative-item:hover {
transform: scale(1.02);
background: rgba(255, 255, 255, 0.1);
}

.alternative-icon {
font-size: 1.5rem;
}

.alternative-text {
font-size: 1.2rem;
line-height: 1.4;
}

.highlight-card {
border: 2px solid var(--accent1);
background: linear-gradient(145deg, rgba(254, 44, 85, 0.1), rgba(37, 244, 238, 0.1));
}

/* Light theme support */
body[data-theme="light"] .comparison-card {
background: var(--card-bg);
border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .alternative-item {
background: rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .alternative-item:hover {
background: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .highlight-card {
background: linear-gradient(145deg, rgba(254, 44, 85, 0.05), rgba(37, 244, 238, 0.05));
}

@media (max-width: 768px) {
.comparison-container {
 grid-template-columns: 1fr;
}
}


.rewards-system {
position: fixed;
z-index: 1000;
display: flex;
gap: 0.5rem;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
padding: 0.5rem;
border-radius: 1rem;
border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
.rewards-system {
 top: 50%;
 left: 1rem;
 transform: translateY(-50%);
 flex-direction: column;
 gap: 1rem;
 padding: 1rem;
}
}

@media (max-width: 767px) {
.rewards-system {
 bottom: 0;
 left: 0;
 right: 0;
 flex-direction: row;
 justify-content: center;
 border-radius: 1rem 1rem 0 0;
 padding: 0.5rem;
 background: rgba(255, 255, 255, 0.15);
}
}

.reward-badge {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
position: relative;
background: rgba(255, 255, 255, 0.1);
opacity: 0.5;
transition: all 0.3s ease;
}

@media (min-width: 768px) {
.reward-badge {
 width: 50px;
 height: 50px;
 font-size: 1.5rem;
}
}

 .reward-badge.unlocked {
     opacity: 1;
     animation: unlockBadge 0.5s ease;
     background: linear-gradient(45deg, var(--primary), var(--secondary));
 }

 .reward-badge:hover::after {
content: attr(data-tooltip);
position: absolute;
background: rgba(0, 0, 0, 0.8);
color: white;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
font-size: 0.9rem;
white-space: nowrap;
z-index: 1000;
}

@media (min-width: 768px) {
.reward-badge:hover::after {
 left: 120%;
 top: 50%;
 transform: translateY(-50%);
}
}

@media (max-width: 767px) {
.reward-badge:hover::after {
 bottom: 120%;
 left: 50%;
 transform: translateX(-50%);
}
}

 @keyframes unlockBadge {
     0% { transform: scale(1); }
     50% { transform: scale(1.2); }
     100% { transform: scale(1); }
 }

 .progress-notification {
     position: fixed;
     bottom: 2rem;
     left: 50%;
     transform: translateX(-50%);
     background: linear-gradient(45deg, var(--primary), var(--secondary));
     color: white;
     padding: 1rem 2rem;
     border-radius: 2rem;
     font-size: 1.1rem;
     opacity: 0;
     transition: opacity 0.3s ease;
     z-index: 1002;
 }

 .progress-notification.show {
     opacity: 1;
     animation: slideUp 0.5s ease;
 }

 @keyframes slideUp {
     from { transform: translate(-50%, 100%); }
     to { transform: translate(-50%, 0); }
 }

 /* Light theme support */
 body[data-theme="light"] .rewards-system {
     background: rgba(255, 255, 255, 0.9);
     border: 1px solid rgba(0, 0, 0, 0.1);
 }

 body[data-theme="light"] .reward-badge {
     background: rgba(0, 0, 0, 0.1);
 }

 .quotes-section {
     background: none;
     padding: 4rem 0;
     contain: content;
 }

 .quotes-container {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 3rem;
     padding: 2rem 1rem;
     contain: layout style;
     will-change: transform;
 }

 .quote-card {
     background: rgba(255, 255, 255, 0.05);
     border-radius: 1.5rem;
     padding: 3rem 2rem;
     margin: 1rem 0;
     border: 1px solid rgba(255, 255, 255, 0.1);
     transition: transform 0.3s ease;
     contain: content;
     will-change: transform;
 }

 .quote-image {
     width: 120px;
     height: 120px;
     border-radius: 50%;
     margin: 0 auto 2rem;
     background-size: cover;
     background-position: center 20%;
     border: 4px solid var(--primary);
     contain: strict;
     will-change: transform;
     position: relative;
     overflow: hidden;
 }

 .quote-image[aria-label="Elon Musk"] {
     background-position: center 30%;
 }

 .quote-image[aria-label="Mark Zuckerberg"] {
     background-position: center 25%;
 }

 .quote-image[aria-label="Bill Gates"] {
     background-position: center 15%;
 }

 .quote-image[aria-label="Steve Jobs"] {
     background-position: center 20%;
 }

 .quote-image[aria-label="Gal Gadot"] {
     background-position: center 25%;
 }

 .quote-image[aria-label="Simon Sinek"] {
     background-position: center 20%;
 }

 .quote-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background-color: #f0f0f0; /* Placeholder color */
}

.quote-image.loaded {
    opacity: 1;
}

.image-placeholder {
    /* Add placeholder styling */
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    width: 100%;
    height: 100%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

 .quote-card:hover {
     transform: translateY(-5px);
 }

 .quote-image {
     loading: lazy;
     decoding: async;
 }

 .celebrity-quote {
     font-size: 1.1rem;
     line-height: 1.6;
     color: var(--light);
     text-align: right;
     position: relative;
     padding: 2rem 1.5rem;
     margin: 2rem 0;
 }

 .celebrity-quote::before {
     content: '"';
     position: absolute;
     right: -0.5rem;
     top: -1rem;
     font-size: 4rem;
     color: var(--primary);
     opacity: 0.3;
     font-family: serif;
 }

 .quote-author {
     display: flex;
     flex-direction: column;
     align-items: flex-start;
     gap: 0.3rem;
     border-top: 1px solid rgba(255, 255, 255, 0.1);
     padding-top: 1rem;
 }

 .quote-author .name {
     font-size: 1.2rem;
     font-weight: bold;
     color: var(--accent2);
 }

 .quote-author .title {
     font-size: 0.9rem;
     color: var(--accent3);
 }

 .quote-year {
     font-size: 0.8rem;
     color: var(--accent1);
 }

 /* Light theme support */
 body[data-theme="light"] .quote-card {
     background: var(--card-bg);
     border: 1px solid rgba(0, 0, 0, 0.1);
 }

 body[data-theme="light"] .celebrity-quote {
     color: var(--text-primary);
 }

 body[data-theme="light"] .quote-author {
     border-top-color: rgba(0, 0, 0, 0.1);
 }

 @media (max-width: 768px) {
     .quotes-container {
         grid-template-columns: 1fr;
     }
     
     .quote-card {
         padding: 1.5rem;
     }
 }

 #deep-dive-intro {
     text-align: center;
 }

 #deep-dive-intro div {
     text-align: center;
     width: 100%;
 }

 .progress-tracker {
     position: fixed;
     top: 1rem;
     right: 1rem;
     z-index: 1001;
     background: rgba(255, 255, 255, 0.1);
     backdrop-filter: blur(10px);
     padding: 0.5rem 1rem;
     border-radius: 2rem;
     display: flex;
     align-items: center;
     gap: 0.5rem;
     border: 1px solid rgba(255, 255, 255, 0.1);
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
     transition: opacity 0.5s ease, transform 0.5s ease;
     opacity: 1;
     transform: translateX(0);
 }

 .progress-tracker.fade-out {
     opacity: 0;
     transform: translateX(20px);
     pointer-events: none;
 }

 .progress-text {
     color: var(--light);
     font-size: 1rem;
     white-space: nowrap;
 }

 /* light theme support */
 body[data-theme="light"] .progress-tracker {
     background: rgba(255, 255, 255, 0.9);
     border: 1px solid rgba(0, 0, 0, 0.1);
 }

 body[data-theme="light"] .progress-text {
     color: var(--dark);
 }

 @media (max-width: 768px) {
     .progress-tracker {
         top: 4rem;
         bottom: auto;
         right: 50%;
         transform: translateX(50%);
         padding: 0.4rem 0.8rem;
         font-size: 0.9rem;
         width: auto;
         white-space: nowrap;
     }
 }

 a:focus, button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Base link styles */
a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--primary);
}

/* Underline animation on hover */
a:not(.deep-dive-btn):not(.nav-container a)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

a:not(.deep-dive-btn):not(.nav-container a):hover::after {
    width: 100%;
}

/* Light theme link styles */
body[data-theme="light"] a {
    color: var(--deep-purple);
}

body[data-theme="light"] a:hover {
    color: var(--primary);
}

/* Privacy notice link specific styles */
.privacy-notice a {
    color: var(--accent2);
    font-weight: 500;
}

body[data-theme="light"] .privacy-notice a {
    color: var(--deep-purple);
}

.privacy-notice a:hover {
    color: var(--primary);
}

/* Trivia Game Styles */
.trivia-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 4rem 0;
}

.trivia-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.trivia-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.trivia-header {
    font-size: 1.2rem;
    color: var(--accent2);
    margin-bottom: 1.5rem;
}

.trivia-question {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: bold;
    text-align: center;
}

.trivia-options {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.trivia-option {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-align: right;
    color: var(--light);
}

.trivia-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.trivia-option.correct {
    background: rgba(46, 213, 115, 0.2);
    border-color: #2ed573;
}

.trivia-option.wrong {
    background: rgba(255, 71, 87, 0.2);
    border-color: #ff4757;
}

.trivia-result {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 2rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-text {
    font-size: 1.2rem;
    line-height: 1.6;
}

.trivia-progress {
    margin-top: 2rem;
    text-align: center;
}

/* Timeline Styles */
.timeline-container {
    max-width: 800px;
    margin: 4rem auto;
    position: relative;
    padding: 2rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    top: 0;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin: 2rem 0;
    width: 100%;
    justify-content: flex-end;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: calc(50% - 30px);
}

.timeline-date {
    position: absolute;
    background: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-weight: bold;
}

.timeline-item:nth-child(odd) .timeline-date {
    left: calc(50% + 20px);
}

.timeline-item:nth-child(even) .timeline-date {
    right: calc(50% + 20px);
}

.timeline-fact {
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent3);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 50px;
    }

    .timeline-content {
        width: calc(100% - 50px);
    }

    .timeline-date {
        left: 0 !important;
        right: auto !important;
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
    }
}

.smart-usage-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .tips-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.tip-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Light theme support */
body[data-theme="light"] .tip-item {
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.reality-quote {
    text-align: center;
    font-size: 1.5rem;
    color: var(--accent3);
    margin: 3rem 0;
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* Update the trivia option styles */
.trivia-option {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-align: right;
    color: var(--light);
}

/* Remove the data-correct attribute styles */
.trivia-option[data-correct="true"],
.trivia-option[data-correct="false"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Only show correct/wrong colors after answer */
.trivia-card.answered .trivia-option.correct {
    background: rgba(46, 213, 115, 0.2);
    border-color: #2ed573;
}

.trivia-card.answered .trivia-option.wrong {
    background: rgba(255, 71, 87, 0.2);
    border-color: #ff4757;
}

/* Add hover effect only for unanswered cards */
.trivia-card:not(.answered) .trivia-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Disable hover effect for answered cards */
.trivia-card.answered .trivia-option {
    cursor: default;
    transform: none;
}

body[data-theme="light"] .trivia-option {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

.hidden {
    display: none;
}

.trivia-navigation {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
    gap: 1rem;
}

.nav-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    color: var(--light);
    transition: all 0.3s ease;
    opacity: 0.5;
    pointer-events: none;
}

.nav-button.active {
    opacity: 1;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.2);
}

.nav-button.active:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Light theme support */
body[data-theme="light"] .nav-button {
    background: rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

body[data-theme="light"] .nav-button.active {
    background: rgba(0, 0, 0, 0.2);
}

body[data-theme="light"] .nav-button.active:hover {
    background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .nav-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

.privacy-notice {
    position: fixed;
    bottom: 5rem;
    left: 4rem;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 300px;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.privacy-notice.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.privacy-notice p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
}

.privacy-notice a {
    color: var(--secondary);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding: 0.3rem 0;
}

/* Remove previous margin-right from link */
.privacy-notice a {
    margin-right: 0;
}

/* Light theme support */
body[data-theme="light"] .privacy-notice {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Add slide-in animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Privacy button base styles */
.privacy-button {
    position: fixed;
    top: 1rem;
    left: 4rem;
    z-index: 1001;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .theme-toggle {
        top: auto;
        bottom: 8rem;
        left: 1rem;
    }
    
    .privacy-button {
        position: fixed;
        top: auto !important; /* Override the base styles */
        bottom: 5rem !important;
        left: 1rem !important;
    }

    .privacy-notice {
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        max-width: none;
        margin: 0 1rem;
        padding: 1rem;
        bottom: 6rem;
    }
}

.privacy-button:hover {
    transform: rotate(360deg);
}

.progress-text {
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    transform: translateX(0);
}

.progress-text.fade-out {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allow interaction with elements behind overlay */
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* loading spinner animation */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Add z-index to ensure it's not hidden behind other elements */
#psychological {
    position: relative;
    z-index: 1;
}