:root {
    --bg: #FAF7F5;
    --pink: #F5DCE5;
    --blue: #C9E4F6;
    --mint: #D9EAD3;
    --text-dark: #3A3A3A;
    --text-gray: #858585;
    
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-dark);
    overflow-x: hidden;
    body 
    font-family: "Manrope", sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 100px 0;
}

/* HERO */
#hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

#hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

#hero p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

#hero button {
    padding: 14px 28px;
    background: var(--pink);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

#hero button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

#hero .photo {
    width: 350px;
    height: 450px;
    background: var(--blue);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    animation: scaleIn 1.2s ease;
}

#hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ABOUT */
.card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}

/* EXPERIENCE */
.item {
    background: white;
    padding: 25px 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

/* SERVICES */
#services {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.5;
}


/* PORTFOLIO */
#portfolio {
    background: var(--blue);
    padding: 100px 0;
    border-radius: 0 0 40px 40px;
}

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

.project {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.project:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project .info {
    padding: 20px;
}

.btn-link {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--blue);
  color: #ffffffff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.btn-link:hover {
  opacity: 0.85;
}


/* CONTACTS */
#contact {
    text-align: center;
}

#contact a {
    display: inline-block;
    margin: 0 15px;
    padding: 12px 20px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: 0.3s;
}

#contact a:hover {
    transform: translateY(-4px);
}

/* SCROLL ANIMATIONS */
.fade {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease;
}

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

/* RESPONSIVE */
@media(max-width: 900px) {
    #hero {
        flex-direction: column-reverse;
        text-align: center;
    }

    #hero .photo {
        width: 280px;
        height: 350px;
    }
}

/* typing animation */
.typing {
    font-size: 48px;
    white-space: nowrap;
    overflow: hidden;
}

#hero .typing {
    max-width: 700px; /* или другое значение под твой вкус */
    white-space: normal; 
    line-height: 1.2;
}


#typed-text {
    border-right: 3px solid var(--pink);
    padding-right: 5px;
    animation: caret 0.7s infinite;
}

@keyframes caret {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--pink); }
}


/* SKILLS */
.skills-chips { display:flex; flex-wrap:wrap; gap:12px; margin-top:20px; }
.chip { padding:10px 16px; background:white; border-radius:20px; box-shadow:0 4px 12px rgba(0,0,0,0.05); }

/* REVIEWS */
.reviews-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:20px; }
.review-card { background:white; padding:25px; border-radius:20px; box-shadow:0 4px 16px rgba(0,0,0,0.05); }

/* DECOR */
.decor { position:fixed; border-radius:50%; filter:blur(60px); opacity:0.45; z-index:-1; }
.decor-1 { width:300px; height:300px; background:var(--pink); top:10%; left:-100px; }
.decor-2 { width:260px; height:260px; background:var(--blue); bottom:15%; right:-120px; }
.decor-3 { width:200px; height:200px; background:var(--mint); top:50%; right:20%; }

/* DARK THEME */
.theme-toggle { position:fixed; bottom:20px; right:20px; padding:12px 18px; border-radius:12px; background:white; cursor:pointer; box-shadow:0 4px 16px rgba(0,0,0,0.1); }

body.dark { --bg:#1a1a1a; --text-dark:white; --text-gray:#ccc; background:#1a1a1a; }
body.dark .chip,
body.dark .review-card,
body.dark #contact a,
body.dark .card,
body.dark .item,
body.dark .project { background:#2a2a2a; color:white; }


/* Floating background elements */
.floating-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.floating-bg .circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.35;
    filter: blur(40px);
    animation: float 14s infinite ease-in-out;
}

/* Нежные пастельные «кляксы» */
.c1 {
    width: 300px;
    height: 300px;
    background: var(--pink);
    top: 10%;
    left: -5%;
}

.c2 {
    width: 350px;
    height: 350px;
    background: var(--blue);
    bottom: 5%;
    right: -10%;
    animation-duration: 18s;
}

.c3 {
    width: 250px;
    height: 250px;
    background: var(--mint);
    top: 55%;
    left: 60%;
    animation-duration: 20s;
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px) scale(1); }
    50% { transform: translateY(-40px) translateX(20px) scale(1.05); }
    100% { transform: translateY(0px) translateX(0px) scale(1); }
}
