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

:root {
    --primary-bg: rgba(8, 8, 8, 0.95);
    --secondary-bg: rgba(15, 15, 15, 0.8);
    --tertiary-bg: rgba(25, 25, 25, 0.6);
    --accent-blue: #4A90E2;
    --accent-blue-light: #6BB6FF;
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.08);
    --hover-bg: rgba(255, 255, 255, 0.03);
    --glass-bg: rgba(255, 255, 255, 0.02);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    backdrop-filter: blur(20px);
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-primary);
}

.landing-container {
    min-height: 100vh;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-primary);
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.header-section h1 {
    font-size: 2.8rem;
    font-weight: 200;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--accent-blue-light), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-section h2 {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    letter-spacing: 0.01em;
}

.header-section p {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* Two Column Grid */
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Project Columns */
.project-column {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-column:hover {
    background: var(--hover-bg);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.project-column.slide-in {
    opacity: 1;
    transform: translateY(0);
}

.column-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.column-header h3 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.column-header p {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Project Cards */
.project-link {
    display: block;
    text-decoration: none;
    margin-bottom: 2rem;
}

.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 280px; /* Reduced from 400px */
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain */
    object-position: center; /* Center the image */
    transition: transform 0.4s ease;
    opacity: 0.8;
    padding: 1rem; /* Add padding to create space around image */
    background: var(--glass-bg); /* Add subtle background */
}

.project-card:hover .hero-image {
    transform: scale(1.02); /* Reduced from 1.05 to 1.02 */
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(74, 144, 226, 0.2) 100%
    );
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.6s ease;
}

.project-card:hover .overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    padding: 1.5rem;
    transform: translateY(15px);
    transition: transform 0.6s ease;
}

.project-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: -0.01em;
}

.overlay-content p {
    font-size: 0.8rem;
    font-weight: 300;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.01em;
}

.cta-button {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-weight: 300;
    font-size: 0.8rem;
    transition: all 0.4s ease;
    letter-spacing: 0.02em;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.info-card {
    background: var(--tertiary-bg);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    opacity: 0;
}

.info-card.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.info-card:hover {
    background: var(--hover-bg);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.info-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* Abstract Preview */
.abstract-preview {
    background: var(--tertiary-bg);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.abstract-preview:hover {
    background: var(--hover-bg);
    border-color: rgba(255, 255, 255, 0.12);
}

.abstract-preview h3 {
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.abstract-preview p {
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* Links */
.external-link, .read-more {
    color: var(--accent-blue-light);
    text-decoration: none;
    font-weight: 300;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
}

.external-link:hover, .read-more:hover {
    color: var(--accent-blue);
    transform: translateX(2px);
}

/* Footer */
.footer-section {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Introduction Section */
.introduction-section {
    max-width: 1100px; /* Increased from 900px */
    margin: 2.5rem auto 0;
    padding: 2.5rem 3rem; /* Increased horizontal padding */
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease 0.5s forwards;
}

.introduction-section p {
    font-size: 0.95rem; /* Slightly increased font size */
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
    max-width: none; /* Remove width restriction on paragraphs */
}

.introduction-section p:last-child {
    margin-bottom: 0;
}

.vision-highlight {
    background: linear-gradient(135deg, var(--accent-blue-light), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400 !important;
    font-size: 1.15rem !important; /* Slightly increased */
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 1.5rem;
    font-style: italic;
}

/* Dark Mode Scrollbars for Landing Page */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 6px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

::-webkit-scrollbar-thumb:active {
    background: var(--accent-blue);
}

::-webkit-scrollbar-corner {
    background: var(--bg-primary);
}

/* Firefox scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-primary);
}

body {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-primary);
}

.landing-container {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-primary);
}