/* ============================================
   Perth RP III Homepage - Modern Cyan Theme
   ============================================ */

/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    /* Primary Colors */
    --color-primary: #00d2ff;
    --color-primary-dark: #00a8cc;
    --color-primary-glow: rgba(0, 210, 255, 0.6);
    --color-primary-dim: rgba(0, 210, 255, 0.1);

    /* Backgrounds */
    --bg-dark-1: #0a0b16;
    --bg-dark-2: #050510;
    --bg-card: rgba(15, 20, 35, 0.6);
    --bg-card-hover: rgba(20, 30, 50, 0.8);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a5b8;
    --text-muted: #606575;

    /* Borders & Glass */
    --border-primary: rgba(0, 210, 255, 0.3);
    --border-light: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;

    /* Typography */
    --font-family: 'Inter', sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: #020205;
    background-image:
        radial-gradient(circle at 50% -20%, rgba(0, 210, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 0% 50%, rgba(60, 20, 100, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 50%, rgba(0, 210, 255, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    user-select: none;
    /* Disable text selection */
    -webkit-user-select: none;
}

/* Enable selection for inputs */
input,
textarea,
.selectable {
    user-select: text;
    -webkit-user-select: text;
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-glow {
    color: var(--color-primary);
    text-shadow: 0 0 20px var(--color-primary-glow);
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   Navigation
   ============================================ */
/* ============================================
   Floating Navigation ("The Pill")
   ============================================ */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 600px;
    height: 70px;
    z-index: 1000;
    background: rgba(10, 11, 22, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0 10px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    background: rgba(10, 11, 22, 0.9);
    top: 10px;
    width: auto;
    min-width: 500px;
    height: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 210, 255, 0.1);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 40px;
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo-highlight {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    background: transparent;
    padding: 0;
    border: none;
    margin: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background: var(--color-primary);
    color: #000 !important;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.nav-link i {
    font-size: 12px;
    opacity: 0.7;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 24px;
}

/* ============================================
   Hero Section
   ============================================ */
/* ============================================
   Split Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    position: relative;
    padding: 0 var(--spacing-xl);
    padding-top: 100px;
    overflow: hidden;
    gap: 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 70% 30%, rgba(0, 210, 255, 0.12) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 600px;
    padding: 0;
}

.hero-visual {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.status-card-3d {
    background: rgba(20, 25, 40, 0.6);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
    width: 400px;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow:
        -20px 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: float 6s ease-in-out infinite;
}

.status-card-3d:hover {
    transform: rotateY(0) rotateX(0) scale(1.02);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

/* Grid overlay pattern */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--spacing-md);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--border-primary);
    border-radius: 50px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-primary);
    color: #000;
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   Sections
   ============================================ */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 18px;
}

/* ============================================
   Subpage Header & CTA
   ============================================ */
.page-header {
    text-align: center;
    padding: 150px 0 100px;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(0, 210, 255, 0.3);
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

.cta-section {
    padding: 100px 0;
    position: relative;
    background: radial-gradient(circle at center, rgba(0, 210, 255, 0.05) 0%, transparent 60%);
}

.cta-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-dark-2);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .features-grid-modern {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 600px) {
    .navbar {
        width: 100%;
        min-width: 0;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        border-top: none;
        border-left: none;
        border-right: none;
        background: rgba(10, 11, 22, 0.95);
        display: flex;
        justify-content: center;
    }

    .nav-container {
        padding: 0 15px;
        width: 100%;
    }

    .hero {
        padding: 100px 20px 40px;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 40px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .status-card-3d {
        padding: 30px;
        margin: 0 auto;
        /* Restore a subtle shadow for depth */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .status-body h2 {
        font-size: 42px;
    }

    .features-grid-3 {
        grid-template-columns: 1fr;
    }

    .cta-metrics {
        flex-direction: column;
        gap: 20px;
    }

    .cta-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 32px;
    }

    .bento-grid {
        gap: 15px;
        grid-template-columns: 1fr;
    }

    .bento-card,
    .bento-card.large,
    .bento-card.wide,
    .bento-card.tall {
        grid-column: span 1;
        grid-row: auto;
    }
}

/* ============================================
   Bento Grid System
   ============================================ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 25px;
    position: relative;
    z-index: 10;
}

.bento-card {
    background: rgba(15, 20, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-height: 200px;
    text-decoration: none;
    color: #fff;
}

.bento-card:hover {
    transform: translateY(-5px) scale(1.01);
    background: rgba(20, 25, 45, 0.85);
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 210, 255, 0.1);
    z-index: 5;
}

/* Size Modifiers */
.bento-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-card.wide {
    grid-column: span 2;
}

.bento-card.tall {
    grid-row: span 2;
}

/* Content Styles */
.bento-icon {
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 25px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 210, 255, 0.1);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.bento-card:hover .bento-icon {
    background: var(--color-primary);
    color: #000;
    transform: rotate(5deg) scale(1.1);
}

.bento-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
    letter-spacing: -0.5px;
}

.bento-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0px;
}

.bento-link {
    margin-top: auto;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Bento */
@media (max-width: 1100px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card.large {
        grid-column: span 2;
        grid-row: auto;
    }

    .bento-card.tall {
        grid-row: auto;
    }
}



/* ============================================
   Refactored & Responsive Utilities
   ============================================ */
.features-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(200px, auto));
    gap: 25px;
}

.bento-title.small {
    font-size: 20px;
}

/* Status Card */
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.status-indicator {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
}

.status-body {
    margin-bottom: 30px;
}

.status-body h2 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
}

.status-body p {
    color: var(--text-secondary);
}

.connect-link {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 15px;
    font-family: monospace;
    font-size: 13px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.connect-link:hover {
    background: rgba(0, 210, 255, 0.1);
    transform: translateY(-2px);
}

/* CTA Section Refactor */
.cta-card-content {
    padding: 40px;
    text-align: center;
    border-color: var(--color-primary);
    background: linear-gradient(145deg, rgba(15, 20, 35, 0.9) 0%, rgba(0, 210, 255, 0.1) 100%);
}

.cta-title {
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.cta-metrics {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
}

.metric-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* ============================================
   Enhanced Responsive Rules
   ============================================ */
@media (max-width: 900px) {
    .navbar {
        min-width: 0;
        width: 90%;
        top: 10px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        margin: 0 auto;
        padding: 0;
    }

    .hero-title {
        font-size: 56px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        display: flex;
        justify-content: center;
        margin-bottom: 40px;
    }

    .status-card-3d {
        transform: rotateY(0) rotateX(0);
        animation: none;
        width: 100%;
        max-width: 500px;
    }

    .features-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .navbar {
        width: 100%;
        min-width: 0;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        border-top: none;
        border-left: none;
        border-right: none;
        background: rgba(10, 11, 22, 0.95);
        display: flex;
        justify-content: center;
    }

    .nav-container {
        padding: 0 15px;
        width: 100%;
    }

    .hero {
        padding: 100px 20px 40px;
        display: flex;
        flex-direction: column;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .status-card-3d {
        padding: 25px;
        margin: 0 auto;
    }

    .status-body h2 {
        font-size: 42px;
    }

    .features-grid-3 {
        grid-template-columns: 1fr;
    }

    .cta-metrics {
        flex-direction: column;
        gap: 20px;
    }

    .cta-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 32px;
    }

    .bento-grid {
        gap: 15px;
        grid-template-columns: 1fr;
    }

    .bento-card,
    .bento-card.large,
    .bento-card.wide,
    .bento-card.tall {
        grid-column: span 1;
        grid-row: auto;
    }
}