@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-dark: #4b5b5f;
    --light-bg: #dfd8cf;
    --accent-grey: #a4aca7;
    --depth-1: #6c7c84;
    --depth-2: #738484;
    --warm-accent: #e6d9c9;
    --divider-grey: #a4a4a4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
}

#hero {
        padding-top: 10rem !important;
    }

    
    .glass-navbar {
        background: #4b5b5f !important;
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
        padding: 0.5rem 0.5rem;
        box-shadow: 0 8px 32px rgba(75, 91, 95, 0.1);
        transition: all 0.3s ease;
    }
    
    .glass-navbar:hover {
        background: #4b5b5f !important;
        box-shadow: 0 12px 40px rgba(75, 91, 95, 0.15);
    }
    
    .nav-link {
        position: relative;
        color: #ded7ce !important;
        text-decoration: none;
        font-weight: 500;
        padding: 0rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        width: 0;
        height: 2px;
        background: #ded7ce;
        border-radius: 1px;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: #ded7ce !important;
        background: #4b5b5f !important;
    }
    
    .nav-link:hover::before,
    .nav-link.active::before {
        width: 80%;
    }

/* Mobile Menu */
.mobile-menu-content {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background: rgba(223, 216, 207, 0.95);
    backdrop-filter: blur(20px);
    transition: right 0.3s ease;
    padding: 2rem;
    z-index: 40;
}

.mobile-menu-content.active {
    right: 0;
}

.mobile-nav-links {
    margin-top: 4rem;
}

.mobile-nav-link {
    display: block;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(75, 91, 95, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--depth-1);
    padding-left: 1rem;
}

/* Hero Section */
#hero {
    position: relative;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--warm-accent) 100%);
}

.molecular-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(164, 172, 167, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(108, 124, 132, 0.1) 0%, transparent 50%);
    animation: molecularFloat 20s ease-in-out infinite;
}

@keyframes molecularFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Blog Filters */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    color: var(--primary-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(75, 91, 95, 0.08);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--depth-1));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75, 91, 95, 0.3);
}

/* Featured Article */

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(75, 91, 95, 0.1);
    transition: all 0.3s ease;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(75, 91, 95, 0.15);
}

.article-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.article-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-category.featured {
    background: linear-gradient(135deg, var(--primary-dark), var(--depth-1));
    color: white;
}

.article-category.research {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.article-category.industry {
    background: linear-gradient(135deg, #10b981, #047857);
    color: white;
}

.article-category.innovation {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.article-category.health {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.article-content {
    padding: 1rem 0;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    color: var(--depth-2);
    font-size: 0.9rem;
}

.article-meta i {
    margin-right: 0.5rem;
    color: var(--primary-dark);
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-excerpt {
    color: var(--depth-2);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(75, 91, 95, 0.1);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--depth-1));
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(75, 91, 95, 0.3);
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75, 91, 95, 0.4);
}

.read-more-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* Blog Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    justify-items: center;
}

@media (max-width: 900px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1 1 300px;
    max-width: 440px;
    padding: 1.2rem;
    box-sizing: border-box;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(75, 91, 95, 0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    padding: 1rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

.card-excerpt {
    color: var(--depth-2);
    line-height: 1.6;
    margin-bottom: 0.7rem;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: var(--depth-1);
}

.read-more-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more-link:hover i {
    transform: translateX(3px);
}

.read-more-btn {
    margin-top: auto;
    align-self: flex-end;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1rem 2rem;
    color: var(--primary-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(75, 91, 95, 0.08);
}

.load-more-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--depth-1));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75, 91, 95, 0.3);
}

.load-more-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(3px);
}

/* Newsletter Section */
.newsletter-card {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(75, 91, 95, 0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.newsletter-description {
    color: var(--depth-2);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    max-width: 500px;
}

.form-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(75, 91, 95, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(75, 91, 95, 0.1);
}

.newsletter-btn {
    background: linear-gradient(135deg, var(--primary-dark), var(--depth-1));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(75, 91, 95, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75, 91, 95, 0.4);
}

.newsletter-privacy {
    color: var(--depth-2);
    font-size: 0.9rem;
}

.newsletter-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.newsletter-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-dark), var(--depth-1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: 0 8px 25px rgba(75, 91, 95, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Footer */
.footer-link {
    color: var(--accent-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--accent-grey);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--accent-grey);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* Filter Animation */
.blog-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.blog-card.visible {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .glass-navbar {
        padding: 0.75rem 1rem;
        margin: 0 1rem;
    }
    
    #hero h1 {
        font-size: 3rem !important;
        line-height: 1.1;
    }
    
    #hero p {
        font-size: 1.1rem !important;
        padding: 0 1rem;
    }
    
    .blog-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .featured-article {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .article-image img {
        height: 200px;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-meta {
        gap: 1rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .newsletter-title {
        font-size: 2rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .newsletter-input {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2.5rem !important;
    }
    
    #hero p {
        font-size: 1rem !important;
    }
    
    .glass-navbar {
        margin: 0 0.5rem;
        padding: 0.5rem 1rem;
    }
    
    .blog-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .featured-article {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.3rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .newsletter-title {
        font-size: 1.8rem;
    }
    
    .newsletter-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--depth-1);
}

.mobile-menu-btn i {
    color: #ded7ce !important;
}

.show-less-btn {
    display: block;
    margin: 2rem auto 0 auto;
    background: linear-gradient(135deg, #ded7ce, #cfcfcf);
    color: #4b5b5f;
    border: none;
    border-radius: 25px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(75, 91, 95, 0.08);
    transition: all 0.3s ease;
}
.show-less-btn:hover {
    background: linear-gradient(135deg, #4b5b5f, #6c7c84);
    color: #fff;
    transform: translateY(-2px);
}
.show-less-btn i {
    margin-left: 0.7rem;
    transition: transform 0.3s ease;
}
.show-less-btn:hover i {
    transform: translateY(-3px);
}