/* AI Security Academy Stylesheet */
/* Color Scheme: Light Charcoal Background, White Text, Purple */

:root {
    --charcoal: #36454f;
    --light-charcoal: #4a5b66;
    --darker-charcoal: #2a3439;
    --white: #ffffff;
    --purple: #9b59b6;
    --purple-dark: #7d3c98;
    --purple-light: #bb6bd9;
    --purple-lighter: #d2a8e0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--charcoal);
    color: var(--white);
    line-height: 1.6;
}

/* General Link Styles */
a {
    color: var(--purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--purple-light);
}

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

/* Navigation */
.navbar {
    background-color: var(--darker-charcoal);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

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

.logo-img {
    width: 50px;
    height: 50px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--white);
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--purple);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--darker-charcoal) 0%, var(--charcoal) 100%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--white);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--purple);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
}

.btn-secondary {
    background-color: var(--purple-light);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(187, 107, 217, 0.4);
}

.btn-outline {
    border: 2px solid var(--purple);
    color: var(--purple);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--purple);
    color: var(--white);
}

.btn-course {
    background-color: var(--purple);
    color: var(--white);
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.btn-course:hover {
    background-color: var(--purple-dark);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--white);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* Courses Section */
.courses {
    background-color: var(--light-charcoal);
}

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

.course-card {
    background-color: var(--darker-charcoal);
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid;
}

.course-card.fundamentals {
    border-left-color: var(--purple);
}

.course-card.threat-modeling {
    border-left-color: var(--purple-light);
}

.course-card.red-team {
    border-left-color: var(--purple);
}

.course-card.risk-assessment {
    border-left-color: var(--purple);
}

.course-card.agentic {
    border-left-color: var(--purple);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.course-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.course-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.course-description {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.course-topics h4 {
    color: var(--purple-light);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.course-topics ul {
    list-style: none;
    margin-bottom: 1rem;
}

.course-topics li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.course-topics li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--purple);
}

/* Resources Section */
.resources {
    background-color: var(--charcoal);
}

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

.resource-card {
    background-color: var(--light-charcoal);
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-3px);
}

.resource-card h3 {
    color: var(--purple-light);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.resource-card ul {
    list-style: none;
}

.resource-card li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.resource-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--purple);
}

.resource-card a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-card a:hover {
    color: var(--purple);
}

/* CTF Grid Layout - 3 columns without visible borders */
.ctf-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 2rem;
    margin-top: 1rem;
}

.ctf-item {
    padding: 0.5rem 0;
}

.ctf-item a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.ctf-item a:hover {
    color: var(--purple);
}

/* Responsive: 2 columns on tablets */
@media (max-width: 768px) {
    .ctf-grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 480px) {
    .ctf-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* Certifications Section */
.certifications {
    background-color: var(--light-charcoal);
}

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

.cert-card {
    background-color: var(--darker-charcoal);
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--purple);
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(155, 89, 182, 0.3);
}

.cert-header {
    margin-bottom: 1rem;
}

.cert-header h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.cert-provider {
    display: inline-block;
    background-color: var(--purple);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cert-description {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cert-details {
    margin-bottom: 1.5rem;
}

.cert-details h4 {
    color: var(--purple-light);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.cert-details ul {
    list-style: none;
    margin-left: 0;
}

.cert-details li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.cert-details li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--purple-light);
    font-weight: bold;
}

.cert-info {
    background-color: var(--charcoal);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--purple);
}

.cert-info p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.cert-info p:last-child {
    margin-bottom: 0;
}

.cert-link {
    background-color: var(--purple);
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    display: block;
}

