/* --- General Setup & Variables --- */
:root {
    --color-bg: #37342e;
    --color-bg-light: #423e37;
    --color-bg-darker: #2a2622;
    --color-text: #e0dacc; /* Parchment-like off-white */
    --color-primary: #d3aa2a; /* Main golden color */
    --color-primary-light: #e6bd3d;
    --color-accent: #79651c; /* Darker gold/brown accent */
    --color-accent-light: #8a7420;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
    --shadow-glow: 0 0 20px rgba(211, 170, 42, 0.3);
    --shadow-accent-glow: 0 0 20px rgba(121, 101, 28, 0.3);
    /* Reduced glow effects */
    --shadow-glow-subtle: 0 0 10px rgba(211, 170, 42, 0.15);
    --shadow-accent-glow-subtle: 0 0 10px rgba(121, 101, 28, 0.15);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Ensure smooth scrolling throughout */
* {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--color-bg-darker) 0%, var(--color-bg) 50%, var(--color-bg-darker) 100%);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Particle Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* --- Utility Classes --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-bottom: 25px;
    padding-top: 25px;
    position: relative;
}

section {
    padding: 5rem 0;
    border-bottom: 1px solid rgba(211, 170, 42, 0.2);
    margin-bottom: 0;
    position: relative;
    backdrop-filter: blur(10px);
    overflow-x: hidden;
    min-height: fit-content;
}

section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(211, 170, 42, 0.05) 50%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

section.active:before {
    opacity: 1;
}

section:last-of-type {
    border-bottom: none;
}

h2, h3 {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-weight: 700;
    position: relative;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-primary);
    text-shadow: var(--shadow-glow);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

h2.animate-in {
    opacity: 1;
    transform: translateY(0);
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

h2.animate-in:after {
    width: 100px;
}

p {
    margin-bottom: 1rem;
    max-width: 750px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

p.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Text emphasis styling */
p strong {
    color: var(--color-primary);
    font-weight: 700;
    text-shadow: 0 0 5px rgba(211, 170, 42, 0.3);
}

p em {
    font-style: italic;
    /* Removed red highlighting - keeping default text color */
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background: linear-gradient(45deg, var(--color-accent), var(--color-accent-light));
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-accent-glow);
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover:before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(45deg, var(--color-accent-light), var(--color-accent));
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(121, 101, 28, 0.4);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    background: linear-gradient(rgba(5, 5, 5, 0.0), rgba(15, 15, 15, 0.3), rgba(15, 15, 15, 0.95)), 
                url('images/banner\ 1_NOlogo_Compressed.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

/* Language Toggle */
.language-toggle {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 5px;
    z-index: 100;
}

.lang-btn {
    background: rgba(211, 170, 42, 0.3);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    /* Enhanced shadow for better visibility */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(211, 170, 42, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.lang-btn:hover {
    background: rgba(211, 170, 42, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 4px 15px rgba(211, 170, 42, 0.6);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.lang-btn.active {
    background: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), var(--shadow-glow);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.lang-btn.active:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(211, 170, 42, 0.8);
}

/* Responsive language toggle */
@media(max-width: 768px) {
    .language-toggle {
        top: 20px;
        right: 20px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    animation: pulseOverlay 4s ease-in-out infinite alternate;
}

@keyframes pulseOverlay {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.hero-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Dramatic Logo Animation - Golden Light Emergence - FASTER */
.hero-logo {
    max-width: 600px;
    width: 90%;
    height: auto;
    margin-bottom: 1rem;
    /* Make logo fully visible immediately */
    opacity: 1;
    transform: none;
    /* Disable initial animation */
    animation: none;
    /* Default subtle glow */
    filter: drop-shadow(0 0 20px rgba(211, 170, 42, 0.3));
    transition: transform 0.3s ease;
    /* will-change not required once animation removed, but kept for hover transform */
    will-change: transform;
}

.hero-logo:hover {
    transform: scale(1.05) translateY(-10px);
    filter: brightness(1.2) drop-shadow(0 0 40px rgba(211, 170, 42, 0.8));
}

@keyframes goldenEmergence {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(30px);
        filter: brightness(0) drop-shadow(0 0 0px rgba(211, 170, 42, 0));
    }
    40% {
        opacity: 0.6;
        transform: scale(0.8) translateY(10px);
        filter: brightness(0.8) drop-shadow(0 0 40px rgba(211, 170, 42, 0.6));
    }
    70% {
        opacity: 0.9;
        transform: scale(1.05) translateY(-5px);
        filter: brightness(1.2) drop-shadow(0 0 50px rgba(211, 170, 42, 0.8));
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: brightness(1) drop-shadow(0 0 30px rgba(211, 170, 42, 0.5));
    }
}

.hero .creators {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    margin: 1rem 0 2rem;
    color: var(--color-primary);
    letter-spacing: 1px;
    opacity: 0;
    animation: creatorsEntrance 0.8s ease forwards;
    text-shadow: var(--shadow-glow-subtle);
    transform: translateY(20px);
    will-change: transform, opacity;
}

@keyframes creatorsEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
        text-shadow: 0 0 0px rgba(211, 170, 42, 0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        text-shadow: var(--shadow-glow-subtle);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Button Animation - FASTER */
.hero .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: buttonEntrance 0.6s ease 2.2s forwards, float 3s ease-in-out infinite 3s;
    will-change: transform, opacity;
}

@keyframes buttonEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px);
        box-shadow: 0 0 0px rgba(121, 101, 28, 0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        box-shadow: var(--shadow-accent-glow);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* --- About Section --- */
#about {
    background: linear-gradient(to bottom, 
        rgba(15, 15, 15, 0.95) 0%, 
        rgba(15, 15, 15, 0.4) 20%, 
        var(--color-bg) 40%, 
        var(--color-bg) 100%);
    margin-top: -100px;
    padding-top: 80px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#about .logline {
    font-style: italic;
    font-size: 1.2rem;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
    border: 1px solid var(--color-primary);
    border-radius: 15px;
    /* Single color background instead of gradient */
    background: var(--color-bg-light);
    box-shadow: var(--shadow-glow-subtle);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#about .logline.animate-in {
    opacity: 1;
    transform: scale(1);
}

#about .logline:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* --- Buy Links (Store Icons) --- */
.buy-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    align-items: center;
    justify-items: center;
    margin: 1rem auto 2.5rem;
    max-width: 900px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--color-bg-light);
    border: 1px solid rgba(211, 170, 42, 0.25);
    border-radius: 14px;
    text-decoration: none;
    box-shadow: var(--shadow-glow-subtle);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    backdrop-filter: blur(10px);
    min-height: 68px; /* keep all rows consistent */
}

.store-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: var(--color-primary);
}

.store-btn img {
    max-width: 150px;
    max-height: 34px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    filter: saturate(0.9) brightness(0.98) contrast(1.05) drop-shadow(0 0 8px rgba(211, 170, 42, 0.28));
    opacity: 0.95;
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
    image-rendering: -webkit-optimize-contrast;
}

.store-btn:hover img {
    filter: saturate(1) brightness(1) contrast(1.05) drop-shadow(0 0 12px rgba(211, 170, 42, 0.55));
    opacity: 1;
}

@media(max-width: 768px) {
    .buy-links {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 0.75rem;
    }
    .store-btn img {
        max-height: 30px;
        max-width: 140px;
    }
}

/* Brand-specific fine-tuning for more balanced visual weight */
.store-btn img[alt="GlobalComix"] {
    max-height: 32px;
}

.store-btn img[alt="Panels"] {
    max-height: 28px;
    filter: brightness(1.05) contrast(1.1) drop-shadow(0 0 8px rgba(211, 170, 42, 0.28));
}

.store-btn img[alt="Gumroad"] {
    max-height: 30px;
}

.store-btn img[alt="Amazon Kindle"] {
    max-height: 28px;
}

.store-btn img[alt="DerryComics"] {
    max-height: 26px;
}

/* --- Team Section Specific Styling --- */
#team {
    padding-bottom: 17rem; /* Extra bottom padding to ensure content is fully visible */
}

/* --- Character & Team Profile Layout --- */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.profile-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    /* Single color background instead of gradient */
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(211, 170, 42, 0.2);
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
}

.profile-card.animate-in {
    opacity: 1;
    transform: translateX(0);
    /* Reduced glow effects */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), var(--shadow-glow-subtle);
}

