/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Consolas', 'Courier New', monospace;
    line-height: 1.5;
    color: #e0e0e0;
    background-color: #1e1e1e;
    overflow-x: hidden;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4" viewBox="0 0 4 4"><rect width="1" height="1" fill="%23282828"/></svg>');
    background-repeat: repeat;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: 2rem;
    color: #61afef;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 1rem;
    color: #c678dd;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Header */
.header {
    background: #252526;
    color: #e0e0e0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #3e3e42;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    line-height: 1;
    color: #61afef;
}

.logo span {
    color: #c678dd;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #61afef;
    border-bottom-color: #61afef;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #e0e0e0;
    margin: 3px 0;
    transition: 0.3s;
}

/* Window Styling */
.window-container {
    background: #252526;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
}

.window-header {
    background: #323233;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #3e3e42;
}

.window-controls {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.control:nth-child(2) {
    background: #ffbd2e;
}

.control:nth-child(3) {
    background: #27c93f;
}

.window-title {
    color: #abb2bf;
    font-size: 0.8rem;
    flex-grow: 1;
}

.window-content {
    padding: 2rem;
}

/* Terminal Styling */
.terminal {
    background: #1e1e1e;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
}

.terminal-header {
    background: #323233;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #3e3e42;
}

.terminal-title {
    color: #abb2bf;
    font-size: 0.8rem;
}

.terminal-content {
    padding: 1rem;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.terminal-line {
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
}

.command {
    color: #61afef;
    font-weight: bold;
}

.output {
    color: #98c379;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    border: 2px solid;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 4px;
}

.btn-primary {
    background: #61afef;
    color: #1e1e1e;
    border-color: #61afef;
}

.btn-primary:hover {
    background: transparent;
    color: #61afef;
}

.btn-secondary {
    background: #c678dd;
    color: #1e1e1e;
    border-color: #c678dd;
}

.btn-secondary:hover {
    background: transparent;
    color: #c678dd;
}

.btn-outline {
    background: transparent;
    color: #61afef;
    border-color: #61afef;
}

.btn-outline:hover {
    background: #61afef;
    color: #1e1e1e;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
}

.hero .window-container {
    width: 100%;
}

.hero .window-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    margin-bottom: 2rem;
    color: #61afef;
    text-shadow: 0 0 10px rgba(97, 175, 239, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #abb2bf;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border: 2px solid #3e3e42;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Page Hero */
.page-hero {
    margin-top: 80px;
    padding: 4rem 0;
    text-align: center;
}

.page-hero .terminal {
    max-width: 800px;
    margin: 0 auto;
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: #252526;
}

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

.stat-item {
    background: #323233;
    padding: 2rem;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #61afef;
}

.stat-item p {
    font-size: 1.2rem;
    color: #abb2bf;
}

/* About Section */
.about {
    padding: 6rem 0;
}

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

.about-text h2 {
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 2rem;
    color: #abb2bf;
}

.about-image img {
    width: 100%;
    height: auto;
    border: 2px solid #3e3e42;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Featured Projects */
.featured {
    padding: 6rem 0;
    background: #252526;
}

.featured h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.project-card {
    background: #323233;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 1rem;
}

.project-content p {
    color: #abb2bf;
}

/* Research Methods */
.research-methods {
    padding: 6rem 0;
}

.research-methods h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.method-card {
    background: #323233;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.method-card:hover {
    transform: translateY(-5px);
}

.method-card h3 {
    margin-bottom: 1rem;
}

.method-card p {
    color: #abb2bf;
    margin-bottom: 2rem;
}

.method-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid #3e3e42;
    border-radius: 4px;
}

/* Current Studies */
.current-studies {
    padding: 6rem 0;
    background: #252526;
}

.current-studies h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.studies-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.study-item {
    background: #323233;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.study-item:nth-child(even) {
    grid-template-columns: 300px 1fr;
}

.study-item:nth-child(even) .study-info {
    order: 2;
}

.study-item:nth-child(even) img {
    order: 1;
}

.study-info h3 {
    margin-bottom: 1rem;
}

.study-info p {
    color: #abb2bf;
    margin-bottom: 1.5rem;
}

.study-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #7f848e;
}

.study-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid #3e3e42;
    border-radius: 4px;
}

/* Publications */
.publications {
    padding: 6rem 0;
}

.publications h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.publication-card {
    background: #323233;
    color: #e0e0e0;
    padding: 2rem;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.publication-card:hover {
    transform: translateY(-5px);
}

.publication-card h3 {
    margin-bottom: 1rem;
}

.publication-card p {
    color: #abb2bf;
    margin-bottom: 2rem;
}

/* Topics */
.topics {
    padding: 6rem 0;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.topic-card {
    background: #323233;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.topic-card:hover {
    transform: translateY(-5px);
}

.topic-card.large {
    grid-column: span 2;
}

.topic-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.topic-content {
    padding: 2rem;
}

.topic-content h2,
.topic-content h3 {
    margin-bottom: 1rem;
}

.topic-content p {
    color: #abb2bf;
    margin-bottom: 2rem;
}

/* Trending */
.trending {
    padding: 6rem 0;
    background: #252526;
}

.trending h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.trending-item {
    background: #323233;
    color: #e0e0e0;
    padding: 2rem;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    display: grid;
    grid-template-columns: 80px 1fr 200px;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.trending-item:hover {
    transform: translateY(-5px);
}

.trend-number {
    font-size: 3rem;
    font-weight: 900;
    color: #c678dd;
    text-align: center;
}

.trend-content h3 {
    margin-bottom: 1rem;
}

.trend-content p {
    color: #abb2bf;
}

.trending-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 1px solid #3e3e42;
    border-radius: 4px;
}

/* Newsletter */
.newsletter {
    padding: 6rem 0;
}

.newsletter-content {
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 3rem;
    color: #abb2bf;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 0.8rem 1.5rem;
    border: 2px solid #3e3e42;
    background: #252526;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 1rem;
    min-width: 300px;
    border-radius: 4px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #61afef;
}

/* Contact */
.contact-section {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 3rem;
}

.contact-item {
    margin-bottom: 2rem;
    background: #323233;
    padding: 2rem;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-item h3 {
    margin-bottom: 1rem;
}

.contact-item p {
    color: #abb2bf;
}

.contact-form-container h2 {
    margin-bottom: 2rem;
}

.contact-form {
    background: #323233;
    padding: 2rem;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #e0e0e0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #3e3e42;
    background: #252526;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 4px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #61afef;
}

/* Team */
.team {
    padding: 6rem 0;
    background: #252526;
}

.team h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.team-member {
    text-align: center;
    background: #323233;
    padding: 2rem;
    border: 1px solid #3e3e42;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid #3e3e42;
    margin-bottom: 1.5rem;
    object-fit: cover;
}

.member-info h3 {
    margin-bottom: 0.5rem;
}

.member-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #abb2bf;
}

/* Map */
.map-section {
    padding: 6rem 0;
}

.map-section h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.map-placeholder {
    position: relative;
    border: 1px solid #3e3e42;
    border-radius: 4px;
    overflow: hidden;
}

.map-placeholder img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.8);
    color: #e0e0e0;
    padding: 2rem;
    text-align: center;
}

.map-overlay p {
    color: #abb2bf;
}

/* Footer */
.footer {
    background: #252526;
    color: #e0e0e0;
    padding: 4rem 0 2rem;
    border-top: 1px solid #3e3e42;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #61afef;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #abb2bf;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #61afef;
}

.footer-section p {
    color: #abb2bf;
}

.footer-bottom {
    border-top: 1px solid #3e3e42;
    padding-top: 2rem;
    text-align: center;
    color: #7f848e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #252526;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-bottom: 1px solid #3e3e42;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero .window-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .study-item {
        grid-template-columns: 1fr !important;
    }
    
    .study-item:nth-child(even) .study-info {
        order: 1;
    }
    
    .study-item:nth-child(even) img {
        order: 2;
    }
    
    .trending-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input {
        min-width: auto;
        width: 100%;
        max-width: 400px;
    }
    
    .topic-card.large {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav {
        padding: 1rem 15px;
    }
    
    .hero {
        padding: 2rem 15px;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .study-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(97, 175, 239, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(97, 175, 239, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(97, 175, 239, 0);
    }
}

.btn-primary:focus {
    animation: pulse 1.5s infinite;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #61afef;
    outline-offset: 2px;
}

/* Code Syntax Highlighting */
.code {
    background: #282c34;
    color: #abb2bf;
    padding: 1rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Courier New', monospace;
    overflow-x: auto;
    margin: 1rem 0;
}

.code .keyword {
    color: #c678dd;
}

.code .string {
    color: #98c379;
}

.code .number {
    color: #d19a66;
}

.code .comment {
    color: #5c6370;
    font-style: italic;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #252526;
}

::-webkit-scrollbar-thumb {
    background: #3e3e42;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #61afef;
}

/* Print Styles */
@media print {
    body {
        background: #fff;
        color: #000;
    }
    
    .header,
    .footer,
    .btn {
        display: none;
    }
    
    .window-container,
    .terminal,
    .project-card,
    .method-card,
    .study-item,
    .topic-card,
    .publication-card,
    .team-member,
    .contact-item {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    h2, h3 {
        color: #000;
    }
    
    p {
        color: #333;
    }
}