* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* ===================== LOGO ===================== */

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: #c90000;
}

/* ===================== NAVIGATION ===================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    margin-right: 145px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c90000;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #c90000;
}

/* ===================== HERO ===================== */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 60px 60px;
    position: relative;
    overflow: hidden;
    gap: 40px;
    background: #000;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 5.2rem;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 30px;
    letter-spacing: -3px;
}

.hero-description {
    font-size: 1.15rem;
    color: #aaa;
    max-width: 650px;
    line-height: 1.65;
    margin-bottom: 45px;
}

.cta-button {
    display: inline-block;
    padding: 18px 52px;
    background: #c90000;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 600;
    transition: all 0.4s ease;
    border: 2px solid #c90000;
}

.cta-button:hover {
    background: transparent;
    color: #c90000;
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 50px 120px rgba(201, 0, 0, 0.4);
    transition: transform 0.6s ease;
}

.hero-image:hover {
    transform: scale(1.03);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

/* ===================== SECTIONS ===================== */

section {
    padding: 120px 60px;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
    text-align: left;
}

.section-label {
    color: #c90000;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    display: block;
}

/* ===================== ABOUT ===================== */

.about {
    background: #0a0a0a;
    padding: 120px 60px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #aaa;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    align-self: center;
    display: flex;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 100px rgba(253, 253, 253, 0.3);
    transition: transform 0.6s ease;
}

.about-image:hover {
    transform: scale(1.03);
}

.about-image img {
    width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.6s ease;
}

.about-image:hover img {
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(255, 255, 255, 0.25),
        0 0 100px rgba(255, 255, 255, 0.1);
}

/* ===================== PROJECTS ===================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.project-card {
    background: #0a0a0a;
    padding: 40px;
    border-left: 3px solid #c90000;
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    background: #111;
}

.project-number {
    color: #c90000;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: block;
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.project-desc {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-button {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 28px;
    background: #c90000;
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.4s ease;
    border: 2px solid #c90000;
}

.project-button:hover {
    background: transparent;
    color: #c90000;
    transform: translateY(-3px);
}

.tech-tags {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 14px;
    background: rgba(201, 0, 0, 0.1);
    color: #c90000;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================== LITERATURE ===================== */

.literature {
    background: #0a0a0a;
}

.literature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.literature-quote {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    line-height: 1.4;
    color: #fff;
    border-left: 3px solid #c90000;
    padding-left: 40px;
}

.literature-list {
    list-style: none;
}

.literature-item {
    padding: 30px 0;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.literature-item-title {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: color 0.3s;
}

.literature-item:hover {
    padding-left: 20px;
    color: #c90000;
}

.literature-item-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.literature-item-year {
    color: #c90000;
    font-size: 0.9rem;
}

/* ===================== CHIMERA ===================== */

.chimera {
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 100px;
}

.chimera-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.chimera-title {
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: 20px;
    margin-bottom: 30px;
    color: #c90000;
    font-family: 'Times New Roman', Times, serif;
}

.chimera-description {
    font-size: 1.2rem;
    color: #888;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

/* ===================== CONTACTS ===================== */

.contacts {
    background: #0a0a0a;
    padding: 18px 60px;
    border-top: 1px solid #1a1a1a;
}

.contacts-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contacts-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.contact-icon-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #555555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-icon-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.contact-icon-link:hover {
    color: #c90000;
    transform: translateY(-2px);
}

.contact-icon-link:hover svg {
    transform: scale(1.15);
}

.contact-icon-link::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #ffffff;
    color: #0a0a0a;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.contact-icon-link::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    border: 4px solid transparent;
    border-top-color: #ffffff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.contact-icon-link:hover::before,
.contact-icon-link:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===================== FOOTER ===================== */

footer {
    padding: 60px;
    text-align: center;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.85rem;
}

/* ===================== ANIMATIONS ===================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 110px 30px 80px;
        text-align: center;
        gap: 70px;
    }
    
    .hero-title {
        font-size: 3.8rem;
    }
    
    .hero-image {
        max-width: 380px;
        margin: 0 auto;
    }
    
    .hero-description {
        max-width: 100%;
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    section {
        padding: 80px 30px;
    }

    .about {
        padding: 80px 30px;
    }

    .about-grid,
    .literature-content {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .chimera-title {
        font-size: 3rem;
        letter-spacing: 10px;
    }

    nav {
        padding: 20px 30px;
    }

    .nav-links {
        gap: 20px;
        margin-right: 0;
    }
}

/* ===================== MOBILE ===================== */

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: -1;
        max-height: 350px;
    }
    
    .contacts {
        padding: 15px 20px;
    }
    
    .contacts-row {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .contacts .section-label {
        justify-self: center;
    }
    
    .contacts-icons {
        gap: 18px;
    }
    .contact-icon-link {
        width: 26px;
        height: 26px;
    }
    .contact-icon-link svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}