/* Modern Design System for The Graph Farm */

:root {
    --primary-dark: #0D1616;
    --secondary-dark: #1B2B2B;
    --pear-green: #D1E231;
    --accent-pear: #E0EE4A;
    --text-light: #F0F0F0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body, html {
    background-color: #f8f9fa;
    color: #333;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif !important;
}

/* Glassmorphism Navbar */
.navbar-inverse {
    background: rgba(13, 22, 22, 0.85) !important;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-bottom: 1px solid var(--glass-border) !important;
    transition: all 0.3s ease;
}

.navbar-inverse .navbar-nav > li > a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.navbar-inverse .navbar-nav > li > a:hover, 
.navbar-inverse .navbar-nav > .active > a {
    color: var(--pear-green) !important;
    background: transparent !important;
}

/* Modern Hero Section */
#head {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%) !important;
    position: relative;
    overflow: hidden;
    padding-top: 180px !important;
    min-height: 500px !important;
}

#head::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(209, 226, 49, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(224, 238, 74, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

#head h2 {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#head p {
    font-size: 1.25rem !important;
    color: rgba(255,255,255,0.9);
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Glass Cards */
.highlight, .thumbnail {
    background: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    height: 100%;
}

.highlight:hover, .thumbnail:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12) !important;
}

.h-caption h4 {
    color: var(--primary-dark) !important;
    font-weight: 700 !important;
    margin-top: 15px;
}

.h-body p {
    color: #555 !important;
    line-height: 1.6;
    font-size: 1rem !important;
}

/* Icon Styling */
.fa-2x.circle {
    background: var(--pear-green);
    color: #fff !important;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(209, 226, 49, 0.3);
}

/* Footer Styling */
#footer {
    background: var(--primary-dark) !important;
    padding-top: 60px;
    color: #ddd;
}

.footer1 .panel-title {
    color: var(--pear-green) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Portfolio Modern Grid */
#portfolio {
    padding: 60px 0;
}

#filter {
    margin-bottom: 40px;
}

#filter ul li {
    display: inline-block;
    margin: 5px;
}

#filter ul li a {
    padding: 10px 20px;
    border-radius: 30px;
    background: #fff;
    color: var(--primary-dark);
    border: 1px solid #eee;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

#filter ul li a:hover, 
#filter ul li a.current {
    background: var(--pear-green);
    color: #111;
    border-color: var(--pear-green);
    box-shadow: 0 4px 15px rgba(209, 226, 49, 0.4);
}

.portfolio-items .isotopeItem {
    margin-bottom: 30px;
    padding: 15px;
    height: 280px !important; /* Force consistent item height */
    display: block !important;
}

.portfolio-items .isotopeItem a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    height: 180px !important;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    width: 100% !important;
}

.portfolio-items .isotopeItem .portfolio-desc {
    margin-top: 10px;
    text-align: center;
}

.portfolio-items .isotopeItem a:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.portfolio-items .isotopeItem img {
    max-width: 140px;
    max-height: 80px;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.project-descriptions div {
    padding: 40px 0;
    line-height: 1.8;
}

.project-descriptions span {
    font-size: 1.1rem !important;
    color: #444;
}

.project-descriptions img {
    margin-right: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.panel {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05) !important;
}

.portfolio-image h3 {
    color: var(--primary-dark) !important;
    margin-top: 0;
    margin-bottom: 20px;
}

.portfolio-image img {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Responsive Fixes */
@media (max-width: 767px) {
    .navbar-collapse {
        background: var(--primary-dark) !important;
    }
    #head h2 {
        font-size: 2.5rem !important;
    }
    .portfolio-items .isotopeItem a {
        height: 150px;
    }
    .portfolio-image img {
        float: none !important;
        margin: 0 0 20px 0 !important;
        width: 100% !important;
        height: auto !important;
    }
    .portfolio-image p {
        margin-left: 0 !important;
    }
}
