/* Professional, clean font for real estate */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=Playfair+Display:wght@600;700&display=swap');

body {
    background:
        linear-gradient(135deg, rgba(240, 249, 255, 0.9) 0%, rgba(224, 242, 254, 0.7) 50%, rgba(186, 230, 253, 0.9) 100%),
        url('assets/background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #0c4a6e;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.02"/><circle cx="50" cy="10" r="1" fill="%23000" opacity="0.02"/><circle cx="10" cy="90" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: -1;
}

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

.float-element {
    position: absolute;
    font-size: 1.5em;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.wave1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.wave2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.wave3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.container {
    width: 100%;
    max-width: 420px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    margin: 10px auto;
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.translate-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85em;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.translate-btn:hover {
    background: rgba(15, 23, 42, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #64748b, transparent);
    border-radius: 24px 24px 0 0;
}

.profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

h1 {
    font-size: 1.75em;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #7B2D2D;
    letter-spacing: -0.025em;
    font-family: 'Playfair Display', serif;
}

p {
    font-size: 0.95em;
    font-weight: 400;
    margin-bottom: 25px;
    color: #5a5a5a;
    line-height: 1.6;
}

/* Product showcase */
.product-showcase {
    margin: 25px 0 35px 0;
}

.product-card {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 15px 15px 20px;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    font-weight: 500;
    font-size: 0.9em;
}

.product-card:hover .product-overlay {
    transform: translateY(0);
}

/* Product indicators */
.product-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Enhanced product image transitions */
.product-image {
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid #f1f5f9;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
}

/* Enhanced link buttons */
.links-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #FEFDFB;
    color: #7B5B4A;
    padding: 18px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #8B6F5E;
    position: relative;
    overflow: hidden;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.25);
    min-height: 75px;
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 91, 74, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-button:hover::before {
    left: 100%;
}

.btn-icon {
    font-size: 2em;
    margin-right: 14px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7B5B4A;
    flex-shrink: 0;
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.btn-title {
    font-weight: 600;
    font-size: 1em;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    word-break: break-word;
    max-width: 100%;
    font-family: 'Playfair Display', serif;
}

.btn-subtitle {
    font-size: 0.85em;
    opacity: 0.65;
    margin-top: 2px;
    word-break: break-word;
    max-width: 100%;
}

.link-button:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
}

.link-button:active {
    transform: translateY(0px);
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
}

/* Special button styles */
.listings-btn {
    background: #FEFDFB;
    color: #7B5B4A;
    border-color: #8B6F5E;
}

.listings-btn .btn-icon {
    color: #7B5B4A;
}

.contact-btn {
    background: #FEFDFB;
    color: #7B5B4A;
    border-color: #8B6F5E;
}

.contact-btn .btn-icon {
    color: #7B5B4A;
}

.instagram-btn {
    background: #FEFDFB;
    color: #7B5B4A;
    border-color: #8B6F5E;
}

.instagram-btn .btn-icon {
    color: #7B5B4A;
}

.about-btn {
    background: #FEFDFB;
    color: #7B5B4A;
    border-color: #8B6F5E;
}

.about-btn .btn-icon {
    color: #7B5B4A;
}

/* Responsive design */
@media (max-width: 480px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }

    .container {
        margin: 5px auto;
        padding: 35px 18px 25px;
        border-radius: 20px;
        max-width: 100%;
    }

    .profile-pic {
        width: 110px;
        height: 110px;
    }

    h1 {
        font-size: 1.4em;
        margin-top: 15px;
    }

    p {
        font-size: 0.88em;
        margin-bottom: 20px;
    }

    .wave-text-divider {
        font-size: 1.4em;
        margin: 20px 0;
        letter-spacing: 2px;
    }

    .wave-text-divider.wave-alt {
        font-size: 1.3em;
    }

    .product-showcase {
        margin: 20px 0 25px 0;
    }

    .product-card {
        width: 180px;
        height: 180px;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 15px;
    }

    .link-button {
        padding: 16px 12px;
        min-height: 70px;
    }

    .btn-icon {
        font-size: 1.8em;
        margin-right: 10px;
        min-width: 38px;
    }

    .btn-title {
        font-size: 0.88em;
    }

    .btn-subtitle {
        font-size: 0.72em;
    }

    .translate-btn {
        top: 12px;
        right: 12px;
        padding: 6px 10px;
        font-size: 0.8em;
    }

    .float-element {
        font-size: 1.2em;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 30px 15px 20px;
    }

    h1 {
        font-size: 1.3em;
    }

    .product-card {
        width: 160px;
        height: 160px;
    }

    .btn-icon {
        font-size: 1.5em;
    }
}

/* Subtle animation for the whole container */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeInUp 0.8s ease-out;
}

/* Simple wave text dividers */
.wave-text-divider {
    text-align: center;
    font-size: 1.8em;
    color: #7B2D2D;
    margin: 30px 0;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    animation: gentleWave 4s ease-in-out infinite;
    user-select: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0.5;
}

.wave-text-divider.wave-alt {
    color: #9B3D3D;
    animation: gentleWave 5s ease-in-out infinite reverse;
    font-size: 1.6em;
    opacity: 0.6;
}

@keyframes gentleWave {

    0%,
    100% {
        transform: scaleX(1);
        opacity: 0.7;
    }

    50% {
        transform: scaleX(1.08);
        opacity: 0.9;
    }
}