:root {
  --text-color: #1E1E1E;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Roboto Mono', monospace;
  --main-blue: #0066cc; 
  --hover-blue: #4592ff;
}

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

body {
  font-family: var(--font-body)
}

/* Navigation Bar */
.nav-mobile {
  display: none;
}

.nav-bar {
  background-color: #f5f5f5;
  padding: 32px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: static;
  top: 0;
}

.nav-desktop {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.nav-logo h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: bold;
  font-style: italic;
  line-height: .97;
  letter-spacing: -2%;
  color: var(--text-color);
}

.nav-logo h1 a {
    text-decoration: none;
    color: inherit;
}

/* Navigation Links */
.nav-list {
  font-family: var(--font-body);
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-list ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-list a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 16px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: var(--main-blue);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons .icon {
  color: var(--main-blue) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.social-icons .icon:hover {
  opacity: 0.6;
}

.social-icons .icon i {
    font-size: 26px;
}

/* Mobile Navigation Design */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .nav-mobile{
    display: block;
    margin: 0 20px;
  }

  .nav-mobile-logo {
    display: flex;
    flex-direction: row;
    gap: auto;
    align-items: center;
  }

  .nav-mobile-logo h1 {
    flex-grow: 1;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: bold;
    font-style: italic;
    line-height: .97;
    letter-spacing: -2%;
    text-align: left;
  }

  .nav-mobile-logo a {
    color: var(--text-color);
    cursor: pointer;
  }

  #bar-button {
    font-size: 36px;
  }

  .nav-mobile a {
    text-decoration: none;
    color: inherit;
  }

  .nav-mobile-logo i:hover {
    color: var(--main-blue);
  }

  .nav-mobile-logo nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .nav-mobile nav ul {
    font-family: var(--font-body);
    font-size: 20px;
    color: white;
    list-style: none;
    padding: 30px 0;
    padding-left: 30px;
  }

  .nav-mobile nav li {
    padding: 10px 0;
  }

  button.toggle {
    background-color: inherit;
    border: none;
    padding: 10px;
    cursor: pointer;
  }

  #sidenav {
    position: fixed;
    right: -260px;
    top: 0;
    width: 260px;
    height: 100%;
    transition: right .28s ease;
    z-index:1001;
    background-color: #1E1E1E;
    padding: 20px;
  }

  #sidenav.active { 
    right: 0; 
    display: flex;
    flex-direction: column;
    box-sizing: content-box;
  }

  #overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s;
    z-index:1000;
  }

  #overlay.active { opacity: 1; visibility: visible; }

  button#x-button {
    font-size: 36px;
    color: white;
    opacity: 0.6;
    background-color: inherit;
    border-style: none;
    align-self: flex-start;
    transition: opacity 0.3s ease;
  }

  button#x-button:hover {
    opacity: 1;
  }

  .social-icons {
    padding-left: 30px;
    gap: 20px;
  }

  .social-icons .icon i {
    font-size: 34px;
}

}

/* About Section */
.about-section {
  background-color: #d9d9d9;
  max-height: 514px;
  overflow: hidden;
}

.about-container {
  max-width: 1200px;
}

.about-image {
  object-fit: cover;
  width: 60%;
  max-height: 575px;
  float: left;
  clip-path: polygon(0 0, 70% 0, 100% 100%, 0 100%);
  shape-outside: polygon(0 0, 70% 0, 100% 100%, 0 100%);
  shape-margin: 1.5rem;
}

.about-image img {
  width: 100%;
  height: 100%;
}

.about-content {
    text-align: left;
}
.about-content h2 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: bold;
  padding: 20px 0 10px 0
}

.about-content p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  max-height: 430px;
  margin-bottom: 16px;
}

@media screen and (max-width: 968px ) and (min-width: 768px) {
  .about-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-height: none;
  }

  .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .about-content {
    text-align: center;
  }

  .about-image {
    min-width: 100%;
    clip-path: none;
    max-height: none;
  }

  .about-content h2{
    padding: 10px 0 10px 0;
  }

  .about-content p {
    line-height: 1.4;
    margin: 0 16px 32px 16px;
    font-size: 20px;
  }
}

