* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #050508;
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #f0f0f0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== INTRO ===== */
.intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.6s;
}

.intro.hidden {
    opacity: 0;
    pointer-events: none;
}

.intro-slide {
    position: absolute;
    opacity: 0;
    transition: opacity 1s;
    text-align: center;
    padding: 0 20px;
}

.intro-slide.active {
    opacity: 1;
}

.intro-name {
    font-family: 'Seymour One', cursive;
    font-size: 4rem;
    color: #fff;
    letter-spacing: 2px;
}

.intro-quote {
    font-size: 1.3rem;
    color: #999;
    font-style: italic;
    max-width: 600px;
    display: block;
}

/* ===== SITE ===== */
.site {
    opacity: 0;
    transition: opacity 0.8s;
}

.site.visible {
    opacity: 1;
}

/* ===== HEADER ===== */
header {
    padding: 80px 0 50px;
    text-align: center;
}

.header-name {
    font-family: 'Seymour One', cursive;
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.header-media {
    font-family: 'Tangerine', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    margin-top: -5px;
    color: #ccc;
}

.tagline {
    color: #888;
    margin-top: 12px;
    font-size: 1.1rem;
}

.about-block {
    max-width: 700px;
    margin: 30px auto 0;
    text-align: left;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 24px 28px;
}

.about-block p {
    color: #bbb;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.about-block p:last-child {
    margin-bottom: 0;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-family: 'Seymour One', cursive;
    font-weight: 400;
    letter-spacing: 1px;
}

/* ===== PORTFOLIO ===== */
.portfolio {
    padding: 40px 0 60px;
}

.portfolio .section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== CARDS ===== */
.card {
    background: rgba(18, 18, 24, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.card video {
    display: none;
}

.card-info {
    padding: 12px 16px 16px;
}

.card-info h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #eee;
}

.card-info .desc {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.tools {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tools span {
    background: rgba(255, 255, 255, 0.06);
    color: #aaa;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== VIDEO THUMBNAIL ===== */
.video-wrap {
    position: relative;
    cursor: pointer;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s, transform 0.4s;
}

.video-wrap:hover img {
    opacity: 0.75;
    transform: scale(1.03);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.video-wrap:hover .play-btn {
    opacity: 1;
}

/* ===== PLACEHOLDER ===== */
.placeholder-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 30, 0.6);
    aspect-ratio: 16/9;
}

.placeholder-text {
    font-size: 1.2rem;
    color: #444;
    font-style: italic;
}

/* ===== CONTACT ===== */
.contact {
    padding: 60px 0 80px;
    text-align: center;
}

.contact .section-title {
    margin-bottom: 16px;
    font-size: 2.2rem;
}

.contact p {
    margin-bottom: 8px;
}

.contact a {
    color: #4ea8ff;
    text-decoration: none;
    transition: color 0.2s;
}

.contact a:hover {
    color: #7dc4ff;
    text-decoration: underline;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.modal-content video {
    width: 100%;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.close-btn:hover {
    opacity: 0.7;
}

/* ===== ANIMATIONS ===== */
.anim-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s;
}

.anim-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s, transform 0.6s;
}

.anim-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-block {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .intro-name {
        font-size: 2.5rem;
    }

    .intro-quote {
        font-size: 1rem;
    }

    .header-name {
        font-size: 2rem;
    }

    .header-media {
        font-size: 2.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    body {
        background-attachment: scroll;
    }
}