:root {
    --primary-color: #D3E4CD; /* Нежный зеленый */
    --primary-color-dark: #b8d1b1;
    --background-color: #fdfdfd;
    --card-background: #ffffff;
    --text-color: #333333;
    --light-gray: #f0f5f0;
    --border-color: #e0e0e0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

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

/* --- Header --- */
header {
    background-color: var(--background-color);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 24px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #000;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    background-color: var(--text-color);
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--text-color);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
}

/* --- General Section Styles --- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

/* --- Skills Section --- */
.skills-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-item {
    background-color: var(--card-background);
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

/* --- Projects Section --- */
.projects-section {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.project-image-placeholder {
    width: 100%;
    height: 200px;
    background-color: var(--primary-color);
    border-radius: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: var(--text-color);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-card p {
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 25px;
}

/* --- Footer --- */
footer {
    background-color: var(--text-color);
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

footer h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

footer p {
    margin-bottom: 30px;
}

.contact-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    margin: 0 5px;
    transition: color 0.3s;
}

.contact-links a:hover {
    color: var(--primary-color);
}


/* --- Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
