/**
 * Shine Yourself - Main Stylesheet
 *
 * This file contains all global styles for the Shine Yourself website.
 * It includes CSS custom properties (variables), layout components,
 * animations, and responsive design rules.
 *
 * @package ShineYourself
 * @version 1.0
 */

/**
 * CSS Custom Properties
 * Centralized theming variables for consistent design
 */
:root {
    --bg-dark: #0f0f12;
    --bg-light: #f9f9fb;
    --accent-yellow: #e2f952;
    --accent-yellow-hover: #cbdc3a;
    --text-white: #ffffff;
    --text-muted: #a4a4b2;
    --text-dark: #1a1a21;
    --border-dark: #23232a;
    --card-dark: #16161c;
}

/**
 * Base Styles
 */
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
}

.text-center {
    text-align: center;
}

/**
 * Navigation Styles
 * Sticky header with backdrop blur effect
 */
.main-header {
    background-color: rgba(15, 15, 18, 0.95);
    border-bottom: 1px solid var(--border-dark);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--text-white);
}

/**
 * Buttons and Call-to-Action Elements
 */
.nav-menu a.btn-scan,
.cta-button,
.badge {
    background-color: var(--accent-yellow);
    color: var(--text-dark) !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    border: none;
}

.cta-button {
    width: 100%;
    font-size: 16px;
    cursor: pointer;
    display: block;
    box-sizing: border-box;
}

.inline-btn {
    width: auto;
    display: inline-block;
    text-decoration: none;
}

/**
 * Hero Section
 */
.hero-section {
    padding: 100px 20px;
    background: radial-gradient(circle at top, #1c1b24 0%, var(--bg-dark) 70%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight-alt {
    color: var(--accent-yellow);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/**
 * Alternating Background Sections
 */
.section-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 80px 20px;
}

.section-light .feature-card {
    background: white;
    border-color: #e1e1e8;
    color: var(--text-dark);
}

.section-light .feature-card h3 {
    color: var(--text-dark);
}

.section-light .feature-card p {
    color: #555566;
}

/**
 * Grid and Card Components
 */
.features-grid {
    max-width: 1100px;
    margin: 60px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.feature-card {
    background-color: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-yellow);
}

.feature-card h3 {
    margin-top: 0;
    font-size: 20px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 0;
}

.metric-highlight {
    display: block;
    color: var(--accent-yellow);
    font-size: 28px;
    font-weight: 800;
    margin-top: 15px;
}

/**
 * Input and Form Controls
 */
.form-container-box {
    max-width: 460px;
    margin: 60px auto;
    padding: 40px;
    border-radius: 12px;
    box-sizing: border-box;
}

.dark-card {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
}

.standard-form input,
.standard-form select,
.standard-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-dark);
    background: #1f1f27;
    color: white;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
}

.standard-form input:focus,
.standard-form select:focus {
    border-color: var(--accent-yellow);
    outline: none;
}

/**
 * Pricing Plan Components
 */
.pricing-deck {
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 50px auto;
    gap: 25px;
    padding: 0 20px;
}

.pricing-card {
    flex: 1;
    min-width: 280px;
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    padding: 40px 30px;
    border-radius: 12px;
    position: relative;
}

.popular-card {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 25px rgba(226, 249, 82, 0.1);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    padding: 5px 15px;
}

.price {
    font-size: 44px;
    font-weight: 800;
    color: var(--accent-yellow);
    margin: 15px 0;
}

