/* ===========================
CSS VARIABLES & RESET
=========================== */
:root {
/* Colors */
--primary-color: #6366f1;
--primary-hover: #4f46e5;
--secondary-color: #64748b;
--secondary-hover: #475569;
--accent-color: #f59e0b;
--success-color: #10b981;
--danger-color: #ef4444;
--text-primary: #1e293b;
--text-secondary: #64748b;
--text-light: #94a3b8;
--bg-primary: #ffffff;
--bg-secondary: #f8fafc;
--bg-dark: #1e293b;
--border-color: #e2e8f0;
--overlay-color: rgba(0, 0, 0, 0.5);
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

/* Spacing */
--spacing-xs: 0.5rem;
--spacing-sm: 1rem;
--spacing-md: 1.5rem;
--spacing-lg: 2rem;
--spacing-xl: 3rem;
--spacing-xxl: 4rem;

/* Border Radius */
--radius-sm: 0.25rem;
--radius-md: 0.5rem;
--radius-lg: 1rem;
--radius-full: 9999px;

/* Transitions */
--transition-fast: 150ms ease-in-out;
--transition-normal: 300ms ease-in-out;
--transition-slow: 500ms ease-in-out;

/* Sidebar */
--sidebar-width: 350px;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
color: var(--text-primary);
background-color: var(--bg-primary);
line-height: 1.6;
overflow-x: hidden;
}

/* ===========================
UTILITY CLASSES
=========================== */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-light { color: var(--text-light); }
.text-center { text-align: center; }

.bg-light { background-color: var(--bg-secondary); }
.bg-dark { background-color: var(--bg-dark); color: white; }

.container {
max-width: 1280px;
margin: 0 auto;
padding: 0 var(--spacing-lg);
}

.section {
padding: calc(var(--spacing-xxl) * 1.5) 0;
position: relative;
}

/* Add subtle section separator */
.section:not(:last-of-type)::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 2px;
background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section-title {
font-size: 2.75rem;
font-weight: 700;
margin-bottom: var(--spacing-md);
color: var(--text-primary);
position: relative;
display: inline-block;
}

.section-title::after {
content: '';
position: absolute;
bottom: -8px;
left: 0;
width: 60px;
height: 4px;
background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
border-radius: var(--radius-full);
}

.section-title.text-center::after {
left: 50%;
transform: translateX(-50%);
}

.section-subtitle {
font-size: 1.2rem;
color: var(--text-secondary);
margin-bottom: var(--spacing-xl);
line-height: 1.6;
max-width: 700px;
}

.section-subtitle.text-center {
margin-left: auto;
margin-right: auto;
}

/* ===========================
BUTTONS
=========================== */
.btn-primary,
.btn-secondary,
.btn-outline {
padding: 0.75rem 1.5rem;
border: none;
border-radius: var(--radius-md);
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all var(--transition-normal);
display: inline-block;
text-decoration: none;
}

.btn-primary {
background-color: var(--primary-color);
color: white;
}

.btn-primary:hover {
background-color: var(--primary-hover);
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}

.btn-secondary {
background-color: transparent;
color: var(--text-primary);
border: 2px solid var(--border-color);
}

.btn-secondary:hover {
background-color: var(--bg-secondary);
border-color: var(--secondary-color);
}

.btn-outline {
background-color: transparent;
color: var(--primary-color);
border: 2px solid var(--primary-color);
}

.btn-outline:hover {
background-color: var(--primary-color);
color: white;
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}

/* YouTube Style Button */
.btn-youtube {
background-color: #FF0000;
color: white;
padding: 0.75rem 1.5rem;
border: none;
border-radius: var(--radius-md);
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all var(--transition-normal);
display: inline-flex;
align-items: center;
gap: 0.5rem;
text-decoration: none;
box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.btn-youtube:hover {
background-color: #CC0000;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(255, 0, 0, 0.5);
}

.btn-youtube:active {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(255, 0, 0, 0.4);
}

.play-icon {
font-size: 0.875rem;
display: inline-block;
transition: transform var(--transition-fast);
}

.btn-youtube:hover .play-icon {
transform: scale(1.2);
}

.btn-large {
padding: 1rem 2rem;
font-size: 1.125rem;
}

.btn-youtube.btn-large {
padding: 1rem 2rem;
font-size: 1.125rem;
gap: 0.625rem;
}

.btn-youtube.btn-large .play-icon {
font-size: 1rem;
}

/* ===========================
OVERLAY
=========================== */
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: var(--overlay-color);
z-index: 998;
opacity: 0;
visibility: hidden;
transition: all var(--transition-normal);
}

