﻿* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f3e9 url('https://www.transparenttextures.com/patterns/clean-gray-paper.png');
    margin: 0;
    padding: 0;
    color: #4a3933;
}

header {
    background: linear-gradient(135deg, #8a3e12, #c2703c);
    color: #fff8e3;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(102, 51, 0, 0.2);
}

    header::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
        opacity: 0.1;
    }

    header h1 {
        margin: 0;
        font-size: 2.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        letter-spacing: 1px;
    }

    header p {
        margin: 10px 0 0;
        font-size: 1.2rem;
        opacity: 0.9;
    }

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    padding: 50px 20px;
    max-width: 1000px;
    margin: auto;
    position: relative;
    z-index: 10;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 320px;
    perspective: 1000px;
    position: relative;
    z-index: 10;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 25px rgba(102, 51, 0, 0.15);
    border-radius: 15px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    backface-visibility: hidden;
    overflow-y: auto;
    padding: 30px;
}

.flip-card-front {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 28px;
    background: linear-gradient(145deg, #f4e5c9, #e6c89f);
    color: #6b4226;
    border: 1px solid rgba(196, 128, 77, 0.3);
}

    .flip-card-front::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('https://www.transparenttextures.com/patterns/brushed-alum.png');
        opacity: 0.1;
        border-radius: 15px;
    }

.flip-card-back {
    transform: rotateY(180deg);
    text-align: center;
    font-size: 1.2rem;
    background: linear-gradient(145deg, #9d5320, #c27c4b);
    color: #fff8e3;
    border: 1px solid rgba(196, 128, 77, 0.3);
}

    .flip-card-back::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('https://www.transparenttextures.com/patterns/diagonal-striped-brick.png');
        opacity: 0.05;
        border-radius: 15px;
    }

h2 {
    border-bottom: 2px solid rgba(255, 248, 227, 0.4);
    padding-bottom: 12px;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.flip-card-front h2 {
    border-bottom: 2px solid rgba(107, 66, 38, 0.4);
    color: #853f0e;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background-color: #e78c3c;
}

.flip-card-front h2::after {
    background-color: #853f0e;
}

ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
}

li {
    padding: 8px 0;
    position: relative;
}

.contact {
    background: linear-gradient(145deg, #e6c89f, #d6b384);
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    margin: 20px auto 40px;
    max-width: 1000px;
    box-shadow: 0 5px 15px rgba(102, 51, 0, 0.1);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

    .contact::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('https://www.transparenttextures.com/patterns/clean-gray-paper.png');
        opacity: 0.1;
    }

a {
    color: #fff8e3;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

    a:hover {
        color: #ffc785;
        text-decoration: none;
    }

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #853f0e;
    opacity: 0.8;
}

.social-links {
    margin-top: 20px;
}

    .social-links a {
        display: inline-block;
        margin: 0 10px;
        font-size: 1.5rem;
        color: #6b4226;
        transition: transform 0.3s ease, color 0.3s ease;
    }

        .social-links a:hover {
            transform: translateY(-5px);
            color: #9d5320;
        }

.leaf {
    position: fixed;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .flip-card {
        height: 360px;
    }

    header h1 {
        font-size: 2rem;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 20px;
    }
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: #E3C39E;
    border-radius: 4px;
}