@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Playfair+Display:wght@600;700&display=swap');

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: #f8f9fb;
    color: #000;
    display: flex;
}

/* ====== ГОЛУБАЯ ТЕМА ====== */
:root {
    --accent: #00c8ff;
    --accent-light: #7ee7ff;
    --accent-dark: #009ac2;
}

/* ====== ЛЕВОЕ МЕНЮ ====== */
.sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 2px solid var(--accent);
    height: 100vh;
    padding: 40px 25px;
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 4px 0 20px rgba(0, 200, 255, 0.15);
}

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 25px;
    transition: 0.3s;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-light);
}

.logo {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--accent-dark);
}

nav a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #000;
    font-size: 17px;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

nav a.active {
    font-weight: 700;
    color: var(--accent-dark);
}

/* ====== ПРАВАЯ ЧАСТЬ ====== */
.content {
    margin-left: 280px;
    padding: 60px;
    width: calc(100% - 280px);
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* ====== HERO ====== */
.hero {
    background: url('img/web/main-photo.jpg') center/cover no-repeat;
    height: 420px;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    text-shadow: 0 0 10px #000;
    box-shadow: 0 0 25px rgba(0, 200, 255, 0.3);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    margin: 0 0 10px;
}

.hero p {
    font-size: 18px;
    margin: 0 0 20px;
}

/* ====== КНОПКИ ====== */
.btn, .btn-outline {
    padding: 12px 22px;
    margin-right: 10px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: 0.3s;
}

.btn {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 10px var(--accent-light);
}

.btn:hover {
    background: var(--accent-dark);
    box-shadow: 0 0 15px var(--accent);
}

.btn-outline {
    border: 2px solid var(--accent-light);
    color: #fff;
}

.btn-outline:hover {
    background: var(--accent-light);
    color: #000;
}

/* ====== СЕТКИ ====== */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ====== КАРТОЧКИ ====== */
.card {
    border: 1px solid var(--accent);
    padding: 25px;
    border-radius: 10px;
    transition: 0.3s;
    font-weight: 500;
    background: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 200, 255, 0.25);
}

/* ====== ПОРТФОЛИО — МАЛЕНЬКИЕ КАРТОЧКИ ====== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.portfolio-card {
    border: 1px solid var(--accent);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: 0.3s;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 200, 255, 0.25);
}

/* ====== ФОТО В КАРТОЧКАХ — ИДЕАЛЬНОЕ ОТОБРАЖЕНИЕ ====== */
.portfolio-card img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    background: #eafaff;
    padding: 12px;
    border-bottom: 1px solid var(--accent);
    border-radius: 6px;
    transition: 0.3s;
}

.portfolio-card img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.25);
}

.portfolio-card p {
    padding: 10px 15px;
    font-weight: 600;
    text-align: center;
    color: var(--accent-dark);
}

/* ====== БОЛЬШИЕ КАРТОЧКИ (projects, 1c, practice) ====== */
.details {
    padding: 15px 20px;
    background: #f0fbff;
    border-top: 1px solid var(--accent);
}

.details h3 {
    margin: 10px 0 5px;
    font-size: 18px;
    color: var(--accent-dark);
}

.details ul {
    margin: 0 0 10px 18px;
    padding: 0;
}

.details ul li {
    margin-bottom: 4px;
    font-size: 14px;
}

/* ====== ЗАГОЛОВКИ ====== */
h1, h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--accent-dark);
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 28px;
    margin-top: 40px;
}
