:root {
    --navy: #0f172a;
    --accent: #0284c7;
    --bg-page: #cbd5e1;
    --bg-banner: #ffffff;
    --text: #1e293b;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-page);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; flex: 1; }

/* GLOBAL INTERACTIVE PHYSICS */
.nav-link, .logo-link, .btn-biz, .hero-img-btn, .linkedin-btn, .project-card, .cert-badge, .arrow {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer !important;
    text-decoration: none;
    display: inline-block;
}

/* FIX: Prevent Visited Link Color Change */
a, a:visited { color: inherit; }

/* Hover Physics: Lift & Glow */
.nav-link:hover, .logo-link:hover, .cert-badge:hover {
    color: var(--accent) !important;
    text-shadow: 0 0 10px rgba(2, 132, 199, 0.3);
    transform: translateY(-5px);
}

.btn-biz:hover, .linkedin-btn:hover {
    transform: translateY(-5px);
}

/* Card Hover Logic: Highlight the Box, not the Text */
.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent) !important;
    box-shadow: 0 15px 30px rgba(2, 132, 199, 0.25);
    /* Note: No 'color' change here to keep text dark */
}

/* Image Bezel Highlight */
.hero-img-btn { border-radius: 20px; overflow: hidden; line-height: 0; display: block; }
.hero-img-btn:hover { transform: translateY(-8px); box-shadow: 0 0 30px var(--accent); }

/* Active Press-In */
.nav-link:active, .logo-link:active, .btn-biz:active, .hero-img-btn:active, .project-card:active {
    transform: scale(0.94);
}

/* Navigation Banner */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 10%; background: var(--bg-banner);
    border-bottom: 2px solid #94a3b8;
    position: sticky; top: 0; z-index: 1000;
}
.logo-link { color: var(--navy); font-weight: 800; font-size: 1.3rem; letter-spacing: 1px; }
.nav-link { color: var(--text); font-weight: 700; padding: 5px 15px; }

/* Slideshows */
.slideshow-container { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 16px; overflow: hidden; margin: 25px 0; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s; }
.slide.active { opacity: 1; z-index: 2; }
.slide-bg { position: absolute; width: 100%; height: 100%; background-size: cover; background-position: center; filter: blur(30px) brightness(0.5); transform: scale(1.1); }
.slide-img { position: relative; width: 100%; height: 100%; object-fit: contain; z-index: 3; }
.arrow { z-index: 10; position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.3); color: white; padding: 20px; font-size: 2rem; opacity: 0; }
.slideshow-container:hover .arrow { opacity: 1; }

/* Grid for Portfolio & Certs */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.project-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2.5rem; border-radius: 16px; border: 1px solid #94a3b8;
}

footer { background: var(--navy); padding: 50px 10%; text-align: center; margin-top: auto; color: white; }
.footer-links a { color: #cbd5e1; margin: 0 15px; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }