:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #f06f38;
    /* Kirill Groshev orange accent */
    --muted-text: #888888;
    --corner-radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

/* Base UI Effects */
.glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(240, 111, 56, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color) !important;
    text-decoration: none;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 0 10px;
    display: inline-block;
}

nav a:hover,
nav a.active {
    color: var(--accent-color);
}

nav a:hover::before {
    content: "[";
}

nav a:hover::after {
    content: "]";
}

/* Main Layout */
main {
    padding-top: 100px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.category-section {
    padding: 100px 40px 0;
    margin-bottom: 200px;
}

.category-heading {
    margin-bottom: 60px;
}

.category-heading a {
    font-size: 8vw;
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--text-color) !important;
    text-transform: uppercase;
    line-height: 0.9;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.category-heading a:hover {
    color: var(--accent-color) !important;
}

.category-heading a:hover::before {
    content: "[";
}

.category-heading a:hover::after {
    content: "]";
}

/* Alternating alignment */
.category-section:nth-of-type(odd) .category-heading {
    text-align: left;
}

.category-section:nth-of-type(even) .category-heading {
    text-align: right;
}

/* Projects Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns for large screens */
    gap: 60px 30px;
}

.project-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
    position: relative;
    overflow: hidden;
    border-radius: var(--corner-radius);
    cursor: pointer;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.3s ease;
}

.video-player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Scanline / CRT Effect on Hover */
.project-card:hover .video-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.5;
}

.project-card:hover .thumbnail {
    transform: scale(1.05);
    opacity: 0.3;
}

.project-card:hover .video-player {
    opacity: 1;
}

.project-info {
    margin-top: 15px;
}

.project-title {
    font-size: 1.1rem;
    /* Slightly larger than original, but much smaller than previous 1.75rem */
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin: 10px 0 5px;
    text-transform: uppercase;
}

.project-category {
    display: none;
}

/* Reels Grid */
.reels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.reel-card {
    aspect-ratio: 9/16;
    background: #111;
    position: relative;
    overflow: hidden;
    border-radius: var(--corner-radius);
    cursor: pointer;
}

.ig-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    letter-spacing: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

.reel-card:hover .ig-overlay {
    opacity: 1;
}

/* About Page Specific */
.about-page .logo {
    color: var(--text-color);
    mix-blend-mode: normal;
}

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

.huge-title {
    font-size: 15vw;
    font-weight: 900;
    letter-spacing: -5px;
    margin: 40px 0;
    line-height: 0.8;
    text-align: center;
}

.about-hero {
    margin-bottom: 80px;
}

.hero-image {
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
    object-position: center;
    border-radius: var(--corner-radius);
    filter: grayscale(1);
    transition: filter 0.5s ease;
}

.hero-image:hover {
    filter: grayscale(0);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 100px;
    margin-bottom: 120px;
}

.section-label {
    font-size: 0.7rem;
    color: var(--accent-color);
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.bio-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 300;
    text-transform: none;
    /* Removed uppercase for readability */
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.bio-text span {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    display: inline-block;
}

.bio-text span:hover {
    color: var(--accent-color);
    transform: translateX(10px);
}

.bio-text span:hover::before {
    content: "[";
}

.bio-text span:hover::after {
    content: "]";
}

.client-list {
    list-style: none;
}

.client-item {
    margin-bottom: 30px;
}

.client-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.client-desc {
    font-size: 0.8rem;
    color: var(--muted-text);
}

.contact-section {
    padding-bottom: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 60px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-details a {
    font-size: 1.5vw;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.contact-details a:hover::before {
    content: "[";
}

.contact-details a:hover::after {
    content: "]";
}

.socials {
    margin-top: 40px;
    display: flex;
    gap: 30px;
}

.socials a {
    font-size: 0.8rem;
    letter-spacing: 2px;
}

footer {
    padding: 60px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--muted-text);
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1024px) {

    .grid,
    .reels-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-details a {
        font-size: 2.5rem;
    }

    .category-heading a {
        font-size: 12vw;
    }
}

@media (max-width: 768px) {

    .grid,
    .reels-grid {
        grid-template-columns: 1fr;
    }

    header {
        padding: 20px;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
    }

    .category-heading a {
        font-size: 15vw;
    }

    .huge-title {
        font-size: 18vw;
    }

    .bio-text {
        font-size: 1.1rem;
    }

    .contact-details a {
        font-size: 1.5rem;
    }

    .about-content {
        padding-top: 80px;
    }

    .logo {
        font-size: 1rem;
    }

    nav ul {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .category-heading a {
        font-size: 18vw;
    }

    .contact-details a {
        font-size: 1.2rem;
    }

    .bio-text {
        font-size: 1rem;
    }
}