/* ==========================================================================
   Mojase Design System - Modern Dark & Neon Glassmorphic Theme
   ========================================================================== */

:root {
    /* Colors */
    --bg-main: #070913;
    --bg-surface: rgba(18, 22, 41, 0.5);
    --bg-surface-solid: #0e1225;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(56, 189, 248, 0.2);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Accents & Gradients */
    --color-primary: #38bdf8; /* Neon Sky Blue */
    --color-secondary: #c084fc; /* Neon Purple */
    --color-success: #10b981; /* Green */
    --color-error: #ef4444; /* Red */
    
    --gradient-hero: linear-gradient(135deg, #38bdf8 0%, #a855f7 50%, #ec4899 100%);
    --gradient-card: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    --gradient-btn: linear-gradient(90deg, #38bdf8 0%, #8b5cf6 100%);
    --gradient-text: linear-gradient(90deg, #38bdf8 0%, #c084fc 100%);
    
    /* Glassmorphism */
    --backdrop-filter: blur(16px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Layout */
    --container-max-width: 1200px;
    --nav-height: 80px;
    --transition-speed: 0.3s;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Reusable Utilities & Components
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 9999px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    font-size: 0.95rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.btn-gradient {
    background: var(--gradient-btn);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-primary);
}

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1.05rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Download App Store / Play Store Badges */
.download-badge {
    display: flex;
    align-items: center;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.6rem 1.4rem;
    border-radius: 12px;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.download-badge i {
    font-size: 1.8rem;
    margin-right: 0.8rem;
}

.download-badge .badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.download-badge .badge-text span {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.download-badge .badge-text strong {
    font-size: 1rem;
    font-weight: 700;
}

.download-badge:hover:not(.disabled) {
    transform: translateY(-2px);
    border-color: var(--color-primary);
}

.download-badge.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(7, 9, 19, 0.8);
    backdrop-filter: var(--backdrop-filter);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}

.nav-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--gradient-btn);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--color-primary);
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-btn);
    transition: width var(--transition-speed);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Language Selector styling */
.lang-selector {
    position: relative;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 140px;
    box-shadow: var(--glass-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    text-align: left;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    width: 100%;
    transition: background 0.2s, color 0.2s;
}

.lang-option:hover, .lang-option.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all var(--transition-speed);
    background-color: var(--text-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    padding-top: calc(var(--nav-height) + 5rem);
    padding-bottom: 6rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-1, .glow-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
}

.glow-1 {
    top: -10%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    animation: pulse 8s infinite alternate;
}

.glow-2 {
    bottom: -10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: var(--color-secondary);
    animation: pulse 12s infinite alternate-reverse;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(50px, 30px); }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* ==========================================================================
   Apps Showcase Section
   ========================================================================== */

.apps-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-main) 0%, rgba(14, 18, 37, 0.3) 50%, var(--bg-main) 100%);
}

