/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

/* Base Styles */
* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    height: 100%;
    background: #000000;
    background-image: 
        radial-gradient(at 13.6% 84.1%, #4400ff 0px, transparent 50%),
        radial-gradient(at 89.4% 84.8%, #fd6bff 0px, transparent 50%),
        radial-gradient(at -8.5% 19.2%, hsl(201, 100%, 50%) 0px, transparent 50%);
    background-attachment: fixed;
    color: #ffffff;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
}

.header h1 {
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2em;
    opacity: 0.8;
}

/* Section Styles */
.genai-section,
.implementation-section,
.genai-tools-section {
    margin-bottom: 60px;
}

.genai-section h2,
.implementation-section h2,
.genai-tools-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.section-description {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Cards */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    /* Fallback for browsers that do not support backdrop-filter */
    background-color: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: calc(33.333% - 20px);
    min-width: 280px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    text-align: center;
}

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

.card-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.card p {
    opacity: 0.8;
}

/* Implementation Grid */
.implementation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.implementation-grid .card {
    width: 100%;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.8);
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    /* Fallback for browsers that do not support backdrop-filter */
    background-color: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    margin: auto;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 80%;
    max-width: 800px;
    border-radius: 20px;
    position: relative;
    color: #ffffff;
    overflow-y: auto;
    max-height: 80vh;
}

.close {
    color: #ffffff;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content p {
    line-height: 1.6em;
    opacity: 0.9;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .card {
        width: calc(50% - 20px);
    }
    
    .implementation-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .cards {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 100%;
    }
}

/* Additional styles for modal content */
.modal-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* Diagram container */
.diagram-container {
    text-align: center;
    margin-top: 20px;
}

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

/* Styles for Roadmap Generator and WINS Work Analyzer */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

#questionnaire {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

textarea {
    height: 100px;
    resize: vertical;
}

button {
    background: #4400ff;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

button:hover {
    background: #3300cc;
}

#roadmap-result, #analysis-result {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
}

#roadmap-content {
    margin-bottom: 20px;
}

#roadmap-content h3,
#roadmap-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
}

#roadmap-content ul {
    padding-left: 20px;
}

#roadmap-content li {
    margin-bottom: 5px;
}

#download-roadmap {
    margin-top: 20px;
}

/* Styles for WINS Work Analyzer */
.matrix-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    margin-top: 30px;
}

.matrix {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.matrix-label {
    position: absolute;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
}

.matrix-label.top {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.matrix-label.bottom {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.matrix-label.left {
    top: 50%;
    left: 10px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
}

.matrix-label.right {
    top: 50%;
    right: 10px;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: right center;
}

.matrix-point {
    width: 20px;
    height: 20px;
    background-color: #4400ff;
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

#result-explanation {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
}
