/* Modern Custom Styles for Quiz Fast Website */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* CSS Variables for Easy Customization */
:root {
    --primary-color: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --secondary-color: #EC4899;
    --secondary-dark: #DB2777;
    --accent-color: #10B981;
    --accent-light: #34D399;
    --dark-bg: #0F172A;
    --dark-surface: #1E293B;
    --light-surface: #334155;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, -20px) scale(1.1); }
    66% { transform: translate(20px, -10px) scale(0.9); }
}

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: transparent;
}

.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Header Styles */
header {
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: filter 0.3s ease;
}

.navbar-brand:hover img {
    filter: drop-shadow(0 6px 8px rgba(99, 102, 241, 0.4));
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 4rem 0;
    text-align: center;
}

/* Typography */
h1, .display-3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.display-3 {
    font-size: 4.5rem;
}

.lead {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 600px;
    line-height: 1.6;
}

/* Button Styles */
.button-group {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-outline-primary {
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-outline-primary:hover {
    color: var(--text-primary);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-outline-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline-primary span {
    position: relative;
    z-index: 1;
}

/* Content Area (Policy Pages) */
.content-area {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.content-area::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.content-area h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
    position: relative;
    z-index: 1;
}

.policy-content {
    text-align: left;
    position: relative;
    z-index: 1;
}

.policy-content h2 {
    color: var(--primary-light);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

.policy-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.policy-content h3 {
    color: var(--accent-light);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 500;
}

.policy-content p, .policy-content li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.policy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    list-style: none;
}

.policy-content ul li {
    position: relative;
    padding-left: 1.5rem;
}

.policy-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.policy-content a {
    color: var(--primary-light);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-light);
    transition: all 0.3s ease;
}

.policy-content a:hover {
    color: var(--accent-light);
    border-bottom-color: var(--accent-light);
}

/* Footer */
footer {
    margin-top: auto;
    padding-top: 3rem;
    padding-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* Animations */
[data-aos] {
    transition-property: transform, opacity !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        margin: 2rem 0;
    }
    
    .display-3 {
        font-size: 3rem;
    }
    
    .lead {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .button-group .btn {
        width: 250px;
    }
    
    .content-area {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
    }
    
    .content-area h1 {
        font-size: 2.2rem;
    }
    
    .policy-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .content-area {
        padding: 1.5rem 1rem;
    }
    
    .policy-content p, .policy-content li {
        font-size: 0.95rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Hover Effects */
.main-content > * {
    transition: transform 0.3s ease;
}

.main-content:hover > *:not(:hover) {
    transform: scale(0.98);
    opacity: 0.8;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--text-primary);
}