:root {
    --bg-dark: #0a0a0b;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-orange: #ff9d42;
    --accent-pink: #ff429d;
    --gradient-hero: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    background-image: url('assets/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Interactive Showcase */
.interactive-showcase {
    max-width: 1200px;
    margin: 180px auto;
    height: 650px;
    display: flex;
    flex-direction: row-reverse;
    /* Added for sibling selector support */
    align-items: center;
    justify-content: center;
    gap: 0;
    cursor: pointer;
    position: relative;
    padding: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    overflow: visible;
}

.showcase-left {
    position: relative;
    width: 600px;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 20;
}

.watermark-layer {
    position: absolute;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: flex-end;
}

.watermark-layer.state-b {
    opacity: 0;
    transform: translateY(60px);
    pointer-events: none;
}

/* Static horizontal offsets using padding - this isolates layout from transform */
.w-slot {
    display: flex;
    justify-content: flex-end;
    width: 600px;
}

.w-top-slot {
    padding-right: 180px;
}

.w-mid-slot {
    padding-right: 40px;
}

.w-bot-slot {
    padding-right: 150px;
}

.watermark-img {
    width: 420px;
    /* Increased size */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.watermark-img:hover {
    transform: scale(1.1);
    z-index: 50;
    position: relative;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}

/* Layer transitions */
.layer-a {
    transition-delay: 0s;
}

.layer-b {
    transition-delay: 0.1s;
}

/* Hover States (Triggered by Character Area) */
.showcase-right:hover~.showcase-left .state-a {
    opacity: 0;
    transform: translateY(-60px);
    pointer-events: none;
}

.showcase-right:hover~.showcase-left .state-b {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.showcase-right {
    position: relative;
    width: 600px;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    z-index: 30;
    /* Ensure trigger area is on top or correctly layered */
}

/* People triggers character swap too */
.showcase-right:hover .person-state-a {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.showcase-right:hover .person-state-b {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.person-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.person-state-b {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.person-img {
    position: absolute;
    bottom: 0;
    height: 95%;
    object-fit: contain;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* State A: p1 is Light (Front), p2 is Dark (Back) */
.person-state-a .p1 {
    z-index: 15;
    left: 0;
    filter: drop-shadow(20px 0 30px rgba(0, 0, 0, 0.5));
}

.person-state-a .p2 {
    z-index: 10;
    left: 100px;
    opacity: 0.7;
    filter: grayscale(0.5) contrast(0.8);
}

/* State B: p2 is Light (Front), p1 is Dark (Back) */
.person-state-b .p2 {
    z-index: 15;
    left: 0;
    filter: drop-shadow(20px 0 30px rgba(0, 0, 0, 0.5));
}

.person-state-b .p1 {
    z-index: 10;
    left: 120px;
    opacity: 0.7;
    filter: grayscale(0.5) contrast(0.8);
}

/* People layers handled above */

/* Removed conflicting animation */

@keyframes bounce-in {
    0% {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .interactive-showcase {
        flex-direction: column;
        height: auto;
        padding-top: 50px;
    }

    .showcase-left {
        width: 100%;
        align-items: center;
        margin-bottom: 50px;
    }

    .showcase-right {
        width: 100%;
        height: 400px;
    }
}

.ticker-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 0;
    overflow: hidden;
}

.ticker-container {
    display: flex;
    white-space: nowrap;
    width: 200%;
    /* Enough to fit two sets of items */
}

.ticker-wrapper {
    display: flex;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

.ticker-group {
    display: flex;
    animation: scroll-left 60s linear infinite;
}

.ticker-group.reverse {
    animation: scroll-right 60s linear infinite;
}

.ticker-wrapper:hover .ticker-group {
    animation-play-state: paused;
}

.ticker-item {
    flex: 0 0 auto;
    width: 280px;
    height: 180px;
    margin: 0 15px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.ticker-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticker-item:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--accent-orange);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Typography */
h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-hero);
    border-radius: 50px;
    font-weight: 600;
    color: white;
    box-shadow: 0 10px 20px rgba(255, 66, 157, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 66, 157, 0.4);
}

/* Layout Sections */
header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero {
    padding-top: 180px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 2rem;
}

.stats-bar {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 60px;
    padding: 30px;
    border-radius: 30px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 400px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: scale(1.02);
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watermark-section {
    padding: 120px 0;
    background: radial-gradient(circle at center, rgba(255, 157, 66, 0.05) 0%, transparent 70%);
}

.watermark-section h2 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#sphere-wrapper {
    width: 100%;
    height: 900px;
    perspective: 1200px;
    /* Stronger perspective for more depth */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    user-select: none;
    position: relative;
    z-index: 5;
}

#sphere-wrapper:active {
    cursor: grabbing;
}

#sphere {
    position: relative;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
}

.sphere-item {
    position: absolute;
    width: 220px; /* Increased base size */
    height: auto;
    left: -110px; /* Centering offset for 220px */
    top: -70px;
    transform-style: preserve-3d;
    pointer-events: auto;
    transition: z-index 0.3s ease;
}

.sphere-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    display: block;
}

.sphere-item:hover {
    z-index: 2000 !important;
}

.sphere-item:hover .sphere-img {
    transform: scale(1.3) translateZ(50px); /* Pop out and scale */
    border-color: var(--accent-orange);
    box-shadow: 0 20px 50px rgba(255, 157, 66, 0.4);
}

.watermark-section {
    padding: 100px 0 200px;
    overflow: visible;
    background: radial-gradient(circle at center, rgba(255, 157, 66, 0.03) 0%, transparent 70%);
}

/* About Section */
.about-section {
    padding: 120px 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.lead-text {
    font-size: 1.5rem;
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.team-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-mini h3 {
    font-size: 2rem;
    color: var(--text-primary);
}

.stat-mini p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.about-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stats-card {
    padding: 40px;
    text-align: center;
    font-style: italic;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    border-color: var(--accent-pink);
}

.stats-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    filter: blur(80px);
    opacity: 0.1;
    z-index: -1;
}

/* Contact Section */
.contact-section {
    padding: 100px 0 160px;
    text-align: center;
}

.contact-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 40px;
}

.contact-card h2 {
    margin-bottom: 1.5rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.email-box {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 48px;
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.email-box .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-orange);
}

.email-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.email-link:hover {
    color: var(--accent-pink);
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Legal Pages Styling */
.legal-container {
    max-width: 900px;
    margin: 180px auto 100px;
    padding: 0 40px;
}

.legal-header {
    margin-bottom: 60px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 40px;
}

.legal-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.legal-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.legal-body {
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-body h2 {
    color: var(--text-primary);
    text-align: left;
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
}

.legal-body h3 {
    color: var(--accent-orange);
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
}

.legal-body p {
    margin-bottom: 1.5rem;
}

.legal-body ul {
    margin-bottom: 2rem;
    padding-left: 20px;
    list-style: disc;
}

.legal-body li {
    margin-bottom: 0.8rem;
}

footer {
    padding: 80px 0 40px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-links {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    h1 {
        font-size: 3rem;
    }

    .stats-bar {
        grid-template-columns: 1fr;
    }
}