/* CSS Variables */
:root {
    --color-bg: #0a0a0a;
    --color-surface: #1a1a1a;
    --color-text: #e8e8e8;
    --color-text-secondary: #999;
    --color-accent: #ff4655;
    --color-accent-hover: #ff6b77;
    --color-border: #2a2a2a;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Crimson Pro', serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.logo:hover {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 16px;
    color: var(--color-text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 40px 80px;
    overflow: hidden;
    background-image: url('../images/maikng-for-web.jpg');  /* Add your background image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay for better text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.8);  /* Dark overlay with 70% opacity */
    z-index: 1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title-wrapper {
    overflow: hidden;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(80px, 12vw, 180px);
    line-height: 0.9;
    letter-spacing: 4px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.hero-title-line {
    display: inline-block;
    animation: slideUp 1s ease-out backwards;
}

.hero-title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-title-line:nth-child(2) {
    animation-delay: 0.4s;
    color: var(--color-accent);
}

.hero-title-line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: 28px;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out 0.8s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 70, 85, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.3;
    }
}

/* Featured Work Section */
.featured-work {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 60px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.section-line {
    width: 100px;
    height: 3px;
    background: var(--color-accent);
    margin: 0 auto;
}

/* Video Grid - Masonry Layout */
.video-grid {
    column-count: 3;
    column-gap: 30px;
    margin-bottom: 80px;
}

.video-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    break-inside: avoid;
    margin-bottom: 30px;
    display: inline-block;
    width: 100%;
}

.video-card[data-aos="fade-up"] {
    animation-delay: 0.1s;
}

.video-card[data-aos="fade-up"][data-aos-delay="100"] {
    animation-delay: 0.3s;
}

.video-card[data-aos="fade-up"][data-aos-delay="200"] {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: var(--color-surface);
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 20px;
    cursor: pointer;
}

/* Dynamic aspect ratio based on video orientation */
.video-wrapper.vertical {
    padding-bottom: 177.78%; /* 9:16 ratio for vertical videos (1080x1920) */
}

.video-wrapper.horizontal {
    padding-bottom: 56.25%; /* 16:9 ratio for horizontal videos */
}

.video-wrapper.square {
    padding-bottom: 100%; /* 1:1 ratio for square videos */
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none !important;  /* Completely disabled - never shows */
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    z-index: 10;
    pointer-events: none;  /* Never blocks clicks */
}

.play-icon {
    width: 80px;
    height: 80px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    transition: var(--transition);
    transform: scale(0.9);
}

.video-wrapper:hover .play-icon {
    transform: scale(1);
    background: var(--color-accent-hover);
}

.video-info {
    padding: 0 10px;
}

.video-title {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--color-text);
}

.video-description {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-divider {
    color: var(--color-accent);
}

/* Show More Button */
.show-more-wrapper {
    text-align: center;
    margin-top: 60px;
}

.btn-show-more {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-show-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transition: var(--transition);
    z-index: -1;
}

.btn-show-more:hover::before {
    left: 0;
}

.btn-show-more:hover {
    color: white;
}

.arrow {
    transition: var(--transition);
}

.btn-show-more:hover .arrow {
    transform: translateX(10px);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
}

.about-content .section-line {
    margin: 0 0 30px 0;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.skill-item {
    padding: 15px 20px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    font-size: 16px;
    text-align: center;
    transition: var(--transition);
}

.skill-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--color-surface);
    border-radius: 4px;
    overflow: hidden;
}

.image-placeholder svg {
    width: 100%;
    height: 100%;
}

/* Contact Section */
.contact-section {
    padding: 120px 0;
    text-align: center;
}

.contact-content .section-line {
    margin: 0 auto 30px;
}

.contact-text {
    font-size: 20px;
    color: var(--color-text-secondary);
    margin-bottom: 50px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.contact-link {
    font-size: 32px;
    font-family: sans-serif;
    letter-spacing: 1px;
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.social-link {
    font-size: 16px;
    color: var(--color-text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--color-text);
}

.social-link:hover::after {
    width: 100%;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* Videos Page Specific Styles */
.page-header {
    padding: 140px 0 80px;
    text-align: center;
}

.page-title {
    font-family: var(--font-display);
    font-size: 80px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 20px;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.all-videos-section {
    padding: 60px 0 100px;
}

/* Filter Tags */
.filter-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
}

.filter-tag {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-family: var(--font-body);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 80px;
}

.page-btn {
    padding: 12px 20px;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 50px;
}

.page-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.page-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-btn:disabled:hover {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-grid {
        column-count: 2;
        column-gap: 25px;
    }

    .video-card {
        margin-bottom: 25px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-title {
        font-size: clamp(60px, 10vw, 120px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-container {
        padding: 15px 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .video-grid {
        column-count: 1;
        column-gap: 0;
    }

    .video-card {
        margin-bottom: 30px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: clamp(50px, 12vw, 80px);
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 40px;
    }

    .page-title {
        font-size: 50px;
    }

    .skills-list {
        grid-template-columns: 1fr;
    }

    .contact-link {
        font-size: 24px;
    }

    .btn-show-more {
        padding: 15px 35px;
        font-size: 20px;
    }

    .filter-tags {
        gap: 10px;
    }

    .filter-tag {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 150px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-link {
        font-size: 14px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .social-links {
        flex-direction: column;
        gap: 20px;
    }
}