/* --------------------------------------------------
   1. FONT IMPORTS
-------------------------------------------------- */
@font-face {
  font-family: MAIN;
  src: url('amigh.ttf') format('truetype');
  font-weight: normal;
}
@font-face {
  font-family: SUB;
  src: url('theboldfont.ttf') format('truetype');
  font-weight: bold;
}
@font-face {
  font-family: CIN;
  src: url('cinema sunday demo font.otf') format('opentype');
  font-weight: normal;
}

/* --------------------------------------------------
   2. RESET + BASE STYLES
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:  sans-serif;
  line-height: 1.6;
  background-color: #f5f5f5;
  color: #333;
  padding-top: 90px; /* space for fixed top nav */
}

/* --------------------------------------------------
   3. TOP NAVIGATION BAR — ORIGINAL COLORS + FONTS
-------------------------------------------------- */

nav {
  background-color: rgb(225, 181, 199);
  padding: 0;
  border-radius: 10px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;
}

nav ul {
  list-style-type: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

nav > ul > li > a {
  font-family: SUB, sans-serif;
  color: rgb(171, 34, 71);
  text-decoration: none;
  display: block;
  padding: 10px;
  text-shadow: 1px 1px 2px rgb(255, 255, 255);
  transition: color 0.4s ease;
}

.about a:hover,
.projects > a:hover {
  color: rgb(255, 255, 255);
  background-color: transparent;
}

/* --------------------------------------------------
   4. DROPDOWN MENU — ORIGINAL COLORS
-------------------------------------------------- */

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background-color: rgb(255, 235, 197);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 10px;
  z-index: 300;
}

.dropdown-content a {
  font-family: MAIN, sans-serif;
  color: rgb(182, 157, 111);
  padding: 12px 16px;
  display: block;
  text-shadow: none;
  transition: background-color 0.3s, padding 0.3s;
}

.dropdown-content a:hover {
  background-color: #bfc1d7;
  color: white;
  border-radius: 10px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* --------------------------------------------------
   5. EMAIL LINK — ORIGINAL STYLE
-------------------------------------------------- */

.email {
  display: flex;
  align-items: center;
  color: white;
}

.email a {
  font-family: SUB, sans-serif;
  color: white;
  text-decoration: none;
  transition: color 0.4s ease;
}

.email a:hover {
  color: rgb(186, 63, 113);
}

/* --------------------------------------------------
   6. SIDE NAVIGATION (SCROLLS WITH PAGE)
-------------------------------------------------- */

.side-nav {
  width: 220px;
  position: relative;
  background-color: #fdf0f5;
  padding: 20px;
  border-right: 1px solid #ccc;
  margin-top: 20px;
}

.side-nav a {
  display: block;
  margin-bottom: 15px;
  color: #b22272;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.side-nav a:hover {
  color: #e38bbc;
}

/* --------------------------------------------------
   7. MAIN CONTENT AREA
-------------------------------------------------- */

.container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.main-content {
  margin-left: 260px;
  padding: 20px 60px 20px 40px;
  max-width: 1000px;
  font-size: 18px;
  line-height: 1.8;
}

/* --------------------------------------------------
   8. TYPOGRAPHY
-------------------------------------------------- */

h1 {
  font-size: 3rem;
  text-align: center;
  color: rgb(172, 193, 166);
  font-family: CIN, sans-serif;
  text-shadow: 0 0 10px #fff,
               0 0 20px #fff,
               0 0 30px #788d76,
               0 0 40px #bfe0c8;
  margin-bottom: 20px;
}

h2 {
  font-size: 2rem;
  color: #e38bbc;
  font-family: CIN, sans-serif;
  text-shadow: 0 0 10px #fff,
               0 0 20px #fff,
               0 0 30px #d6bfc8,
               0 0 40px #e0bfcb;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.8;
}

/* --------------------------------------------------
   9. SECTIONS
-------------------------------------------------- */

section {
  background-color: #fff;
  padding: 25px 30px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --------------------------------------------------
   10. IMAGES
-------------------------------------------------- */

.color-wheel img,
.palette-comparison img {
  display: block;
  margin: 20px auto;
  max-width: 50%;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.palette-comparison img {
  width: 48%;
  margin: 10px 1%;
}

/* --------------------------------------------------
   11. FOOTER
-------------------------------------------------- */

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #ccc;
  padding-top: 15px;
  margin-top: 40px;
}

/* --------------------------------------------------
   12. MOBILE MENU — MATCHED TO ORIGINAL COLORS
-------------------------------------------------- */

.mobile-menu-toggle {
  display: none;
  background-color: rgb(225, 181, 199);
  color: rgb(171, 34, 71);
  font-family: SUB, sans-serif;
  text-align: center;
  padding: 15px;
  cursor: pointer;
  width: 100%;
  border-bottom: 2px solid rgb(171, 34, 71);
}

.mobile-menu-toggle:hover {
  background-color: rgb(235, 195, 210);
}

.mobile-menu {
  display: none;
  background-color: rgb(255, 235, 197);
  padding: 10px 0;
}

.mobile-menu a {
  display: block;
  padding: 12px;
  text-align: center;
  font-family: SUB, sans-serif;
  color: rgb(171, 34, 71);
  text-decoration: none;
}

.mobile-menu a:hover {
  background-color: #bfc1d7;
  color: white;
}

/* --------------------------------------------------
   13. RESPONSIVE BREAKPOINTS
-------------------------------------------------- */

@media (max-width: 1024px) {
  .container {
    flex-direction: column;
  }

  .side-nav {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .side-nav {
    display: none;
  }

  .mobile-menu.active {
    display: block;
  }
}
