/* VlogMedia Website Stylesheet */

/* Reset some basic elements */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Global container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Header */
header {
  background-color: #0b0d21;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff;
}

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

.nav-links li a {
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: #9b5de5;
}

/* Mobile menu toggle */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

/* Hero section */
.hero {
  position: relative;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 13, 33, 0.65);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #d1c4e9;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  background: linear-gradient(45deg, #7b2cbf, #4a00e0);
  color: #ffffff;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: linear-gradient(45deg, #4a00e0, #7b2cbf);
}

/* Sections */
section {
  padding: 4rem 0;
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #222;
  position: relative;
}

section h2::after {
  content: '';
  width: 60px;
  height: 3px;
  background: #7b2cbf;
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Services Section */
.services {
  background: #f5f5f5;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #333;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

/* Portfolio Section */
.portfolio {
  background: #ffffff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.portfolio-grid img {
  border-radius: 8px;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 13, 33, 0.7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .overlay {
  opacity: 1;
}

/* Blog section */
.blog {
  background: #f5f5f5;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-post {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-post .content {
  padding: 1.5rem;
}

.blog-post h3 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  color: #333;
}

.blog-post p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.blog-post .read-more {
  margin-top: 1rem;
  display: inline-block;
  color: #7b2cbf;
  font-weight: 600;
  transition: color 0.3s ease;
}

.blog-post .read-more:hover {
  color: #4a00e0;
}

/* Footer */
footer {
  background: #0b0d21;
  color: #cccccc;
  padding: 2rem 0;
  font-size: 0.9rem;
}

footer .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

footer .footer-section {
  flex: 1 1 200px;
}

footer h4 {
  color: #ffffff;
  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
  line-height: 1.8;
}

footer ul li a {
  color: #cccccc;
  transition: color 0.3s ease;
}

footer ul li a:hover {
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0b0d21;
    width: 100%;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links li {
    margin: 1rem 0;
  }
  .nav-links.open {
    max-height: 500px;
  }
  .hamburger {
    display: flex;
  }
}

/* About page specifics */
.about-section {
  background: #ffffff;
}
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.about-content img {
  flex: 1 1 300px;
  border-radius: 8px;
  object-fit: cover;
  height: 300px;
}
.about-content div {
  flex: 1 1 300px;
}

/* Services page specifics */
.service-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}
.service-detail img {
  flex: 1 1 300px;
  border-radius: 8px;
  object-fit: cover;
  height: 200px;
}
.service-detail div {
  flex: 2 1 300px;
}

/* Blog post page specifics */
.post-header {
  background: #f5f5f5;
  padding: 3rem 0;
  text-align: center;
}
.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.post-header .meta {
  color: #777;
  font-size: 0.9rem;
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.7;
  color: #333;
}
.post-content img {
  border-radius: 8px;
  margin: 2rem 0;
}