:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-tertiary: #707070;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --border-color: #2a2a2a;
    --shadow: rgba(0, 0, 0, 0.5);
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --text-primary: #0a0a0a;
    --text-secondary: #4a4a4a;
    --text-tertiary: #8a8a8a;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --border-color: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px var(--shadow);
}

.theme-toggle i {
    font-size: 18px;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 10001;
    display: none;
}

#loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.navbar {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: none;
    padding: 0;
    min-height: 44px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.navbar .container-fluid {
    padding: 0 22px;
    max-width: 1024px;
    margin: 0 auto;
}

.navbar-brand {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-primary) !important;
    text-decoration: none;
    transition: opacity 0.2s ease;
    padding: 12px 0;
    letter-spacing: -0.01em;
}

.navbar-brand:hover {
    opacity: 0.8;
    transform: none;
}

.navbar-brand i {
    font-size: 16px;
    margin-right: 6px;
    opacity: 0.9;
}

.navbar-nav {
    align-items: center;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    padding: 12px 14px !important;
    margin: 0 !important;
    border-radius: 0;
    transition: color 0.2s ease, opacity 0.2s ease;
    position: relative;
    text-transform: none;
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background: transparent !important;
    opacity: 1;
}

.nav-link.active {
    color: var(--text-primary) !important;
    background: transparent !important;
    opacity: 1;
}

.nav-link.active::after {
    display: none;
}

.nav-link-1.active,
.nav-link-1:hover,
.nav-link-2.active,
.nav-link-2:hover,
.nav-link-3.active,
.nav-link-3:hover,
.nav-link-4.active,
.nav-link-4:hover {
    color: var(--text-primary) !important;
    background: transparent !important;
    border-bottom: none !important;
}

.navbar .nav-item {
    margin-right: 0 !important;
}

.navbar .nav-link {
    border-bottom: none !important;
    font-size: 12px !important;
}

.navbar-toggler {
    border: none;
    padding: 8px;
    margin: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler i {
    font-size: 17px;
    color: var(--text-primary);
    opacity: 0.8;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        margin-top: 0;
        padding: 8px 0;
    }
    
    [data-theme="light"] .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
    }
    
    .nav-link {
        padding: 10px 22px !important;
        font-size: 13px;
    }
}

.tm-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

.tm-hero:not(.video-hero) {
    min-height: 200px;
    max-height: 300px;
}

.tm-hero.video-hero {
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    position: relative;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}

@media (max-width: 768px) {
    .hero-video {
        width: 100vw;
        height: 100vh;
        min-width: 100vw;
        min-height: 56.25vw;
    }
}

.hero-video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
    pointer-events: none;
}

.tm-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 3;
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 0.8s ease;
    padding: 0;
    width: 100%;
    max-width: 600px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.hero-content h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.hero-content .lead {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero-content {
        bottom: 10%;
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content .lead {
        font-size: 0.875rem;
    }
}

.btn-primary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.625rem 1.5rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

.container-fluid {
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
    opacity: 0;
}

.video-card:nth-child(1) { animation-delay: 0.1s; }
.video-card:nth-child(2) { animation-delay: 0.2s; }
.video-card:nth-child(3) { animation-delay: 0.3s; }
.video-card:nth-child(4) { animation-delay: 0.4s; }
.video-card:nth-child(5) { animation-delay: 0.5s; }
.video-card:nth-child(6) { animation-delay: 0.6s; }

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow);
    border-color: var(--accent-primary);
}

.instagram-embed-wrapper {
    position: relative;
    padding-bottom: 125%;
    height: 0;
    overflow: hidden;
    background: var(--bg-tertiary);
    border-radius: 16px;
}

.instagram-embed-wrapper iframe,
.instagram-embed-wrapper blockquote {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: var(--bg-tertiary);
}

.youtube-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer p,
.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .container-fluid {
        padding: 2rem 1rem;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
        top: 15px;
        right: 15px;
    }
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}