.price span {
    font-size: 16px;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.features-list li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.plan-btn {
    display: block;
    text-align: center;
    background: #23232a;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.2s;
}

.popular-card .plan-btn {
    background: var(--accent-yellow);
    color: var(--text-dark);
}

/**
 * Score Circle Display
 * Used for risk assessment results
 */
.score-circle-display {
    width: 130px;
    height: 130px;
    line-height: 130px;
    border-radius: 50%;
    border: 6px solid var(--accent-yellow);
    font-size: 46px;
    font-weight: 800;
    color: var(--accent-yellow);
    margin: 40px auto;
    box-shadow: 0 0 20px rgba(226, 249, 82, 0.15);
}

.vulnerability-warning {
    max-width: 550px;
    margin: 30px auto;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

/**
 * Notification Banners
 */
.alert {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
}

.alert-error {
    background: #fff0f0;
    color: #e74c3c;
}

.alert-success {
    background: #f0fff4;
    color: #2ecc71;
}

/**
 * Footer Styles
 */
.main-footer {
    background: #0b0b0d;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border-dark);
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: white;
}

/**
 * Mobile Navigation (Hamburger Menu)
 */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.hamburger {
    display: none !important;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: transparent !important;
    border: none !important;
    padding: 10px;
    outline: none;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-white) !important;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0 !important;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/**
 * Responsive: Tablet and Mobile (≤ 1150px)
 */
@media (max-width: 1150px) {
    .hamburger {
        display: flex !important;
    }

    .nav-menu {
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        background: var(--bg-dark) !important;
        padding: 20px !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        border-bottom: 1px solid var(--border-dark) !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
        z-index: 9999 !important;
        margin: 0 !important;
    }

    .nav-menu.open {
        display: flex !important;
    }

    .nav-menu a {
        margin: 8px 0 !important;
        padding: 10px 15px !important;
        border-radius: 6px !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 14px !important;
        display: block !important;
        color: var(--text-muted);
    }

    .nav-menu a:hover {
        background: var(--border-dark) !important;
        color: var(--text-white);
    }

    .header-container {
        position: relative !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .nav-menu a.btn-scan,
    .nav-menu a.btn-login,
    .nav-menu a.btn-dashboard,
    .nav-menu a.btn-logout {
        width: 100% !important;
        text-align: center !important;
        margin: 5px 0 !important;
        padding: 12px 20px !important;
    }
}

/**
 * Responsive: Mobile (≤ 768px)
 */
@media (max-width: 768px) {
    .hero-section p,
    .hero-subtitle,
    [style*="max-width: 700px"],
    [style*="max-width: 800px"] {
        max-width: 100% !important;
        padding: 0 15px !important;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/**
 * Responsive: Desktop (≥ 1151px)
 */
@media (min-width: 1151px) {
    .hamburger {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-bottom: none !important;
        width: auto !important;
    }

    .nav-menu a {
        margin-left: 20px !important;
        width: auto !important;
        padding: 10px 0 !important;
        text-align: left !important;
        display: inline-block !important;
    }

    .nav-menu a.btn-scan,
    .nav-menu a.btn-login,
    .nav-menu a.btn-dashboard,
    .nav-menu a.btn-logout {
        width: auto !important;
        padding: 10px 20px !important;
        margin: 0 0 0 20px !important;
    }
}

/**
 * Force eliminate ghost white line on mobile
 */
@media (max-width: 1150px) {
    .logo,
    .logo img {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    #hamburger,
    .hamburger {
        background: transparent !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .header-container,
    .main-header {
        box-shadow: none !important;
    }
}

/**
 * Animations
 * Fade-in effects for page elements
 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        text-shadow: 0 0 20px rgba(226, 249, 82, 0.1);
    }
    50% {
        text-shadow: 0 0 40px rgba(226, 249, 82, 0.25);
    }
    100% {
        text-shadow: 0 0 20px rgba(226, 249, 82, 0.1);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}
.animate-delay-2 {
    animation-delay: 0.2s;
}
.animate-delay-3 {
    animation-delay: 0.3s;
}
.animate-delay-4 {
    animation-delay: 0.4s;
}
.animate-delay-5 {
    animation-delay: 0.5s;
}

/**
 * Brand Styling
 */
.brand-highlight {
    color: #e2f952;
    font-weight: 700;
}

.brand-glow {
    text-shadow: 0 0 30px rgba(226, 249, 82, 0.15);
    transition: text-shadow 0.3s ease;
}

.brand-glow:hover {
    text-shadow: 0 0 50px rgba(226, 249, 82, 0.30);
}

/**
 * Card and Button Hover Effects
 */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: #e2f952;
    box-shadow: 0 10px 40px rgba(226, 249, 82, 0.08);
}

.cta-button {
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(226, 249, 82, 0.25);
}

/**
 * Business Features Grid
 * Four cards in one row on desktop
 */
.business-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

@media (max-width: 992px) {
    .business-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .business-features-grid {
        grid-template-columns: 1fr;
    }
}

/**
 * Four Card Grid
 * Used for sections with exactly 4 cards
 */
.four-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

@media (max-width: 992px) {
    .four-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .four-card-grid {
        grid-template-columns: 1fr;
    }
}

/**
 * Glassmorphism Card
 * Creates a frosted glass effect for modern UI
 */
.glass-card {
    background: rgba(22, 22, 28, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 30px;
    margin: 20px auto;
    max-width: 550px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-card h3 {
    color: var(--accent-yellow);
    margin-top: 0;
    font-size: 1.1rem;
}

.glass-card h4 {
    color: var(--text-white);
    margin-top: 0;
    font-size: 0.95rem;
}

.glass-card .glass-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 20px 0;
}

.glass-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/**
 * Risk Breakdown Bullets
 * Professional colored indicators for risk levels
 */
.risk-bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.risk-bullet-high {
    background: #e74c3c;
}
.risk-bullet-medium {
    background: #f39c12;
}
.risk-bullet-good {
    background: #2ecc71;
}

.risk-item {
    padding: 4px 0;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

.risk-item-high {
    color: #e74c3c;
}
.risk-item-medium {
    color: #f39c12;
}
.risk-item-good {
    color: #2ecc71;
}

/**
 * Recommendation Items
 * Professional layout for risk breakdown points
 */
.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin: 12px 0;
}

.recommendation-text {
    flex: 1;
}

.recommendation-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 3px;
}

.recommendation-text p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 14px;
}

/**
 * Colored Dots for Risk Indicators
 */
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.dot-green {
    background: #2ecc71;
}
.dot-orange {
    background: #f39c12;
}
.dot-red {
    background: #e74c3c;
}

/**
 * Brand Logo Styling
 * Professional gradient text with shimmer animation
 */
.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #e2f952 0%, #ffd700 60%, #e2f952 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.02);
}

/**
 * Shimmer Animation for Brand Name
 */
@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
/**
 * AI Response Animation
 * Smooth slide-in effect for Gemini responses
 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-response {
    animation: slideIn 0.4s ease;
}