:root {
    --primary-color: #008080; /* Teal - often associated with travel */
    --secondary-color: #f0f8ff;
    --text-color: #111; /* Darker text for better readability */
    --bg-color: #f4f4f4;
    --card-bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    /* Background Image setup in ::before for blur effect */
    color: var(--text-color);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative; /* Ensure proper stacking context */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') no-repeat center center;
    background-size: cover;
    filter: blur(8px);
    transform: scale(1.1); /* Prevent blurred edges */
}

.main-layout {
    display: flex;
    gap: 60px; /* Increased gap to shift sidebar slightly */
    width: 100%;
    max-width: 1000px; /* Increased max-width to accommodate larger gap */
    z-index: 2;
    align-items: flex-start; /* Align tops of containers */
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center; /* Center content when wrapped */
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
    text-align: center; /* Center content by default */
}

/* Sidebar Layouts */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.left-sidebar {
    width: 400px;
}

.right-sidebar {
    width: 400px;
    margin-top: 60px; /* Shifted down for visual balance */
}

/* Tab Navigation */
.tabs-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px; /* Consistent gap */
    padding: 5px; /* Consistent padding */
    background: rgba(255, 255, 255, 0.25); /* Glassmorphism base */
    backdrop-filter: blur(12px); /* Strong blur for premium feel */
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px; /* Full pill shape for container */
    border: 1px solid rgba(255, 255, 255, 0.4); /* Subtle border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    width: 100%; /* Fill grid cell */
    background: transparent;
    border: none;
    padding: 8px 0; /* No side padding needed due to centering */
    border-radius: 40px; /* Pill shape buttons */
    cursor: pointer;
    font-size: 0.75rem; /* Increased slightly for better legibility */
    font-weight: 700;
    color: #222; /* Darker grey for contrast on glass */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    white-space: nowrap; /* Force single line */
    box-shadow: none; /* Reset individual shadows */
    letter-spacing: -0.2px; /* Slightly relaxed letter spacing */
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    color: var(--primary-color);
    transform: translateY(0); /* Remove jumpiness */
}

.tab-btn.active {
    background: #fff; /* Clean white active state */
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Removed transform scale to keep spacing perfectly equal */
}

.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sensory/Fact Cards in Sidebar */
.link-card.sensory-card {
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none; /* Remove default border if any */
}

.sensory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* MAXIMUM BRIGHTNESS: Transparent for most of the image, slight shadow only at bottom for text */
    background: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,0.4)); 
    z-index: 1;
}

.sensory-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 20px;
}

.sensory-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: white; /* Ensure text is white */
}

.sensory-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    font-weight: 500;
    color: white; /* Ensure text is white */
}

.play-button {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
    transition: transform 0.2s;
    color: white; /* Ensure icon is white */
}



.sensory-card:hover .play-button {
    transform: scale(1.1);
}

#sensory-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Specific styling for the Daily Escape (Sensory) card to clear the image */
#sensory-card .sensory-content {
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 30px;
}

#sensory-card .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-size: 4rem; /* Larger play button for better UX */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.link-card.fact-card {
    min-height: 350px; /* Allow expansion for content */
    height: auto;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: default;
    border: 2px solid rgba(0,0,0,0.05); /* Subtle border definition */
    padding: 30px !important; /* Reset padding to center content properly */
    border-radius: 30px; /* Reduce corner radius for better text containment */
}



/* Responsive Design */
@media (max-width: 850px) {
    .main-layout {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .sidebar {
        width: 100%;
        max-width: 400px;
        position: static; /* Remove sticky on mobile */
    }
    
    .fact-card, .sensory-card {
        min-height: 300px; /* Slightly smaller on mobile */
        height: auto;
    }
}

/* Profile Section */
.profile {
    margin-bottom: 0;
    text-align: center; /* Ensure centering without glass-panel */
    padding: 10px; /* Slight padding for spacing */
}

.profile-pic img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.profile h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #000;
}

.profile .bio {
    font-size: 0.95rem;
    color: #000; /* Darker for better readability against gradient */
    line-height: 1.4;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
    text-align: center;
}

.profile .bio-footer {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
    text-align: center;
    margin-top: 35px; /* Separation from main bio */
    font-weight: 600; /* Optional: make it slightly bolder as it is important info */
}

.bio-mobile {
    display: none;
}

@media (max-width: 850px) {
    .bio-desktop {
        display: none !important;
    }
    .profile .bio-mobile {
        display: block !important;
        text-align: center; /* Center align for better mobile appearance */
        line-height: 1.6; /* Improved line height for readability */
        padding: 0 15px; /* Increased padding for S23 Ultra width */
        font-size: 1.05rem; /* Slightly larger text for high-res screens */
        color: #000; /* Ensure text is visible */
        font-family: 'Poppins', sans-serif; /* Modern, clean font */
    }
}

/* Links Section */
.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-card {
    background-color: var(--card-bg);
    padding: 18px 20px; /* Reduced side padding to shift content left */
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align content to the left */
    text-align: left; /* Align text to the left */
    position: relative;
}

.link-card i {
    position: relative; /* Changed from absolute to prevent overlap */
    margin-right: 15px; /* Add spacing since we removed absolute */
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0; /* Prevent icon from shrinking */
    width: 25px; /* Fixed width for perfect alignment */
    text-align: center; /* Center icon within its fixed width */
}

.link-card span {
    font-size: 1rem;
}

.link-card small {
    display: block;
    font-size: 0.75rem;
    color: #555;
    font-weight: normal;
    margin-top: 2px;
}

/* Special styling for the main CTA link */
.main-cta {
    background-color: var(--primary-color);
    color: white;
}

.main-cta i {
    color: white;
}

.main-cta small {
    color: rgba(255,255,255,0.9);
}

/* Hot Deals Link */
.hot-deals-link span,
.hot-deals-link i {
    color: #e74c3c;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Social Icons */
.socials {
    margin-top: 0; /* Removed margin */
    margin-bottom: 20px;
    display: flex;
    justify-content: center; /* Center align icons */
}

.socials a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.2s;
}

.socials a:hover {
    color: var(--primary-color);
}

/* Footer Section */
.footer-section {
    text-align: center;
    padding: 10px;
}
/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 10px;
}

.trust-badges img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%); /* Optional: unify look slightly */
    transition: filter 0.3s;
}

.trust-badges img:hover {
    filter: grayscale(0%);
}

footer {
    font-size: 0.8rem;
    color: #333; /* Darker for better visibility */
    margin-top: 20px;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}
