/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4285f4;
    --secondary-color: #34a853;
    --text-color: #333;
    --text-light: #666;
    --background-color: #fff;
    --background-alt: #f8f9fa;
    --border-color: #ddd;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Utility Classes */
.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-color);
}

.primary-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.secondary-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.view-all {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

/* Header and Navigation */
header {
    padding: 1rem 2rem;
    background-color: var(--background-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-left: 2rem;
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 80px auto 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text .title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-text .subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

/* Common Section Styles */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* About Section */
.about {
    padding: 4rem 2rem;
    background-color: var(--background-alt);
}

.about-content {
    display: grid;
    gap: 4rem;
    align-items: center;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.about-text h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.achievement-item {
    background: var(--background-alt);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
}

.achievement-item h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.achievement-item p {
    font-size: 1rem;
    margin-bottom: 0;
}

.collaboration-note {
    font-style: italic;
    text-align: center;
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
    background: var(--background-alt);
    border-radius: 0 12px 12px 0;
}

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

.experience-item {
    text-align: center;
    padding: 2rem;
    background: var(--background-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
}

.experience-item .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.experience-item .label {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Skills Section */
.skills-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--background) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.skills-section .section-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    text-align: center;
}

.skills-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.skills-section .section-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Skill Carousel Item */
.skill-carousel-item {
    background: #ffffff;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-carousel-item:hover {
    transform: translateY(-10px);
}

.skill-carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.skill-carousel-item:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.skill-carousel-item .carousel-content {
    width: 100%;
    text-align: center;
}

.skill-carousel-item h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.skill-progress {
    background: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), #2b6cb0);
    border-radius: 4px;
    position: relative;
    transition: width 1s ease-in-out;
}

.progress-value {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.skill-carousel-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .skills-section {
        padding: 3rem 0;
    }

    .skills-section .section-header h2 {
        font-size: 2rem;
    }
    
    .skill-carousel-item {
        padding: 20px;
    }
    
    .skill-icon {
        font-size: 2rem;
    }
    
    .skill-carousel-item h3 {
        font-size: 1.2rem;
    }
}

/* Projects Section */
.projects {
    padding: 4rem 2rem;
    background-color: var(--background-alt);
}

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

.project-card {
    background: var(--background-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.3;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.tech-tag:hover {
    opacity: 1;
}

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

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

/* Project Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.modal-content {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    animation: slideUp 0.4s ease forwards;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-color);
}

.project-details {
    margin: 2rem 0;
}

.project-details p {
    margin-bottom: 1rem;
}

.project-details li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.project-details li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.project-link:hover {
    background-color: var(--secondary-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive Design for Projects */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }

    .project-image {
        height: 180px;
    }

    .project-content {
        padding: 1.2rem;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .hero-image {
        max-width: 300px;
        margin: 2rem auto;
    }

    .skills {
        padding: 3rem 1rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tech Guides Section */
.guides {
    padding: 4rem 2rem;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
}

/* Blog Section */
.blog-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto 0;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f4f4f4; /* subtle background for empty space */
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* show full image, no cropping */
    transition: transform 0.3s ease;
    background: #f4f4f4;
}

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

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    margin: 0 0 15px;
    font-size: 1.3rem;
    color: #2d3748;
    line-height: 1.4;
}

.blog-content p {
    color: #718096;
    margin: 0 0 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #718096;
}

.blog-meta .date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.read-more {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1967d2;
}

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #718096;
}

.loading-placeholder i {
    margin-right: 8px;
    color: #4285f4;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
    color: #718096;
}

.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    background: #fff5f5;
    color: #c53030;
    border-radius: 15px;
    border: 1px solid #feb2b2;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .blog-image {
        height: 160px;
    }

    .blog-content {
        padding: 20px;
    }
}

/* Help text styles */
.help-text {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--background-alt);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateX(5px);
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-method a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-form {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1976D2 100%);
    position: relative;
    margin: 2rem auto;
    max-width: 1200px;
    width: 100%;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--background-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    margin: 0 13rem;
}

.newsletter-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.newsletter-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 0 1rem;
}

#newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#newsletter-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

#newsletter-form button {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#newsletter-form button:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .newsletter {
        margin: 2rem 1rem;
    }

    .newsletter-content {
        padding: 2rem;
        margin: 0 1rem;
    }

    .newsletter-content h3 {
        font-size: 2rem;
    }

    #newsletter-form {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    #newsletter-form input,
    #newsletter-form button {
        width: 100%;
    }
}

/* Footer */
footer {
    background-color: var(--background-alt);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.footer-left p {
    margin-top: 1rem;
    color: var(--text-light);
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer-section a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content,
    .skills-container,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    #newsletter-form {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-buttons {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Featured Section */
.featured {
    padding: 4rem 0;
    background-color: var(--background-color);
    overflow: hidden;
}

.featured .section-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    text-align: center;
}

.featured .section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.featured .section-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 2rem;
}

