/* ===== BASE STYLES ===== */
:root {
    --primary: #0f0f0f;
    --secondary: #1a1a1a;
    --accent: #ff5e5e;
    --text: #f0f0f0;
    --light-gray: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--primary);
    color: var(--text);
    overflow-x: hidden;
}

/* ===== TEAM NEUTRAL INTRO ===== */
.team-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    animation: fadeOut 1s ease-in-out 2.5s forwards;
}

.team-intro h1 {
    font-size: 5rem;
    background: linear-gradient(90deg, #ff5e5e, #ff9a5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.team-intro p {
    font-size: 1.5rem;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ===== SMOOTH SCROLL & CURSOR ===== */
html {
    scroll-behavior: smooth;
}

.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

/* ===== NAVBAR ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 3s forwards;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-out 3s forwards;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff5e5e, #ff9a5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(233, 233, 233, 0.3);
}

/* Hero Thumbnail Gallery */
.hero-thumbnails {
    position: absolute;
    right: 10%;
    width: 400px;
    height: 500px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-out 3.2s forwards;
}

.thumbnail {
    background: var(--light-gray);
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    transition: transform 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.thumbnail:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

.thumbnail:hover {
    transform: translateY(-5px);
}

.thumbnail-large {
    grid-column: span 2;
    height: 200px;
}

.thumbnail-small {
    height: 140px;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1s ease-out 3.5s forwards;
}

.scroll-down span {
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.scroll-down .arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(-10px);
    }
    60% {
        transform: rotate(45deg) translateY(-5px);
    }
}

/* ===== WORK SHOWCASE ===== */
.work-showcase {
    padding: 100px 10%;
    background: var(--secondary);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -10px;
    left: 25%;
    background: var(--accent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--primary);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-card.active {
    opacity: 1;
    transform: translateY(0);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
}

/* FIX: Remove underline from Anka title link */
.project-card .project-info a {
    text-decoration: none;
    color: inherit;
}

.project-card .project-info a:hover {
    text-decoration: none;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-info p {
    opacity: 0.8;
    margin-bottom: 15px;
}

.project-tag {
    display: inline-block;
    padding: 5px 10px;
    background: var(--light-gray);
    border-radius: 50px;
    font-size: 0.8rem;
    margin-right: 5px;
}

/* Anka Special Card */
.project-card.anka {
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px rgba(255, 94, 94, 0.3);
}

.project-card.anka .project-info h3 {
    color: var(--accent);
}

/* ===== SERVICES ===== */
.services {
    padding: 100px 10%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--secondary);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card.active {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ===== FOOTER ===== */
footer {
    background: var(--secondary);
    padding: 50px 10%;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent);
    transition: width 0.3s;
}

.footer-links a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-links a {
    color: var(--text);
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-thumbnails {
        right: 5%;
        width: 350px;
        height: 450px;
    }
}

@media (max-width: 768px) {
    .team-intro h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-thumbnails {
        position: relative;
        right: auto;
        width: 100%;
        height: auto;
        margin-top: 30px;
    }

    .thumbnail-large {
        height: 150px;
    }

    .thumbnail-small {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .team-intro h1 {
        font-size: 2rem;
    }

    .team-intro p {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}