/* --- IMPORTS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --primary: #0056b3;
    --dark: #0f172a;
    --light: #f8f9fa;
    --white: #ffffff;
    --text: #334155;
    --gray: #64748b;
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, .logo { font-family: 'Playfair Display', serif; color: var(--dark); }
a { text-decoration: none; transition: all 0.3s ease; }

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: center;
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; }
.logo { font-size: 1.8rem; font-weight: 700; }
.links { display: flex; gap: 30px; }
.links a { font-weight: 500; color: var(--text); }
.links a:hover { color: var(--primary); }
.btn-contact { padding: 10px 25px; background: var(--primary); color: var(--white) !important; border-radius: 50px; font-weight: 600; }

/* --- HERO SECTION --- */
.hero {
    display: flex; align-items: center; justify-content: space-between;
    padding: 80px 5%; /* Reduced padding */
    max-width: 1300px; margin: 0 auto; min-height: 80vh;
}
.hero-content { max-width: 50%; }
.hero-content h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 25px; }
.hero-content p { font-size: 1.25rem; margin-bottom: 40px; color: var(--gray); font-weight: 300; }
.btn-main { padding: 15px 40px; background: var(--dark); color: var(--white); border-radius: 50px; font-weight: 600; }
.btn-main:hover { background: var(--primary); transform: translateY(-3px); }
.hero-image img { width: 450px; height: 550px; object-fit: cover; border-radius: 20px; box-shadow: 20px 20px 0 var(--light), var(--shadow); }

/* --- SECTIONS --- */
.section-padding { padding: 80px 5%; } /* Reduced global padding */
.container { max-width: 1000px; margin: 0 auto; text-align: center; }

h2 { font-size: 3rem; margin-bottom: 30px; text-align: center; }

/* Specific adjustment for About Me spacing */
#about { padding-top: 40px; padding-bottom: 60px; } 

p.summary { font-size: 1.3rem; color: var(--text); line-height: 1.8; max-width: 800px; margin: 0 auto; }

/* --- FOUNDATION PROJECTS --- */
.bg-dark { background: var(--dark); color: white; }
.text-white { color: white; }

.archive-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.archive-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 20px;
    border-radius: 15px;
    transition: 0.3s;
    text-align: center;
    min-width: 200px;
    flex: 1;
}
.archive-card:hover { background: var(--white); transform: translateY(-5px); }
.archive-card:hover h3, .archive-card:hover p { color: var(--dark); }
.archive-icon { font-size: 2.5rem; margin-bottom: 15px; display: block; }
.archive-card h3 { font-size: 1.2rem; color: var(--white); margin-bottom: 5px; font-weight: 600; }
.archive-card p { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* Task 1 Sub-buttons */
.task1-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}
.task1-btn {
    display: block;
    background: rgba(255,255,255,0.2);
    padding: 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: white;
}
.task1-btn:hover { background: var(--primary); color: white; }
/* When card is hovered, fix button colors */
.archive-card:hover .task1-btn { background: #eee; color: var(--dark); }
.archive-card:hover .task1-btn:hover { background: var(--primary); color: white; }


/* --- PROJECTS --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; text-align: left; }
.card { background: var(--white); padding: 40px; border-radius: 16px; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; }
.card:hover { transform: translateY(-5px); border-color: var(--primary); }
.card-tag { font-size: 0.75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 10px; }
.card h3 { font-size: 1.8rem; margin-bottom: 10px; }
.link-text { color: var(--primary); font-weight: 600; margin-top: 20px; display: inline-block; }

/* --- VIDEO SECTION --- */
.bg-light { background: var(--light); }
.video-row { display: flex; align-items: center; gap: 60px; margin-bottom: 80px; text-align: left; }
.video-row.reverse { flex-direction: row-reverse; }
.video-wrapper { flex: 1.2; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.video-wrapper video { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }
.video-wrapper iframe { width: 100%; height: 280px; border: none; border-radius: 16px; display: block; }
.video-text { flex: 1; }
.btn-abstract { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 25px; background: var(--white); border: 1px solid #ddd; border-radius: 8px; color: var(--dark); font-weight: 600; font-size: 0.95rem; transition: 0.3s; }
.btn-abstract:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* --- FOOTER --- */
footer { padding: 60px 20px; background: var(--dark); color: rgba(255,255,255,0.6); text-align: center; }
.contact-info { margin-bottom: 30px; font-size: 1.1rem; }
.contact-info a { color: white; margin: 0 10px; border-bottom: 1px solid rgba(255,255,255,0.3); }
.footer-socials { display: flex; justify-content: center; gap: 30px; margin: 30px 0; }
.footer-socials a { font-size: 1.1rem; color: white; font-weight: 500; }
.footer-socials a:hover { color: var(--primary); }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hero { flex-direction: column-reverse; text-align: center; padding-top: 120px; }
    .hero-content { max-width: 100%; }
    .hero-image img { width: 100%; height: auto; }
    .video-row, .video-row.reverse { flex-direction: column; }
    .links { display: none; }
}