/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Navigation styles */
nav {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border-radius: 0 0 15px 15px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    margin-right: 20px;
}

.logo img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 18px 16px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.top-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    margin-right: 10px;
}

.top-social a {
    display: inline-flex;
    align-items: center;
}

.top-social img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: transform 0.25s ease, filter 0.25s ease;
    filter: grayscale(40%);
}

.top-social img:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.top-social img[src*="Youtube"] {
    width: 33px;
    height: 33px;
}

.top-social img[src*="TikTok"] {
    width: 40px;
    height: 40px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
    position: fixed;
    top: 20px;
    left: 20px;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav {
        position: fixed;
        width: 220px;
        height: 100vh;
        top: 0;
        left: 0;
        border-radius: 0 15px 15px 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.6);
        padding: 12px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    nav.active {
        transform: translateX(0);
    }

    body {
        margin-left: 0;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-container {
        max-width: none;
        width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        height: 100%;
        padding: 0;
        position: relative;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 16px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .logo img {
        height: 42px;
        width: auto;
        margin-right: 0;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: rgba(0,0,0,0.12);
        border-radius: 10px;
        padding: 12px;
        margin: 0;
        margin-top: 14px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: 11px 10px;
        width: 100%;
        border-radius: 8px;
        margin-bottom: 6px;
        text-align: left;
        font-size: 0.98rem;
    }

    .top-social {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        background: rgba(0,0,0,0.12);
        padding: 15px 10px;
        border-radius: 12px;
        z-index: 10;
        margin-top: auto;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .top-social .social-label {
        width: 100%;
        margin-bottom: 4px;
        text-align: center;
        font-size: 0.92rem;
    }

    .top-social a {
        min-width: 34px;
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: rgba(255,255,255,0.06);
    }

    .top-social img[src*="Youtube"] {
        width: 26px;
        height: 26px;
        object-fit: contain;
        border-radius: 5px;
        background: #ff0000;
        padding: 0;
    }

    .top-social img:not([src*="Youtube"]) {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }

    .nav-menu a {
        margin-bottom: 6px;
    }

    section {
        padding-left: 18px;
        padding-right: 18px;
        position: relative;
        overflow: hidden;
    }

    .background-video {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 15px;
        opacity: 0.22;
        z-index: 0;
    }

    .section-content {
        position: relative;
        z-index: 1;
        background: rgba(12, 18, 40, 0.32); /* lighter than full black */
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
        padding: 24px;
        max-width: 1100px;
        color: #f1f3f8;
    }

    .hero-content {
        position: relative;
        z-index: 1;
        background: rgba(7, 12, 30, 0.35);
        border-radius: 18px;
        padding: 24px;
    }

    section {
        background: transparent;
    }

    .top-social a {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .top-social img {
        width: 26px;
        height: 26px;
    }

    section {
        background: transparent;
    }

    .background-video {
        opacity: 0.35;
        z-index: -1;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-grid video {
        width: 100%;
        min-height: 260px;
        max-height: 420px;
        object-fit: cover;
    }

    .youtube-short {
        width: 100%;
        aspect-ratio: 16 / 9;
        min-height: 220px;
    }


}

/* Dropdown styles */
.dropdown-content {
    display: none;
    position: absolute;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    min-width: 180px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-content li {
    display: block;
}

.dropdown-content a {
    padding: 14px 18px;
    color: #e0e0e0;
    font-weight: 400;
}

.dropdown-content a:hover {
    background-color: rgba(255,255,255,0.05);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Sections */
section {
    padding: 120px 20px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

section:nth-child(even),
section:nth-child(odd),
#home, #about, #portfolio, #contact, #faq {
    background: transparent;
    backdrop-filter: none;
}

#commissions {
    background:
        url('Images/Star Overlay.Gif') repeat,
        rgba(26, 26, 46, 0.8);
    background-size: cover, auto;
    backdrop-filter: none;
}

.section-content {
    background: rgba(0, 0, 0, 0.35);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 1200px;
    width: calc(100% - 40px);
    border: 1px solid rgba(255,255,255,0.2);
}

#contact .section-content {
    background: rgba(0, 0, 0, 0.7);
}

.section-content video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.commission-sheet-wrapper {
    margin: 20px auto;
    width: 70%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.commission-sheet-wrapper video {
    width: 100%;
    height: auto;
    object-fit: contain;
}

#commissions .section-content video {
    max-width: 100%;
    object-fit: contain;
}

section h1 {
    margin-bottom: 20px;
    font-size: 3em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

section h2 {
    font-size: 2em;
    margin: 40px 0 20px;
    font-weight: 600;
    color: #e0e0e0;
}

section ul {
    list-style: none;
    padding: 0;
}

section li {
    margin-bottom: 10px;
    text-align: center;
}

section a {
    color: #667eea;
    text-decoration: none;
}

section a:hover {
    text-decoration: underline;
}

section em {
    font-style: italic;
    color: #aaa;
}

/* Background videos */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    border-radius: 20px;
    opacity: 0.3;
}

#home .background-video,
#about .background-video,
#portfolio .background-video,
#commissions .background-video,
#faq .background-video,
#contact .background-video {
    opacity: 1;
}

/* Hero content */
.hero-content {
    z-index: 1;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    background: rgba(0,0,0,0.3);
    padding: 40px;
    border-radius: 20px;
}

/* Portfolio grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin-top: 30px;
}

.portfolio-grid video {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.portfolio-grid video:hover {
    transform: scale(1.05);
}

.youtube-short {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.youtube-short iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile override: ensure vertical mode video scaling actually takes effect */
@media (max-width: 768px) {
    section {
        position: relative;
        overflow: hidden;
    }

    .background-video {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        border-radius: 15px;
        opacity: 0.35;
        z-index: 0;
    }

    .section-content {
        position: relative;
        z-index: 1;
        background: rgba(0, 0, 0, 0.25);
        box-shadow: none;
        border: 1px solid rgba(255,255,255,0.1);
        padding: 20px;
    }

    .hero-content {
        background: rgba(0, 0, 0, 0.3);
        box-shadow: 0 8px 20px rgba(0,0,0,0.4);
        border-radius: 20px;
        padding: 30px;
    }

    section {
        background: transparent;
        backdrop-filter: none;
    }

    .section-content {
        background: rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 8px 30px rgba(0,0,0,0.3);
        padding: 25px;
        border-radius: 18px;
    }

    .background-video {
        z-index: -1;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-grid video {
        width: 100%;
        min-height: 260px;
        max-height: 420px;
        object-fit: cover;
    }

    .youtube-short {
        width: 100%;
        aspect-ratio: 16 / 9;
        min-height: 220px;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: #e0e0e0;
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.social-icons img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(50%);
}

.social-icons a:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Social Popup */
#social-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    padding: 10px 20px;
    text-align: center;
    transform: translateY(70%);
    transition: transform 0.3s ease;
    z-index: 999;
    border-top: 1px solid rgba(255,255,255,0.1);
}

#social-popup:hover {
    transform: translateY(0);
}

.arrow {
    font-size: 24px;
    color: #e0e0e0;
    cursor: pointer;
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 15px 20px;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }

    .nav-menu li {
        text-align: center;
    }

    .dropdown-content {
        position: static;
        display: none;
        background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
        border-radius: 8px;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    section {
        padding: 100px 20px 40px;
    }

    section h1 {
        font-size: 2.5em;
    }

    section h2 {
        font-size: 1.3em;
        margin: 25px 0 15px;
    }

    .section-content {
        padding: 30px 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .social-icons {
        flex-wrap: wrap;
        gap: 20px;
    }

    .social-icons img {
        width: 40px;
        height: 40px;
    }
}