/* ============================================
   AQUASENTINEL - MODERN HOMEPAGE
   ============================================ */

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

:root {
    /* Colors */
    --primary-aqua: #00d9ff;
    --primary-aqua-dark: #00b8d4;
    --secondary-aqua: #00f0ff;
    --dark-bg: #0a1628;
    --dark-overlay: rgba(10, 22, 40, 0.3);
    --text-white: #ffffff;
    --text-light: #e0e0e0;
    
    /* Fonts */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Shadows and effects */
    --glow-aqua: 0 0 20px rgba(0, 217, 255, 0.6);
    --glow-aqua-strong: 0 0 30px rgba(0, 217, 255, 0.8);
}

html, body {
    width: 100%;
    height: 100%;
    font-family: var(--font-primary);
    overflow-x: hidden;
}

/* ============================================
   BACKGROUND VIDEO STYLING
   ============================================ */

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 30, 60, 0.4) 0%,
        rgba(10, 22, 40, 0.3) 50%,
        rgba(0, 50, 100, 0.4) 100%
    );
    z-index: 1;
}

/* ============================================
   NAVBAR STYLING
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(10, 22, 40, 0.15);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    animation: slideDownNav 0.6s ease-out;
}

@keyframes slideDownNav {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 1px;
    animation: fadeInLeft 0.8s ease-out;
}

.trident-icon {
    font-size: 1.8rem;
    color: var(--primary-aqua);
    filter: drop-shadow(0 0 10px var(--primary-aqua));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.brand-name {
    background: linear-gradient(135deg, var(--text-white) 0%, var(--secondary-aqua) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    animation: fadeInRight 0.8s ease-out;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-aqua);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-aqua);
}

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

/* Sign Up Button */
.btn-signup {
    padding: 0.7rem 1.8rem;
    background: linear-gradient(135deg, var(--primary-aqua) 0%, var(--secondary-aqua) 100%);
    color: var(--dark-bg);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glow-aqua);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-signup:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-aqua-strong);
}

.btn-signup:active {
    transform: translateY(-1px);
}

/* ============================================
   HERO SECTION STYLING
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* ============================================
   CTA BUTTONS STYLING
   ============================================ */

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.7s both;
}

/* Primary Button - Get Started */
.btn-primary {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-aqua) 0%, var(--secondary-aqua) 100%);
    color: var(--dark-bg);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glow-aqua);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-aqua-strong);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-2px);
}

/* Secondary Button - Learn More */
.btn-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--primary-aqua);
    border: 2px solid var(--primary-aqua);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-aqua);
    z-index: -1;
    transition: left 0.3s ease;
}

.btn-secondary:hover {
    color: var(--dark-bg);
    transform: translateY(-5px);
    box-shadow: var(--glow-aqua);
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:active {
    transform: translateY(-2px);
}

/* ============================================
   SCROLL INDICATOR STYLING
   ============================================ */

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 1.2s ease-out 1s both;
}

.scroll-text {
    color: var(--text-light);
    font-size: 0.85rem;
    opacity: 0.7;
    letter-spacing: 1px;
}

.scroll-arrow {
    color: var(--primary-aqua);
    font-size: 1.2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1.5rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
        gap: 0.5rem;
    }

    .trident-icon {
        font-size: 1.4rem;
    }

    .navbar-menu {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .btn-signup {
        padding: 0.6rem 1.4rem;
        font-size: 0.8rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        margin-bottom: 2rem;
        font-size: clamp(0.9rem, 2vw, 1.1rem);
    }

    .hero-buttons {
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .navbar {
        padding: 1rem 0;
    }

    .navbar-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .navbar-brand {
        font-size: 1rem;
        gap: 0.4rem;
    }

    .trident-icon {
        font-size: 1.2rem;
    }

    .navbar-menu {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        color: var(--secondary-aqua);
    }

    .btn-signup {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 12rem;
        padding-bottom: 4rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        margin-bottom: 1.5rem;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .scroll-indicator {
        bottom: 1.5rem;
        gap: 0.3rem;
    }

    .scroll-text {
        font-size: 0.75rem;
    }

    .scroll-arrow {
        font-size: 1rem;
    }
}

/* Ultra-wide displays */
@media (min-width: 1920px) {
    .navbar-container {
        max-width: 1600px;
    }

    .hero-content {
        max-width: 1000px;
    }
}

/* ============================================
   AUTHENTICATION PAGES STYLING
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 50%, #0f2847 100%);
    position: relative;
    overflow: hidden;
}

/* Ocean Background Effect */
.ocean-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Waves */
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    opacity: 0.6;
}

.wave1 {
    background: linear-gradient(180deg, transparent 70%, rgba(0, 80, 120, 0.3) 100%);
    animation: wave 15s linear infinite;
    bottom: 0;
}

.wave2 {
    background: linear-gradient(180deg, transparent 60%, rgba(0, 100, 140, 0.2) 100%);
    animation: wave 20s linear infinite reverse;
    bottom: 5%;
}

.wave3 {
    background: linear-gradient(180deg, transparent 50%, rgba(0, 120, 160, 0.15) 100%);
    animation: wave 25s linear infinite;
    bottom: 10%;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Bubbles */
.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), rgba(0, 180, 220, 0.1));
    border-radius: 50%;
    animation: rise 8s infinite ease-in;
    opacity: 0;
}

