/* ===========================
   VARIABLES & GLOBAL STYLES
=========================== */
:root {
    --primary-color: #00aaff;
    --primary-hover: #66d9ff;
    --background-color: #121212;
    --sidebar-bg: #1c1c1c;
    --text-color: #00aaff;
    --text-dark: #121212;
    --border-radius: 6px;
    --shadow-glow: 0 0 30px rgba(0,170,255,0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* ===========================
   NAVIGATION
=========================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 200px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.nav-links li {
    width: 100%;
    text-align: center;
}

.nav-links a {
    display: block;
    width: 100%;
    padding: 14px 0;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-hover);
    background-color: rgba(0, 170, 255, 0.1);
}

/* ===========================
   MAIN CONTENT WRAPPER
=========================== */
.content {
    padding-left: 200px; /* offset for nav */
    max-width: 1000px;
    margin: 0 auto;
    transition: padding 0.3s ease;
}

/* ===========================
   LANDING SECTION
=========================== */
.landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 0 20px;
}

.landing h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.landing p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* ===========================
   BUTTONS
=========================== */
.cta-button,
.link-button,
.youtube-link,
.back-button {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--primary-color);
    color: var(--text-dark);
    font-weight: bold;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
}

.back-button {
    margin-top: 25px;
    padding: 14px 30px;
}

.cta-button:hover,
.link-button:hover,
.youtube-link:hover,
.back-button:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

.youtube-link {
    margin-bottom: 40px;
}

/* ===========================
   FOOTER
=========================== */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: var(--sidebar-bg);
    color: var(--primary-color);
    border-top: 1px solid var(--primary-color);
    margin-top: 40px;
}

/* ===========================
   GENERIC SECTIONS
=========================== */
.about-section,
.links-section,
.team-section,
.member-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-section h1,
.links-section h1,
.team-section h1,
.member-profile h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-section p,
.member-profile p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 20px;
}

/* Links Section */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Team Section */
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    transition: transform 0.2s;
}

.team-member img,
.member-profile img {
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    margin-bottom: 10px;
}

.team-member img {
    width: 100px;
    height: 100px;
}

.member-profile img {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

.team-member:hover {
    transform: scale(1.05);
}

.team-member span {
    font-size: 1.1rem;
}

.team-member .owner {
    font-weight: bold;
}

/* ===========================
   VIDEOS - MERLEY STYLE CARDS (Improved)
=========================== */
.video-list {
    display: flex;          
    flex-direction: column;
    gap: 30px;             /* more space between cards */
    align-items: center;   
    width: 100%;
    max-width: 1000px;     /* larger cards allowed */
    margin: 0 auto;
}

.video-list a {
    display: flex;
    flex-direction: row;
    align-items: stretch;   /* thumbnail matches card height */
    width: 100%;
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.video-list img {
    width: 400px;           /* keeps horizontal space */
    height: 100%;           /* fills vertical height of card */
    object-fit: cover;      /* crop nicely */
    flex-shrink: 0;
    border-radius: 0;
    border-right: 1px solid var(--primary-color);
}

.video-list a:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,170,255,0.4);
}

.video-info{
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;                /* fill remaining horizontal space */
}

.video-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;      /* bigger titles */
}

.video-info p {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #ccc;
}

.video-info span {
    font-size: 0.9rem;
    color: #aaa;
}



/* Medium devices (tablets / small desktops) */
@media (max-width: 768px) {
    nav {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-around;
        padding: 10px 0;
        border-right: none;
        border-bottom: 1px solid var(--primary-color);
        position: fixed;
        top: 0;
        left: 0;
    }

    .logo-container {
        display: none;
    }

    .nav-links {
        flex-direction: row;
        gap: 10px;
        width: auto;
    }

    .content {
        padding-left: 0; /* remove sidebar offset */
        padding-top: 60px; /* push content below nav */
    }

    .landing h1 {
        font-size: 3rem;
    }

    .landing p {
        font-size: 1.1rem;
    }

    .video-list iframe {
        max-width: 100%;
        height: auto;
    }
}

/* Mobile devices */
@media (max-width: 480px) {
    .landing h1 {
        font-size: 2.2rem;
    }

    .landing p {
        font-size: 1rem;
    }

    .team-container {
        flex-direction: column;
        gap: 20px;
    }

    .links-container {
        max-width: 100%;
    }

    .back-button,
    .cta-button,
    .link-button,
    .youtube-link {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .video-wrapper {
        max-width: 100%;
    }
}