.overlay.active {
opacity: 1;
visibility: visible;
}

/* ===========================
SIDEBAR
=========================== */
.sidebar {
position: fixed;
top: 0;
left: -100%;
width: var(--sidebar-width);
height: 100vh;
background-color: var(--bg-primary);
box-shadow: var(--shadow-xl);
z-index: 999;
transition: left var(--transition-normal);
overflow-y: auto;
}

.sidebar.active {
left: 0;
}

.sidebar-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--spacing-lg);
border-bottom: 2px solid var(--border-color);
}

.sidebar-header h2 {
font-size: 1.5rem;
font-weight: 700;
}

.close-btn {
background: none;
border: none;
font-size: 2rem;
color: var(--text-secondary);
cursor: pointer;
transition: color var(--transition-fast);
padding: 0;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
}

.close-btn:hover {
color: var(--primary-color);
}

/* Sidebar Navigation */
.sidebar-nav {
padding: var(--spacing-md);
}

.nav-item {
margin-bottom: var(--spacing-xs);
}

/* Nav Item Wrapper - for items with dropdowns */
.nav-item-wrapper {
display: flex;
align-items: center;
background-color: var(--bg-primary);
border-radius: var(--radius-md);
transition: all var(--transition-fast);
position: relative;
}

.nav-item-wrapper:hover {
background-color: var(--bg-secondary);
}