.bubble:nth-child(1) { left: 10%; width: 40px; height: 40px; animation-delay: 0s; animation-duration: 8s; }
.bubble:nth-child(2) { left: 20%; width: 20px; height: 20px; animation-delay: 1s; animation-duration: 10s; }
.bubble:nth-child(3) { left: 35%; width: 60px; height: 60px; animation-delay: 2s; animation-duration: 12s; }
.bubble:nth-child(4) { left: 50%; width: 30px; height: 30px; animation-delay: 3s; animation-duration: 9s; }
.bubble:nth-child(5) { left: 65%; width: 45px; height: 45px; animation-delay: 4s; animation-duration: 11s; }
.bubble:nth-child(6) { left: 75%; width: 25px; height: 25px; animation-delay: 5s; animation-duration: 8s; }
.bubble:nth-child(7) { left: 85%; width: 50px; height: 50px; animation-delay: 6s; animation-duration: 10s; }
.bubble:nth-child(8) { left: 90%; width: 35px; height: 35px; animation-delay: 7s; animation-duration: 12s; }

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

/* Back to Home Link */
.back-home {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-home:hover {
    color: var(--primary-aqua);
    background: rgba(0, 217, 255, 0.1);
    border-color: rgba(0, 217, 255, 0.3);
    transform: translateX(-5px);
}

/* Auth Container */
.auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
    padding: 2rem;
}

/* Auth Card */
.auth-card {
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(0, 217, 255, 0.15);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(0, 217, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Auth Logo */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.auth-logo .trident-icon {
    font-size: 2.5rem;
}

.auth-logo .brand-name {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Auth Titles */
.auth-title {
    text-align: center;
    color: var(--text-white);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Flash Messages */
.flash-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.flash-message.success {
    background: rgba(0, 200, 150, 0.15);
    border: 1px solid rgba(0, 200, 150, 0.3);
    color: #00c896;
}

.flash-message.error {
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid rgba(255, 80, 80, 0.3);
    color: #ff6b6b;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: var(--primary-aqua);
    font-size: 0.85rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-aqua);
    background: rgba(0, 217, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.15);
}

/* Password Input */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    padding-right: 3.5rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-aqua);
}

/* Auth Button */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-aqua) 0%, var(--secondary-aqua) 100%);
    color: var(--dark-bg);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.4);
    margin-top: 0.5rem;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.5);
}

.auth-btn:active {
    transform: translateY(-1px);
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--text-light);
    opacity: 0.6;
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    padding: 0 1rem;
}

/* Auth Link Button */
.auth-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--primary-aqua);
    border: 2px solid var(--primary-aqua);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-link-btn:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.2);
}

/* Auth Page Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .auth-logo .trident-icon {
        font-size: 2rem;
    }

    .auth-logo .brand-name {
        font-size: 1.4rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .back-home {
        top: 1rem;
        left: 1rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   DASHBOARD PAGE STYLING
   ============================================ */

.dashboard-page {
    min-height: 100vh;
    width: 100%;
}

/* Dashboard Hero */
.dashboard-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    z-index: 10;
}

.dashboard-content {
    max-width: 1200px;
    padding: 2rem;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

/* Dashboard Title - White Hero Text */
.dashboard-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.dashboard-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #ffffff;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* User Info in Navbar */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.user-info i {
    font-size: 1.5rem;
    color: var(--primary-aqua);
}

/* Sign Out Button */
.btn-signout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-signout:hover {
    background: rgba(255, 80, 80, 0.2);
    border-color: rgba(255, 80, 80, 0.5);
    color: #ff6b6b;
}

/* CTA Cards Container */
.cta-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* CTA Card */
.cta-card {
    position: relative;
    background: rgba(10, 22, 40, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(0, 217, 255, 0.15);
    text-decoration: none;
    transition: all 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cta-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 217, 255, 0.2);
}

.cta-card:hover::before {
    opacity: 1;
}

/* CTA Icon */
.cta-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2) 0%, rgba(0, 217, 255, 0.05) 100%);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(0, 217, 255, 0.3);
    transition: all 0.4s ease;
}

.cta-icon i {
    font-size: 2rem;
    color: var(--primary-aqua);
    transition: all 0.4s ease;
}

