*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary: #0ea5e9;
    --secondary: #22c55e;
    --accent: #f59e0b;
    --dark: #1e293b;
    --white: #ffffff;
}
body {
    font-family: "Inter", sans-serif;
    background: #0f172a;
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}
h1,
h2,
h3 {
    font-family: "Poppins", sans-serif;
}
a {
    text-decoration: none;
    color: inherit;
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}
#preloader.hide {
    opacity: 0;
    visibility: hidden;
}
.loader-content {
    text-align: center;
}
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.loader-content h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
}
.loader-content h2 span {
    color: var(--primary);
}
.loader-text {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 8px;
}

/* Page */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Background */
.page-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.page-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: bgZoom 40s ease-in-out infinite alternate;
}
@keyframes bgZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}
.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.65) 100%
    );
}

/* Floating */
.float-el {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}
.float-el:nth-child(1) {
    top: 12%;
    left: 8%;
    animation-delay: 0s;
}
.float-el:nth-child(2) {
    top: 18%;
    right: 10%;
    animation-delay: 1.5s;
}
.float-el:nth-child(3) {
    bottom: 20%;
    left: 6%;
    animation-delay: 3s;
}
.float-el:nth-child(4) {
    bottom: 12%;
    right: 8%;
    animation-delay: 4.5s;
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) rotate(8deg);
    }
}

/* Content */
.content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

/* Back button */
.back-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s;
}
.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}
.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.4);
}
.logo h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}
.logo h1 span {
    color: #38bdf8;
}

.page-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
}
.page-tagline {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 50px;
}

.selection-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 28px;
}
.selection-label i {
    color: #fbbf24;
    margin-right: 8px;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 780px;
    margin: 0 auto;
}

.card {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 36px 28px;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
    color: var(--white);
}

/* Card 1 - Foreign Tourist */
.card.tourist:hover {
    border-color: rgba(14, 165, 233, 0.6);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.3);
    background: rgba(14, 165, 233, 0.12);
}
.card.tourist::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        var(--primary),
        transparent,
        var(--primary)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}
.card.tourist:hover::after {
    opacity: 1;
}

/* Card 2 - Visit Locations */
.card.locations:hover {
    border-color: rgba(34, 197, 94, 0.6);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.12);
}
.card.locations::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    padding: 2px;
    background: linear-gradient(
        135deg,
        var(--secondary),
        transparent,
        var(--secondary)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}
.card.locations:hover::after {
    opacity: 1;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 18px;
    display: block;
}

.card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.card.tourist h2 {
    color: #38bdf8;
}
.card.locations h2 {
    color: #4ade80;
}

.card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 22px;
}
.card-feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.card.tourist .card-btn {
    background: linear-gradient(135deg, var(--primary), #0284c7);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}
.card.locations .card-btn {
    background: linear-gradient(135deg, var(--secondary), #16a34a);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}
.card:hover .card-btn {
    transform: scale(1.05);
}

/* Footer */
.page-footer {
    position: relative;
    z-index: 1;
    margin-top: 50px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 100%;
    }
    .logo h1 {
        font-size: 1.6rem;
    }
    .logo-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
    .page-subtitle {
        font-size: 1rem;
    }
    .card {
        padding: 28px 22px;
    }
    .card h2 {
        font-size: 1.3rem;
    }
    .card-icon {
        font-size: 2.8rem;
    }
    .card-btn {
        padding: 11px 24px;
        font-size: 0.88rem;
    }
    .float-el {
        display: none;
    }
    .back-btn {
        top: 16px;
        left: 16px;
        padding: 8px 16px;
        font-size: 0.82rem;
    }
    .selection-label {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 24px 18px;
    }
    .card h2 {
        font-size: 1.15rem;
    }
    .card p {
        font-size: 0.85rem;
    }
    .card-btn {
        width: 100%;
        justify-content: center;
    }
    .page {
        padding: 30px 16px;
    }
    .logo h1 {
        font-size: 1.4rem;
    }

}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: 150px;      /* ඔබේ ලෝගෝ එකේ ප්‍රමාණයට අනුව මෙය වෙනස් කරන්න */
    height: 150px;
    object-fit: contain;
    margin-right: 10px;
}
