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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #ffffff;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/header-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: -1;
}

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

/* Header styles */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #1a1a2e;
    text-align: center;
    padding: 100px 20px 80px 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header::before {
    display: none;
}

@keyframes purpleGlow {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

header .header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #1a1a2e;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.8);
}

header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    color: #2a2a2e;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.6);
}

.header-btn {
    display: inline-block;
    background: linear-gradient(135deg, #7b1fa2 0%, #e040fb 100%);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(123, 31, 162, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.header-btn:hover {
    background: linear-gradient(135deg, #9c4dcc 0%, #e040fb 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 31, 162, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.header-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Navigation styles */
.main-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.main-nav a:hover {
    background: rgba(123, 31, 162, 0.06);
    color: #7b1fa2;
}

.main-nav a.active {
    background: rgba(123, 31, 162, 0.1);
    color: #7b1fa2;
    font-weight: 600;
}

/* Section styles */
.agents-section {
    margin: 40px 0;
}

.agents-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #4a6fa5;
    padding-bottom: 10px;
}

.subsection-title {
    font-size: 1.5rem;
    margin: 30px 0 20px;
    color: #4a6fa5;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Agent card styles */
.agent-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.agent-avatar {
    height: 200px;
    overflow: hidden;
}

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

.agent-card:hover .agent-avatar img {
    transform: scale(1.05);
}

.agent-info {
    padding: 20px;
}

.agent-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #1a1a2e;
    font-weight: 700;
}

.agent-info p {
    color: #4a4a68;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.agent-link {
    display: inline-block;
    color: #7b1fa2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.agent-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7b1fa2, #e040fb);
    transition: width 0.3s ease;
}

.agent-link:hover::after {
    width: 100%;
}

.agent-link i {
    margin-right: 5px;
}

/* Home page styles */
.intro-section {
    text-align: center;
    padding: 40px 0;
    max-width: 800px;
    margin: 0 auto;
}

.intro-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.intro-section p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.featured-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.featured-image {
    height: 200px;
    overflow: hidden;
}

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

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

.featured-info {
    padding: 25px;
}

.featured-info h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #1a1a2e;
    font-weight: 700;
}

.featured-info p {
    color: #4a4a68;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.8;
}

.featured-link {
    display: inline-block;
    color: #7b1fa2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    padding: 8px 0;
}

.featured-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.featured-link:hover i {
    transform: translateX(5px);
}

/* About page styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin: 40px 0;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about-text h3 {
    font-size: 1.6rem;
    margin: 30px 0 15px;
    color: #4a6fa5;
}

.about-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.skill-category h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.skill-category ul {
    list-style: none;
    padding-left: 0;
}

.skill-category li {
    padding: 5px 0;
    color: #555;
}

.skill-category li::before {
    content: "•";
    color: #4a6fa5;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Projects page styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(74, 20, 140, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(123, 31, 162, 0.1);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(123, 31, 162, 0.25);
}

.project-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.project-images img {
    width: 48%;
    margin-bottom: 20px;
}

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

.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-info {
    padding: 25px;
}

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

.project-link {
    display: inline-block;
    color: white;
    background: linear-gradient(135deg, #7b1fa2 0%, #e040fb 100%);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 31, 162, 0.4);
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 31, 162, 0.6);
}

.project-link i {
    margin-right: 5px;
}

/* Contact page styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.contact-info p {
    color: #4a4a68;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.contact-method {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(74, 20, 140, 0.15);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(123, 31, 162, 0.1);
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(123, 31, 162, 0.2);
}

.contact-method i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #7b1fa2 0%, #e040fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.contact-method h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}



/* Blog page styles */
.blog-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #1a1a2e;
    font-weight: 800;
}

.blog-header p {
    color: #666;
    font-size: 1.1rem;
}

.tag-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag-filter button {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(123, 31, 162, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #666;
}

.tag-filter button:hover {
    background: rgba(123, 31, 162, 0.1);
    border-color: #7b1fa2;
    color: #7b1fa2;
}

.tag-filter button.active {
    background: linear-gradient(135deg, #7b1fa2 0%, #e040fb 100%);
    color: white;
    border-color: transparent;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.post-item h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #1a1a2e;
    font-weight: 600;
}

.post-item h2 a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-item h2 a:hover {
    color: #7b1fa2;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #999;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta .tag {
    background: rgba(123, 31, 162, 0.1);
    color: #7b1fa2;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.post-excerpt {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: #7b1fa2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #9c4dcc;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

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

/* Footer styles */
footer {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    color: #666;
    margin-top: 80px;
    border-top: 1px solid #f0f0f0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.footer-info h3 {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.footer-links a {
    color: #666;
    font-size: 1.3rem;
    margin: 0 8px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #7b1fa2;
}

.copyright {
    padding-top: 0px;
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .agents-grid, 
    .featured-grid,
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav li {
        margin: 5px;
    }
}

@media (max-width: 480px) {
    .agents-grid,
    .featured-grid,
    .projects-grid,
    .skills-grid,
    .contact-methods {
        grid-template-columns: 1fr;
    }

    .project-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        margin-bottom: 20px;
    }
}

/* Language switcher in navigation */
.lang-switch-nav a {
    background: linear-gradient(135deg, #7b1fa2 0%, #9c4dcc 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-switch-nav a:hover {
    background: linear-gradient(135deg, #9c4dcc 0%, #e040fb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(123, 31, 162, 0.4);
}