/* ===== GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: 
        url("https://avatanplus.com/files/resources/original/5734ae84eecae154a5c9b772.jpg") no-repeat center center;
    background-size: cover;
    animation: bgMove 40s linear infinite;
}

@keyframes bgMove {
    0% { background-position: center top; }
    50% { background-position: center center; }
    100% { background-position: center top; }
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== HEADER ===== */
.head {
    background:
        linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)),
        url("https://images.unsplash.com/photo-1604654894610-df63bc536371");
    background-size: cover;
    background-position: center;
    padding: 70px 20px;
    border-radius: 0 0 40px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.head::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: shine 8s linear infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.head h1 {
    font-size: 42px;
    margin-bottom: 10px;
    color: #c94a7c;
    position: relative;
}

.head p {
    font-size: 18px;
    color: #555;
}

.head h1::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #ff7eb3;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; width: 50px; }
    50% { opacity: 1; width: 70px; }
}

/* ===== ABOUT ===== */
.about {
    background: #fff;
    margin: 60px 0;
    padding: 50px;
    text-align: center;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.about h2 {
    margin-bottom: 20px;
    color: #c94a7c;
    font-size: 28px;
    position: relative;
}

.about h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #ff7eb3;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: pulse 2s infinite;
}

/* ===== MASTERS ===== */
.masters {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.card {
    width: 32%;
    background: linear-gradient(180deg, #fff, #fff6fa);
    border-radius: 30px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08), 0 0 20px rgba(255, 105, 180, 0.1) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.3), 0 0 25px rgba(255, 182, 193, 0.2) inset;
}

.avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background: radial-gradient(circle at top left, #ffd6e8, #ff85b3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.card:hover .avatar {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.5);
}

.name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.spec {
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===== BUTTONS ===== */
.btn {
    background: linear-gradient(135deg, #ff7eb3, #ff4f91);
    color: #fff;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.5s ease;
    box-shadow: 0 4px 15px rgba(255, 79, 145, 0.3);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 79, 145, 0.5), 0 0 15px rgba(255, 182, 193, 0.4);
    background: linear-gradient(135deg, #ff9ebd, #ff5f9e);
}

/* ===== WORKS ===== */
.works {
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.works h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #c94a7c;
    font-size: 28px;
    position: relative;
}

.works h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #ff7eb3;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: pulse 2s infinite;
}

.gallery {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
}

.photo {
    flex: 0 0 auto;
    width: 300px;
    height: 220px;
    border-radius: 20px;
    background:
        linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
        url("https://images.unsplash.com/photo-1610992015732-2449b76344bc");
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 1.5s ease;
    filter: brightness(0.95);
}

.photo:hover {
    transform: scale(1.08);
    box-shadow: 0 20px 35px rgba(0,0,0,0.25);
    filter: brightness(1.05) saturate(1.2);
}

/* ===== FOOTER ===== */
.foot {
    background: linear-gradient(135deg, #ffe1ec, #fff);
    padding: 30px;
    border-radius: 40px 40px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    gap: 15px;
}

.addr {
    color: #8e44ad;
}

.phone {
    color: #ff4f91;
    font-weight: bold;
}

/* ===== ADAPTIVE ===== */
@media screen and (max-width: 992px) {
    .card, .photo {
        width: 48%;
    }
    .gallery {
        flex-wrap: wrap;
        overflow-x: hidden;
        justify-content: center;
    }
}

@media screen and (max-width: 600px) {
    .head h1 {
        font-size: 32px;
    }

    .head p {
        font-size: 16px;
    }

    .about {
        padding: 30px;
    }

    .about h2 {
        font-size: 24px;
    }

    .masters {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 80%;
        margin-bottom: 20px;
    }

    .gallery {
        flex-direction: column;
        align-items: center;
    }

    .photo {
        width: 90%;
        height: 180px;
        margin-bottom: 15px;
    }
}