/* =========================================
   1. CORE RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    background-color: #0f172a;
    color: #f8fafc;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   2. NAVIGATION (UPDATED WITH LOGO FIXES)
   ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%; /* Reduced padding slightly for a sleeker bar */
    background: rgba(30, 41, 59, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #334155;
}

/* Wrapper to hold both the Image and the Text */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px; /* Spacing between the logo picture and the text */
    text-decoration: none;
    transition: 0.3s ease;
}

.logo-wrapper:hover {
    transform: translateY(-1px);
}

/* The Circular Logo Image */
.piclogo img {
    height: 42px; /* Professional mid-size */
    width: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(56, 189, 248, 0.4);
    display: block;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.1);
}

/* The "PYXIS" Branding Text */
.logo-text {
    font-size: 1.4rem; 
    font-weight: 700;
    color: #38bdf8; /* This is the vibrant blue from your site's headers */
    letter-spacing: 4px; 
    text-transform: uppercase;
    transition: 0.3s ease;
}

/* Optional: Make it glow slightly when you hover over the nav */
.logo-wrapper:hover .logo-text {
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    color: #7dd3fc; /* Lighter blue on hover */
}


nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 20px; }
nav ul li a {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    transition: 0.3s;
}
nav ul li a:hover { color: #38bdf8; }

/* =========================================
   3. HERO & HEADERS
   ========================================= */
.hero, .services-hero {
    text-align: center;
    padding: 100px 10%;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), 
                url('https://images.unsplash.com/photo-1550745165-9bc0b252728f?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
}

.hero h1, .services-hero h1 { font-size: 3rem; margin-bottom: 20px; color: #f8fafc; }
.hero p, .services-hero p { color: #94a3b8; font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

.cta-btn {
    background-color: #38bdf8;
    color: #0f172a;
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 30px;
    cursor: pointer;
    transition: 0.3s ease;
}
.cta-btn:hover { background-color: #7dd3fc; transform: translateY(-3px); }


/* =========================================
   4. CONTENT SECTIONS
   ========================================= */
.about-section, .process-section {
    padding: 80px 10%;
    background-color: #1e293b;
    text-align: center;
}

.about-content h2, .process-section h2 { color: #38bdf8; margin-bottom: 20px; font-size: 2rem; }
.about-content p { max-width: 800px; margin: 0 auto; color: #cbd5e1; font-size: 1.1rem; line-height: 1.8; }

.process-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}
.step { flex: 1; min-width: 250px; max-width: 300px; }
.step span { font-size: 3.5rem; font-weight: 900; color: rgba(56, 189, 248, 0.1); display: block; }
.step h4 { margin-top: -30px; margin-bottom: 10px; font-size: 1.3rem; }

/* =========================================
   5. GRIDS (SERVICES & ROSTER)
   ========================================= */
.services-grid-container, .roster {
    padding: 80px 8%;
    background-color: #0f172a;
}

.services-grid, .creator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card, .card {
    background: #1e293b;
    padding: 45px 30px;
    border-radius: 20px;
    border: 1px solid #334155;
    text-align: center;
    transition: 0.4s;
}

.service-card:hover {
    border-color: #38bdf8;
    transform: translateY(-5px);
}

.service-card .icon { font-size: 2.5rem; color: #38bdf8; margin-bottom: 20px; }

/* =========================================
6. RADIO EXPANSION ENGINE (CREATORS)
   ========================================= */
   .toggle-input { display: none; }

.card {
    cursor: pointer;
    display: block;
    overflow: hidden;
    max-height: 350px;
}

/* Expansion Trigger for Radio Buttons */
.toggle-input:checked + .card {
    border-color: #38bdf8;
    max-height: 800px; /* Expands smoothly */
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.2);
}

.expanded-content {
    opacity: 0;
    max-height: 0;
    transition: 0.4s ease;
    text-align: left;
}

.toggle-input:checked + .card .expanded-content {
    opacity: 1;
    max-height: 500px;
    margin-top: 20px;
}

/* Card Inner Details */
.logo-container {
    width: 100px; height: 100px; margin: 0 auto 20px;
    border-radius: 50%; border: 3px solid #38bdf8;
    background: #0f172a; overflow: hidden;
}
.creator-logo { width: 100%; height: 100%; object-fit: cover; }
.subs { color: #38bdf8; font-size: 1.2rem; font-weight: 800; margin: 10px 0; }
.divider { height: 1px; background: #334155; margin-bottom: 15px; }

.expanded-content h4 { color: #38bdf8; font-size: 1rem; margin-bottom: 10px; }
.expanded-content ul { list-style: none; margin-bottom: 15px; }
.expanded-content ul li {
    color: #cbd5e1; font-size: 0.85rem; margin-bottom: 5px;
    padding-left: 15px; position: relative;
}
.expanded-content ul li::before {
    content: "▹"; position: absolute; left: 0; color: #38bdf8;
}

.bio { font-size: 0.85rem; color: #94a3b8; line-height: 1.5; font-style: italic; }

/* =========================================
   7. FOOTER & MISC
   ========================================= */
.social-icons-row i:hover {
    transform: scale(1.2);
    color: #7dd3fc !important;
}

.coming-soon-card { border-style: dashed; opacity: 0.7; }

footer {
    text-align: center;
    padding: 50px;
    background: #0f172a;
    color: #64748b;
    border-top: 1px solid #1e293b;
    margin-top: auto;
}

@media (max-width: 768px) {
    .hero h1, .services-hero h1 { font-size: 2.2rem; }
    .services-grid, .creator-grid { grid-template-columns: 1fr; }
}

.section-title {
    text-align: center;
}

/* =========================================
   8. ANIMATIONS & ADVANCED HOVER EFFECTS
   ========================================= */

/* Scroll Reveal - Initial State */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Scroll Reveal - Active State (Triggered by Scroll) */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section Entrance Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1, .hero p, .cta-btn {
    animation: fadeInUp 1s ease-out forwards;
}

/* Logo Spin Animation on Hover */
.piclogo img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-wrapper:hover .piclogo img {
    transform: rotate(360deg);
}

/* Nav Link Animated Underline */
nav ul li a {
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #38bdf8;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Service & Creator Card Elevation */
.service-card, .card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover, .card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.1);
    border-color: #38bdf8;
}

/* CTA Button Pulse Effect */
.cta-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-btn:active {
    transform: scale(0.95);
}

/* Smooth Icon Float */
.service-card .icon {
    transition: transform 0.4s ease;
}

.service-card:hover .icon {
    transform: scale(1.2) rotate(5deg);
}

/* Creator Image Glow on Hover */
.logo-container {
    transition: all 0.4s ease;
}

.card:hover .logo-container {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    transform: scale(1.05);
}

/* =========================================
   9. FLOATING CONTACT MENU (FAB)
   ========================================= */
.fab-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

/* Hidden checkbox to trigger the menu */
#fab-checkbox {
    display: none;
}

/* The Main Button */
.fab-main {
    width: 60px;
    height: 60px;
    background: #38bdf8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0f172a;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.fab-main:hover {
    transform: scale(1.1);
    background: #7dd3fc;
}

/* The Sub-Buttons (Socials) */
.fab-sub {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    opacity: 0;
    transform: translateY(20px) scale(0);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.fab-discord { background: #5865F2; box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3); }
.fab-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); box-shadow: 0 4px 12px rgba(214, 36, 159, 0.3); }

/* Toggle Logic: When Checkbox is Checked */
#fab-checkbox:checked ~ .fab-sub {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Delay for staggered animation */
#fab-checkbox:checked ~ .fab-instagram { transition-delay: 0.1s; }
#fab-checkbox:checked ~ .fab-discord { transition-delay: 0.2s; }

/* Icon Switch Logic (Message -> Cross) */
.fab-main .fa-times { display: none; }
#fab-checkbox:checked + .fab-main .fa-comment-dots { display: none; }
#fab-checkbox:checked + .fab-main .fa-times { display: block; }
#fab-checkbox:checked + .fab-main { background: #1e293b; color: #38bdf8; border: 1px solid #38bdf8; }


