/* Reset and base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
  background: #121212;
  color: #eee;
  overflow-x: hidden;
}

/* Container */
.container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: #1f2937;
  width: 280px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  transition: transform 0.3s ease;
  z-index: 1001;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.logo {
  font-weight: 800;
  font-size: 1.8rem;
  color: #00ffff;
}

.close-btn {
  background: transparent;
  color: #00ffff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  display: none;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 1.5rem;
}

.sidebar-nav a {
  color: #eee;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.25s ease, color 0.25s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: #00ffff;
  color: #121212;
  transform: translateX(8px);
  box-shadow: 0 4px 8px #00ffffaa;
}

.sidebar-footer {
  margin-top: auto;
  color: #555;
  font-size: 0.9rem;
  text-align: center;
  user-select: none;
}

/* Hamburger */
.hamburger {
  display: none;
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;
}

.hamburger .bar {
  height: 4px;
  width: 100%;
  background-color: #00ffff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Main content */
.main-content {
  margin-left: 280px;
  padding: 3rem 2rem;
  flex-grow: 1;
  outline: none;
}

/* Section Titles */
h1, h2 {
  position: relative;
  text-align: center;
}

hr {
  border: none;
  border-bottom: 2px solid #00ffff;
  width: 120px;
  margin: 0.5rem auto 2rem;
  opacity: 0.7;
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 4rem;
}

.hero-text h1 {
  font-weight: 800;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #00ffff;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.btn-primary {
  padding: 0.75rem 1.75rem;
  background: #00ffff;
  color: #121212;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 15px #00ffffaa;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #00cccc;
  box-shadow: 0 6px 20px #00cccccc;
  outline: none;
}

.hero-image img {
  width: 360px;
  height: 360px;
  border-radius: 25px;
  object-fit: cover;
  box-shadow: 0 8px 25px #00ffff88;
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
}

/* Section */
.section {
  margin-bottom: 4rem;
}

/* Portfolio Grid */
/* Portfolio Grid - One card per row */
.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.card {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  background: #1f2937;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 15px #00ffff88;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Make image fixed width for horizontal card */
.card img {
  width: 280px;
  height: auto;
  object-fit: cover;
  border-right: 2px solid #00ffff;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.1);
}

/* Card content fills remaining space */
.card-content {
  padding: 1.5rem 2rem;
  flex-grow: 1;
}

.card-content h3 {
  font-weight: 700;
  color: #00ffff;
  margin-bottom: 0.5rem;
}

.card-content p {
  font-weight: 400;
  color: #ddd;
}

/* Responsive stack for small screens */
@media (max-width: 768px) {
  .card {
    flex-direction: column;
    max-width: 100%;
  }

  .card img {
    width: 100%;
    height: 200px;
    border-right: none;
    border-bottom: 2px solid #00ffff;
  }
}

/* Skills Section */
.skills-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
  padding-left: 0;
}

.skills-list li {
  background: #323f4b;
  margin: 0.7rem 0;
  padding: 0.7rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.1rem;
  color: #00ffff;
  box-shadow: 0 0 10px #00ffff55;
  cursor: default;
}

/* Stories */
.story {
  background: #1e2a38;
  max-width: 800px;
  padding: 1.5rem 2rem;
  margin: 1.5rem auto;
  border-radius: 15px;
  box-shadow: 0 0 15px #00ffff77;
  transition: box-shadow 0.3s ease;
}

.story:hover {
  box-shadow: 0 0 25px #00ffffcc;
}

.story h3 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #00ffff;
}

.story p {
  font-size: 1rem;
  color: #ddeeffcc;
}

/* Contact Section */
.contact-section {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form label {
  font-weight: 600;
  color: #00ffff;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  background: #242f3c;
  color: #ddeeff;
  transition: background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: #00ffff33;
}

.contact-form button {
  padding: 0.9rem 0;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 9999px;
  border: none;
  background: #00ffff;
  color: #121212;
  cursor: pointer;
  box-shadow: 0 6px 20px #00ffffaa;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover,
.contact-form button:focus {
  background: #00cccc;
  box-shadow: 0 8px 25px #00cccccc;
  outline: none;
}

/* Footer */
.footer {
  text-align: center;
  color: #555;
  padding: 1.5rem;
  background: #121212;
  user-select: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-image img {
    width: 100%;
    max-width: 320px;
    height: auto;
  }
}

@media (max-width: 768px) {
  /* Sidebar closed initially on mobile */
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  /* Hamburger shows */
  .hamburger {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  .card-content h3 {
    font-size: 1.1rem;
  }

  .card-content p {
    font-size: 0.9rem;
  }
}
/* Life Story Video Section CSS */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 20px;
}

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

#life-story-video {
    padding: 20px;
    text-align: center;
}