.carousel {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 350px;
    max-width: 350px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 1;
}

.carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-content {
    padding: 1.5rem;
}

.carousel-content h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.carousel-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-stats {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.stat .label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.featured-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.featured-tech span {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.featured-achievements {
    margin: 1rem 0;
}

.achievement {
    background: #f8f9fa;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.featured-impact {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.impact-item i {
    color: var(--primary-color);
}

.carousel-content .read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    transition: transform 0.2s ease;
}

.carousel-content .read-more:hover {
    transform: translateX(5px);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--primary-color);
    color: white;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

@media (max-width: 768px) {
    .featured {
        padding: 3rem 0;
    }

    .featured .section-header h2 {
        font-size: 2rem;
    }

    .carousel-item {
        min-width: 300px;
        max-width: 300px;
    }

    .featured-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat {
        padding: 0.5rem 0;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
    }
}

/* Timeline Section Styles */
.timeline-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 60px 0;
}

.timeline::after {
    /* content: ''; */
    position: absolute;
    width: 100%;
    height: 6px;
    background-color: #2196F3;
    top: 100px;
    left: 0;
    border-radius: 3px;
}

.timeline-item {
    width: 80%;
    margin: 0 auto 40px;
    position: relative;
}

.timeline-year {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2196F3;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

.timeline-content {
    padding-top: 30px;
}

.timeline-box {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    display: flex;
    gap: 30px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.timeline-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.timeline-image {
    flex: 0 0 300px;
    border-radius: 10px;
    overflow: hidden;
}

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

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

.timeline-info {
    flex: 1;
}

.timeline-info h3 {
    margin: 0 0 15px;
    color: #333;
    font-size: 24px;
}

.timeline-brief {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more-btn {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: #1976D2;
}

.timeline-details {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #555;
    line-height: 1.6;
}

/* Horizontal Timeline Navigation */
.timeline-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.timeline-nav button {
    background: none;
    border: none;
    font-size: 24px;
    color: #2196F3;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.timeline-nav button:hover {
    transform: scale(1.2);
}

.timeline-container {
    display: flex;
    transition: transform 0.5s ease;
    gap: 40px;
    padding: 0 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-box {
        flex-direction: column;
    }

    .timeline-image {
        flex: 0 0 auto;
    }

    .timeline-item {
        width: 90%;
    }

    .timeline-year {
        font-size: 14px;
        padding: 8px 16px;
    }
} 

.admin-link {
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.admin-link:hover {
    opacity: 1;
}

.admin-link i {
    font-size: 0.9em;
}

/* Blog Section Styles */
.blog-section {
    padding: 6rem 2rem;
    background-color: var(--background-alt);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 3rem auto 0;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.blog-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-date {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.4;
}

.blog-card-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--background-alt);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

.blog-card .read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.blog-card .read-more:hover {
    gap: 0.8rem;
}

.loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.loading-placeholder i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
    grid-column: 1 / -1;
    background: white;
    border-radius: 12px;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #e53e3e;
    background: #fff5f5;
    border-radius: 12px;
    grid-column: 1 / -1;
}

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

    .blog-card-image {
        padding-top: 56.25%; /* 16:9 aspect ratio */
    }

    .blog-card-content {
        padding: 1.2rem;
    }

    .blog-card-content h3 {
        font-size: 1.2rem;
    }
} 

.blog-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    width: 100%;
}

.view-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding: 1rem 0;
}

.view-more-btn {
    background: #4285f4;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    min-width: 160px;
    justify-content: center;
}

.view-more-btn:hover {
    background: #1967d2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.view-more-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.view-more-btn:hover i.fa-chevron-down {
    transform: translateY(2px);
}

.view-more-btn:hover i.fa-chevron-up {
    transform: translateY(-2px);
}

/* Achievements Section */
.achievements-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--background) 0%, var(--background-alt) 100%);
}

.achievements-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 50px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
    background: var(--background);
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#search-btn:hover {
    color: var(--accent-color);
}

.filter-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-options label {
    font-weight: 500;
    color: var(--text-color);
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: var(--background);
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .achievements-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-container {
        max-width: 100%;
        width: 100%;
    }
    
    .filter-options {
        width: 100%;
        justify-content: space-between;
    }
}

.achievement-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.achievement-image {
    position: relative;
    width: 100%;
    padding-top: 60%; /* 3:5 aspect ratio */
    overflow: hidden;
}

.achievement-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.achievement-card:hover .achievement-image img {
    transform: scale(1.05);
}

.achievement-date {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    z-index: 1;
}