.cta-card:hover .cta-icon {
    background: linear-gradient(135deg, var(--primary-aqua) 0%, var(--secondary-aqua) 100%);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

.cta-card:hover .cta-icon i {
    color: var(--dark-bg);
}

/* CTA Title */
.cta-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* CTA Description */
.cta-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

/* CTA Arrow */
.cta-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.cta-arrow i {
    color: var(--primary-aqua);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.cta-card:hover .cta-arrow {
    background: var(--primary-aqua);
}

.cta-card:hover .cta-arrow i {
    color: var(--dark-bg);
    transform: translateX(3px);
}

/* Ocean Stats Section */
.ocean-stats {
    position: relative;
    z-index: 10;
    padding: 4rem 2rem;
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 217, 255, 0.1);
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-aqua);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--text-white) 0%, var(--primary-aqua) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* Dashboard Responsive */
@media (max-width: 992px) {
    .cta-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-cards .cta-card:last-child {
        grid-column: span 2;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .cta-cards {
        grid-template-columns: 1fr;
    }

    .cta-cards .cta-card:last-child {
        grid-column: span 1;
        max-width: none;
    }

    .dashboard-content {
        padding: 1.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .navbar-menu {
        gap: 1rem;
    }

    .user-info span {
        display: none;
    }
}

@media (max-width: 480px) {
    .dashboard-hero {
        padding-top: 100px;
    }

    .dashboard-title {
        font-size: 1.8rem;
    }

    .dashboard-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .cta-card {
        padding: 2rem 1.5rem;
    }

    .cta-icon {
        width: 70px;
        height: 70px;
    }

    .cta-icon i {
        font-size: 1.6rem;
    }

    .cta-title {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   SCAN PAGE STYLING
   ============================================ */

.scan-page {
    min-height: 100vh;
    width: 100%;
}

.scan-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 2rem 2rem;
    z-index: 10;
}

.scan-container {
    max-width: 700px;
    width: 100%;
}

/* Scan Header */
.scan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.scan-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.scan-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    opacity: 0.9;
}

/* Scan Card */
.scan-card {
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 217, 255, 0.15);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(0, 217, 255, 0.1);
}

/* Section Labels */
.section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-label i {
    color: var(--primary-aqua);
}

/* Upload Section */
.upload-section {
    margin-bottom: 2rem;
}

.upload-box {
    position: relative;
    border: 2px dashed rgba(0, 217, 255, 0.3);
    border-radius: 16px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 217, 255, 0.02);
    overflow: hidden;
}

.upload-box:hover,
.upload-box.dragover {
    border-color: var(--primary-aqua);
    background: rgba(0, 217, 255, 0.08);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
}

.upload-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.upload-icon i {
    font-size: 2.5rem;
    color: var(--primary-aqua);
}

.upload-text {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
}

.upload-hint {
    color: var(--text-light);
    font-size: 0.9rem;
    opacity: 0.7;
}

.upload-formats {
    color: var(--primary-aqua);
    font-size: 0.8rem;
    background: rgba(0, 217, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-top: 0.5rem;
}

/* Image Preview */
.image-preview {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px;
}

.image-preview img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    max-height: 350px;
    object-fit: contain;
    border-radius: 14px;
    padding: 1rem;
}

.remove-image {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 80, 80, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.remove-image:hover {
    background: #ff4444;
    transform: scale(1.1);
}

/* Location Section */
.location-section {
    margin-bottom: 2rem;
}

.detect-location-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-aqua);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detect-location-btn:hover:not(:disabled) {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--primary-aqua);
}

.detect-location-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.detect-location-btn.detected {
    background: rgba(0, 200, 150, 0.15);
    border-color: rgba(0, 200, 150, 0.5);
    color: #00c896;
}

/* Location Display */
.location-display {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 200, 150, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 200, 150, 0.3);
}

.location-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.location-item i {
    color: #00c896;
    width: 20px;
}

/* Location Loading */
.location-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    color: var(--primary-aqua);
}

.sonar-wave {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-aqua);
    animation: sonarPulse 1.5s ease-out infinite;
}

@keyframes sonarPulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Location Error */
.location-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 80, 80, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 80, 80, 0.3);
    color: #ff6b6b;
    font-size: 0.9rem;
}

/* Scan Button */
.scan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--primary-aqua) 0%, var(--secondary-aqua) 100%);
    color: var(--dark-bg);
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 25px rgba(0, 217, 255, 0.4);
}

.scan-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(0, 217, 255, 0.5);
}

.scan-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.scan-btn-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.scan-btn-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sonar-loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(10, 22, 40, 0.3);
    border-top-color: var(--dark-bg);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Scan Requirements */
.scan-requirements {
    margin-top: 1.5rem;
    text-align: center;
}

.scan-requirements p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
    opacity: 0.7;
}

.scan-requirements i {
    color: var(--primary-aqua);
}

