/* Neural Network Background Canvas */
#networkCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0f1419 0%, #1a237e 50%, #283593 100%);
}

:root {
    --primary-color: #64ffda;
    --primary-dark: #40c4ff;
    --secondary-color: rgba(255, 255, 255, 0.7);
    --accent-color: #8b5cf6;
    --light-color: rgba(255, 255, 255, 0.1);
    --dark-color: #ffffff;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --border-color: rgba(100, 255, 218, 0.2);
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: transparent;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Enhanced buttons with proper contrast */
.primary-button, .cta-button, .secondary-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.primary-button, .cta-button {
    background: linear-gradient(45deg, #64ffda, #40c4ff);
    color: #0f1419 !important;
    box-shadow: 0 8px 32px rgba(100, 255, 218, 0.4);
    font-weight: 700;
}

.primary-button::before, .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.primary-button:hover::before, .cta-button:hover::before {
    left: 100%;
}

.primary-button:hover, .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(100, 255, 218, 0.6);
    color: #0f1419 !important;
    text-decoration: none;
    background: linear-gradient(45deg, #40c4ff, #64ffda);
}

.cta-button {
    padding: 0.625rem 1.25rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
}

.secondary-button {
    background: transparent;
    color: #64ffda !important;
    border: 2px solid #64ffda;
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.2);
}

.secondary-button:hover {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda !important;
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.3);
}

/* Form Elements */
/* Form Elements - SAFARI COMPATIBLE */
input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    
    /* Safari fallback */
    background: rgba(25, 30, 40, 0.9);
    
    /* Modern browsers */
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

/* Safari-specific form override */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        input, select, textarea {
            background: rgba(20, 25, 35, 0.95) !important;
            -webkit-backdrop-filter: blur(8px) !important;
            color: #ffffff !important;
        }
    }
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
    background: rgba(255, 255, 255, 0.15) !important;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Radio and Checkbox Styles */
.radio-group, .checkbox-group {
    margin-bottom: 1.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.radio-option input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
}

.radio-option label {
    margin-bottom: 0;
}

/* Messages */
.message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.375rem;
    backdrop-filter: blur(10px);
}

.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.hidden {
    display: none;
}

