/* =====================
   PROJECTS PAGE STYLES
   ===================== */

/* Smooth scrolling enabled sitewide */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #030712;
    color: #e2e8f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* HERO SECTION */
.projects-hero {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    background: radial-gradient(ellipse at top, #1e1b4b 0%, #030712 80%);
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.projects-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    animation: fadeInDown 1s ease-out;
}

.projects-title span.highlighted-text {
    color: #a855f7; /* Electric Purple */
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.5), 0 0 40px rgba(168, 85, 247, 0.2);
}

.projects-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out;
}

/* HERO JUMP NAVIGATION */
.hero-quick-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 50px;
    padding: 8px 24px;
    gap: 15px;
    animation: fadeInUp 1.2s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.quick-nav-link {
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 12px;
    border-radius: 20px;
}

.quick-nav-link.link-green {
    color: #0df2c9;
}

.quick-nav-link.link-green:hover {
    background: rgba(13, 242, 201, 0.1);
    text-shadow: 0 0 10px rgba(13, 242, 201, 0.5);
}

.quick-nav-link.link-gold {
    color: #facc15;
}

.quick-nav-link.link-gold:hover {
    background: rgba(250, 204, 21, 0.1);
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.quick-nav-divider {
    color: rgba(168, 85, 247, 0.4);
    font-weight: 300;
    font-size: 1.2rem;
    user-select: none;
}

/* SECTION STRUCTURE & GRID */
.content-section {
    padding: 60px 10%;
    /* Offers scroll room below sticky headers if you add any */
    scroll-margin-top: 80px; 
}

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

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
    position: relative;
}

.section-title.left-aligned {
    text-align: left;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

/* ==========================================================================
   THEME 1: DEVELOPMENT PROJECTS (MINT GREEN / CYAN)
   ========================================================================== */
.section-projects {
    border-bottom: 1px dashed rgba(56, 189, 248, 0.15);
}

.section-projects .section-title {
    color: #ffffff;
}

.section-projects .accent-text {
    color: #0df2c9; /* Dynamic Mint Green */
    text-shadow: 0 0 15px rgba(13, 242, 201, 0.25);
}

.project-card.hardware-theme {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(13, 242, 201, 0.12);
}

.project-card.hardware-theme:hover {
    transform: translateY(-10px);
    border-color: #0df2c9;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(13, 242, 201, 0.2);
}

.project-card.hardware-theme .tech-tag {
    background: rgba(13, 242, 201, 0.08);
    color: #0df2c9;
    border: 1px solid rgba(13, 242, 201, 0.25);
}

.project-card.hardware-theme .btn-primary {
    background: #0df2c9;
    color: #030712;
}

.project-card.hardware-theme .btn-primary:hover {
    background: #38bdf8; /* Swaps to blue on hover */
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.45);
}


/* ==========================================================================
   THEME 2: ACADEMIC RESEARCHES (GOLD / AMBER)
   ========================================================================== */
.section-research {
    background: linear-gradient(180deg, #030712 0%, #060b19 100%);
}

.section-research .section-title {
    color: #ffffff;
}

.section-research .accent-text {
    color: #facc15; /* Academic Amber Gold */
    text-shadow: 0 0 15px rgba(250, 204, 21, 0.25);
}

.project-card.research-theme {
    background: rgba(22, 17, 10, 0.35); /* Warm-toned dark background */
    border: 1px solid rgba(250, 204, 21, 0.12);
}

.project-card.research-theme:hover {
    transform: translateY(-10px);
    border-color: #facc15;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(250, 204, 21, 0.2);
}

.project-card.research-theme .tech-tag {
    background: rgba(250, 204, 21, 0.08);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.25);
}

.project-card.research-theme .btn-primary {
    background: #facc15;
    color: #030712;
}

.project-card.research-theme .btn-primary:hover {
    background: #ffb700;
    box-shadow: 0 0 15px rgba(255, 183, 0, 0.45);
}


/* COMMON PROJECT CARD STYLES */
.project-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 200px;
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
    z-index: 2;
}

.project-card:hover .project-image::after {
    left: 150%;
}

.project-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-body h3 {
    margin: 0 0 10px 0;
    color: #f8fafc;
    font-size: 1.4rem;
    line-height: 1.3;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
}

.project-body p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.project-links {
    display: flex;
    gap: 15px;
    width: 100%;
}

.btn-primary {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ANIMATIONS */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 768px) {
    .content-section {
        padding: 40px 5%;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .hero-quick-nav {
        padding: 6px 16px;
        gap: 10px;
    }
    .quick-nav-link {
        font-size: 0.9rem;
    }
}