/* Main nav link (clickable) */
.nav-item-wrapper .nav-link {
flex: 1;
display: block;
padding: var(--spacing-sm) var(--spacing-md);
font-size: 1rem;
font-weight: 500;
color: var(--text-primary);
text-decoration: none;
cursor: pointer;
transition: all var(--transition-fast);
border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.nav-item-wrapper .nav-link:hover {
color: var(--primary-color);
}

/* Dropdown arrow button (separate from link) */
.dropdown-arrow {
display: flex;
align-items: center;
justify-content: center;
background: none;
border: none;
border-left: 1px solid var(--border-color);
padding: var(--spacing-sm);
min-width: 45px;
cursor: pointer;
transition: all var(--transition-fast);
border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.dropdown-arrow:hover {
background-color: var(--primary-color);
color: white;
}

.dropdown-arrow:hover .arrow {
color: white;
}

.dropdown-arrow.active {
background-color: var(--primary-color);
color: white;
}

.arrow {
transition: transform var(--transition-normal);
font-size: 0.75rem;
color: var(--text-secondary);
}

.dropdown-arrow.active .arrow {
transform: rotate(180deg);
color: white;
}

/* Regular nav link (without dropdown) */
.nav-item > .nav-link {
display: block;
width: 100%;
padding: var(--spacing-sm) var(--spacing-md);
background: none;
border: none;
border-radius: var(--radius-md);
font-size: 1rem;
font-weight: 500;
color: var(--text-primary);
text-decoration: none;
cursor: pointer;
transition: all var(--transition-fast);
text-align: left;
}

.nav-item > .nav-link:hover {
background-color: var(--bg-secondary);
color: var(--primary-color);
transform: translateX(5px);
}

/* Dropdown Menu */
.dropdown-menu {
list-style: none;
max-height: 0;
overflow: hidden;
transition: max-height var(--transition-normal);
padding-left: var(--spacing-md);
}

.dropdown-menu.active {
max-height: 500px;
}

.dropdown-menu li {
margin: var(--spacing-xs) 0;
}

.dropdown-menu a {
display: block;
padding: var(--spacing-xs) var(--spacing-md);
color: var(--text-secondary);
text-decoration: none;
border-radius: var(--radius-sm);
transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
background-color: var(--bg-secondary);
color: var(--primary-color);
padding-left: var(--spacing-lg);
}

/* ===========================
HEADER
=========================== */
.header {
position: sticky;
top: 0;
background-color: rgba(255, 255, 255, 0.98);
backdrop-filter: blur(10px);
box-shadow: var(--shadow-sm);
z-index: 100;
border-bottom: 1px solid var(--border-color);
transition: all var(--transition-normal);
}

.header-content {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--spacing-md) var(--spacing-lg);
max-width: 1400px;
margin: 0 auto;
}

.menu-btn {
display: flex;
align-items: center;
gap: var(--spacing-xs);
background: var(--bg-secondary);
border: 2px solid var(--border-color);
padding: 0.75rem 1.25rem;
border-radius: var(--radius-md);
font-weight: 600;
color: var(--text-primary);
cursor: pointer;
transition: all var(--transition-fast);
}

.menu-btn:hover {
background-color: var(--primary-color);
color: white;
border-color: var(--primary-color);
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}

.hamburger-icon {
font-size: 1.25rem;
}

.menu-text {
font-size: 0.875rem;
letter-spacing: 0.08em;
font-weight: 700;
}

.logo h2 {
font-size: 1.875rem;
font-weight: 800;
background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.header-actions {
display: flex;
gap: var(--spacing-sm);
}

.header-actions .btn-secondary {
padding: 0.625rem 1.25rem;
}

.header-actions .btn-primary {
padding: 0.625rem 1.5rem;
}

/* ===========================
HERO SECTION
=========================== */
.hero-section {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: calc(var(--spacing-xxl) * 1.5) 0;
min-height: 600px;
display: flex;
align-items: center;
position: relative;
overflow: hidden;
}

/* Add decorative elements to hero */
.hero-section::before {
content: '';
position: absolute;
top: -50%;
right: -10%;
width: 600px;
height: 600px;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
z-index: 0;
}

.hero-section::after {
content: '';
position: absolute;
bottom: -30%;
left: -5%;
width: 400px;
height: 400px;
background: rgba(255, 255, 255, 0.08);
border-radius: 50%;
z-index: 0;
}

.hero-content {
text-align: center;
max-width: 900px;
margin: 0 auto;
position: relative;
z-index: 1;
}

.hero-title {
font-size: 3.5rem;
font-weight: 800;
margin-bottom: var(--spacing-lg);
line-height: 1.2;
text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-description {
font-size: 1.35rem;
margin-bottom: var(--spacing-xl);
opacity: 0.95;
line-height: 1.7;
max-width: 700px;
margin-left: auto;
margin-right: auto;
}

.hero-actions {
display: flex;
gap: var(--spacing-md);
justify-content: center;
flex-wrap: wrap;
}

/* ===========================
FEATURES GRID
=========================== */
.feature-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: var(--spacing-xl);
margin-top: calc(var(--spacing-xl) * 1.5);
}

.feature-card {
background-color: var(--bg-primary);
padding: calc(var(--spacing-xl) * 1.2);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
transition: all var(--transition-normal);
border: 2px solid transparent;
position: relative;
overflow: hidden;
}

.feature-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
transform: scaleX(0);
transition: transform var(--transition-normal);
}

.feature-card:hover::before {
transform: scaleX(1);
}

.feature-card:hover {
transform: translateY(-10px);
box-shadow: var(--shadow-xl);
border-color: var(--border-color);
}

.feature-icon {
font-size: 3.5rem;
margin-bottom: var(--spacing-md);
display: inline-block;
transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon {
transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: var(--spacing-sm);
color: var(--text-primary);
}

.feature-card p {
color: var(--text-secondary);
line-height: 1.7;
font-size: 1rem;
}

/* ===========================
CONTENT AREA
=========================== */
.content-area {
background-color: var(--bg-primary);
padding: calc(var(--spacing-xl) * 1.5);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
border: 1px solid var(--border-color);
}

.content-area h1 {
font-size: 2rem;
font-weight: 700;
color: var(--text-primary);
margin-bottom: var(--spacing-md);
/*padding-bottom: var(--spacing-md);
border-bottom: 3px solid var(--primary-color);
position: relative;*/
}

.content-area h2 {
font-size: 1.5rem;
font-weight: 600;
color: var(--text-primary);
margin-top: calc(var(--spacing-md) * 1.2);
margin-bottom: var(--spacing-md);
/*padding-left: var(--spacing-sm);
border-left: 4px solid var(--primary-color);*/
}

.content-area h3 {
font-size: 1.5rem;
font-weight: 600;
color: var(--text-primary);
margin-top: calc(var(--spacing-md) * 1.2);
margin-bottom: var(--spacing-md);
}

.content-area p {
font-size: 1rem;
color: var(--text-secondary);
margin-bottom: var(--spacing-md);
line-height: 1.8;
}

/* ===========================
LISTS - Universal Styling
=========================== */

/* Default list styling for content areas */
.content-area ul,
.content-area ol {
padding-left: 1.5rem;
line-height: 1.8;
}

.content-area ul li,
.content-area ol li {
margin-bottom: var(--spacing-md);
color: var(--text-secondary);
}

.content-area a{
color: var(--primary-color);
text-decoration: none;
}

.content-area a:hover {
color: #b59410;
}

/* ===========================
TABLES
=========================== */
.table-container {
overflow-x: auto;
margin: var(--spacing-lg) 0;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
}

.styled-table {
width: 100%;
border-collapse: collapse;
background-color: var(--bg-primary);
border-radius: var(--radius-lg);
overflow: hidden;
}

.styled-table thead {
background-color: var(--primary-color);
color: white;
}

.styled-table th {
padding: var(--spacing-md);
text-align: left;
font-weight: 600;
font-size: 1rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}

.styled-table td {
padding: var(--spacing-md);
border-bottom: 1px solid var(--border-color);
color: var(--text-primary);
}

.styled-table tbody tr {
transition: all var(--transition-fast);
}

.styled-table tbody tr:hover {
background-color: var(--bg-secondary);
transform: scale(1.01);
box-shadow: var(--shadow-sm);
}

.styled-table tbody tr:last-child td {
border-bottom: none;
}

/* Badges */
.badge {
padding: 0.375rem 0.75rem;
border-radius: var(--radius-full);
font-size: 0.875rem;
font-weight: 600;
display: inline-block;
text-align: center;
}

.badge-primary {
background-color: #dbeafe;
color: #1e40af;
}

.badge-success {
background-color: #d1fae5;
color: #065f46;
}

.badge-secondary {
background-color: var(--bg-secondary);
color: var(--text-secondary);
}

/* ===========================
IMAGES
=========================== */
.image-container {
margin: var(--spacing-lg) 0;
}

.image-container img {
width: 100%;
height: auto;
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
transition: all var(--transition-normal);
}

.image-container img:hover {
transform: scale(1.02);
box-shadow: var(--shadow-xl);
}

.image-placeholder {
width: 100%;
min-height: 300px;
background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--border-color) 100%);
border-radius: var(--radius-lg);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 2px dashed var(--border-color);
transition: all var(--transition-normal);
}