/* Dark header with glassmorphism */
.header {
    background: rgba(15, 20, 25, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: #64ffda;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 2rem;
}

.main-nav ul li a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.main-nav ul li a:hover {
    color: #64ffda;
    text-shadow: 0 0 8px rgba(100, 255, 218, 0.4);
}

/* Dark hero section */
.hero {
    padding: 7rem 0 7rem;
    background: rgba(15, 20, 25, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

/* Glowing animated overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(100, 255, 218, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(64, 196, 255, 0.1) 0%, transparent 50%);
    animation: neuralPulse 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes neuralPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.75rem;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
    background: linear-gradient(45deg, #ffffff, #64ffda, #40c4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Replace your existing hero buttons CSS with this updated version */

/* Hero buttons container */
.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Make both buttons identical in style */
.hero-buttons .primary-button,
.hero-buttons .secondary-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700; /* Match the primary button weight */
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-width: 140px;
    
    /* Make both buttons use the same primary styling */
    background: linear-gradient(45deg, #64ffda, #40c4ff) !important;
    color: #0f1419 !important;
    box-shadow: 0 8px 32px rgba(100, 255, 218, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
}

/* Add the shine effect to both buttons */
.hero-buttons .primary-button::before,
.hero-buttons .secondary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.hero-buttons .primary-button:hover::before,
.hero-buttons .secondary-button:hover::before {
    left: 100%;
}

/* Make both buttons have identical hover effects */
.hero-buttons .primary-button:hover,
.hero-buttons .secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(100, 255, 218, 0.6);
    color: #0f1419 !important;
    text-decoration: none;
    background: linear-gradient(45deg, #40c4ff, #64ffda) !important;
}

/* Move the Contact button slightly to the right */
.hero-buttons .secondary-button {
    margin-left: 0.5rem;
}

.hero-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image svg {
    width: 100%;
    max-width: 600px;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1));
}

/* Dark sections with glassmorphism */
.features,
.how-it-works,
.benefits {
    background: rgba(15, 20, 25, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    padding: 8rem 0;
}

.features {
    padding: 8rem 0 6rem;
}

/* Update section headings for dark theme */
.section-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 5rem;
    color: #ffffff;
    background: linear-gradient(45deg, #ffffff, #64ffda);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(100, 255, 218, 0.2);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

/* Dark feature cards with neural glow */
.feature-card {
    padding: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 255, 218, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #64ffda, #40c4ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(100, 255, 218, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-color: #64ffda;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* How It Works Section */
.how-it-works {
    background: rgba(15, 20, 25, 0.4);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 4rem;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(45deg, #64ffda, #40c4ff);
    color: #0f1419;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 2rem;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.step-content p {
    color: rgba(255, 255, 255, 0.8);
}

/* Benefits Section */
.benefits {
    background: rgba(15, 20, 25, 0.4);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.benefit {
    padding: 2rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    position: relative;
    color: #ffffff;
}

.benefit:hover {
    border-color: #64ffda;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.2);
}

.benefit h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #64ffda;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.benefit p {
    color: rgba(255, 255, 255, 0.8);
}

/* Enhanced CTA section */
.cta-section {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(100, 255, 218, 0.3);
    padding: 5rem 0;
    text-align: center;
    color: white;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(100, 255, 218, 0.2) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(64, 196, 255, 0.2) 0%, transparent 50%);
    animation: floatingOrbs 20s ease-in-out infinite;
}

@keyframes floatingOrbs {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-10px, -10px) rotate(90deg); }
    50% { transform: translate(10px, -5px) rotate(180deg); }
    75% { transform: translate(-5px, 10px) rotate(270deg); }
}

.cta-section h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .primary-button {
    background: linear-gradient(45deg, #64ffda, #40c4ff);
    color: #0f1419 !important;
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.5);
}

.cta-section .primary-button:hover {
    background: linear-gradient(45deg, #40c4ff, #64ffda);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.7);
    color: #0f1419 !important;
}

/* Enhanced footer */
.footer {
    padding: 4rem 0 2rem;
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(100, 255, 218, 0.2);
    color: #ffffff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #64ffda;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
}

.footer-links-column {
    margin-left: 4rem;
}

.footer-links-column h3 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.footer-links-column ul li {
    margin-bottom: 0.75rem;
}

.footer-links-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links-column ul li a:hover {
    color: #64ffda;
    text-shadow: 0 0 8px rgba(100, 255, 218, 0.4);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* SVG Dashboard Styling */
.placeholder-svg {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.placeholder-svg:hover {
    transform: translateY(-5px);
}

/* Chat Header Styling */
.chat-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 20, 25, 0.4);
    backdrop-filter: blur(15px);
}

.chat-header-content {
    display: flex;
    flex-direction: column;
}

.chat-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.chat-subtitle {
    color: var(--secondary-color);
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.clear-chat-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--secondary-color);
}

.clear-chat-btn:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Navigation Spacing Fix */
.app-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
}

.app-nav .nav-link,
.app-nav a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    padding: 8px 12px !important;
    margin: 0 !important;
    margin-right: 30px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

.app-nav .nav-link:last-child,
.app-nav a:last-child {
    margin-right: 0 !important;
}

.app-nav .nav-link:hover,
.app-nav a:hover {
    background-color: rgba(100, 255, 218, 0.1) !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.app-nav .logout-link {
    color: var(--error-color) !important;
    font-weight: 600 !important;
}

.app-nav .logout-link:hover {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #dc2626 !important;
}

.app-nav .admin-link {
    color: var(--accent-color) !important;
    font-weight: 600 !important;
}

.app-nav .admin-link:hover {
    background-color: rgba(139, 92, 246, 0.1) !important;
    color: #7c3aed !important;
}

.app-nav ul {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

.app-nav ul li {
    margin: 0 !important;
    margin-right: 30px !important;
    list-style: none !important;
}

.app-nav ul li:last-child {
    margin-right: 0 !important;
}

.app-nav ul li a {
    margin: 0 !important;
}

/* Subtle animations for page elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .benefit, .step {
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.benefit:nth-child(2) { animation-delay: 0.1s; }
.benefit:nth-child(3) { animation-delay: 0.2s; }
.benefit:nth-child(4) { animation-delay: 0.3s; }

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        margin-top: 2rem;
    }
    
    .footer-links-column {
        margin-left: 0;
        margin-right: 2rem;
    }
}

@media (max-width: 767.98px) {
    .header-content {
        flex-direction: column;
    }
    
    .main-nav {
        margin: 1rem 0;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .main-nav ul li {
        margin: 0 1rem;
    }
    
    .cta-button {
        margin-top: 1rem;
    }

    /* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .hero-buttons .primary-button,
    .hero-buttons .secondary-button {
        width: 100%;
        text-align: center;
        margin-left: 0; /* Remove the margin on mobile */
    }
}

/* Extra small mobile */
@media (max-width: 479.98px) {
    .hero-buttons .primary-button,
    .hero-buttons .secondary-button {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}
    
    .hero {
        padding: 7rem 0 3rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-heading {
        font-size: 1.75rem;
        margin-bottom: 3.5rem;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .footer-links-column {
        margin-bottom: 2rem;
        margin-right: 0;
    }
    
    .features,
    .how-it-works,
    .benefits,
    .cta-section {
        padding: 6rem 0;
    }
    
    .app-nav .nav-link,
    .app-nav a,
    .app-nav ul li {
        margin-right: 20px !important;
        font-size: 14px !important;
        padding: 6px 10px !important;
    }
    
    .app-nav .nav-link:last-child,
    .app-nav a:last-child,
    .app-nav ul li:last-child {
        margin-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .app-nav {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    
    .app-nav .nav-link,
    .app-nav a,
    .app-nav ul li {
        margin-right: 15px !important;
        margin-bottom: 5px !important;
    }
    
    .hero::before {
        animation-duration: 10s;
    }
    
    .feature-card, .benefit {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
}

/* MOBILE FIXES TO ADD TO YOUR MAIN STYLES.CSS */

/* Improved mobile responsive adjustments */
@media (max-width: 767.98px) {
    /* Header mobile fixes */
    .header {
        position: fixed;
        z-index: 1000;
        background: rgba(15, 20, 25, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }
    
    .header-content {
        flex-direction: column !important;
        padding: 0.75rem 0 !important;
        text-align: center !important;
    }
    
    .logo {
        margin-bottom: 0.75rem !important;
    }
    
    .logo h1 {
        font-size: 1.25rem !important;
        margin: 0 !important;
    }
    
    .main-nav {
        margin: 0 !important;
    }
    
    .main-nav ul {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-nav ul li {
        margin: 0 !important;
        list-style: none !important;
    }
    
    .main-nav ul li a {
        font-size: 0.8125rem !important;
        padding: 0.375rem 0.75rem !important;
        border-radius: 0.25rem !important;
        white-space: nowrap !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
    }
    
    .main-nav ul li a:hover {
        background: rgba(100, 255, 218, 0.1) !important;
        color: #64ffda !important;
    }
    
    /* App navigation mobile fixes */
    .app-nav {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        justify-content: center !important;
    }
    
    .app-nav .nav-link,
    .app-nav a,
    .app-nav ul li {
        margin-right: 0.75rem !important;
        margin-bottom: 0.25rem !important;
        font-size: 0.8125rem !important;
        padding: 0.375rem 0.75rem !important;
    }
    
    .app-nav .nav-link:last-child,
    .app-nav a:last-child,
    .app-nav ul li:last-child {
        margin-right: 0 !important;
    }
    
    /* Ensure body has proper spacing for fixed header */
    body {
        padding-top: 0;
    }
    
    /* Container mobile spacing */
    .container {
        padding: 0 0.75rem;
        max-width: 100%;
    }
    
    /* Hero section mobile adjustments */
    .hero {
        padding: 5rem 0 3rem !important;
        margin-top: 0;
    }
    
    .hero-text h1 {
        font-size: 1.875rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-text p {
        font-size: 1.125rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Section spacing mobile */
    .features,
    .how-it-works,
    .benefits,
    .cta-section {
        padding: 4rem 0 !important;
    }
    
    .section-heading {
        font-size: 1.875rem !important;
        margin-bottom: 3rem !important;
    }
    
    /* Feature cards mobile */
    .features-grid {
        gap: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    /* Benefits grid mobile */
    .benefits-grid {
        gap: 2rem;
    }
    
    .benefit {
        padding: 1.5rem;
    }
    
    /* Steps mobile */
    .step {
        flex-direction: column !important;
        margin-bottom: 3rem !important;
    }
    
    .step-number {
        margin-bottom: 1rem !important;
        margin-right: 0 !important;
        align-self: flex-start;
    }
    
    /* CTA section mobile */
    .cta-section h2 {
        font-size: 1.875rem !important;
    }
    
    .cta-section p {
        font-size: 1.125rem !important;
    }
    
    /* Footer mobile */
    .footer-content {
        flex-direction: column !important;
    }
    
    .footer-links {
        flex-direction: column !important;
        margin-top: 2rem !important;
    }
    
    .footer-links-column {
        margin-left: 0 !important;
        margin-bottom: 2rem !important;
        margin-right: 0 !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 479.98px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .header-content {
        padding: 0.5rem 0 !important;
    }
    
    .logo h1 {
        font-size: 1.125rem !important;
    }
    
    .main-nav ul li a {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    .app-nav .nav-link,
    .app-nav a {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
        margin-right: 0.5rem !important;
    }
    
    .hero-text h1 {
        font-size: 1.5rem !important;
    }
    
    .hero-text p {
        font-size: 1rem !important;
    }
    
    .section-heading {
        font-size: 1.5rem !important;
    }
    
    .feature-card,
    .benefit {
        padding: 1.25rem 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem !important;
    }
    
    .cta-section p {
        font-size: 1rem !important;
    }
}

/* Landscape mobile orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
    .header-content {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.5rem 0 !important;
    }
    
    .logo {
        margin-bottom: 0 !important;
    }
    
    .main-nav ul {
        flex-direction: row !important;
        gap: 1rem !important;
    }
    
    .hero {
        padding: 3rem 0 2rem !important;
    }
    
    .features,
    .how-it-works,
    .benefits,
    .cta-section {
        padding: 3rem 0 !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .benefit:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .primary-button:hover,
    .cta-button:hover,
    .secondary-button:hover {
        transform: none;
    }
    
    .main-nav ul li a:hover {
        background: rgba(100, 255, 218, 0.1) !important;
    }
}

/* MOBILE HEADER FIX - Add this to your styles.css */

/* Desktop - header is fixed but content accounts for it */
body {
    padding-top: 80px; /* Adjust based on your header height */
}

/* Mobile specific fixes */
@media (max-width: 767.98px) {
    /* Calculate mobile header height and add padding */
    body {
        padding-top: 120px !important; /* Increased for mobile header */
    }
    
    /* Login page specific fixes */
    .login-section {
        min-height: calc(100vh - 140px) !important;
        padding-top: 1rem !important;
        margin-top: 0 !important;
    }
    
    /* Hero section - ensure it's not cut off */
    .hero {
        padding-top: 2rem !important;
        margin-top: 0 !important;
    }
    
    /* Header mobile height calculation */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background: rgba(15, 20, 25, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(100, 255, 218, 0.2) !important;
    }
    
    .header-content {
        flex-direction: column !important;
        padding: 0.75rem 0 !important;
        text-align: center !important;
    }
    
    .logo {
        margin-bottom: 0.5rem !important;
    }
    
    .logo h1 {
        font-size: 1.25rem !important;
        margin: 0 !important;
    }
    
    .main-nav {
        margin: 0 !important;
    }
    
    .main-nav ul {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-nav ul li {
        margin: 0 !important;
    }
    
    .main-nav ul li a {
        font-size: 0.8125rem !important;
        padding: 0.25rem 0.5rem !important;
        border-radius: 0.25rem !important;
        white-space: nowrap !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: none !important;
    }
}

/* Extra small mobile */
@media (max-width: 479.98px) {
    body {
        padding-top: 100px !important;
    }
    
    .login-section {
        min-height: calc(100vh - 120px) !important;
        padding-top: 0.5rem !important;
    }
    
    .header-content {
        padding: 0.5rem 0 !important;
    }
    
    .logo {
        margin-bottom: 0.25rem !important;
    }
    
    .logo h1 {
        font-size: 1.125rem !important;
    }
    
    .main-nav ul li a {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.375rem !important;
    }
}

/* Landscape orientation - keep header compact */
@media (max-width: 767.98px) and (orientation: landscape) {
    body {
        padding-top: 70px !important;
    }
    
    .login-section {
        min-height: calc(100vh - 90px) !important;
    }
    
    .header-content {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.5rem 0 !important;
    }
    
    .logo {
        margin-bottom: 0 !important;
    }
    
    .main-nav ul {
        flex-direction: row !important;
        gap: 1rem !important;
    }
}

/* MOBILE CHATBOX ENHANCEMENT - Add to your styles.css */

/* Mobile chatbox improvements */
@media (max-width: 767.98px) {
    /* Main chat container */
    .chat-container,
    .pr-assistant-container,
    .assistant-container {
        width: 95% !important;
        max-width: none !important;
        margin: 1rem auto !important;
        padding: 1rem !important;
        border-radius: 0.75rem !important;
    }
    
    /* PR Pro Assistant header */
    .chat-header,
    .assistant-header {
        padding: 1.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    .chat-title,
    .assistant-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.3 !important;
    }
    
    .chat-subtitle,
    .assistant-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    /* Chat message area */
    .chat-messages,
    .message-area {
        min-height: 300px !important;
        max-height: 400px !important;
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 0.5rem !important;
        overflow-y: auto !important;
    }
    
    /* Individual chat messages */
    .chat-message,
    .message {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        border-radius: 0.75rem !important;
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    .user-message {
        background: rgba(100, 255, 218, 0.15) !important;
        border: 1px solid rgba(100, 255, 218, 0.3) !important;
        margin-left: 2rem !important;
    }
    
    .assistant-message,
    .bot-message {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        margin-right: 2rem !important;
    }
    
    /* Chat input area */
    .chat-input-container,
    .input-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 0.75rem !important;
        border: 1px solid rgba(100, 255, 218, 0.2) !important;
    }
    
    /* Text input field */
    .chat-input,
    .message-input,
    textarea[placeholder*="Draft"] {
        width: 100% !important;
        min-height: 120px !important;
        padding: 1rem !important;
        font-size: 16px !important; /* Prevents iOS zoom */
        border: 1px solid rgba(100, 255, 218, 0.3) !important;
        border-radius: 0.5rem !important;
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        color: #ffffff !important;
        font-family: 'Inter', sans-serif !important;
        resize: vertical !important;
        line-height: 1.5 !important;
        box-sizing: border-box !important;
    }
    
    .chat-input:focus,
    .message-input:focus,
    textarea[placeholder*="Draft"]:focus {
        outline: none !important;
        border-color: #64ffda !important;
        box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.2) !important;
        background: rgba(255, 255, 255, 0.15) !important;
    }
    
    .chat-input::placeholder,
    .message-input::placeholder,
    textarea[placeholder*="Draft"]::placeholder {
        color: rgba(255, 255, 255, 0.6) !important;
        font-size: 0.95rem !important;
    }
    
    /* Send button */
    .send-button,
    .chat-send-btn,
    button[type="submit"] {
        width: 100% !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        background: linear-gradient(45deg, #64ffda, #40c4ff) !important;
        color: #0f1419 !important;
        border: none !important;
        border-radius: 0.5rem !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 8px 25px rgba(100, 255, 218, 0.3) !important;
        min-height: 48px !important; /* Touch target */
    }
    
    .send-button:hover,
    .chat-send-btn:hover,
    button[type="submit"]:hover {
        background: linear-gradient(45deg, #40c4ff, #64ffda) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 12px 35px rgba(100, 255, 218, 0.5) !important;
    }
    
    /* Action buttons (trash, menu) */
    .action-buttons,
    .chat-actions {
        display: flex !important;
        gap: 0.75rem !important;
        justify-content: flex-end !important;
        margin-bottom: 1rem !important;
    }
    
    .action-button,
    .clear-chat-btn {
        padding: 0.75rem !important;
        min-width: 48px !important;
        min-height: 48px !important;
        border-radius: 0.5rem !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: rgba(255, 255, 255, 0.8) !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .action-button:hover,
    .clear-chat-btn:hover {
        background: rgba(255, 255, 255, 0.15) !important;
        color: #64ffda !important;
        border-color: #64ffda !important;
    }
    
    /* Welcome message styling */
    .welcome-message {
        background: rgba(100, 255, 218, 0.1) !important;
        border: 1px solid rgba(100, 255, 218, 0.3) !important;
        padding: 1rem !important;
        border-radius: 0.75rem !important;
        margin-bottom: 1rem !important;
        font-size: 0.95rem !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    /* Responsive adjustments for very small screens */
    @media (max-width: 479.98px) {
        .chat-container,
        .pr-assistant-container,
        .assistant-container {
            width: 98% !important;
            margin: 0.5rem auto !important;
            padding: 0.75rem !important;
        }
        
        .chat-input,
        .message-input,
        textarea[placeholder*="Draft"] {
            min-height: 100px !important;
            padding: 0.875rem !important;
        }
        
        .send-button,
        .chat-send-btn {
            padding: 0.875rem 1rem !important;
            font-size: 0.95rem !important;
        }
        
        .chat-title,
        .assistant-title {
            font-size: 1.25rem !important;
        }
        
        .chat-subtitle,
        .assistant-subtitle {
            font-size: 0.9rem !important;
        }
    }
}

/* Landscape orientation adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    .chat-messages,
    .message-area {
        max-height: 250px !important;
    }
    
    .chat-input,
    .message-input,
    textarea[placeholder*="Draft"] {
        min-height: 80px !important;
    }
}
