/* 
   AID-MR Website Styles
   Based on specification document
*/

/* ===== VARIABLES ===== */
:root {
    --primary-bg: #ffffff;
    --primary-text: #333333;
    --accent-color: #CB1F27;
    --secondary-color: #707072;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #444444;
    --container-width: 1200px;
    --section-padding: 80px 0;
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary-text);
    background-color: var(--primary-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: var(--section-padding);
}

/* ===== NAVIGATION ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--primary-text);
    font-weight: 500;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-text);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background-color: var(--light-gray);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-logo {
    max-width: 400px;
    margin-bottom: 2rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/scanner_banner.png');
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.9);
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(240,240,240,0.75) 100%);
    z-index: 1;
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--primary-bg);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text p:first-child {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--accent-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.about-text ul {
    background-color: var(--light-gray);
    padding: 20px 30px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    list-style-type: none;
}

.about-text ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.about-text ul li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    margin-right: 10px;
}

.about-text em {
    font-style: normal;
    background-color: rgba(203, 31, 39, 0.1);
    color: var(--accent-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.about-visual {
    flex: 1;
    min-width: 300px;
}

.about-visual h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.gif-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gif-item {
    text-align: center;
}

.gif-item img {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gif-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.gif-item p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* ===== FEATURES SECTION ===== */
.features {
    position: relative;
    background-color: var(--light-gray);
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/shim_4ch.png');
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(0.9);
    z-index: 0;
}

.features::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(240,240,240,0.6) 100%);
    z-index: 0;
}

.features .container {
    position: relative;
    z-index: 1;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: var(--primary-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-card em {
    font-style: normal;
    background-color: rgba(203, 31, 39, 0.1);
    color: var(--accent-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    background-color: var(--primary-bg);
}

.workflow {
    margin-bottom: 40px;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 20px;
}

.step p {
    margin: 0;
    min-height: 40px;
    line-height: 1.5;
    padding-top: 8px;
}

.step-number {
    background-color: var(--accent-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.workflow-steps em {
    font-style: normal;
    background-color: rgba(203, 31, 39, 0.1);
    color: var(--accent-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.integration-note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: var(--secondary-color);
}

.workflow-visuals {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

.visual-item {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.visual-item img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.visual-item p {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* ===== EVIDENCE SECTION ===== */
.evidence {
    background-color: var(--light-gray);
}

.publication-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.publication-card {
    background-color: var(--primary-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.publication-card h3 {
    margin-bottom: 0.5rem;
}

.view-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
}

/* ===== TEAM SECTION ===== */
.team {
    background-color: var(--primary-bg);
}

.team-profile {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.profile-image {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.profile-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-bio {
    flex: 2;
    min-width: 300px;
}

.profile-bio h3 {
    margin-bottom: 0.5rem;
}

.profile-bio p:first-of-type {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.scanner-image {
    margin-top: 30px;
    max-width: 500px;
}

.scanner-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--light-gray);
    text-align: center;
}

.email-link {
    display: inline-block;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    padding: 15px 30px;
    background-color: var(--primary-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.email-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-gray);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
}

.copyright {
    margin-bottom: 10px;
}

.support-text {
    margin-bottom: 20px;
}

.institution-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.institution-logos img {
    height: 50px;
    filter: brightness(0) invert(1);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-logo {
        max-width: 350px;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--primary-bg);
        flex-direction: column;
        align-items: center;
        padding-top: 30px;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .gif-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content, .team-profile {
        flex-direction: column;
    }
    
    .profile-image, .profile-bio {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-logo {
        max-width: 280px;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .gif-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .workflow-visuals {
        flex-direction: column;
        align-items: center;
    }
    
    .visual-item {
        max-width: 100%;
    }
    
    .publication-grid {
        grid-template-columns: 1fr;
    }
}