/* Loading Overlay */
.scan-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.sonar-animation {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sonar-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-aqua);
    border-radius: 50%;
    animation: sonarRing 2s ease-out infinite;
}

.sonar-ring:nth-child(2) {
    animation-delay: 0.5s;
}

.sonar-ring:nth-child(3) {
    animation-delay: 1s;
}

@keyframes sonarRing {
    0% {
        transform: scale(0.3);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.sonar-animation > i {
    font-size: 3rem;
    color: var(--primary-aqua);
    animation: fishFloat 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes fishFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.loading-content h3 {
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.loading-content p {
    color: var(--text-light);
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.loading-progress {
    width: 100%;
    height: 4px;
    background: rgba(0, 217, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-aqua), var(--secondary-aqua));
    border-radius: 2px;
    animation: loadingProgress 2s ease-in-out infinite;
}

@keyframes loadingProgress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

/* ============================================
   REPORT PAGE STYLING
   ============================================ */

.report-page {
    min-height: 100vh;
    width: 100%;
}

.report-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 100px 2rem 2rem;
    z-index: 10;
}

.report-container {
    max-width: 1100px;
    width: 100%;
}

/* Report Header */
.report-header {
    text-align: center;
    margin-bottom: 2rem;
}

.report-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 200, 150, 0.15);
    border: 1px solid rgba(0, 200, 150, 0.4);
    border-radius: 50px;
    color: #00c896;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.report-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Report Card */
.report-card {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(0, 217, 255, 0.15);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(0, 217, 255, 0.1);
}

/* Report Image Section */
.report-image-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-image-container {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(0, 217, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.report-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    opacity: 0.7;
}

.image-label i {
    color: var(--primary-aqua);
}

/* Report Details Section */
.report-details-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Species Header */
.species-header {
    border-bottom: 1px solid rgba(0, 217, 255, 0.15);
    padding-bottom: 1rem;
}

.species-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.scientific-name {
    font-size: 1.1rem;
    color: var(--primary-aqua);
    font-style: italic;
    opacity: 0.9;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 217, 255, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 12px;
}

.stat-icon i {
    font-size: 1.3rem;
    color: var(--primary-aqua);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
}

/* Stat Value Colors */
.stat-value.common { color: #00c896; }
.stat-value.rare { color: #ffd700; }
.stat-value.endangered { color: #ff6b6b; }

.stat-value.low-danger { color: #00c896; }
.stat-value.medium-danger { color: #ffd700; }
.stat-value.high-danger { color: #ff6b6b; }

/* Conservation Status */
.conservation-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 217, 255, 0.15);
    color: var(--text-light);
    font-size: 0.95rem;
}

.conservation-status i {
    font-size: 1.2rem;
    color: var(--primary-aqua);
}

.conservation-status.safe {
    background: rgba(0, 200, 150, 0.1);
    border-color: rgba(0, 200, 150, 0.3);
}

.conservation-status.safe i { color: #00c896; }

.conservation-status.vulnerable {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.conservation-status.vulnerable i { color: #ffd700; }

.conservation-status.endangered {
    background: rgba(255, 80, 80, 0.1);
    border-color: rgba(255, 80, 80, 0.3);
}

.conservation-status.endangered i { color: #ff6b6b; }

/* Species Description */
.species-description,
.location-info {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.species-description h3,
.location-info h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.species-description h3 i,
.location-info h3 i {
    color: var(--primary-aqua);
}

.species-description p,
.location-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* Report Disclaimer */
.report-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 200, 100, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 200, 100, 0.3);
}

.report-disclaimer i {
    color: #ffc864;
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.report-disclaimer p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.report-disclaimer strong {
    color: #ffc864;
}

/* Report Actions */
.report-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 200px;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-aqua) 0%, var(--secondary-aqua) 100%);
    color: var(--dark-bg);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.4);
}

.action-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.5);
}

.action-btn.secondary {
    background: transparent;
    color: var(--primary-aqua);
    border: 2px solid rgba(0, 217, 255, 0.4);
}

.action-btn.secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--primary-aqua);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Report Page Responsive */
@media (max-width: 900px) {
    .report-card {
        grid-template-columns: 1fr;
    }

    .report-image-section {
        max-width: 400px;
        margin: 0 auto;
    }

    .report-image-container {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .report-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .species-name {
        font-size: 1.5rem;
    }

    .report-card {
        padding: 1.5rem;
    }
}

/* Scan Page Responsive */
@media (max-width: 600px) {
    .scan-section {
        padding: 90px 1rem 1rem;
    }

    .scan-card {
        padding: 1.5rem;
    }

    .scan-title {
        font-size: 1.8rem;
    }

    .upload-box {
        min-height: 200px;
    }

    .upload-icon {
        width: 60px;
        height: 60px;
    }

    .upload-icon i {
        font-size: 1.8rem;
    }
}
