/* ===== Global Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

/* ===== Base ===== */
body {
  font-family: 'Poppins', sans-serif;
  color: #3F0013;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  padding-top: 80px;
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid #fff;
}

.logo {
  font-weight: 600;
  font-size: 1.5rem;
}

.logo a {
  text-decoration: none;
  color: #3F0013;
}

nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav a,
.dropdown-label {
  text-decoration: none;
  color: #3F0013;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active,
.dropdown-label:hover,
.dropdown-label.active {
  color: #EA785B;
}

.dropdown-label {
  cursor: default;
  display: inline-block;
  line-height: 1.2;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 140px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  z-index: 1000;
  top: calc(100% + 0.5rem);
  left: 0;
}

.dropdown-content::before {
  content: '';
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.5rem;
}

.dropdown-content a {
  color: #3F0013;
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: block;
  margin-left: 0;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown-content a:first-child {
  border-radius: 6px 6px 0 0;
}

.dropdown-content a:last-child {
  border-radius: 0 0 6px 6px;
}

.dropdown-content a:hover {
  background-color: rgba(234, 120, 91, 0.1);
  color: #EA785B;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Nav Social Link */
.nav-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  margin-left: 0.5rem;
  transition: all 0.3s ease;
}

.nav-social-link svg {
  display: block;
  stroke: #3F0013;
  transition: stroke 0.3s ease;
}

.nav-social-link:hover svg {
  stroke: #EA785B;
}

/* ===== Hero ===== */
.hero {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: url('Media/dani-banner.jpg') center center no-repeat;
  background-size: 100% 100%;
  text-align: center;
  padding: 4rem 2rem;
  min-height: 650px;
  max-height: 650px;
  position: relative;
}

.hero-text {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-text h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: 'Playfair Display', serif;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #fff;
  font-weight: 400;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  display: inline-block;
}

.btn-primary {
  background: #3F0013;
  color: #fff;
}

.btn-primary:hover {
  background: #EA785B;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 135, 91, 0.3);
}

.btn-secondary {
  background: #fff;
  color: #3F0013;
  border: 2px solid #3F0013;
}

.btn-secondary:hover {
  background: #3F0013;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 46, 46, 0.2);
}

.btn-small {
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
}

/* ===== Content ===== */
.content {
  flex: 1;
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.content:has(.video-container) {
  max-width: 1200px;
}

.content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #3F0013;
}

.content p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #3F0013;
}

/* ===== Quote Feature Section ===== */
.quote-feature {
  background: #f5f4e9;
  padding: 4rem 2rem;
  text-align: center;
}

.quote-feature blockquote {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.quote-feature blockquote p {
  font-size: 1.5rem;
  font-style: italic;
  color: #3F0013;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-weight: 400;
}

.quote-feature blockquote cite {
  font-size: 1.1rem;
  color: #EA785B;
  font-style: normal;
  font-weight: 500;
}

/* ===== Dual Skills Section ===== */
.dual-skills {
  background: #A1A8BE;
  padding: 4rem 2rem;
}

.dual-skills .content {
  margin: 0 auto;
}

.dual-skills h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: #3F0013;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.skill-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #3F0013;
  font-weight: 600;
}

.skill-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3F0013;
  margin-bottom: 1.5rem;
}

.skill-card .btn {
  background: #3F0013;
  color: #fff;
}

.skill-card .btn:hover {
  background: #EA785B;
}

/* ===== Artist Statement Section ===== */
.artist-statement {
  background: #f5f4e9;
  padding: 4rem 2rem;
}

.statement-container {
  max-width: 1200px;
  margin: 0 auto;
}

.artist-statement h2 {
  text-align: left;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #3F0013;
}

.statement-row {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 4rem;
}

.statement-row-reverse .statement-images {
  align-items: flex-start;
}

.statement-row-reverse {
  flex-direction: row-reverse;
}

.statement-text {
  flex: 1;
}

.statement-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #3F0013;
  text-align: left;
}

.statement-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.statement-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.statement-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* ===== Resume Page Layout - Fullscreen ===== */
.resume-page-fullscreen {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 70px); /* Full viewport height minus header */
  background-color: #5F5420;
  overflow: visible;
}

/* Compact Header with Download Buttons */
.resume-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: #EA785B;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.resume-header-compact h2 {
  font-size: 1.8rem;
  margin: 0;
  color: #3F0013;
  font-weight: 600;
}

.download-buttons {
  display: flex;
  gap: 1rem;
}

/* Resume Split Layout */
.resume-split-container {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: #5F5420;
  border: 3px solid #3F0013;
  border-radius: 0;
  margin: 1rem 2rem 2rem 2rem;
}

.resume-split-left,
.resume-split-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  background: #fff;
}

.resume-split-left {
  border-right: 3px solid #3F0013;
  background: #fff;
}

.resume-split-left h3,
.resume-split-right h3 {
  font-size: 1.3rem;
  color: #3F0013;
  padding: 1.5rem 2rem 1rem;
  margin: 0;
  background: #fff;
  border-bottom: 1px solid #3F0013;
}

.pdf-embed {
  flex: 1;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.pdf-embed iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
  display: block;
}

.resume-image-container {
  flex: 1;
  overflow: auto;
  background: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
}

