@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&family=Exo+2:wght@300;400;600;700&display=swap');

/* --- VARIABLES & RESET --- */
:root {
    --primary: #00d4ff;
    --secondary: #0099cc;
    --accent: #00ffcc;
    --dark: #040d18;
    --mid: #071828;
    --panel: rgba(0, 30, 60, 0.85);
    --panel-border: rgba(0, 212, 255, 0.2);
    --text: #c8e8f8;
    --white: #ffffff;
    --danger: #ff4466;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    --glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--dark);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Ocean animated background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 80, 140, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 150, 180, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(0, 100, 160, 0.03) 60px, rgba(0, 100, 160, 0.03) 61px);
    pointer-events: none;
    z-index: 0;
    animation: oceanDrift 12s ease-in-out infinite alternate;
}

@keyframes oceanDrift {
    from { transform: translateY(0); }
    to { transform: translateY(30px); }
}

/* Custom cursor */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 99999;
    box-shadow: 0 0 10px var(--primary), 0 0 20px rgba(0,212,255,0.4);
    transition: transform 0.05s;
}

/* --- LAYOUT --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.admin-link {
    position: fixed;
    top: 20px;
    right: 20px;
    color: rgba(0, 212, 255, 0.4);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 100;
    font-family: 'Rajdhani', sans-serif;
    transition: color 0.3s;
}
.admin-link:hover { color: var(--primary); text-shadow: var(--glow); }

/* --- NAVBAR --- */
.shark-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(4, 13, 24, 0.95);
    border-bottom: 1px solid var(--panel-border);
    padding: 14px 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-logo {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: var(--glow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo svg { filter: drop-shadow(0 0 6px var(--primary)); }

/* --- HERO BANNER (like Salmon Project cyan banner) --- */
.hero-banner {
    background: linear-gradient(135deg, rgba(0, 180, 220, 0.95) 0%, rgba(0, 120, 180, 0.9) 100%);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 180, 220, 0.3), var(--shadow);
    animation: fadeIn 0.6s ease-out;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 30px,
        rgba(255,255,255,0.03) 30px,
        rgba(255,255,255,0.03) 31px
    );
}

.hero-banner h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    margin-bottom: 12px;
}

.hero-banner p {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Shark fin silhouette in hero */
.shark-fin {
    position: absolute;
    bottom: 0;
    right: 60px;
    opacity: 0.12;
    width: 120px;
}

/* --- GLASS PANELS --- */
.glass-panel {
    background: var(--panel);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--panel-border);
    margin-bottom: 24px;
    animation: fadeIn 0.5s ease-out;
    position: relative;
    z-index: 1;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 16px 16px 0 0;
    opacity: 0.6;
}

h1, h2, h3 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-title {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 12px;
}

/* --- FORM ELEMENTS --- */
.form-label {
    color: var(--primary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.form-control {
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text);
    font-family: 'Exo 2', sans-serif;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
    background: rgba(0, 30, 60, 0.9);
    color: white;
}

.form-control::placeholder { color: rgba(200, 232, 248, 0.3); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--dark);
    transition: all 0.3s;
    cursor: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.4);
}
.btn-primary:hover::after { opacity: 1; }

/* --- QUESTION CARDS --- */
.question-card {
    background: rgba(0, 15, 35, 0.7);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 20px;
    border: 1px solid var(--panel-border);
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}

.question-card p { color: var(--text); font-size: 0.95rem; }

.question-card:hover {
    transform: translateX(4px);
    border-left-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

.question-card.question-error {
    border-left: 4px solid var(--danger);
    background: rgba(255, 40, 80, 0.08);
    animation: shake 0.5s;
    box-shadow: 0 4px 16px rgba(255, 68, 102, 0.2);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-8px); }
}

/* --- LIKERT SCALE --- */
.likert-options {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.likert-option {
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.likert-option input[type="radio"] { display: none; }

.likert-option label {
    display: block;
    padding: 9px 4px;
    background: rgba(0, 40, 80, 0.6);
    border-radius: 7px;
    cursor: none;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    color: rgba(200, 232, 248, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.15);
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.likert-option label:hover {
    background: rgba(0, 100, 160, 0.5);
    color: var(--primary);
    border-color: var(--primary);
}

.likert-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, rgba(0, 180, 220, 0.3), rgba(0, 120, 180, 0.3));
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.25);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

/* --- RESULTS --- */
.result-highlight {
    font-family: 'Rajdhani', sans-serif;
    font-size: 5.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 4px;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
}

.result-description {
    color: rgba(200, 232, 248, 0.8);
    font-size: 1rem;
}

.btn-outline-dark {
    border: 1px solid var(--panel-border);
    color: var(--primary);
    background: transparent;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: none;
    transition: all 0.3s;
}

.btn-outline-dark:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--glow);
}

/* --- SHARK BITE ANIMATION --- */
.shark-bite {
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9000;
}

.shark-svg { width: 200px; height: 150px; }

.jaw-top {
    transform-origin: 50% 100%;
    animation: bite-top 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.jaw-bottom {
    transform-origin: 50% 0%;
    animation: bite-bottom 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes bite-top {
    0%   { transform: translateY(-55px); opacity: 0; }
    15%  { opacity: 1; }
    60%  { transform: translateY(0px); }
    80%  { transform: translateY(3px); }
    100% { transform: translateY(0px); }
}

@keyframes bite-bottom {
    0%   { transform: translateY(55px); opacity: 0; }
    15%  { opacity: 1; }
    60%  { transform: translateY(0px); }
    80%  { transform: translateY(-3px); }
    100% { transform: translateY(0px); }
}

.shark-bite.chomping .jaw-top {
    animation: chomp-top 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

.shark-bite.chomping .jaw-bottom {
    animation: chomp-bottom 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

@keyframes chomp-top {
    0%   { transform: translateY(0); }
    40%  { transform: translateY(28px); }
    70%  { transform: translateY(0); }
    85%  { transform: translateY(10px); }
    100% { transform: translateY(0); }
}

@keyframes chomp-bottom {
    0%   { transform: translateY(0); }
    40%  { transform: translateY(-28px); }
    70%  { transform: translateY(0); }
    85%  { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.shark-bite.fade-out {
    animation: fadeShark 0.3s ease forwards;
}

@keyframes fadeShark {
    to { opacity: 0; transform: translate(-50%, -50%) scale(1.08); }
}

.splash { position: fixed; pointer-events: none; z-index: 8999; transform: translate(-50%, -50%); }

.splash-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: splashOut 0.55s ease-out forwards;
    box-shadow: 0 0 6px var(--primary);
}

@keyframes splashOut {
    0% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

.ripple {
    position: fixed;
    pointer-events: none;
    border: 1.5px solid rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleOut 0.6s ease-out forwards;
    z-index: 8998;
}

@keyframes rippleOut {
    to { transform: translate(-50%, -50%) scale(5); opacity: 0; width: 80px; height: 80px; }
}

.screen-flash {
    position: fixed;
    inset: 0;
    background: rgba(0, 200, 255, 0.06);
    pointer-events: none;
    animation: flashOut 0.3s ease forwards;
    z-index: 8997;
}

@keyframes flashOut { to { opacity: 0; } }

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ADMIN NAV BUTTON --- */
.nav-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--primary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    cursor: none;
}
.nav-admin-btn:hover {
    background: rgba(0, 212, 255, 0.18);
    color: var(--primary);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.2);
}