/* --- Design Tokens --- */
:root {
    --accent: #3584e4;
    --accent-hover: #1c56a3;
    --bg-body: #fafafa;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.85);
    --text-main: #2e3436;
    --text-muted: #5e5c64;
    --border: rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --radius: 16px;
    --transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="dark"] {
    --accent: #3584e4;
    --accent-hover: #78aeed;
    --bg-body: #242424;
    --bg-card: #303030;
    --bg-header: rgba(36, 36, 36, 0.85);
    --text-main: #ffffff;
    --text-muted: #9a9996;
    --border: rgba(255, 255, 255, 0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
}

/* --- Base Layout --- */
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text-main); background: var(--bg-body); margin: 0; line-height: 1.6; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

/* --- Header --- */
header { background: var(--bg-header); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { font-weight: 800; font-size: 1.5rem; color: var(--text-main); display: flex; gap: 12px; align-items: center; }
.nav-links { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; align-items: center; }
.nav-links a { font-weight: 600; padding: 8px 16px; border-radius: 99px; font-size: 0.95rem; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { background: var(--border); color: var(--text-main); }
.icon-btn { background: transparent; border: none; color: var(--text-main); font-size: 1.1rem; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.icon-btn:hover { background: var(--border); }
.mobile-menu-btn { display: none; }

/* --- Responsive Video Fix --- */
.video-wrapper {
    position: relative;
    width: 100%; /* Forces it to fit container */
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Slider With Buttons --- */
.slider-wrapper { position: relative; display: flex; align-items: center; }
.slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 5px; /* Padding for shadow */
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    scroll-behavior: smooth;
}
.slider-container::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome/Safari */

.slide {
    flex: 0 0 100%; /* Show 1 full slide on mobile */
    aspect-ratio: 16/9;
    scroll-snap-align: center;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.slide img { width: 100%; height: 100%; object-fit: contain; }
.slide-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.8); color: white; padding: 15px; text-align: center; backdrop-filter: blur(10px); font-weight: 600; }

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: var(--transition);
}
.slider-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.prev-btn { left: -24px; }
.next-btn { right: -24px; }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); gap: 10px; }
    .nav-links.active { display: flex; animation: slideDown 0.2s ease-out; }
    .nav-links a { width: 100%; text-align: center; padding: 12px; border-radius: 12px; }
    
    /* On mobile, show a bit of the next slide */
    .slide { flex: 0 0 85%; } 
    /* Hide buttons on mobile (touch is better) */
    .slider-btn { display: none; }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- UI Components --- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 99px; font-weight: 700; transition: var(--transition); border: 1px solid transparent; font-size: 1rem; }
.btn-primary { background: var(--accent); color: white; box-shadow: 0 4px 12px rgba(53, 132, 228, 0.3); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(53, 132, 228, 0.4); }
.btn-outline { border-color: var(--border); background: var(--bg-card); color: var(--text-main); }
.btn-outline:hover { border-color: var(--text-muted); background: var(--bg-body); transform: translateY(-2px); }

/* --- Footer --- */
footer { background: var(--bg-card); border-top: 1px solid var(--border); color: var(--text-muted); padding: 60px 0; font-size: 0.9rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
footer h4 { color: var(--text-main); margin-bottom: 20px; }
footer a { display: block; margin-bottom: 8px; }
footer a:hover { color: var(--accent); }

/* Extra Utilities */
.card { padding: 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.icon-box { width: 50px; height: 50px; background: rgba(53, 132, 228, 0.1); color: var(--accent); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-bottom: 80px; }
.hero { text-align: center; padding: 100px 0 60px; }
h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; }
.subtitle { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }
.badge { background: rgba(53, 132, 228, 0.1); color: var(--accent); padding: 6px 16px; border-radius: 99px; font-size: 0.85rem; font-weight: 700; display: inline-block; margin-bottom: 24px; }