@media screen and (max-width: 768px) {
  .about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-height: none;
  }

  .about-content {
    text-align: center;
  }

  .about-image {
    min-width: 100%;
    clip-path: none;
    max-height: none;
  }

  .about-content p {
    max-height: none;
    margin: 0px 20px;
    padding-bottom: 20px;
  }
}

/* Projects Section */
.projects-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  background-color: #d9d9d9;
  width: auto;
  min-height: 512px;
  height: 600px;
  font-family: var(--font-body);
}

.projects-section h1{
  font-size: 36px;
  font-weight: 400;
  line-height: 105%;
  margin-bottom: 10px;
}

.gd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url('../images/index/MultiCanMockup.webp');
  background-size: cover;
  background-position: center;
}

.wd-card {
  position: relative;
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  background-image: url('../images/index/WDimage.webp');
  background-size: cover;
  background-position: center;
}

.project-title-container {
  font-family: var(--font-body);
  text-align: center;
  position: absolute;
  top: 35%;
  width: 222px;
  background-color: rgba(255, 255, 255, 0.75);
  padding: 20px 40px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.view-projects-btn {
  font-family: inherit;
  font-weight: 300;
  position: absolute;
  top: 75%;
  margin-top: 16px;
  padding: 20px;
  width: 100%;
  font-size: 20px;
  color: #fff;
  background-color: var(--main-blue);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease; transform 0.3s ease;
}

.view-projects-btn:hover {
  background-color: var(--hover-blue);
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .project-title-container {
    top: 20%;
    bottom: 35%;
  }
}

/* Footer */
.footer {
  background-color: #f5f5f5;
  padding: 32px 46px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}
.footer-content{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  flex-direction: row;
}

.footer-content h1{
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: bold;
  font-style: italic;
  line-height: .97;
  letter-spacing: -2%;
  color: var(--text-color);
}

.footer-logo {
  flex-grow: 4;
}

.footer-content a {
  text-decoration: none;
  color: inherit;
}

.footer-nav li {
  list-style: none;
  margin-bottom: 10px;
}

.footer-nav a {
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #0066cc;
}

@media (max-width: 768px){
  .footer-content{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .footer-logo{
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .footer-logo .social-icons {
    padding-left: 0;
    justify-content: center;
  }
}

.rights-reserved {
  background-color: inherit;
  margin: auto;
  width: 100%;
}
.rights-reserved p {
  text-align: center;
  padding-top: 20px;
  font-size: 14px;
  color: var(--text-color);
}

/* design page styles */
.design-section{
  display: flex;
  flex-direction: column;
  background-color: #d9d9d9;
  padding-top: 3%;
  padding-bottom: 6%;
}
.design-section h2{
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 105%;
  display: flex;
  justify-content: center;
}

.design-works {
  display: flex;
  gap: 32px;
  flex-direction: column;
  justify-content: center;
  margin: 0 10%;
}

.design-work h3{
  font-size: 28px;
  letter-spacing: -7%;
  margin-bottom: 12px;
  font-weight: var(--font-body);
  color: var(--text-color)
}

.design-work a{
  color: var(--text-color);
  transition: color 0.3s ease;
}

.design-work a:hover{
  color: var(--main-blue);
}

.design-images {
  display: flex;
  gap: 16px;
  flex-direction: row;
  justify-content: center;
}

.design-work img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 458px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.design-work img:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .design-section{
    text-align: center;
  }

  .design-section h2 {
    margin-bottom: 15px;
  }

  .design-images{
    flex-direction: column;
  }

  .design-works {
    margin: 0 5%;
  }
}

/* Error Page Styles */
.error-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 75vh;
}

.error-container {
  text-align: center;
}

.error-container h1 {
  font-size: 72px;
  font-weight: bold;
  color: var(--main-blue);
}

.error-container h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
}

.error-container p {
  font-size: 18px;
  margin-bottom: 30px;
}

.back-home-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--main-blue);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}