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

:root {
    --deep-space-blue: #0a0e17;
    --neon-cyan: #00d2ff;
    --solar-gold: #ffb74d;
    --star-white: #e0e6ed;
    --glass-bg: rgba(16, 24, 40, 0.7);
    --glass-border: rgba(0, 210, 255, 0.3);
    --neon-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
    --transition-speed: 0.3s;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--deep-space-blue);
    background-image: url('../images/bg-universe.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--star-white);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 23, 0.9), rgba(10, 14, 23, 0.7));
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: #fff;
}

h1 { font-size: 3rem; text-transform: uppercase; }
h2 { font-size: 2.2rem; color: var(--neon-cyan); text-shadow: var(--neon-shadow); }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; font-weight: 300; }

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

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

section {
    padding: 80px 0;
}

/* Glassmorphism Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: all var(--transition-speed);
}

.btn-primary {
    background: var(--neon-cyan);
    color: var(--deep-space-blue);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.8);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--neon-cyan);
    color: var(--deep-space-blue);
}

/* Header */
header {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    z-index: 100;
}

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

.logo-container img {
    height: 90px;
    filter: brightness(0) invert(1); /* Ensure logo is white on dark bg */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px; /* Space for header */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 span {
    display: block;
    color: var(--neon-cyan);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--neon-shadow);
    /* Duotone or filter effect */
    filter: sepia(20%) hue-rotate(180deg) saturate(150%) contrast(1.1);
}

/* Problem Section */
.problem-card {
    text-align: center;
    transition: transform var(--transition-speed);
}

.problem-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--solar-gold);
}

/* Authority Section */
.authority-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.chalmers-photo {
    width: 100%;
    border-radius: 50%;
    border: 4px solid var(--neon-cyan);
    box-shadow: var(--neon-shadow);
}

.quote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--solar-gold);
    border-left: 4px solid var(--neon-cyan);
    padding-left: 1rem;
    margin: 2rem 0;
}

/* Offer Section */
.offer-list {
    list-style: none;
    padding: 0;
}

.offer-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.offer-list li svg {
    margin-right: 1rem;
    color: var(--neon-cyan);
    flex-shrink: 0;
}

/* Form Section */
.capture-section {
    text-align: center;
}

.capture-form {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--neon-cyan);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-cyan);
    background: rgba(255, 255, 255, 0.15);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--deep-space-blue);
    border: 4px solid var(--neon-cyan);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.left { left: 0; }
.right { left: 50%; }
.left::after { right: -14px; }
.right::after { left: -14px; }

.timeline-content {
    padding: 20px 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    position: relative;
}

.timeline-item.locked .timeline-content {
    opacity: 0.5;
    filter: grayscale(100%);
}

.timeline-item.active .timeline-content {
    border-color: var(--solar-gold);
    box-shadow: 0 0 15px rgba(255, 183, 77, 0.3);
}

/* Footer */
footer {
    background: rgba(0,0,0,0.5);
    padding: 2rem 0;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.module-card {
    transition: transform var(--transition-speed);
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: var(--neon-shadow);
}

.module-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 0;
}

/* Masters Grid */
.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.master-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    border: 3px solid var(--glass-border);
    transition: all var(--transition-speed);
}

.master-card:hover .master-avatar {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
    transform: scale(1.05);
}

.master-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FAQ Accordion */
.faq-item {
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--star-white);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    transition: transform var(--transition-speed);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed);
    padding-bottom: 1rem;
    opacity: 0.8;
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Increased to allow longer content */
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}