.profile-card:nth-child(even) {
    flex-direction: row-reverse;
    transform: translateX(50px);
}

.profile-card:nth-child(even).animate-in {
    transform: translateX(0);
    /* Reduced glow effects */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), var(--shadow-glow-subtle);
}

.profile-card:hover {
    transform: translateY(-10px) scale(1.02);
    /* Reduced glow effects - darker is better */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), var(--shadow-glow);
    z-index: 10;
}

.profile-card img {
    width: 220px; /* Reduced from 300px */
    height: auto;
    max-width: 100%;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    transition: all 0.4s ease;
    /* Reduced glow */
    box-shadow: var(--shadow-glow-subtle);
}

.profile-card img:hover {
    transform: scale(1.05) rotate(2deg);
    /* Reduced glow */
    box-shadow: var(--shadow-glow);
}

/* Team member image links styling */
.profile-card a {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
}

.profile-card a:hover {
    transform: scale(1.05) rotate(2deg);
}

.profile-card a:hover img {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-glow);
}

.profile-card .profile-bio {
    flex: 1;
    min-width: 300px;
}

.profile-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    /* Reduced glow */
    text-shadow: var(--shadow-glow-subtle);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s ease;
}

.profile-card.animate-in h3 {
    opacity: 1;
    transform: translateY(0);
}

/* Visual feedback on mobile - ONLY for character cards */
@media(max-width: 768px) {
    .profile-card img {
        width: 180px; /* Even smaller on mobile */
    }
    
    .profile-card, .profile-card:nth-child(even) {
        flex-direction: column;
        text-align: center;
        transform: translateY(30px);
    }
    
    .profile-card.animate-in, .profile-card:nth-child(even).animate-in {
        transform: translateY(0);
    }
}

/* --- Comic Preview Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    border-radius: 15px;
    border: 2px solid rgba(211, 170, 42, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-grid img:hover {
    transform: scale(1.08) translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow), 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* --- Footer Section --- */
#footer-section {
    background: linear-gradient(135deg, var(--color-bg-darker) 0%, var(--color-bg) 100%);
    text-align: center;
    border-top: 1px solid rgba(211, 170, 42, 0.2);
    margin-top: 2rem; /* Add some separation from content above */
}

.social-links {
    margin-bottom: 2rem;
}

.social-links a {
    display: inline-block;
    margin: 0 1rem;
    color: var(--color-primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--color-primary-light);
    transform: translateY(-5px) scale(1.2);
    text-shadow: var(--shadow-glow);
}

.copyright {
    color: var(--color-text);
    opacity: 0.7;
    margin: 0;
    max-width: none;
}

/* --- Animation Classes --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    z-index: 1000;
    transition: width 0.1s ease;
}

/* --- Responsive Design --- */
@media(max-width: 768px) {
    h2 { 
        font-size: 2.2rem; 
    }
    
    .hero {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
    
    .hero-logo {
        max-width: 400px;
        width: 85%;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    #team {
        padding-bottom: 1rem; /* Increased padding to prevent footer overlap */
    }
    
    .container {
        padding: 0 1rem;
    }
} 