/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background-color: #ffffff;
}

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

/* Header */
.header {
    padding: 2rem 0;
    border-bottom: 1px solid #e2e8f0;
}

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

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

.logo a {
    text-decoration: none;
}

.logo-img {
    height: 80px;
    width: auto;
}


/* Typography */
h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1a202c;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #4a5568;
}

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

.introduction {
    background-color: #ffffff;
    text-align: center;
    padding: 2rem 0;
}

.latest-study {
    background-color: #f8fafc;
}

.email-signup {
    background-color: #ffffff;
    text-align: center;
    padding: 3rem 0;
}

.signup-description {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.form-group input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
    background-color: white;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[type="email"]::placeholder {
    color: #a0aec0;
}

.form-group .btn {
    white-space: nowrap;
    min-width: 120px;
}

.form-note {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
    font-style: italic;
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.form-message.success {
    background-color: #f0fff4;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.form-message.error {
    background-color: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.form-message.info {
    background-color: #ebf8ff;
    color: #2a4365;
    border: 1px solid #90cdf4;
}

.study-panel {
    background-color: #f8fafc;
    padding: 2rem 0;
}

.about {
    background-color: #f8fafc;
    padding: 2rem 0;
}

.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.cta h2,
.cta p {
    color: white;
}

/* Network Visualization */
.network-visualization {
    background-color: #f8fafc;
    padding: 3rem 0;
}

.network-description {
    text-align: center;
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.flourish-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
    position: relative;
}

.flourish-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.fullscreen-btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.fullscreen-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Fullscreen Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #2d3748;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #718096;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f7fafc;
    color: #2d3748;
}

.modal-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
}

#fullscreen-iframe {
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 80px);
    border: none;
}


.about-network {
    background-color: #ffffff;
    padding: 3rem 0;
}

/* Study Content Layout */
.study-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.report-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.report-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.study-text {
    padding-left: 1rem;
}

.study-date {
    font-size: 1rem;
    color: #718096;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.study-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #4a5568;
}

.study-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.cta .btn-primary {
    background: white;
    color: #667eea;
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
}

.cta .btn-primary:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* Contact */
.contact {
    margin-top: 2.5rem;
}

/* Footer */
.footer {
    background-color: #1a202c;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .study-card {
        padding: 2rem;
    }
    
    .study-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .study-text {
        padding-left: 0;
        text-align: center;
    }
    
    .study-links {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .flourish-container {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .flourish-controls {
        margin-bottom: 0.75rem;
    }
    
    .fullscreen-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .close-btn {
        font-size: 1.5rem;
        width: 1.5rem;
        height: 1.5rem;
    }
    
    #fullscreen-iframe {
        min-height: calc(100vh - 60px);
    }
    
    .network-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .form-group {
        flex-direction: column;
        align-items: center;
    }
    
    .form-group input[type="email"] {
        min-width: 100%;
        max-width: 300px;
    }
    
    .form-group .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 1rem;
    }
}
