:root {
    /* Fon rasmi: admin paneldan o'zgartirilsa, taplink.js shu o'zgaruvchini
       almashtiradi; aks holda quyidagi standart rasm ishlatiladi. */
    --tl-bg: url('assets/bg.jpeg?v=3');
    --primary-color: #df4079;
    --text-dark: #2d2d2d;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    background-color: #e9c9d6; /* fallback while the photo loads */
    color: var(--text-dark);
    display: flex;
    justify-content: center;
}

/* Base background layer: fills the whole viewport */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: var(--tl-bg, url('assets/bg.jpeg?v=3'));
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Wide screens: the photo is only 675px wide, so stretching it to full width
   blurs it. Instead the ::before layer becomes a soft blurred filler and
   ::after shows the photo at (nearly) native size behind the content column. */
@media (min-width: 701px) {
    body::before {
        filter: blur(24px) saturate(1.15);
        transform: scale(1.12); /* hides the blurred edges */
    }

    body::after {
        content: "";
        position: fixed;
        inset: 0;
        background-image: var(--tl-bg, url('assets/bg.jpeg?v=3'));
        background-size: auto 100%; /* height-fit -> no upscaling */
        background-position: center;
        background-repeat: no-repeat;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
        z-index: 0;
    }
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Slight pinkish fade at bottom for text readability */
    background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, rgba(223, 64, 121, 0.3) 100%);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px; /* Standard mobile width */
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header & Profile */
.profile {
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
}

.logo {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    margin-bottom: 15px;
    object-fit: cover;
}

.brand {
    margin-bottom: 15px;
    color: var(--text-light); /* Changed to white */
    text-shadow: 0 2px 8px rgba(0,0,0,0.3); /* Added shadow for better visibility */
}

.title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 5px;
}

.subtitle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 8px;
}

.line {
    height: 1px;
    background-color: var(--text-light); /* Changed to white */
    width: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.travel-text {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 2px;
}

.plane-icon {
    font-size: 1.2rem;
}

.slogan-cursive {
    font-family: 'Dancing Script', cursive;
    color: var(--text-light); /* Changed to white */
    text-shadow: 0 2px 6px rgba(0,0,0,0.4); /* Added shadow */
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.info {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--glass-bg);
    padding: 15px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.info p {
    display: flex;
    align-items: center;
    justify-content: center;
}

.info i {
    color: var(--primary-color);
    margin-right: 8px;
    width: 16px;
}

/* Links Section */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 35px;
}

.link-card {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid var(--glass-border);
    border-radius: 18px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.icon-wrapper.telegram {
    background-color: #27A6E5;
}
.icon-wrapper.insta {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.link-content {
    flex-grow: 1;
    text-align: left;
}

.link-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.link-content p {
    font-size: 0.85rem;
    opacity: 0.85;
    font-weight: 500;
}

.link-content .phone {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    opacity: 1;
}

.arrow {
    color: var(--primary-color);
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer Section */
.footer {
    width: 100%;
    text-align: center;
    color: var(--text-light);
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.4);
    max-width: 120px;
}

.divider i {
    margin: 0 15px;
    font-size: 1.1rem;
}

.footer-slogan {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.social-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.social-footer a {
    color: var(--text-light);
    font-size: 1.4rem;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.social-footer a:hover {
    transform: scale(1.1);
}

.social-footer .sep {
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
}

/* Responsiveness */
@media (max-width: 400px) {
    .title { font-size: 2.5rem; }
    .logo { width: 90px; height: 90px; }
    .link-card { padding: 12px 15px; }
    .icon-wrapper { width: 42px; height: 42px; font-size: 1.2rem; }
    .link-content h3 { font-size: 0.95rem; }
    .link-content p { font-size: 0.75rem; }
}