.image-placeholder:hover {
border-color: var(--primary-color);
background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.image-placeholder p {
font-size: 1.5rem;
margin-bottom: var(--spacing-xs);
}

/* ===========================
STATS SECTION
=========================== */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: var(--spacing-xl);
}

.stat-card {
text-align: center;
padding: calc(var(--spacing-xl) * 1.3);
background-color: var(--bg-primary);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-md);
transition: all var(--transition-normal);
border: 2px solid var(--border-color);
position: relative;
overflow: hidden;
}

.stat-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
opacity: 0;
transition: opacity var(--transition-normal);
z-index: 0;
}

.stat-card:hover::before {
opacity: 1;
}

.stat-card:hover {
transform: translateY(-8px);
box-shadow: var(--shadow-xl);
border-color: var(--primary-color);
}

.stat-card:hover .stat-number,
.stat-card:hover .stat-label {
color: white;
position: relative;
z-index: 1;
}

.stat-number {
font-size: 3.5rem;
font-weight: 800;
color: var(--primary-color);
margin-bottom: var(--spacing-xs);
transition: color var(--transition-normal);
}

.stat-label {
font-size: 1.125rem;
color: var(--text-secondary);
font-weight: 500;
transition: color var(--transition-normal);
}

/* ===========================
FOOTER
=========================== */
.footer {
background: linear-gradient(180deg, var(--bg-dark) 0%, #0f172a 100%);
color: white;
padding: var(--spacing-xl) 0;
margin-top: var(--spacing-xxl);
}

.footer-content{
text-align: center;
color: rgba(255, 255, 255, 0.7);
}

.footer-content p{
font-size: 0.95rem;
}

/* ===========================
RESPONSIVE DESIGN
=========================== */
@media (max-width: 992px) {
.container {
padding: 0 var(--spacing-md);
}

.feature-grid {
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: var(--spacing-lg);
}
}

@media (max-width: 768px) {
/* Typography */
.hero-title {
font-size: 2.25rem;
}

.section-title {
font-size: 2.25rem;
}

.content-area h1 {
font-size: 1.5rem;
}

.content-area h2 {
font-size: 1.2rem;
}

.content-area h3 {
font-size: 1.2rem;
}

/* Header */
.header-content {
padding: var(--spacing-md);
}

.header-actions {
display: none;
}

.logo h2 {
font-size: 1.5rem;
}

.menu-btn {
padding: 0.625rem 1rem;
}

/* Hero */
.hero-section {
min-height: 450px;
padding: var(--spacing-xxl) 0;
}

.hero-section::before,
.hero-section::after {
display: none;
}

.hero-description {
font-size: 1.125rem;
}

.hero-actions {
flex-direction: column;
align-items: stretch;
}

.hero-actions .btn-large {
width: 100%;
justify-content: center;
}

.btn-youtube.btn-large {
justify-content: center;
}

/* Sections */
.section {
padding: var(--spacing-xxl) 0;
}

/* Grids */
.feature-grid,
.stats-grid {
grid-template-columns: 1fr;
gap: var(--spacing-lg);
}

.feature-card {
padding: var(--spacing-lg);
}

/* Content */
.content-area {
padding: var(--spacing-lg);
}

/* Table */
.styled-table {
font-size: 0.875rem;
}

.styled-table th,
.styled-table td {
padding: var(--spacing-sm);
}

/* Sidebar width adjustment for mobile */
.sidebar {
width: 85%;
max-width: 350px;
}
}

@media (max-width: 480px) {
.hero-title {
font-size: 1.875rem;
}

.section-title {
font-size: 1.875rem;
}

.btn-large {
padding: 0.875rem 1.5rem;
font-size: 1rem;
}

.content-area {
padding: var(--spacing-md);
}

.stat-number {
font-size: 2.5rem;
}

/* Footer for small mobile */
.footer-content p {
font-size: 0.875rem;
}
}

/* ===========================
CUSTOM SCROLLBAR
=========================== */
::-webkit-scrollbar {
width: 12px;
height: 12px;
}

::-webkit-scrollbar-track {
background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
background: var(--primary-color);
border-radius: var(--radius-full);
border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
background: var(--primary-hover);
}

/* Firefox scrollbar */
* {
scrollbar-width: thin;
scrollbar-color: var(--primary-color) var(--bg-secondary);
}

/* ===========================
ANIMATIONS
=========================== */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes slideInFromLeft {
from {
opacity: 0;
transform: translateX(-30px);
}
to {
opacity: 1;
transform: translateX(0);
}
}

.content-area,
.feature-card,
.stat-card {
animation: fadeIn 0.6s ease-out;
}

/* Stagger animation for feature cards */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Sidebar animation */
.sidebar.active {
animation: slideInFromLeft 0.3s ease-out;
}

