/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 2rem;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h1 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-logo .tagline {
    font-size: 0.8rem;
    color: #666;
    -webkit-text-fill-color: #666;
    display: block;
    font-weight: 300;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email {
    color: #555;
    font-weight: 500;
    margin-right: 1rem;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-full {
    width: 100%;
    padding: 0.8rem;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    padding: 6rem 2rem;
    text-align: center;
    color: white;
    background: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}
/* This adds a dark blue/purple overlay so your text is readable */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(50, 50, 70, 0.0);
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffa500; /* Vibrant Orange */
    text-shadow: 3px 3px 8px rgba(0,0,0,0.9);
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 1;
    margin-bottom: 2rem;
    color: #ffa500; /* Vibrant Orange */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    color: #ffa500; /* Vibrant Orange */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Services Section */
.services-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Add a white overlay inside the card so your text is still readable */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

/* Make sure the text sits on top of the overlay */
.service-card h3, .service-card p, .service-card .badge, .service-card .sub-services, .service-card .lock-icon {
    position: relative;
    z-index: 2;
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card .badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1rem;
}

.badge-auth {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-free {
    background: #fff3e0;
    color: #e65100;
}

.service-card .sub-services {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.service-card .sub-service-tag {
    padding: 0.2rem 0.6rem;
    background: #f0f0f0;
    border-radius: 50px;
    font-size: 0.75rem;
    color: #555;
}

.service-card .lock-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #999;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2.5rem;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    position: relative;
    animation: slideDown 0.3s ease;
}

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

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.info-box {
    background: #e3f2fd;
    padding: 0.8rem;
    border-radius: 10px;
    color: #1565c0;
    font-size: 0.9rem;
}

.info-box i {
    margin-right: 0.5rem;
}

.form-footer {
    margin-top: 1.2rem;
    text-align: center;
    color: #666;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

.error-message {
    color: #e74c3c;
    margin-top: 1rem;
    padding: 0.5rem;
    background: #fde8e8;
    border-radius: 8px;
    display: none;
}

.result-message {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    display: none;
}

.result-message.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
}

.result-message.error {
    display: block;
    background: #fde8e8;
    color: #c62828;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 0.5rem 0;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }
}