/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== GLOBAL TYPOGRAPHY ===== */
body, p, a, li, span, div, form {
  font-family: 'Cardo', serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
}

/* ===== HEADINGS ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'IM Fell English SC', serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #f0c060 !important;
}

h1 {
  color: #f0c060 !important;
  font-size: 2rem !important;
}

h1, h2 {
  text-shadow: 1px 1px 4px rgba(255, 204, 0, 0.5);
}



/* ===== BODY & HTML BASE ===== */
html, body {
  height: 100%;
}

body {
  background-color: #000 !important;
  color: #ffffff;
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== LAYOUT CONTAINERS ===== */
.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ===== EMBER EFFECTS ===== */
.embers-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.ember {
  position: absolute;
  bottom: 0;
  left: var(--position, 50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: #ff7700;
  box-shadow: 0 0 6px 2px rgba(255, 119, 0, 0.8);
  opacity: 0;
  animation: float-up var(--duration, 7s) ease-in-out forwards;
}

/* ===== EMBER SIZE VARIANTS ===== */
.ember.small {
  width: 2px;
  height: 2px;
  box-shadow: 0 0 4px 1px rgba(255, 119, 0, 0.7);
}

.ember.medium {
  width: 4px;
  height: 4px;
  box-shadow: 0 0 8px 2px rgba(255, 119, 0, 0.8);
}

.ember.large {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 12px 3px rgba(255, 119, 0, 0.9);
}

/* ===== EMBER COLOR VARIANTS ===== */
.ember.yellow {
  background-color: #ffcc00;
  box-shadow: 0 0 6px 2px rgba(255, 204, 0, 0.8);
}

.ember.orange {
  background-color: #ff7700;
  box-shadow: 0 0 6px 2px rgba(255, 119, 0, 0.8);
}

.ember.red {
  background-color: #ff3300;
  box-shadow: 0 0 6px 2px rgba(255, 51, 0, 0.8);
}

/* ===== NAVIGATION ===== */
.navbar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 5;
}

.hamburger {
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: none;
  z-index: 6;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  width: 100%;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.5s ease;
  text-shadow: 0 0 5px rgba(255, 119, 0, 0.5);
}

.nav-links li a:hover {
  background-color: rgba(255, 119, 0, 0.2);
  text-shadow: 0 0 10px rgba(255, 119, 0, 0.8);
}

/* ===== NAVIGATION CURRENT STATE ===== */
#nav-links li.current a {
  color: #ff9900;
}

/* ===== LEGACY NAVIGATION STYLES ===== */
nav {
  margin-bottom: 40px;
  z-index: 3;
}

nav ul {
  display: flex;
  list-style-type: none;
  gap: 30px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.5s ease;
  text-shadow: 0 0 5px rgba(255, 119, 0, 0.5);
}

nav ul li a:hover {
  background-color: rgba(255, 119, 0, 0.2);
  text-shadow: 0 0 10px rgba(255, 119, 0, 0.8);
}

/* ===== CONTENT STYLES ===== */
.content {
  text-align: center;
  max-width: 600px;
  z-index: 3;
  background-size: 600px 300px;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;
  color: rgb(255, 255, 255);
}

p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* ===== SPECIAL EFFECTS ===== */
.glow-anvil {
  width: 300px;
  height: auto;
  animation: glow-pulse 2s ease-in-out infinite;
}

/* ===== PROJECT CARDS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.project-card * {
  color: #000 !important;
  text-decoration: none !important;
}

.project-card {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid #444;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-family: 'Cardo', serif;
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.2);
  transition: transform 0.2s;
  text-decoration: none !important;
}

.project-card:hover {
  transform: scale(1.05);
}

.project-card-single {
  max-width: 300px;
  margin: 40px auto;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid #444;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-family: 'Cardo', serif;
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.2);
  transition: transform 0.2s;
  text-decoration: none !important;
}

.project-card-single:hover {
  transform: scale(1.05);
}

/* ===== CONTACT FORM ===== */
.contact-form {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  border-radius: 10px;
  padding: 30px;
  max-width: 600px;
  width: 100%;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
  z-index: 3;
}

.contact-form label {
  font-weight: bold;
  color: #ffa500;
  text-shadow: 0 0 3px #ff6600;
}

