/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #0a0a0a;
    color: #e8e8e8;
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
}

::selection { background: rgba(255, 107, 53, 0.3); color: #fff; }

/* === Typography === */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
a { color: inherit; text-decoration: none; }

.accent { color: #ff6b35; }

/* === Custom Cursor === */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #ff6b35;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, background 0.2s;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

/* === Navigation === */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ff6b35, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links { display: flex; gap: 2.5rem; }

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ff6b35;
    transition: width 0.3s;
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; }

/* === Hero === */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,107,53,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(255,215,0,0.05) 0%, transparent 50%),
                #0a0a0a;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #ff6b35;
    margin-bottom: 1.5rem;
    animation: fadeUp 1s ease forwards;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-title .accent { font-weight: 700; }

.hero-sub {
    font-size: 1.1rem;
    color: #888;
    max-width: 500px;
    margin: 0 auto 2.5rem;
    animation: fadeUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 1s ease 0.6s forwards;
    opacity: 0;
}

.btn-primary, .btn-outline {
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: none;
}

.btn-primary {
    background: #ff6b35;
    color: #fff;
    border: 2px solid #ff6b35;
}

.btn-primary:hover {
    background: transparent;
    color: #ff6b35;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #555, transparent);
    animation: scrollPulse 2s ease infinite;
}

/* === Section Headers === */
section { padding: 6rem 2rem; max-width: 1300px; margin: 0 auto; }

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-number {
    font-size: 0.8rem;
    color: #ff6b35;
    font-weight: 700;
    letter-spacing: 3px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -1px;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(255,255,255,0.1), transparent);
}

/* === Filters === */
.filters {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: #888;
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    cursor: none;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    border-color: #ff6b35;
    color: #ff6b35;
    background: rgba(255,107,53,0.1);
}

/* === Portfolio Grid === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    transform: scale(1);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.95);
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
    position: absolute;
    pointer-events: none;
}

.portfolio-item.wide {
    grid-column: 1 / -1;
}

.portfolio-media {
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
    background: #0a0a0a;
}

.portfolio-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-media img {
    transform: scale(1.05);
}

.video-wrapper {
    aspect-ratio: 16/9;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info .tag {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.portfolio-info p {
    font-size: 0.85rem;
    color: #777;
}

.portfolio-info .credit {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    margin-top: 0.3rem;
}

/* === Comics Mini Grid === */
.comics-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.comics-grid-mini img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s;
}

.comics-grid-mini img:hover {
    transform: scale(1.03);
}

/* === About === */
.about-content {
    max-width: 750px;
}

.about-text p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text strong { color: #e8e8e8; }

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.skills-list span {
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255,107,53,0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #ff6b35;
}

/* === Contact === */
.contact-content { max-width: 600px; }

.contact-intro {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    transition: all 0.3s;
    min-width: 200px;
}

.contact-card:hover {
    border-color: #ff6b35;
    background: rgba(255,107,53,0.05);
    transform: translateY(-2px);
}

.contact-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
}

.contact-handle {
    font-size: 1.1rem;
    color: #e8e8e8;
}

/* === Footer === */
footer {
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #555;
}

.footer-tag {
    color: #333;
    font-size: 0.75rem;
}

/* === Scroll to Top === */
#scrollTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(10,10,10,0.8);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 1.2rem;
    cursor: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
}

#scrollTop.visible {
    opacity: 1;
    transform: translateY(0);
}

#scrollTop:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

/* === Animations === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; flex-direction: column; gap: 5px; }
    .menu-toggle span {
        width: 24px; height: 2px;
        background: #fff;
        transition: 0.3s;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .comics-grid-mini {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
    .section-header h2 { font-size: 1.8rem; }
    #navbar { padding: 1rem 0; }
    .nav-inner { padding: 0 1.2rem; }
    section { padding: 4rem 1.2rem; }
    .cursor-follower { display: none; }
    body { cursor: auto; }
    .btn-primary, .btn-outline, .filter-btn, #scrollTop { cursor: pointer; }
}

@media (max-width: 480px) {
    .comics-grid-mini { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .comics-grid-mini { padding: 1rem; }
    .contact-card { min-width: unset; width: 100%; }
}
