:root {
  --primary-color: #8F268B;
  --secondary-color: #4D3BD1;
  --font-family: 'Roboto', sans-serif;
}

/* General Styles */
html, body {
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: #fff;
  color: #333;
}

/* Navbar Styles */
nav {
  width: 100%;
  background-color: #FFFFFF;
  color: black;
  padding: 10px 0;
  text-align: center;
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding-right: 20px;
}

nav ul li {
  font-weight: bold;
  margin-left: 40px;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  font-size: 20px;
}

nav > ul > li:hover a {
  color: var(--primary-color);
}


/* Image Section Styles */
.image-container {
  position: relative;
}

.box-image {
  width: 100%;
  height: auto;
}

.centered-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: black;
  font-size: 39px;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  text-align: center;
}

/* Work + Contact Section Styles */
.work-section, .contact-section {
  background-color: black;
  padding: 40px 20px 200px;
  text-align: center;
}

.work-section h2, .contact-section h2 {
  font-size: 39px;
  color: white;
  font-weight: bold;
  margin: 50px 0;
}

/* Project Boxes (non-grid) */
.container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

.box {
  width: 45%;
  padding: 20px;
  text-align: center;
  color: white;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.box img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.box-1 { background-color: #8F268B; }
.box-2 { background-color: #6038BC; }
.box-3 { background-color: #4D3BD1; }
.box-4 { background-color: #F3C3AC; }

.box:hover {
  transform: scale(1.05);
}

.box img:hover {
  filter: brightness(0.8);
}

.box p {
  font-size: 26px;
  color: white;
  font-weight: bold;
  margin: 0;
}

/* Bento Grid Styles */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  padding: 20px;
}

.bento-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.bento-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.bento-item a img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.bento-item a p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.bento-item:hover {
  transform: scale(1.03);
}

/* About Section Styles */
.about-heading {
  font-size: 36px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.container-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 150px 20px 250px;
  margin: 0 auto;
  max-width: 800px;
}

.about-text {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  font-weight: bold;
  color: #555;
  max-width: 700px;
  margin: 0;
}

/* Footer Styles */
.footer {
  background-color: #000;
  color: #fff;
  padding: 20px;
  text-align: center;
  font-size: 20px;
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info p,
.copyright p {
  margin: 10px;
}

.contact-info a {
  text-decoration: none;
  color: #4D3BD1;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #6A0DAD;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .box {
    width: 80%;
    margin-bottom: 20px;
  }

  .footer {
    font-size: 12px;
    padding: 15px;
  }
}
