/* Modern Color Palette and Variables */
:root {
    /* Core colors */
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --accent: #f43f5e;
    --accent-light: #fb7185;
    --accent-dark: #e11d48;
    
    /* Light theme */
    --background-primary: #ffffff;
    --background-secondary: #f8fafc;
    --background-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.7);
    --section-bg-light: #ffffff;
    --section-bg-dark: #f8fafc;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Effects */
    --blur-amount: 12px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;
}

.dark {
    /* Dark theme */
    --background-primary: #0f172a;
    --background-secondary: #1e293b;
    --background-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    --card-bg: rgba(30, 41, 59, 0.7);
    --section-bg-light: #1e293b;
    --section-bg-dark: #0f172a;
}

/* Modern Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth Scrolling and Base Styles */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--background-primary);
    color: var(--text-primary);
    transition: background-color var(--transition-normal), 
                color var(--transition-normal);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Modern Navigation */
nav {
    background: rgba(var(--background-primary), 0.7);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-bottom: 1px solid rgba(var(--border-color), 0.1);
    padding: 1rem 0;
}

nav .container {
    padding: 0.5rem 2rem;
   height: 50px;
}

/* Modern Hero Section */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-top: 30px;
    margin-bottom: 150px;
}

.hero-subtitle {
    font-size: 25px;
    max-width: 600px;
    margin: 1.5rem auto;
    margin-bottom:50px;
    color: var(--text-secondary);
}

/* Modern Buttons */
.hero-button {
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transform-origin: center;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.hero-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Modern Feature Cards */
.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all var(--transition-normal);
    border: 1px solid rgba(var(--border-color), 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

.feature-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Modern Icon Containers */
.theme-bg-accent {
    background: var(--background-tertiary);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
}

.theme-section-light p {
    font-size: 18px;
    color: var(--text-secondary);

}

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

/* Modern List Styles */
.feature-card ul li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 20px;
}

.feature-card ul li i {
    color: var(--accent);
    margin-right: 0.75rem;
    font-size: 24px;    
}

/* Modern Theme Switch */
.theme-switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.slider {
    background: var(--background-tertiary);
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-normal);
    
}

.slider:before {
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: var(--accent);
    transition: all var(--transition-normal);
}

/* Modern Animations */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-title {
    animation: fadeInScale 1s var(--transition-normal) forwards;
}

.hero-subtitle {
    animation: fadeInSlideUp 1s var(--transition-normal) forwards;
    animation-delay: 0.2s;
}

.hero-button {
    animation: fadeInSlideUp 1s var(--transition-normal) forwards;
    animation-delay: 0.4s;
}

.feature-card {
    animation: fadeInSlideUp 1s var(--transition-normal) forwards;
    opacity: 0;
}

/* Container System */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-card {
        padding: 1.5rem;
    }
    
    .hero-button {
        width: 100%;
        max-width: 300px;
    }
    
    nav .container {
        padding: 0.5rem 1rem;
    }
}

/* Footer Modern Style */
footer {
    background: var(--background-secondary);
    padding: 4rem 0;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
}

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

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.theme-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.theme-switch input[type="checkbox"] {
    display: none;
}

.theme-switch .slider {
    position: relative;
    width: 48px;
    height: 24px;
    background-color: var(--background-secondary);
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.theme-switch .slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background-color: var(--text-primary);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.theme-switch input[type="checkbox"]:checked + .slider {
    background-color: var(--accent);
}

.theme-switch input[type="checkbox"]:checked + .slider::before {
    transform: translateX(24px);
}