.achievement-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.achievement-content h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.achievement-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .achievement-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .achievement-content h3 {
        font-size: 1.2rem;
    }

    .achievement-content p {
        font-size: 0.95rem;
    }
} 

/* Services Section */
.services-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--background) 0%, var(--background-alt) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    perspective: 1000px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid var(--primary-color);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease,
                border-top-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-top-color: var(--secondary-color);
}

.service-card h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 12px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-color);
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.service-card:hover h3::after {
    width: 60px;
    background-color: var(--secondary-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: var(--text-color);
}

.services-cta {
    text-align: center;
    margin-top: 50px;
}

.services-cta .primary-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .service-card {
        padding: 25px;
    }
} 

/* Events Section */
.events-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--background-alt) 0%, var(--background) 100%);
    position: relative;
    overflow: hidden;
}

.events-section .section-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    text-align: center;
}

.events-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.events-section .section-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .events-section {
        padding: 3rem 0;
    }

    .events-section .section-header h2 {
        font-size: 2rem;
    }
} 

/* Blockchain Projects Section */
.blockchain-projects-section {
    padding: 2.5rem 0;
    background: #fafbfc;
}
.blockchain-projects-container {
    max-width: 900px;
    margin: 0 auto;
}
.blockchain-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    justify-content: center;
}
.blockchain-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    padding: 0;
    width: 350px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    min-height: 370px;
}
.blockchain-card-bg {
    background: url('../assets/blockchain/image1.png') center/cover no-repeat;
    width: 100%;
    height: 140px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: relative;
}
.blockchain-card-icon {
    position: absolute;
    left: 18%;
    top: 109px;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.13);
    padding: 8px;
    width: 65px;
    height: 61px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blockchain-icon-img {
    width: 40px;
    height: 40px;
    display: block;
}
.blockchain-card-content {
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.blockchain-card-title {
    color: #23235b;
    font-size: 1.35rem;
    font-weight: bold;
    margin-bottom: 0.7rem;
    margin-top: 2.5rem;
}
.blockchain-card-desc {
    color: #444;
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}
.blockchain-card-arrow {
    position: absolute;
    right: 1.2rem;
    bottom: 1.2rem;
    color: #23235b;
    font-size: 1.3rem;
}
@media (max-width: 600px) {
    .blockchain-projects-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    .blockchain-card {
        width: 100%;
        min-width: 0;
    }
    .blockchain-card-content {
        padding: 1.2rem 1rem 1.2rem 1rem;
    }
    .blockchain-card-title {
        font-size: 1.1rem;
        margin-top: 2.2rem;
    }
    .blockchain-card-desc {
        font-size: 0.98rem;
    }
} 

.blockchain-card-bg-shop {
    background: url('../assets/blockchain/image3.png') center/cover no-repeat;
}

.blockchain-card-bg-marketplace {
    background: url('../assets/blockchain/image5.png') center/cover no-repeat;
}

.blockchain-card-bg-metaterrace {
    background: url('../assets/blockchain/image7.png') center/cover no-repeat;
}

.blockchain-card-bg-danialves {
    background: url('../assets/blockchain/image9.png') center/cover no-repeat;
}

.blockchain-card-bg-pursuit {
    background: url('../assets/blockchain/image11.png') center/cover no-repeat;
}

.blockchain-card-bg-swaggertoof {
    background: url('../assets/blockchain/image13.png') center/cover no-repeat;
}

.blockchain-card-bg-metafest {
    background: url('../assets/blockchain/image15.png') center/cover no-repeat;
}

.blockchain-card-bg-kaloscope {
    background: url('../assets/blockchain/image17.png') center/cover no-repeat;
}

.blockchain-card-bg-nftconnect {
    background: url('../assets/blockchain/image19.png') center/cover no-repeat;
}

.blockchain-card-bg-escobar {
    background: url('../assets/blockchain/image21.png') center/cover no-repeat;
}

@media (max-width: 1024px) {
    .blockchain-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .blockchain-projects-grid {
        grid-template-columns: 1fr;
    }
} 

.blockchain-projects-grid .blockchain-card:first-child:hover {
    cursor: pointer;
} 

/* Tab Bar Styles */
.tab-bar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin: 2rem 0 2.5rem 0;
}
.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 2.2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    border-radius: 2rem;
    background: #fff;
    color: #23235b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
}
.tab-btn.active {
    background: linear-gradient(90deg, #1cd8d2 0%, #4099fc 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(64,153,252,0.15);
}
.tab-btn i {
    font-size: 1.2rem;
}
.tab-content {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
}
@media (max-width: 700px) {
    .tab-bar {
        flex-direction: column;
        gap: 0.7rem;
    }
    .tab-btn {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
    .tab-content {
        padding: 0 0.5rem;
    }
} 