html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2d3436;
    background-color: #f5f6fa;
    animation: fadeIn 0.5s ease-in;
    padding-top: 70px;
}

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

header {
    background-color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

header.hidden {
    transform: translateY(-100%);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #636e72;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #2d3436;
    transform: translateY(-2px);
}

nav a.nav-scratch {
    background-color: transparent;
    border: 2px solid #95a5a6;
    color: #95a5a6;
}

nav a.nav-scratch:hover {
    background-color: #95a5a6;
    color: white;
}

nav a.active {
    color: #D4757F;
    font-weight: 700;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: #D4757F;
}

main {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.hero-section {
    background-image: url('img/IMG_20240306_183651.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-section h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-section p {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.8;
}

.main-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.main-buttons a {
    background-color: #E8989F;
    color: #ffffff;
    padding: 16px 45px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 152, 159, 0.3);
}

.main-buttons a:hover {
    background-color: #D4757F;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 117, 127, 0.4);
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.content-section h2 {
    font-size: 32px;
    color: #2d3436;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

.project-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.project-card img {
    width: 300px;
    height: auto;
    border-radius: 8px;
}

.project-info {
    flex: 1;
}

.project-info p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.project-info a {
    background-color: #E8989F;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    transition: background-color 0.3s;
}

.project-info a:hover {
    background-color: #D4757F;
}

footer {
    background-color: #2d3436;
    padding: 30px 20px;
    margin-top: 20px;
    border-top: 1px solid #404040;
}

footer_but {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
}

footer_but a {
    text-decoration: none;
    color: #b2bec3;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 14px;
}

footer_but a:hover {
    background-color:rgba(232, 152, 159, 0.15);
    color:#E8989F; 
}

footer_but a.active {
    background-color: #E8989F;
    color: white;
}

@media (max-width: 768px) {
    main h1 {
        font-size: 36px;
    }
    
    main > p {
        font-size: 18px;
    }
    
    .main-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .main-buttons a {
        width: 200px;
        text-align: center;
    }
    
    .project-card {
        flex-direction: column;
    }
    
    .project-card img {
        width: 100%;
    }
}