/* styles.css - Professional STEM Chain */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
    --primary-blue: #0052D4;
    --secondary-blue: #4A90E2;
    --accent-blue: #005FFF;
    --white: #FFFFFF;
    --black: #000000;
    --light-bg: #F5F7FA;
    --light-card: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-light: #4A5568;
    --border-light: #E2E8F0;
    --accent-green: #2E7D32;
    --shadow-light: 0 4px 12px rgba(0, 82, 212, 0.1);
    --shadow-hover: 0 8px 24px rgba(0, 82, 212, 0.15);
    --gradient-bg: linear-gradient(135deg, #0052D4 0%, #4A90E2 100%);
    --timeline-color: #FFD700;
    --button-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
    
    --bg: var(--light-bg);
    --card-bg: var(--light-card);
    --text: var(--text-dark);
    --text-secondary: var(--text-light);
    --border: var(--border-light);
    --shadow: var(--shadow-light);
}

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

html, body {
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Interactive Cursor Dots */
.cursor-dot {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    display: none;
}

/* Header with Logo */
header {
    background: var(--gradient-bg);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-hover);
    position: relative;
}

header .logo-container {
    margin-bottom: 1.5rem;
}

header .logo {
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

header h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

header .tagline {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.95;
    margin: 0;
}

/* Navigation */
nav {
    background: var(--card-bg);
    padding: 0.5rem 0.75rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

nav a {
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease, background 0.3s ease;
    border-radius: 6px;
    display: inline-block;
    white-space: nowrap;
}

nav a:hover {
    color: var(--primary-blue);
    background: rgba(0, 82, 212, 0.1);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    background: var(--accent-green);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--button-shadow);
    display: inline-block;
    text-decoration: none;
    text-align: center;
    min-width: auto;
    margin: 0.5rem auto;
    width: auto;
    max-width: 100%;
}

.btn:hover {
    background: #1B5E20;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

.btn:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: var(--primary-blue);
}

.btn-primary:hover {
    background: #003fa3;
}

.btn-secondary {
    background: var(--secondary-blue);
}

.btn-secondary:hover {
    background: #3575c5;
}

/* Boxes */
.exhibition-box, .team-box, .cta-box {
    background: var(--gradient-bg);
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-hover);
    color: white;
    text-align: center;
}

.exhibition-box h3, .team-box h3, .cta-box h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.exhibition-box p, .team-box p, .cta-box p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

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

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

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

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--card-bg);
    border: 4px solid var(--timeline-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -16px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--card-bg);
    position: relative;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-blue);
}

/* Quiz */
#topics, #options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    margin: 1rem 0;
}

#topics button, #options label {
    flex: 1 1 200px;
    min-width: 150px;
    display: block;
}

#options label {
    text-align: left;
    padding: 0.75rem;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#options label:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 82, 212, 0.05);
}

#options label input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.progress-bar {
    background: var(--border);
    height: 8px;
    border-radius: 4px;
    margin: 1.5rem 0;
    overflow: hidden;
    width: 100%;
}

.progress-fill {
    background: var(--secondary-blue);
    height: 100%;
    transition: width 0.3s ease;
}

#result {
    text-align: center;
    padding: 2rem 1rem;
}

#emailInput {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

#emailInput input {
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text);
    width: 100%;
    max-width: 400px;
    transition: border-color 0.3s ease;
    font-size: 1rem;
}

#emailInput input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 212, 0.1);
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Footer */
footer {
    background: var(--gradient-bg);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
}

footer p {
    color: rgba(255, 255, 255, 0.95);
}

/* Landing Page Hero */
.hero {
    min-height: 100vh;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 1rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem 1rem;
    width: 100%;
}

.hero .logo {
    max-width: 400px;
    height: auto;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: fadeInDown 1s ease-out;
    width: 100%;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s both;
    word-wrap: break-word;
}

.hero .typing-text {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.95);
    min-height: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.4s both;
    word-wrap: break-word;
}

