/* Base Styles */

:root {
    --primary-color: #97b49d;
    /* Engineering Orange */
    --accent-color: #887760;
    /* Lapis Lazuli */
    --dark-bg: #121212;
    /* Raisin Black */
    --card-bg: #1f1f1f;
    --text-color: #ffffff;
    /* Floral White */
    --hover-glow: rgba(255, 255, 255, 0.1);
    /* Light Glow on Hover */
    --overlay-tint: rgba(0, 0, 0, 0.3);
    /* Slightly lighter gray tint for background overlay */
    --navbar-height: 60px;
    /* Define this for dynamic padding */
}


/* Prevent Side Scrolling */

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

html,
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    /* Disable horizontal scrolling */
    position: relative;
}

body,
html {
    height: 100%;
    /* Ensure full height for scrolling */
    overflow-y: auto;
    /* Enable vertical scrolling */
}


/* Blurred Background Image */

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../assets/images/wakeupblind.webp") no-repeat center center;
    background-size: cover;
    filter: blur(8px);
    opacity: 0.6;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-tint);
    z-index: -1;
}


/* Logo Link Styling */

.logo-link {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.logo {
    width: 80px;
    height: auto;
}

.linktree {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 150vh;
    /* Ensure enough height for scrolling */
    margin-bottom: 0;
    padding: 0px;
    background-color: transparent;
}

.profile {
    text-align: center;
    margin-bottom: 20px;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}


/* Sticky Navbar */

.sticky-navbar {
    position: sticky;
    top: 0;
    /* Sticks to the top when it gets there */
    z-index: 100;
    /* Ensure it's above other elements */
    background: rgba(18, 18, 18, 0.95);
    /* Background to differentiate */
    width: fit-content;
    /* Width only as wide as necessary */
    margin: 0 auto;
    /* Center horizontally */
    padding: 10px 20px;
    /* Padding for buttons */
    border-radius: 8px;
    /* Rounded corners for aesthetic */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Subtle shadow */
    transition: all 0.3s ease-in-out;
    /* Smooth appearance */
}


/* Tabs Styling */


/* Ensure the tabs container doesn't cause overflow */

.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    /* Allow tabs to wrap to next line on small screens */
    max-width: 100%;
    /* Ensure it doesn't exceed viewport width */
    padding: 0 5px;
    /* Add minimal padding */
}


/* Make tabs more responsive */

.tab {
    font-size: clamp(0.8rem, 1vw, 1rem);
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-color);
    background: transparent;
    padding: 6px 10px;
    border-radius: 20px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.3s, color 0.3s, border 0.3s;
    white-space: nowrap;
    margin: 3px;
}


/* Enhance mobile support */

@media (max-width: 768px) {
    .sticky-navbar {
        width: 95%;
        /* Make navbar nearly full width on mobile */
        padding: 8px 5px;
        /* Reduce padding */
    }
    .tabs {
        flex-wrap: wrap;
        /* Ensure tabs wrap on mobile */
        gap: 5px;
        /* Reduce gap between tabs */
    }
    .tab {
        font-size: 0.75rem;
        /* Smaller font on mobile */
        padding: 5px 8px;
        /* Smaller padding */
        margin: 2px;
        /* Smaller margins */
    }
}


/* For very small screens */

@media (max-width: 480px) {
    .tabs {
        justify-content: center;
        /* Center tabs */
    }
    .tab {
        font-size: 0.7rem;
        /* Even smaller font */
        padding: 4px 6px;
        /* Minimal padding */
    }
}

.tab:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tab-active {
    background: var(--primary-color);
    color: var(--text-color);
    border: 2px solid var(--accent-color);
}

.tab-disabled {
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}


/* Video Section Styling */

.video-section {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 20px;
    width: 100%;
}

.video-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

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


/* Links Section Styling */

.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 350px;
    margin-top: 10px;
    margin-bottom: 0;
}

.link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.link img {
    width: 25px;
    height: 25px;
    object-fit: cover;
}

.link:hover {
    background-color: var(--accent-color);
}


/* Streaming Links Padding Adjustment */

.links {
    margin-top: 20px;
}


/* Navbar Padding Adjustment */

.linktree {
    padding-top: calc(var(--navbar-height, 60px) + 20px);
}


/* Responsive Design */

@media (max-width: 768px) {
    .profile-pic {
        width: 100px;
        height: 100px;
    }
    .link {
        font-size: 1rem;
        padding: 10px 15px;
    }
    .logo {
        width: 60px;
    }
    .tab {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}