/* --- VARIABLES --- */
:root {
    --primary: #0f172a;       /* Deep Navy */
    --secondary: #00b4d8;     /* Cyan/Teal */
    --accent-hover: #0891b2;
    --text-dark: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary); line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }

/* --- HEADER & NAV (Clean, No Hamburger) --- */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 10px 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.brand-logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 40px; width: auto; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { margin-left: 10px; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent-hover); }

/* --- HERO --- */
.hero-section {
    height: 90vh;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('../img/hero-science.jpg');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white);
}
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; color: var(--white); }
.hero-sub { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; color: #cbd5e1; }

.btn { padding: 12px 32px; border-radius: 50px; font-weight: 600; display: inline-block; }
.btn-primary { background: var(--secondary); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* --- SHOWCASE/PROJECTS --- */
.section-header { margin-bottom: 60px; }
.heading-underline { position: relative; display: inline-block; margin-bottom: 15px; }
.heading-underline::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--secondary); }
.badge { background: rgba(6, 182, 212, 0.1); color: var(--secondary); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.showcase-row { display: flex; align-items: center; gap: 60px; margin-bottom: 100px; }
.showcase-row.reverse { flex-direction: row-reverse; }
.showcase-text { flex: 1; }
.showcase-text h3 { font-size: 1.8rem; margin-bottom: 10px; }
.tech-tag { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--secondary); margin-bottom: 20px; border: 1px solid var(--secondary); padding: 2px 10px; border-radius: 4px; }
.feature-list { margin-top: 20px; }
.feature-list li { margin-bottom: 10px; padding-left: 20px; position: relative; color: var(--text-dark); }
.feature-list li::before { content: '•'; color: var(--secondary); position: absolute; left: 0; font-weight: bold; }
.showcase-image { flex: 1; overflow: hidden; border-radius: 12px; } /* Wrapper for hover zoom */

.project-img { 
    width: 100%; 
    height: 350px; 
    object-fit: cover; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    display: block; 
    transition: transform 0.6s ease; /* Smooth zoom transition */
}

/* ANIMATION: HOVER ZOOM */
.img-hover-zoom:hover {
    transform: scale(1.05); /* Zooms in 5% */
}

/* --- ANIMATION SCROLL CLASSES --- */
.reveal-left, .reveal-right { opacity: 0; transition: all 0.8s ease-out; }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.fade-in-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.active { opacity: 1; transform: translateX(0); transform: translateY(0); }

/* --- INTRO SPLASH --- */
#intro-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #ffffff; z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.5s ease 1s, visibility 0.5s ease 1s; }
.intro-logo-wrapper { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 300px; transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1); }
#intro-logo { width: 100%; height: auto; }

body.loaded #intro-overlay { background-color: transparent; pointer-events: none; }
body.loaded .intro-logo-wrapper { top: 35px; left: 20px; width: 150px; transform: translate(0, -50%); }
@media (min-width: 1250px) { body.loaded .intro-logo-wrapper { left: calc(50vw - 600px + 20px); } }
body.loaded #intro-logo { opacity: 0; transition: opacity 0.3s ease 0.8s; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; }
    .nav-links { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .nav-links a { margin: 0; font-size: 0.9rem; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .showcase-row, .showcase-row.reverse { flex-direction: column; gap: 30px; }
    .project-img { height: 250px; }
    #intro-overlay { display: none; }
}