/* ===================================
   CYBERSECURITY CLARITY - MAIN STYLES
   Brand Colors: Black (#000000), Yellow (#FFD700), White (#FFFFFF)
   =================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: #000000;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: #333;
}

a {
    color: #FFD700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===================================
   NAVIGATION
   =================================== */
.nav {
    background-color: #000000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFD700;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
    color: #ffffff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
}

.nav-links a:hover {
    color: #FFD700;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #FFD700;
    color: #000000;
}

.btn-primary:hover {
    background-color: #FFC700;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.btn-primary:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background-color: #000000;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.btn-secondary:hover {
    background-color: #1a1a1a;
    text-decoration: none;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}

.btn-full {
    width: 100%;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    color: #FFD700;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: white;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #FFD700;
    opacity: 0.9;
}

/* ===================================
   SECTIONS
   =================================== */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #000000;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: -1.5rem auto 3rem;
}

.bg-light {
    background-color: #f8f8f8;
}

.bg-primary {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
}

.text-center {
    text-align: center;
}

/* ===================================
   FEATURE CARDS - Single Row Layout
   =================================== */
.features-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #FFD700;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #000000;
}

.feature-card p {
    font-size: 0.9rem;
    color: #666;
}

/* ===================================
   STEPS GRID
   =================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #FFD700;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.95rem;
    color: #666;
}

/* ===================================
   CERTIFICATE PREVIEW
   =================================== */
.certificate-preview {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.certificate-mockup {
    background: #ffffff;
    border: 3px solid #FFD700;
    border-radius: 12px;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.certificate-mockup h3 {
    color: #FFD700;
    margin-bottom: 1.5rem;
}

.certificate-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.certificate-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin: 1rem 0;
}

.certificate-date {
    font-size: 0.9rem;
    color: #888;
    margin-top: 1.5rem;
}

/* ===================================
   QUIZ STYLES
   =================================== */
.quiz-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #FFD700;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.progress-bar {
    background-color: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #FFD700 0%, #FFC700 100%);
    height: 100%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.question-card {
    margin-bottom: 2rem;
}

.question-text {
    font-size: 1.3rem;
    color: #000000;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.category-badge {
    display: inline-block;
    background-color: #FFD700;
    color: #000000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.option-btn:hover {
    border-color: #FFD700;
    background-color: #fffdf0;
}

.option-btn.selected {
    border-color: #FFD700;
    background-color: #FFD700;
    color: #000000;
    font-weight: 600;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* ===================================
   RESULTS PAGE STYLES
   =================================== */
.results-container {
    max-width: 900px;
    margin: 2rem auto;
}

.score-display {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    border: 3px solid #FFD700;
}

.score-number {
    font-size: 4rem;
    font-weight: 700;
    margin: 1rem 0;
    color: #FFD700;
}

.score-label {
    font-size: 1.2rem;
    opacity: 0.95;
}

.category-scores {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #FFD700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.category-item {
    margin-bottom: 1.5rem;
}

.category-name {
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.category-bar {
    background-color: #e0e0e0;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.category-bar-fill {
    background: linear-gradient(90deg, #FFD700 0%, #FFC700 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    color: #000000;
    font-size: 0.85rem;
    font-weight: 600;
    transition: width 0.5s ease;
}

.feedback-section {
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 2px solid #FFD700;
}

.feedback-section h3 {
    margin-bottom: 1rem;
    color: #000000;
}

.video-section {
    margin: 2rem 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Certificate Capture Styles */
.certificate-section {
    background: white;
    padding: 3rem;
    border: 3px solid #FFD700;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.certificate-section h2 {
    color: #FFD700;
    margin-bottom: 1rem;
}

.certificate-user-name {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin: 1.5rem 0;
}

.certificate-score-text {
    font-size: 1.5rem;
    color: #333;
    margin: 1rem 0;
}

.certificate-date {
    color: #888;
    margin-top: 1.5rem;
}

.certificate-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Email Form */
.email-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #FFD700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 2rem 0;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
}

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

.form-message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===================================
   RESOURCES PAGE
   =================================== */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #FFD700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.resource-card h3 {
    margin-bottom: 1rem;
    color: #000000;
}

.resource-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* ===================================
   ABOUT PAGE STYLES
   =================================== */
.about-hero {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.about-hero h1 {
    color: #FFD700;
    margin-bottom: 0.5rem;
}

.about-hero .credentials {
    font-size: 1.1rem;
    color: #FFD700;
    opacity: 0.9;
}

.about-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #FFD700;
    margin-bottom: 2rem;
}

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

.highlight-item {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #FFD700;
}

.highlight-item strong {
    color: #000000;
    display: block;
    margin-bottom: 0.5rem;
}

.testimonial-card {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card p {
    margin-bottom: 0.5rem;
}

.cta-box {
    background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.cta-box h3 {
    color: #000000;
    margin-bottom: 1rem;
}

.cta-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: #000000;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer p {
    color: white;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.footer a {
    color: #FFD700;
    opacity: 0.9;
    margin: 0 0.5rem;
}

.footer a:hover {
    opacity: 1;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .features-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-card {
        max-width: 100%;
    }
    
    .steps-grid,
    .resources-grid,
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .certificate-actions {
        flex-direction: column;
    }
    
    .score-number {
        font-size: 3rem;
    }
}