.cert-link:hover {
    background-color: var(--purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
}

.cert-tips {
    margin-top: 3rem;
    background-color: var(--darker-charcoal);
    border-radius: 10px;
    padding: 2rem;
}

.cert-tips h3 {
    color: var(--purple-light);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* CTFs & Labs Section */
.ctfs {
    background-color: var(--charcoal);
}

.ctfs-subsection {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(155, 89, 182, 0.2);
}

.ctfs-subsection h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.ctf-list {
    list-style-position: inside;
    padding-left: 0;
    line-height: 2;
    font-size: 1rem;
}

.ctf-list li {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.ctf-list a {
    color: var(--white);
    text-decoration: none;
}

.ctf-list a:hover {
    text-decoration: underline;
}

.ctf-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

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

.ctf-card {
    background-color: var(--light-charcoal);
    border-radius: 10px;
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(155, 89, 182, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ctf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(155, 89, 182, 0.3);
    border-color: var(--purple);
}

.ctf-header {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    padding: 1.5rem;
    position: relative;
}

.level-1 .ctf-header {
    background: linear-gradient(135deg, var(--purple-lighter) 0%, var(--purple-light) 100%);
}

.level-2 .ctf-header {
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 100%);
}

.level-3 .ctf-header {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
}

.level-4 .ctf-header {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--darker-charcoal) 100%);
}

.level-5 .ctf-header {
    background: linear-gradient(135deg, var(--darker-charcoal) 0%, #1a1f23 100%);
}

.ctf-header h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.difficulty-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.1em;
}

.ctf-description {
    padding: 1.5rem;
    color: var(--white);
    opacity: 0.9;
    line-height: 1.6;
    flex-grow: 1;
}

.ctf-skills {
    padding: 0 1.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: rgba(155, 89, 182, 0.2);
    color: var(--purple-light);
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.ctf-link {
    display: block;
    background-color: var(--purple);
    color: var(--white);
    text-decoration: none;
    padding: 1rem 1.5rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 1rem 1.5rem 1.5rem;
    border-radius: 8px;
}

.ctf-link:hover {
    background-color: var(--purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
}

.ctf-tips {
    margin-top: 3rem;
    background-color: var(--light-charcoal);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.ctf-tips h3 {
    color: var(--purple-light);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Jobs Section */
.jobs {
    background-color: var(--charcoal);
}

.jobs-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.job-categories {
    margin-bottom: 3rem;
}

.job-categories h3 {
    color: var(--purple-light);
    margin-bottom: 1.5rem;
    text-align: center;
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.role-tag {
    background-color: var(--light-charcoal);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--purple);
    transition: all 0.3s ease;
}

.role-tag:hover {
    background-color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(155, 89, 182, 0.3);
}

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

.job-board-card {
    background-color: var(--light-charcoal);
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--purple);
}

.job-board-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.job-board-card h3 {
    color: var(--purple-light);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.job-board-card p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
    font-size: 0.95rem;
}

.job-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.job-link {
    background-color: var(--darker-charcoal);
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border-left: 3px solid var(--purple);
    transition: all 0.3s ease;
    display: block;
}

.job-link:hover {
    background-color: var(--purple);
    border-left-color: var(--purple-light);
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(155, 89, 182, 0.4);
}

.job-tips {
    margin-top: 3rem;
    background-color: var(--darker-charcoal);
    border-radius: 10px;
    padding: 2rem;
}

.job-tips h3 {
    color: var(--purple-light);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.tip-card {
    background-color: var(--light-charcoal);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--purple-light);
}

.tip-card h4 {
    color: var(--white);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.tip-card p {
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Incidents Section */
.incidents {
    background-color: var(--light-charcoal);
}

.incident-resources {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.incident-main {
    background-color: var(--darker-charcoal);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--purple);
}

.incident-main h3 {
    color: var(--purple-light);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.incident-main p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.incident-categories {
    background-color: var(--darker-charcoal);
    border-radius: 10px;
    padding: 2rem;
}

.incident-categories h3 {
    color: var(--purple-light);
    margin-bottom: 1.5rem;
}

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

.category-item {
    background-color: var(--charcoal);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--purple);
}

.category-item h4 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.category-item p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.incident-learning {
    background-color: var(--darker-charcoal);
    border-radius: 10px;
    padding: 2rem;
}

.incident-learning h3 {
    color: var(--purple);
    margin-bottom: 1rem;
}

.incident-learning ul {
    list-style: none;
}

.incident-learning li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.incident-learning li:before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: var(--purple-light);
}

.incident-learning a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.incident-learning a:hover {
    color: var(--purple-light);
}

/* About Section */
.about {
    background-color: var(--charcoal);
}

.about p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.mission, .approach, .contribute {
    background-color: var(--light-charcoal);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.mission h3, .approach h3, .contribute h3 {
    color: var(--purple);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.approach ul {
    list-style: none;
}

.approach li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.approach li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--purple);
    font-weight: bold;
    font-size: 1.2rem;
}

.contribute a {
    color: var(--purple-light);
    text-decoration: none;
}

.contribute a:hover {
    color: var(--purple);
}

/* Footer */
footer {
    background-color: var(--darker-charcoal);
    padding: 2rem 0;
    text-align: center;
    border-top: 3px solid var(--purple);
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--purple);
    text-decoration: none;
}

footer a:hover {
    color: var(--purple-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .course-grid,
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--purple);
    color: var(--white);
}