.resume-image-container img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
}

.headshot-container {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.headshot-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
  box-shadow: none;
}

/* Legacy PDF Fullscreen Container (for backwards compatibility) */
.pdf-fullscreen-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.pdf-fullscreen-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

/* Legacy Resume Page Layout (kept for compatibility) */
.resume-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
  background-color: #fff;
  max-width: none;
}

.resume-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.resume-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: #3F0013;
}

.resume-header .btn-small {
  background-color: #3F0013;
  color: #fff;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.resume-header .btn-small:hover {
  background-color: #EA785B;
}

/* ===== Gallery Page ===== */
main.gallery-page {
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-page h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #3F0013;
}

.gallery-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.gallery-credit {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  font-style: italic;
  margin: 0;
}

.videos-heading {
  text-align: center;
  font-size: 1.8rem;
  margin: 4rem 0 2rem;
  color: #3F0013;
  scroll-margin-top: 140px;
}

.video-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.video-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-item .video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.video-item .video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.video-item .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.video-credit {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin: 0;
}

/* ===== Legacy Video Container (for backwards compatibility) ===== */
.video-container-wrapper {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.video-container-wrapper .video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 0;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-container-wrapper .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* ===== Resume PDF Embed Styling ===== */
.pdf-container-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.pdf-container {
  width: 85%;
  max-width: none;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.pdf-container iframe {
  border: none;
  width: 100%;
  height: 1300px;
  display: block;
}

/* ===== Form Styles ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem auto;
  width: 80%;              /* Make it wide on desktop */
  max-width: 700px;        /* But don't let it blow out */
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

label {
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #3F0013;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #EA785B;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

form button {
  align-self: flex-start;
  margin-top: 0.5rem;
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

/* ===== Footer ===== */
footer {
  padding: 1.5rem 2rem;
  font-size: 0.9rem;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
}

footer p {
  margin: 0;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.footer-right {
  display: flex;
  align-items: center;
}

.typing-container-footer {
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.typing-container-footer p {
  margin: 0;
  color: #3F0013;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

.typing-static {
  display: inline;
}

.typing-word-container {
  display: inline;
}

.typed-text-footer {
  color: #EA785B;
  font-weight: 600;
}

.cursor-footer {
  display: inline-block;
  background-color: #EA785B;
  margin-left: 0.1rem;
  width: 2px;
  animation: blink 1s infinite;
}

.cursor-footer.typing {
  animation: none;
}

@keyframes blink {
  0% { background-color: #EA785B; }
  49% { background-color: #EA785B; }
  50% { background-color: transparent; }
  99% { background-color: transparent; }
  100% { background-color: #EA785B; }
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3F0013;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
}

.social-link:hover {
  color: #EA785B;
  background: rgba(217, 135, 91, 0.1);
  transform: translateY(-2px);
}

.social-link svg {
  display: block;
}

/* ===== Footer Contact Form ===== */
.footer-contact {
  background: #A1A8BE;
  padding: 4rem 2rem 3rem;
  border-top: 1px solid #eee;
  flex-shrink: 0;
  width: 100%;
}

.footer-contact-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.footer-contact h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #3F0013;
}

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

.footer-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.footer-contact-form input,
.footer-contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.footer-contact-form input:focus,
.footer-contact-form textarea:focus {
  outline: none;
  border-color: #EA785B;
}

.footer-contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.footer-contact-form button {
  align-self: center;
  margin-top: 0.5rem;
}

.footer-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
  display: none;
  font-weight: 500;
}

.footer-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.footer-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===== Page-Specific Styles ===== */
.about-page .footer-contact {
  background: #5F5420;
}

body.gallery-page .footer-contact {
  background: #F3D0C3;
}

.resume-page .footer-contact {
  background: #EA785B;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .hero-text h2 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .quote-feature blockquote p {
    font-size: 1.2rem;
  }

  .dual-skills h2 {
    font-size: 1.8rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .artist-statement h2 {
    font-size: 1.8rem;
  }

  .statement-row,
  .statement-row-reverse {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .statement-image img {
    max-width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .video-gallery {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .videos-heading {
    font-size: 1.5rem;
    margin: 3rem 0 1.5rem;
  }

  .pdf-container {
    width: 95%;
  }

  .resume-header h2 {
    font-size: 1.6rem;
  }

  .resume-header {
    margin-bottom: 1.5rem;
  }

  /* Fullscreen Resume - Mobile */
  .resume-header-compact {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-align: center;
  }

  .resume-header-compact h2 {
    font-size: 1.5rem;
  }

  .download-buttons {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .download-buttons .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .resume-split-container {
    flex-direction: column;
  }

  .resume-split-left {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    flex: 0 0 50%;
  }

  .resume-split-right {
    flex: 0 0 50%;
  }

  .pdf-fullscreen-container {
    padding: 0;
  }

  .resume-page-fullscreen {
    height: calc(100vh - 120px); /* Adjust for taller mobile header */
  }

  form {
    width: 95%;
  }

  .footer-contact {
    padding: 3rem 1.5rem 2rem;
  }

  .footer-contact h3 {
    font-size: 1.6rem;
  }

  .footer-form-row {
    grid-template-columns: 1fr;
  }
}