.typing-text::after {
    content: '|';
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
    width: 100%;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 150px;
    flex-grow: 1;
    max-width: 100%;
}

.btn-primary-light {
    background: white;
    color: var(--primary-blue);
    font-weight: 700;
}

.btn-primary-light:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.btn-secondary-light {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary-light:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-blue);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.feature-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    section {
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero .typing-text {
        font-size: 1.5rem;
    }

    .hero .logo {
        max-width: 300px;
    }

    header .logo {
        max-width: 250px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
    }

    .timeline::after {
        left: 31px;
    }

    .right {
        left: 0%;
    }
}

@media (max-width: 768px) {
    section {
        padding: 1.5rem 1rem;
        margin: 0;
    }

    nav {
        padding: 0.5rem;
        gap: 0.3rem;
    }

    nav a {
        padding: 0.4rem 0.8rem;
        margin: 0;
        font-size: 0.8rem;
    }

    header {
        padding: 1rem 0.5rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header .logo {
        max-width: 120px;
    }

    .hero {
        min-height: 85vh;
        padding: 1rem;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .typing-text {
        font-size: 1rem;
        min-height: 1.5rem;
    }

    .hero .logo {
        max-width: 180px;
        margin-bottom: 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .btn-large {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        min-width: unset;
        flex-grow: unset;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 15px;
    }

    .right {
        left: 0%;
    }

    #topics, #options {
        flex-direction: column;
        gap: 0.75rem;
    }

    #topics button, #options label {
        flex: 1 1 100%;
        width: 100%;
    }

    #options label {
        margin-bottom: 0.5rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        min-width: unset;
        margin: 0.5rem 0;
    }

    footer {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .exhibition-box, .team-box, .cta-box {
        padding: 1.5rem;
    }

    .exhibition-box h3, .team-box h3, .cta-box h3 {
        font-size: 1.3rem;
    }

    #emailInput {
        width: 100%;
    }

    #emailInput input {
        width: 100%;
    }

    #walletInfo {
        padding: 1rem;
        background: rgba(0, 82, 212, 0.05);
        border-radius: 8px;
        margin: 1rem 0;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    html, body {
        font-size: 14px;
    }

    section {
        padding: 1rem;
    }

    nav {
        padding: 0.3rem;
        gap: 0.2rem;
    }

    nav a {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        margin: 0.1rem;
    }

    header {
        padding: 0.8rem 0.5rem;
    }

    header h1 {
        font-size: 1.1rem;
    }

    header .logo {
        max-width: 80px;
    }

    .hero {
        min-height: 100vh;
        padding: 0.5rem;
    }

    .hero-content {
        padding: 1rem 0.5rem;
    }

    .hero h1 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .hero .typing-text {
        font-size: 0.85rem;
        min-height: 1.2rem;
        margin-bottom: 1rem;
    }

    .hero .logo {
        max-width: 120px;
        margin-bottom: 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .btn-large {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.75rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
        margin: 0.4rem 0;
        min-width: unset;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    h3 {
        font-size: 0.95rem;
    }

    p {
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .exhibition-box, .team-box, .cta-box {
        padding: 1rem;
        margin: 1rem 0;
    }

    .exhibition-box h3, .team-box h3, .cta-box h3 {
        font-size: 1.1rem;
    }

    .exhibition-box p, .team-box p, .cta-box p {
        font-size: 0.85rem;
    }

    #emailInput input {
        width: 100%;
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    #topics button, #options label {
        width: 100%;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .progress-bar {
        margin: 1rem 0;
    }

    footer {
        padding: 0.75rem;
        font-size: 0.75rem;
    }

    #walletInfo {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    nav a {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    header h1 {
        font-size: 0.95rem;
    }

    header .logo {
        max-width: 60px;
    }

    .hero h1 {
        font-size: 1.2rem;
    }

    .hero .typing-text {
        font-size: 0.75rem;
    }

    .hero .logo {
        max-width: 100px;
    }

    .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }

    h2 {
        font-size: 1rem;
    }

    h3 {
        font-size: 0.85rem;
    }
}