@font-face {
    font-family: samim;
    src: url(./Samim.woff2);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #3e2723;
    font-family: samim;
    color: #f5e7d9;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

.coffee-beans-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bean {
    position: absolute;
    top: -40px;
    color: rgba(180, 140, 110, 0.2);
    font-size: 1.8rem;
    opacity: 0.4;
    animation: fall linear infinite;
    user-select: none;
    filter: blur(0.5px);
    transform: rotate(0deg);
}

@keyframes fall {
    0% {
        transform: translateY(-5vh) rotate(0deg);
        opacity: 0.25;
    }

    15% {
        opacity: 0.4;
    }

    70% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(105vh) rotate(280deg);
        opacity: 0.1;
    }
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 30% 40%, #5d4037 1px, transparent 1px),
        radial-gradient(circle at 70% 80%, #4e342e 2px, transparent 2px),
        radial-gradient(circle at 15% 70%, #6d4c41 1px, transparent 1px);
    background-size: 60px 60px, 90px 90px, 70px 70px;
    opacity: 0.25;
    z-index: -2;
    pointer-events: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}


header {
    background: rgba(62, 39, 35, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 2px solid #d7a86e;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #f9e0c0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #4e342e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: #d7a86e;
    font-size: 2.2rem;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
}

.nav-links a {
    color: #f5e7d9;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: 0.3s;
    font-size: 1.1rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #d7a86e;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #d7a86e;
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem 3rem;
    position: relative;
}

.coffee-animation-container {
    margin: 1.5rem 0 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 340px;
    width: 100%;
}

.coffee-scene {
    position: relative;
    width: 280px;
    height: 310px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.floating-beans {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 8;
}

.float-bean {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.8;
    animation: floatAround 5s infinite ease-in-out;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.6));
}

.float-bean:nth-child(1) {
    top: 35%;
    left: 5%;
    animation-delay: 0s;
}

.float-bean:nth-child(2) {
    top: 30%;
    right: 4%;
    animation-delay: 0.7s;
    font-size: 1.2rem;
}

.float-bean:nth-child(3) {
    bottom: 18%;
    left: 4%;
    animation-delay: 1.4s;
}

.float-bean:nth-child(4) {
    top: 60%;
    right: 3%;
    animation-delay: 2.1s;
    font-size: 1.3rem;
}

@keyframes floatAround {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-14px) rotate(10deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.cup {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 130px;
    height: 120px;
    background: rgba(245, 235, 220, 0.92);
    border-radius: 0 0 55px 55px;
    border: 3px solid #a1887f;
    border-top: 2px solid #d7ccc8;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.5), inset 0 -15px 10px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(215, 168, 110, 0.3);
    z-index: 3;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: auto;
    animation: cupGlow 3s ease-in-out infinite alternate;
}

@keyframes cupGlow {
    0% {
        box-shadow: 0 12px 22px rgba(0, 0, 0, 0.5), inset 0 -15px 10px rgba(0, 0, 0, 0.15),
            0 0 30px rgba(215, 168, 110, 0.2);
    }

    100% {
        box-shadow: 0 12px 22px rgba(0, 0, 0, 0.5), inset 0 -15px 10px rgba(0, 0, 0, 0.15),
            0 0 60px rgba(215, 168, 110, 0.5);
    }
}

.cup-handle {
    position: absolute;
    right: -32px;
    top: 25px;
    width: 38px;
    height: 55px;
    border: 4px solid #a1887f;
    border-left: none;
    border-radius: 0 38px 38px 0;
    background: transparent;
    z-index: 2;
}

.coffee-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, #2d1c15 0%, #4a3024 80%, #5d4037 100%);
    border-radius: 0 0 52px 52px;
    animation: fillCupSteady 3s ease-in-out infinite alternate;
    box-shadow: inset 0 12px 14px rgba(0, 0, 0, 0.5);
}

@keyframes fillCupSteady {
    0% {
        height: 45%;
    }

    100% {
        height: 65%;
    }
}

/* ============ بخار واضح و پررنگ ============ */
.steam {
    position: absolute;
    top: -35px;
    width: 6px;
    height: 50px;
    background: rgba(255, 250, 240, 0.7);
    border-radius: 50%;
    filter: blur(6px);
    animation: steamRise 2.5s infinite ease-out;
    z-index: 10;
    box-shadow: 0 0 15px rgba(255, 250, 240, 0.5);
}

.steam:nth-child(1) {
    left: 35px;
    animation-delay: 0s;
}

.steam:nth-child(2) {
    left: 60px;
    animation-delay: 0.8s;
    width: 5px;
    height: 42px;
}

.steam:nth-child(3) {
    left: 85px;
    animation-delay: 1.6s;
    width: 7px;
    height: 55px;
}

@keyframes steamRise {
    0% {
        transform: translateY(0) scaleY(0.8) scaleX(1);
        opacity: 0.7;
    }

    20% {
        transform: translateY(-10px) scaleY(1.3) scaleX(1.2);
        opacity: 0.9;
    }

    50% {
        transform: translateY(-25px) scaleY(1.6) scaleX(1.5);
        opacity: 0.6;
    }

    80% {
        transform: translateY(-40px) scaleY(1.8) scaleX(2);
        opacity: 0.3;
    }

    100% {
        transform: translateY(-60px) scaleY(2) scaleX(3);
        opacity: 0;
    }
}

.title-section {
    text-align: center;
    margin: 1.2rem 0;
}

.title-section h1 {
    font-size: 2.9rem;
    color: #f9e0c0;
    text-shadow: 3px 3px 0 #4e342e;
    margin-bottom: 0.5rem;
}

.title-section p {
    font-size: 1.3rem;
    color: #d7ccc8;
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 2.8rem 0 2rem;
    width: 100%;
}

.feature-item {
    background: linear-gradient(145deg, #4e342e, #3e2723);
    border-radius: 32px;
    padding: 2rem 1.8rem;
    text-align: center;
    flex: 1 1 200px;
    max-width: 230px;
    border: 2px solid #8d6e63;
    box-shadow: 0 15px 28px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(215, 168, 110, 0.25);
    transition: all 0.45s cubic-bezier(0.2, 0.9, 0.4, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(4px);
}

.feature-item::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle at 30% 30%, rgba(215, 168, 110, 0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: #d7a86e;
    box-shadow: 0 25px 35px rgba(0, 0, 0, 0.8), 0 0 15px #d7a86e;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3.2rem;
    filter: drop-shadow(0 6px 8px black);
    z-index: 2;
    transition: transform 0.3s;
    background: rgba(255, 255, 240, 0.1);
    padding: 12px;
    border-radius: 50%;
    display: inline-block;
}

.feature-item:hover .feature-icon {
    transform: rotate(5deg) scale(1.1);
}

.feature-item h3 {
    color: #f9e0c0;
    font-size: 1.5rem;
    z-index: 2;
}

.feature-item p {
    color: #d7ccc8;
    font-size: 1rem;
    z-index: 2;
}

.feature-badge {
    background: #d7a86e;
    color: #3e2723;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 2;
}

.support-section {
    background: linear-gradient(135deg, #4e342e 0%, #3e2723 100%);
    border: 2px dashed #d7a86e;
    border-radius: 30px;
    padding: 2.2rem 1.5rem;
    margin: 2.8rem auto 3.5rem;
    text-align: center;
    max-width: 550px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    position: relative;
}

.support-section::before {
    content: "☕";
    position: absolute;
    top: -28px;
    right: 30px;
    font-size: 2.8rem;
    background: #3e2723;
    padding: 0 12px;
    border-radius: 40%;
}

.support-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #f9e0c0;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.support-emoji {
    font-size: 2.5rem;
    display: block;
    margin: 0.3rem 0;
}

.support-btn {
    background: #d7a86e;
    border: none;
    color: #3e2723;
    font-weight: bold;
    padding: 12px 32px;
    border-radius: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 6px 0 #6d4c41;
    margin-top: 0.8rem;
    display: inline-block;
    text-decoration: none;
}

.support-btn:hover {
    background: #e6b87a;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 #5d4037;
}

footer {
    margin-top: auto;
    text-align: center;
    padding: 1.5rem;
    background: #2d1c15;
    color: #bcaaa4;
    font-size: 0.9rem;
    border-top: 2px solid #5d4037;
}

.fade-up {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .coffee-animation-container {
        height: 280px;
    }

    .coffee-scene {
        width: 240px;
        height: 250px;
    }

    .cup {
        width: 105px;
        height: 100px;
    }

    .steam:nth-child(1) {
        left: 28px;
    }

    .steam:nth-child(2) {
        left: 48px;
    }

    .steam:nth-child(3) {
        left: 68px;
    }

    .support-text {
        font-size: 1.5rem;
    }
}