.app-card {
    background: var(--bg-surface);
    backdrop-filter: var(--backdrop-filter);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem;
    margin-bottom: 5rem;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.app-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.app-card-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.app-card.inverse .app-card-grid {
    grid-template-columns: 0.8fr 1.2fr;
}

.app-card.inverse .app-info {
    grid-column: 2;
}

.app-card.inverse .app-media {
    grid-column: 1;
    grid-row: 1;
}

.app-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.app-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

.app-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.app-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.app-title {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
}

.app-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.app-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.app-features li {
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.app-features li i {
    color: var(--color-primary);
    margin-right: 0.8rem;
    margin-top: 0.2rem;
}

.app-download-links {
    display: flex;
    gap: 1rem;
}

/* Custom iPhone Device Mockup */
.phone-mockup {
    position: relative;
    width: 260px;
    height: 530px;
    background: #000;
    border: 10px solid #1a1a1a;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    margin: 0 auto;
    overflow: hidden;
}

.phone-speaker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 25px;
    background: #000;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}

.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.mockup-img.active {
    opacity: 1;
    position: relative;
}

/* Image select navigation dots underneath mockup */
.screen-selector {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.selector-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.selector-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.selector-dot.active {
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
    transform: scale(1.2);
}

/* Tensec Interactive mini game widget */
.web-game-container {
    margin-top: 4rem;
    background: rgba(7, 9, 19, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: visible;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.game-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: var(--color-primary);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.game-heading {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    z-index: 1;
    position: relative;
}

.game-subheading {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    z-index: 1;
    position: relative;
}

.stopwatch-display {
    font-family: 'Outfit', monospace;
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--color-primary);
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
    margin-bottom: 1rem;
    z-index: 1;
    position: relative;
    letter-spacing: 2px;
}

.game-feedback {
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 27px;
    margin-bottom: 1.5rem;
    z-index: 1;
    position: relative;
    color: var(--text-secondary);
}

.timer-control-btn {
    min-width: 160px;
    z-index: 1;
    position: relative;
}

/* ==========================================================================
   Our Mission Section
   ========================================================================== */

.mission-section {
    padding: 8rem 0;
    background-color: var(--bg-main);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mission-card {
    background: rgba(18, 22, 41, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.mission-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
}

.mission-icon {
    width: 60px;
    height: 60px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.mission-card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.mission-card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Contact Form Section
   ========================================================================== */

.contact-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-main) 0%, rgba(14, 18, 37, 0.3) 100%);
}

.contact-box {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    background: var(--bg-surface);
    backdrop-filter: var(--backdrop-filter);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.contact-info-panel {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--border-color);
}

.contact-heading {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.contact-info-desc {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.contact-detail-item i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.contact-form-panel {
    padding: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-group input, .form-group textarea {
    background: rgba(7, 9, 19, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.error-msg {
    color: var(--color-error);
    font-size: 0.8rem;
    display: none;
    margin-top: 0.2rem;
}

.form-group.invalid input, .form-group.invalid textarea {
    border-color: var(--color-error);
}

.form-group.invalid .error-msg {
    display: block;
}

.form-success-alert {
    display: none;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--color-success);
    color: var(--text-primary);
    padding: 1.2rem;
    border-radius: 10px;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    margin-top: 1rem;
}

.form-success-alert i {
    color: var(--color-success);
    font-size: 1.4rem;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */

.footer {
    background: #04050a;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 3rem 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.footer-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.social-links a:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* SportWheel Widget Custom Styles (iOS replica) */
.sportwheel-ios-container {
    background: #090b14 !important;
    border: 2px solid rgba(255, 255, 255, 0.07);
    border-radius: 36px;
    padding: 1.5rem 1.25rem 2rem 1.25rem;
    max-width: 420px !important;
    margin: 4rem auto 0 auto !important;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255,255,255,0.07), 0 0 0 1px rgba(255,255,255,0.03);
    min-height: 560px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sportwheel-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1.2rem;
}

.sportwheel-score-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.score-label {
    font-size: 0.6rem;
    color: #6b7280;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.score-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: #eab308;
    line-height: 1;
}

.sportwheel-mode-label {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sportwheel-hearts {
    display: flex;
    gap: 0.3rem;
    color: #ef4444;
    font-size: 0.9rem;
}

.sportwheel-difficulty-tabs {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 260px;
}

.difficulty-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 0.45rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.difficulty-tab.active {
    background: #22c55e;
    color: #000;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

/* Tabs */
.sportwheel-tabs {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 14px;
    width: 100%;
    z-index: 1;
}

.sportwheel-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 0.6rem 0.4rem;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: all var(--transition-speed);
}

.sportwheel-tab:hover {
    color: var(--text-primary);
}

.sportwheel-tab.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.sportwheel-tab.active i {
    color: #3b82f6;
}

.sportwheel-tab i {
    font-size: 0.95rem;
    color: #6b7280;
    transition: color var(--transition-speed);
}

/* Outer wheel wraps */
.wheel-outer-wrap {
    position: relative;
    width: 270px;
    height: 270px;
    margin: 0 auto;
    z-index: 1;
    flex-shrink: 0;
}

/* Triangular pointer indicator */
.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 22px solid #ffffff;
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.4));
    z-index: 10;
}

.wheel-spinner-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.06), 0 15px 40px rgba(0, 0, 0, 0.8);
}

.wheel-svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

/* Spin Center button */
.wheel-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #000;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 5;
}

.wheel-center-btn:hover {
    border-color: #fff;
    transform: translate(-50%, -50%) scale(1.05);
}

.wheel-center-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Result Overlay */
.sportwheel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 11, 20, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.25rem;
    overflow-y: auto;
}

.sportwheel-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Overlay Card (Name Wheel result) */
.overlay-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.8rem;
    text-align: center;
    padding: 1rem;
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.overlay-badge {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fbbf24;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.overlay-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: #9ca3af;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.overlay-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.overlay-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    line-height: 1.2;
}

.overlay-desc {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.overlay-action-btn {
    width: 100%;
    max-width: 280px;
}

/* Playable Quiz Styles */

.quiz-question-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.quiz-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1.25rem;
}

.quiz-utility-btn {
    border: none;
    border-radius: 20px;
    padding: 0.4rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: transform 0.2s;
}

.quiz-utility-btn.yellow {
    background: #eab308;
    color: #000;
}

.quiz-utility-btn.cyan {
    background: #06b6d4;
    color: #fff;
}

.quiz-countdown-timer {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-countdown-timer.large {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-progress {
    transition: stroke-dasharray 1s linear;
}

.timer-number {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 900;
    color: #fff;
    font-family: monospace;
}

.quiz-countdown-timer.large .timer-number {
    font-size: 1.3rem;
}

.quiz-badge {
    font-size: 0.7rem;
    font-weight: 900;
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.3);
    padding: 0.25rem 0.8rem;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.quiz-badge.workout {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

.quiz-question-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.4;
    max-width: 95%;
}

.quiz-options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    max-width: 320px;
    margin-bottom: 0.8rem;
}

.quiz-option-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.quiz-option-btn:hover {
    background: rgba(255, 255, 255, 0.04);
}

.quiz-option-btn .opt-letter {
    font-weight: 900;
    color: #a855f7;
    font-size: 0.85rem;
}

.quiz-option-btn .opt-text {
    font-weight: 600;
    color: #d1d5db;
    font-size: 0.8rem;
}

.quiz-option-btn.correct {
    border-color: #22c55e !important;
    background: rgba(34, 197, 94, 0.08) !important;
}

.quiz-option-btn.correct .opt-letter, .quiz-option-btn.correct .opt-text {
    color: #22c55e !important;
}

.quiz-option-btn.wrong {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

.quiz-option-btn.wrong .opt-letter, .quiz-option-btn.wrong .opt-text {
    color: #ef4444 !important;
}

.quiz-next-btn {
    margin-top: 0.5rem;
    width: 100%;
    max-width: 320px;
    font-weight: 800;
    border-radius: 16px;
    padding: 0.8rem;
}

.workout-timer-row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.workout-desc {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 1.25rem;
    max-width: 90%;
    line-height: 1.4;
}

.workout-controls {
    width: 100%;
    max-width: 320px;
}

.trophy-icon-wrap {
    margin-bottom: 1rem;
}

.gold-trophy {
    font-size: 3.5rem;
    color: #fbbf24;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
}

/* Tensec iOS Replica Styles */
.tensec-ios-container {
    background: #090b14 !important;
    border: 2px solid rgba(255, 255, 255, 0.07);
    border-radius: 36px;
    padding: 1.5rem 1.25rem 2rem 1.25rem;
    max-width: 380px !important;
    margin: 4rem auto 0 auto !important;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255,255,255,0.07), 0 0 0 1px rgba(255,255,255,0.03);
    min-height: 520px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.ios-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1.2rem;
}

.ios-settings-btn, .ios-flag-btn {
    color: #9ca3af;
    font-size: 1.15rem;
    cursor: pointer;
    transition: color 0.2s;
}

.ios-settings-btn:hover, .ios-flag-btn:hover {
    color: #fff;
}

.ios-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ios-profile-sub {
    font-size: 0.55rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.ios-profile-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fbbf24;
    line-height: 1.2;
}

.ios-level-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.25rem;
}

.ios-level-text {
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ios-level-text i {
    color: #fbbf24;
}

.ios-hearts {
    display: flex;
    gap: 0.3rem;
    color: #ef4444;
    font-size: 0.85rem;
}

.ios-level-progress-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.ios-level-progress-bar {
    height: 100%;
    background: #3b82f6;
    box-shadow: 0 0 6px #3b82f6;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.ios-timer-card {
    width: 100%;
    background: linear-gradient(145deg, #000 0%, #050810 100%);
    border: 1px solid rgba(0, 255, 255, 0.12);
    border-radius: 24px;
    padding: 1.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: inset 0 4px 20px rgba(0,0,0,0.9), 0 0 30px rgba(0, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.ios-timer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.3), transparent);
}

.ios-timer-card .stopwatch-display {
    font-size: 3.6rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.7), 0 0 40px rgba(0, 255, 255, 0.3);
    letter-spacing: 2px;
}

.ios-target-badge {
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.25);
    color: #fbbf24;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.ios-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto;
}

.ios-side-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    color: #6b7280;
    cursor: pointer;
    text-align: center;
    width: 75px;
    transition: color 0.2s;
}

.ios-side-btn:hover {
    color: #fff;
}

.ios-side-btn i {
    font-size: 1.1rem;
}

.ios-side-btn span {
    font-size: 0.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.ios-start-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #34d96f, #16a34a);
    border: 3px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4), 0 6px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

.ios-start-btn:hover {
    transform: scale(1.05);
    background: radial-gradient(circle at 35% 35%, #4ade80, #22c55e);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6), 0 6px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
}

.ios-start-btn:active {
    transform: scale(0.96);
}

.ios-start-btn.run {
    background: radial-gradient(circle at 35% 35%, #f87171, #ef4444);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4), 0 6px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

.ios-start-btn.run:hover {
    background: radial-gradient(circle at 35% 35%, #fca5a5, #f87171);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.6), 0 6px 20px rgba(0,0,0,0.5);
}

/* cPanel frame modal resets */
.tensec-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 11, 20, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1.25rem;
}

.tensec-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    margin: auto;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.modal-icon {
    font-size: 2.8rem;
}

.modal-status {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.modal-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    width: 100%;
}

.modal-grid-time {
    font-size: 1.15rem;
}

.modal-grid-time.highlighted {
    font-size: 1.3rem;
}

.modal-grid-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.modal-grid-time.highlighted.success {
    color: var(--color-success);
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.modal-grid-time.highlighted.fail {
    color: var(--color-error);
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.modal-grid-label.highlighted-label.success {
    color: var(--color-success);
}

.modal-grid-label.highlighted-label.fail {
    color: var(--color-error);
}

.modal-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.modal-offset {
    font-size: 0.95rem;
    font-weight: 700;
}

.modal-offset.success {
    color: var(--color-success);
}

.modal-offset.fail {
    color: var(--color-error);
}

.modal-lives-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.modal-hearts {
    display: flex;
    gap: 0.5rem;
    font-size: 1.5rem;
    color: var(--color-error);
    filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.4));
}

.modal-hearts i.fa-regular {
    color: var(--text-muted);
    filter: none;
}

.modal-lives-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-instruction {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
    padding: 0 0.5rem;
}

.modal-cta-btn {
    width: 100%;
    color: #000 !important;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    padding: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.modal-cta-btn.success {
    background: var(--color-success);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.modal-cta-btn.fail {
    background: var(--color-error);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.modal-cta-btn:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive & Adaptive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .mission-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Navbar Hamburger Menu Mobile view */
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background: var(--bg-surface-solid);
        width: 100%;
        height: calc(100vh - var(--nav-height));
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        gap: 1.5rem;
        padding-top: 3rem;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-cta {
        display: none !important; /* Hide CTA button inside mobile top bar */
    }
    
    .app-card {
        padding: 2.25rem 1.25rem !important;
        margin-bottom: 3rem;
    }

    .app-card-grid, .app-card.inverse .app-card-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .app-card.inverse .app-info {
        grid-column: 1 !important;
    }
    
    .app-card.inverse .app-media {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    
    .app-media {
        order: -1; /* Display mobile screenshots above app descriptive info in stack */
    }

    .app-download-links {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }

    .download-badge {
        width: 100%;
        justify-content: center;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-box {
        grid-template-columns: 1fr;
    }
    
    .contact-info-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 3rem 2rem;
    }
    
    .contact-form-panel {
        padding: 3rem 2rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    /* iOS Simulators mobile responsiveness */
    .tensec-ios-container,
    .sportwheel-ios-container {
        max-width: 100% !important;
        width: 100%;
        border-radius: 28px;
        padding: 1.25rem 1rem 1.75rem 1rem;
        margin: 2rem auto 0 auto !important;
    }
    
    .ios-timer-card .stopwatch-display {
        font-size: 2.6rem;
    }
    
    .wheel-outer-wrap {
        width: 230px;
        height: 230px;
    }
    
    .ios-controls-row {
        gap: 0.5rem;
    }
    
    .ios-start-btn {
        width: 86px;
        height: 86px;
        font-size: 0.95rem;
    }
    
    .ios-side-btn {
        width: 60px;
    }
    
    .ios-side-btn span {
        font-size: 0.45rem;
    }
}
