/* Base styles and CSS variables */
:root {
    --primary-bg: #000000;
    --secondary-bg: #111111;
    --text-color: #ffffff;
    --accent-color: #ff0000;
    --hover-color: #ff3333;
    --spacing: 2rem;
    --border-radius: 12px;
    --max-width: 1400px;
    --transition: all 0.3s ease;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: #141414;
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  overflow-x: hidden;
  width: 100vw;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation styles */
nav {
    background-color: var(--secondary-bg);
    padding: 1.5rem var(--spacing);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

nav .logo:hover {
    color: var(--accent-color);
}

nav, .nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

nav a:hover {
    color: var(--accent-color);
}

/* Banner styles */
.banner {
    width: 100%;
    height: auto;
    display: block;
}

/* Main content */
main {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing);
}

/* Featured section */
#featured {
    background-color: var(--secondary-bg);
    padding: var(--spacing);
    margin: -var(--spacing);
    margin-bottom: var(--spacing);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#featured h1 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: var(--spacing);
    text-align: center;
}

.featured-player-container {
  position: relative;
  width: 100%;
  height: 80vh;
  margin-top: 0;
  overflow: hidden;
}

#featured-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Add gradient overlay */
.featured-player-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 7.5rem;
  background: linear-gradient(180deg, transparent, rgb(20, 20, 20));
}

.featured-content {
  position: absolute;
  bottom: 35%;
  left: 4%;
  z-index: 10;
}

.featured-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.featured-buttons {
  display: flex;
  gap: 1rem;
}

.play-btn {
  background: #fff;
  color: #000;
  font-size: 1.2rem;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.play-btn:hover {
  background: rgba(255,255,255,0.75);
}

/* Video grid section */
#videos {
    padding: var(--spacing) 0;
}

#videos h2 {
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 1rem;
}

.portfolio-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing);
    color: #888;
    font-size: 1.1rem;
}

#video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 0 48px 48px 24px;
  background: #141414;
}

.video-card {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #2f2f2f;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.video-card:hover {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  color: white;
}

.video-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

/* Load More button */
.load-more-container {
    text-align: center;
    padding: var(--spacing) 0;
}

.load-more-button {
    background-color: var(--secondary-bg);
    color: var(--text-color);
    border: 2px solid var(--accent-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.load-more-button:hover {
    background-color: var(--accent-color);
}

.load-more-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading and error states */
.loading, .error {
    text-align: center;
    padding: var(--spacing);
    grid-column: 1 / -1;
}

.error {
    color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--secondary-bg);
    padding: var(--spacing);
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    opacity: 0.8;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    background-color: #ffffff; /* White background for social media icons */
    padding: 1rem;
    border-radius: var(--border-radius);
}

.social-media a {
    display: inline-block;
    width: 40px;
    height: 40px;
}

.social-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Split container for contact page */
.split-container {
  display: flex;
  width: 100%;
  height: 100vh;
}

.contact-sidebar {
  width: 20%;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: #141414;
  border-right: 1px solid rgba(255,255,255,0.1);
  z-index: 100;
}

.contact-sidebar iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.main-content {
  flex: 1;
  margin-left: 20%; /* Match sidebar width */
  overflow-y: auto;
  width: 80%;
}

/* Update existing styles */
#video-grid {
  padding: 0 48px 48px 24px;
}

.featured-player-container {
  width: 100%;
}

@media (max-width: 1024px) {
  .contact-sidebar {
    width: 25%;
  }
  
  .main-content {
    margin-left: 25%;
    width: 75%;
  }
}

@media (max-width: 768px) {
  .split-container {
    flex-direction: column;
  }
  
  .contact-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 400px;
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
}

/* Responsive design */
@media (max-width: 768px) {
    :root {
        --spacing: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    #featured-video-player {
        max-width: 100%;
    }

    #video-grid {
        padding: 0 16px 32px 16px;
        gap: 16px;
    }

    .video-card:hover {
        transform: none;
    }

    .load-more-button {
        width: 100%;
    }
}

@media (max-width: 900px) {
  .navbar {
    padding-left: 0;
    padding-right: 0;
  }
  .row-title {
    margin-left: 16px;
  }
  #video-grid {
    padding-left: 16px;
  }
}

@media (max-width: 600px) {
  .featured-player-container {
    min-height: 180px;
    margin-top: 56px;
  }
  #featured-video-player {
    min-height: 180px;
  }
  .video-card, .video-card img {
    width: 160px;
    min-width: 160px;
    height: 90px;
  }
  .row-title {
    margin-left: 8px;
    font-size: 1.1rem;
  }
  #video-grid {
    gap: 12px;
    padding-left: 8px;
  }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.video-card {
    animation: fadeIn 0.5s ease-out forwards;
}

.navbar {
  display: flex;
  align-items: center;
  padding: 0 40px;
  height: 68px;
  background: rgba(20,20,20,0.7);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 10;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
  transition: background 0.3s;
}

.navbar.scrolled {
  background: rgb(20, 20, 20);
}

.logo {
  font-size: 2.2rem;
  font-weight: bold;
  color: #e50914;
  letter-spacing: 2px;
  margin-right: 40px;
  text-decoration: none;
  text-shadow: 0 2px 8px #000;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
  font-weight: 500;
}

.nav-links a:hover {
  opacity: 1;
  color: #e50914;
}

.profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: url('profile.jpeg') center/cover no-repeat, #333;
  margin-left: 20px;
  border: 2px solid #e50914;
}

.row-title {
  font-size: 1.4rem;
  margin: 48px 0 18px 48px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #000;
}