.contact-form input,
.contact-form textarea {
  background-color: #111;
  color: #fff;
  border: 1px solid #555;
  padding: 10px;
  border-radius: 5px;
  font-family: inherit;
  resize: vertical;
}

.contact-form button {
  background-color: #ff6600;
  color: #fff;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: 'Cardo', serif;
}

.contact-form button:hover {
  background-color: #cc5200;
}

/* ===== DOWNLOAD BUTTON ===== */
.download-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ff6600;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.download-btn:hover {
  background-color: #cc5200;
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 30px 20px;
  background-color: rgba(255, 255, 255, 0.03);
  color: #ccc;
  font-size: 14px;
  border-top: 1px solid #444;
  margin-top: 40px;
  z-index: 3;
}

.site-footer p {
  margin: 5px 0;
  text-shadow: 0 0 5px rgba(255, 119, 0, 0.3);
}

/* ===== ANIMATIONS ===== */
@keyframes float-up {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh);
    opacity: 0;
  }
}

@keyframes glow-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 4px #ff6600) drop-shadow(0 0 10px #ff6600);
  }
  50% {
    filter: drop-shadow(0 0 10px #ff9900) drop-shadow(0 0 20px #ff3300);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .content {
    padding: 10px;
  }

  h1 {
    font-size: 32px;
  }

  p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .glow-anvil {
    width: 200px;
  }

  .contact-form {
    padding: 20px;
  }

  /* ===== MOBILE NAVIGATION ===== */
  .hamburger {
    display: block;
    position: absolute;
    top: 0;
    right: 20px;
  }

  .nav-links {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    gap: 20px;
    display: none;
    padding: 20px 0;
  }

  .nav-links.active {
    display: flex;
  }

  /* ===== LEGACY MOBILE NAVIGATION ===== */
  nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  nav ul li a {
    font-size: 16px;
    padding: 6px 12px;
  }

  /* ===== MOBILE PROJECTS GRID ===== */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .project-card {
    width: 100%;
  }
}

/* ===== MUSIC PLAYER STYLES ===== */
.music-player { 
    background: #fff; 
    padding: 20px; 
    border-radius: 10px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    width: 100%; 
    max-width: 400px; 
    text-align: center;
    margin: 20px auto;
} 

.music-player #albumArt { 
    width: 100%; 
    max-width: 300px; 
    border-radius: 10px; 
    margin-bottom: 10px; 
} 

.music-player #trackTitle { 
    font-size: 1.2em; 
    margin: 10px 0;
    color: #333;
} 

.progress-container { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin: 10px 0; 
} 

.progress-container span {
    color: #666;
    font-size: 0.9em;
}

#progressBar { 
    flex: 1; 
    cursor: pointer; 
} 

.music-controls { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin: 10px 0; 
} 

.music-controls button { 
    background: #ffa500; 
    color: white; 
    border: none; 
    padding: 10px; 
    border-radius: 50%; 
    cursor: pointer; 
    font-size: 1.2em;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
} 

.music-controls button:hover { 
    background: #ffa500; 
} 

.volume-control { 
    margin: 10px 0; 
} 

#volumeSlider { 
    width: 100%; 
} 

.music-playlist { 
    list-style: none; 
    padding: 0; 
    margin: 10px 0; 
    max-height: 150px;
    overflow-y: auto;
} 

.music-playlist li { 
    padding: 10px; 
    cursor: pointer; 
    border-radius: 5px;
    color: #333;
} 

.music-playlist li:hover { 
    background: #f0f0f0; 
} 

.music-playlist li.active { 
    background: #ffa500; 
    color: white; 
} 

/* ===== MUSIC PLAYER RESPONSIVE ===== */
@media (max-width: 400px) { 
    .music-player { 
        padding: 15px; 
    } 
    
    .music-player #albumArt { 
        max-width: 250px; 
    } 
}

/* ===== EMBEDDED RESUME ===== */
.embed-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  max-width: 100%;
  margin-inline: auto;
}

@media screen and (max-width: 768px) {
  .embed-container embed {
    width: 90vw;
    height: auto;
  }
}

@media screen and (max-width: 480px) {
  .embed-container embed {
    width: 95vw;
    height: auto;
  }
}

.embed-container {
    max-width: 800px;
    margin: 0 auto;
}