/* Base Styles */
img {
    width: 80%;
    display: flex;
    border-radius: 10px;
}

.container {
    max-width: 1200px;
    width: 95%;
    margin: auto;
    padding: 5rem 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 2rem 0;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 2rem;
    padding: 2rem 1rem;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-content h4 {
    color: #FFBE55;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-content h1 {
    color: #fff;
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: #fff;
}

.hero-content p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 1s ease;
}

.hero-buttons .primary {
    /*background-color: #FFBE55;*/
    background-color: transparent;
    border: 2px solid #FFBE55;
    color: #fff;
}

.hero-buttons .primary:hover {
    /*background-color: #e5a53d;*/
    background-color: #FFBE55;
    color: #18181B;
}

.hero-buttons .secondary {
    background-color: transparent;
    border: 2px solid #FFBE55;
    color: #fff;
}

.hero-buttons .secondary:hover {
    background-color: #FFBE55;
    color: #18181B;
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease;
}

.hero-image img {
    width: 100%;
    max-width: 300px;
    margin: auto;
    filter: drop-shadow(0 0 20px rgba(255, 190, 85, 0.3));
}

/* Latest Content Section */
.latest-content {
    margin-top: 2rem;
    animation: fadeInUp 1s ease;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 1rem;
}

.content-card {
    background: #27272A;
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 1s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    border-color: #FFBE55;
}

.content-card h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #323232;
}

/* Project and Article Items */
.project-list,
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.project-item,
.article-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.2rem;
    padding: 1rem;
    border-radius: 8px;
    background: #323232;
    transition: all 1s ease;
    border: 1px solid transparent;
    min-height: 140px;
}

.project-item:hover,
.article-item:hover {
    border-color: #FFBE55;
    transform: translateX(5px);
}

.project-image,
.article-image {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
}

.project-image img,
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.project-item:hover img,
.article-item:hover img {
    transform: scale(1.05);
}

.project-content,
.article-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-content h3,
.article-content h3 {
    margin-bottom: 0.5rem;
}

.project-content h3 a,
.article-content h3 a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 1s ease;
}

.project-content h3 a:hover,
.article-content h3 a:hover {
    color: #FFBE55;
}

.abstract {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-info {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.85rem;
    margin-top: auto;
}

/* Features Section */
section .header {
    margin-bottom: 3rem;
    color: #fff;
    text-align: center;
    font-size: 2.25rem;
    font-weight: 600;
    position: relative;
}

section .header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #FFBE55;
}

.features {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.features .card {
    background-color: #27272A;
    padding: 2rem;
    border: 2px solid transparent;
    border-radius: 15px;
    transition: all 1s ease;
    text-align: center;
}

.features .card:hover {
    background-color: #323232;
    border-color: #FFBE55;
    transform: translateY(-10px);
}

.features .card span {
    display: inline-block;
    background-color: #FFBE55;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #18181B;
    border-radius: 10px;
}

.features .card h4 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
}

.features .card p {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.features .card a {
    color: #fff;
    font-weight: 500;
    transition: all 1s ease;
}

.features .card a:hover {
    color: #FFBE55;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-image img {
        width: 90%;
    }
}

@media screen and (max-width: 1024px) {
    .container {
        padding: 4rem 1rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 2rem auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .project-item,
    .article-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-image,
    .article-image {
        width: 100%;
        height: 200px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 3rem 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .content-card {
        padding: 1rem;
    }
    
    .features .card {
        padding: 1.5rem;
    }
}