:root {
    --primary: #3a0ca3;
    --secondary: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4ade80;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 40px;
    transition: var(--transition);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    font-size: 1.1rem;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover:after {
    width: 100%;
}

.language-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.language-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.language-switcher button.active {
    opacity: 1;
    font-weight: bold;
}

.language-switcher button:hover {
    opacity: 1;
}

.mobile-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(76, 201, 240, 0.1);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 650px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUp 1s forwards 0.5s;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--dark);
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(58, 12, 163, 0.3);
    align-self: flex-start;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(58, 12, 163, 0.4);
}

/* Introduction Section */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    bottom: -10px;
    left: 0;
    background-color: var(--secondary);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.introduction-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Catalog Section */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 20px;
}

.project-number {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.project-desc {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.project-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.project-link:hover::after {
    width: 100%;
}

.project-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.project-link:hover i {
    transform: translateX(5px);
}

/* WhoAmI Section */
.whoami-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.author-image {
    flex: 0 0 300px;
    position: relative;
}

.author-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--secondary);
    z-index: -1;
    transition: var(--transition);
}

.author-image:hover::before {
    top: -10px;
    left: -10px;
}

.author-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.author-bio {
    flex: 1;
}

.author-bio h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

.author-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px);
    background-color: var(--secondary);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.footer-logo {
    height: 40px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .whoami-content {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        flex: 0 0 250px;
        margin: 0 auto;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links, .language-switcher {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}
