/* ========================================
   Naisha Didwania Portfolio - Custom Styles
   Digital Museum Aesthetic
   ======================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* ========================================
   CSS Variables
   ======================================== */
:root {
  --color-bg: #ffffff;
  --color-text: #212529;
  --color-accent: #C5A059;
  --color-accent-hover: #B39049;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  --transition-speed: 0.3s;

  /* Dark mode variables */
  --color-bg-dark: #15141A;
  --color-text-dark: #EDEDED;
  --color-card-dark: #1E1E1E;
  --color-border-dark: #2A2A2A;
}

/* Dark mode styles */
body.dark-mode {
  --color-bg: #15141A;
  --color-text: #EDEDED;
  background-color: var(--color-bg);
  color: var(--color-text);
}

body.dark-mode .navbar {
  background-color: #2a2a2a !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .footer {
  background-color: #2a2a2a;
  border-top: 1px solid var(--color-border-dark);
}

body.dark-mode .gallery-card-img-wrapper {
  background-color: var(--color-card-dark);
}

body.dark-mode .writing-entry {
  border-bottom: 1px solid var(--color-border-dark);
}

body.dark-mode .about-image {
  filter: grayscale(100%) brightness(0.9);
}

body.dark-mode .about-image:hover {
  filter: grayscale(0%) brightness(1);
}

/* ========================================
   Global Styles
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

/* ========================================
   Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 3rem;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: 0.015em;
}

h3 {
  font-size: 1.75rem;
  letter-spacing: 0.01em;
}

p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
}



/* ========================================
   Navigation
   ======================================== */
.navbar {
  background-color: var(--color-bg) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.2rem 0;
  transition: all var(--transition-speed) ease;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text) !important;
  transition: color var(--transition-speed) ease;
}

.navbar-brand:hover {
  color: var(--color-accent) !important;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  transition: color var(--transition-speed) ease;
  position: relative;
  letter-spacing: 0.05em;
}

/* Ensure navbar links are visible in dark mode */
body.dark-mode .navbar-light .navbar-nav .nav-link {
  color: #e8e8e8;
}

body.dark-mode .navbar-light .navbar-nav .nav-link:hover,
body.dark-mode .navbar-light .navbar-nav .nav-link.active {
  color: var(--color-accent);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--color-accent);
  transition: all var(--transition-speed) ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
  color: var(--color-accent) !important;
}

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: 2px solid var(--color-accent);
}

/* ========================================
   Dropdown Menu Styles
   ======================================== */
.dropdown-menu {
  background-color: var(--color-bg);
  border: none;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  margin-top: 0;
}

.gallery-card-title {
  margin-top: 0rem;
}

body.dark-mode .gallery-card-title {
  color: #e8e8e8;
}

.dropdown-item {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  padding: 0.6rem 1.5rem;
  transition: all var(--transition-speed) ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--color-accent);
  color: #ffffff !important;
  /* Force white text on hover */
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--color-accent);
  color: #ffffff !important;
}

/* Dropdown Arrow Alignment - Hidden as per request */
.dropdown-toggle::after {
  display: none !important;
  /* 
  vertical-align: 0.15em;
  margin-left: 0.35rem;
  transition: transform var(--transition-speed) ease; 
  */
}

.nav-item.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Dark Mode Overrides for Dropdown */
body.dark-mode .dropdown-menu {
  background-color: #2a2a2a;
  /* Match navbar dark bg */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .dropdown-item {
  color: var(--color-text);
}

body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus {
  background-color: var(--color-accent);
  color: #ffffff !important;
}

/* Desktop Hover Interaction */
@media (min-width: 992px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease forwards;
  }
}

/* ========================================
   Hero Section
   ======================================== */

.header-banner {
  width: 100%;
  overflow: hidden;
  background: #000;
  padding-top: 0px;
}

.header-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-section {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1rem;
  background-color: var(--color-bg);
}

.hero-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.6;
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Gallery Cards
   ======================================== */
/* ========================================
   Gallery Cards
   ======================================== */
.gallery-section {
  padding: 5rem 0;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: none;
  background-color: transparent;
  margin-bottom: 0rem;
  cursor: pointer;
  transition: transform var(--transition-speed) ease;
  display: block;
  text-decoration: none;
}

/* Ensure title color persists in anchor */
.gallery-card:hover {
  text-decoration: none;
  color: inherit;
}

.gallery-card-img-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(197, 160, 89, 0.9);
  /* Slightly increased opacity */
  display: flex;
  flex-direction: column;
  /* Stack title and button */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 1.5rem;
  gap: 1rem;
  /* Space between title and button */
  z-index: 2;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #ffffff;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0;
  /* Remove default margin as we use gap */
}

.gallery-card-body {
  padding: 0.75rem 0;
  text-align: center;
}

.gallery-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-weight: 600;
  transition: color var(--transition-speed) ease;
}

.gallery-card:hover .gallery-card-title {
  color: var(--color-accent);
}

/* Hide bottom title on hover to avoid duplication with overlay title */
.gallery-card:hover .gallery-card-body {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Button inside overlay */
.btn-view-project {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 0.5rem 1.5rem;
  background-color: transparent;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
}

.btn-view-project:hover {
  background-color: #ffffff;
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========================================
   About Page
   ======================================== */
.about-section {
  min-height: 100vh;
  padding: 5rem 0;
}

.about-image {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: filter var(--transition-speed) ease;
}

.about-image:hover {
  filter: grayscale(0%);
}

.about-content {
  padding: 3rem;
}

.about-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.about-bio {
  font-size: 1.2rem;
  line-height: 2;
  color: var(--color-text);
}

/* ========================================
   Writing Page
   ======================================== */
.writing-section {
  min-height: 100vh;
  padding: 5rem 0;
}

.writing-entry {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(33, 37, 41, 0.1);
  transition: transform var(--transition-speed) ease;
}

.writing-entry:last-child {
  border-bottom: none;
}

.writing-entry:hover {
  transform: translateX(10px);
}

.writing-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.writing-publication {
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.writing-excerpt {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* ========================================
   Contact Page
   ======================================== */
.contact-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  text-align: center;
}

.contact-content {}

.contact-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-text);
  font-style: italic;
}

.contact-email {
  font-size: 1.5rem;
  color: var(--color-accent);
  text-decoration: none;
  margin-bottom: 2rem;
  display: inline-block;
  transition: all var(--transition-speed) ease;
}

.contact-email:hover {
  color: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* .social-links {
  margin-top: 3rem;
} */

/* Social Links Styles */

/* Match footer exactly (remove border, or keep it consistent with design choice) 
   Decided to match footer: transparent background, no border initially 
*/
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin: 0 0.5rem;
  font-size: 1.4rem;
  color: var(--color-text);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  border-radius: 50%;
  background-color: transparent;
}

.social-link:hover {
  background-color: var(--color-accent);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background-color: var(--color-bg);
  padding: 1rem 0;
  text-align: center;
  border-top: 1px solid rgba(33, 37, 41, 0.1);
  margin-top: 5rem;
}

.footer .row {
  align-items: center;
}

.footer p {
  margin: 0;
  line-height: 1.5;
}

.footer .social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: end;
  align-items: center;
}

.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent;
  color: var(--color-text);
  transition: all var(--transition-speed) ease;
  font-size: 1.2rem;
}

.footer .social-links a:hover {
  background-color: var(--color-accent);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  margin: 0;
}

/* Mobile footer adjustments */
@media (max-width: 768px) {
  .footer .col-md-6 {
    margin-bottom: 1rem;
  }

  .footer .col-md-6:last-child {
    margin-bottom: 0;
  }

  .footer .social-links {
    justify-content: center;
  }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 991px) {
  .navbar-nav .nav-link {
    margin: 0.5rem 0;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-text {
    font-size: 1.5rem;
  }

  .about-content {
    padding: 2rem 1rem;
  }

  /* Hero section mobile adjustments */
  .hero-enhanced {
    padding: 6rem 2rem 3rem 2rem;
    min-height: 80vh;
  }

  .hero-title {
    font-size: 3rem;
    letter-spacing: 0.08em;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1.3rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-text {
    font-size: 1.3rem;
  }

  .gallery-overlay-title {
    font-size: 1.2rem;
  }

  .about-image {
    margin-bottom: 2rem;
  }

  /* Enhanced mobile hero styles */
  .hero-enhanced {
    padding: 5rem 1.5rem 2rem 1.5rem;
    min-height: 70vh;
    text-align: center;
    justify-content: center;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-title {
    font-size: 2.2rem;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-title:hover {
    transform: translateX(0);
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
  }

  /* Navbar adjustments */
  .navbar {
    padding: 1rem 0;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }
}

/* ========================================
   Utility Classes
   ======================================== */
.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--color-text);
}

.spacer {
  height: 5rem;
}

.accent-text {
  color: var(--color-accent);
}

/* ========================================
   Dark Mode Toggle
   ======================================== */
/* Dark Mode Toggle - Updated to match screenshot */
.dark-mode-toggle {
  background-color: #f0f2f5;
  color: #1c1e21;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .dark-mode-toggle {
  background-color: #3a3b3c;
  color: #e4e6eb;
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode-toggle:hover {
  /* border-color: var(--color-accent); */
  color: var(--color-accent);
  /* transform: rotate(180deg); Removed rotation as per request */
  background-color: #e4e6eb;
  /* Slightly darker hover for light mode */
}

body.dark-mode .dark-mode-toggle:hover {
  background-color: #4e4f50;
  /* Base dark hover */
}

.dark-mode-toggle:focus {
  /* outline: 2px solid var(--color-accent); */
  outline-offset: 2px;
}

/* ========================================
   Contact Form
   ======================================== */
.contact-form {
  max-width: 600px;
  margin: 3rem auto 0;
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 2px solid rgba(33, 37, 41, 0.2);
  border-radius: 0;
  transition: all var(--transition-speed) ease;
}

body.dark-mode .form-control {
  background-color: var(--color-card-dark);
  border-color: var(--color-border-dark);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.form-control::placeholder {
  color: rgba(33, 37, 41, 0.4);
}

body.dark-mode .form-control::placeholder {
  color: rgba(232, 232, 232, 0.4);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.btn-submit {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--color-accent);
  border: 2px solid var(--color-accent);
  padding: 1rem 3rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: 100%;
  margin-top: 1rem;
}

.btn-submit:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}

.btn-submit:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ========================================
   Social Icons
   ======================================== */
.social-icon {
  font-size: 1.5rem;
}

/* ========================================
   Enhanced Hero Section
   ======================================== */
.hero-enhanced {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Changed to flex-start for left alignment */
  position: relative;
  background: transparent;
  /* Removed gradient overlay */
  padding: 8rem 3rem 4rem 3rem;
  /* increased left padding */
  overflow: hidden;
}

body.dark-mode .hero-enhanced {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(42, 42, 42, 0.95) 100%), var(--hero-bg-image) !important;
}

.hero-enhanced .hero-title,
.hero-enhanced .hero-subtitle,
.hero-enhanced .hero-description {
  color: var(--color-text) !important;
  /* Use theme text color */
  text-shadow: none;
  /* Remove shadow for clean look */
}

/* Strong visibility for dark mode - with background overlay */
body.dark-mode .hero-enhanced .hero-title,
body.dark-mode .hero-enhanced .hero-subtitle,
body.dark-mode .hero-enhanced .hero-description {
  color: #ffffff !important;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1.2s ease-out;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 5rem;
  /* Slightly larger */
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  text-transform: uppercase;
  transition: transform 0.3s ease;
  text-align: center;
}

/* Interactivity: subtle movement on hover */
.hero-title:hover {
  transform: translateX(10px);
  color: var(--color-accent);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  color: var(--color-text) !important;
  /* Dark text on light background */
  text-shadow: none;
  font-style: italic;
  text-transform: uppercase;
  display: inline-block;
}

.hero-description {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 3rem;
  color: var(--color-text);
  max-width: 700px;
  margin-left: 0;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Header Download CV Button */



.btn-primary,
.btn-secondary {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 3rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all var(--transition-speed) ease;
  border: 2px solid;
  display: inline-block;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-text);
  padding: 1rem 3rem;
  transition: all var(--transition-speed) ease;
}

.btn-secondary:hover {
  background-color: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Ensure visibility in dark mode */
body.dark-mode .btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

body.dark-mode .btn-secondary:hover {
  background-color: #ffffff;
  color: #1a1a1a;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Breadcrumbs
   ======================================== */
.breadcrumb-container {
  background-color: rgba(245, 245, 245, 0.5);
  padding: 1.5rem 0;
  /* margin-top: 80px; */
  border-bottom: 1px solid rgba(33, 37, 41, 0.1);
}

body.dark-mode .breadcrumb-container {
  background-color: rgba(42, 42, 42, 0.5);
  border-bottom: 1px solid var(--color-border-dark);
}

.breadcrumb {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.breadcrumb-item a:hover {
  color: var(--color-accent);
}

.breadcrumb-item.active {
  color: var(--color-accent);
  font-weight: 600;
}

.breadcrumb-separator {
  margin: 0 0.75rem;
  color: rgba(33, 37, 41, 0.5);
}

body.dark-mode .breadcrumb-separator {
  color: rgba(232, 232, 232, 0.5);
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
  padding: 7rem 0 0rem;
  text-align: center;
  background-color: var(--color-bg);
}

.page-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.page-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--color-accent);
  font-style: italic;
}

/* ========================================
   Artwork Pages
   ======================================== */
.artwork-page {
  padding-top: 80px;
}

.artwork-hero {
  padding: 3rem 0 0;
  background-color: rgba(245, 245, 245, 0.3);
  text-align: center;
}

body.dark-mode .artwork-hero {
  background-color: rgba(42, 42, 42, 0.3);
}

.artwork-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.artwork-medium {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--color-accent);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.artwork-year {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  opacity: 0.7;
}

.artwork-main-section {
  padding: 2rem 0;
}

.artwork-image-main {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 3rem;
  max-width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed) ease;
}

.artwork-image-main:hover {
  transform: scale(1.02);
}

body.dark-mode .artwork-image-main {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.artwork-details {
  max-width: 100%;
  margin: 0 auto;
}

.artwork-section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.artwork-description {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--color-text);
  margin-bottom: 2rem;
  text-align: center;
}

.artwork-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem;
  background-color: rgba(245, 245, 245, 0.5);
  border-left: 4px solid var(--color-accent);
  display: none !important;
}

body.dark-mode .artwork-info-grid {
  background-color: rgba(42, 42, 42, 0.5);
}

.artwork-info-item {
  display: flex;
  flex-direction: column;
}

.artwork-info-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.artwork-info-value {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text);
}

.artwork-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
}

.theme-tag {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  background-color: rgba(197, 160, 89, 0.1);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 20px;
  transition: all var(--transition-speed) ease;
}

.theme-tag:hover {
  background-color: var(--color-accent);
  color: #ffffff;
}

.artwork-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 4rem auto 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(33, 37, 41, 0.1);
}

body.dark-mode .artwork-navigation {
  border-top: 1px solid var(--color-border-dark);
}

.nav-btn {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 2rem;
  color: var(--color-text);
  border: 2px solid var(--color-text);
  background-color: transparent;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-btn:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.nav-btn.back-to-gallery {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.nav-btn.back-to-gallery:hover {
  background-color: var(--color-accent);
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-description {
    font-size: 1.4rem;
  }

  .artwork-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .artwork-title {
    font-size: 2rem;
  }

  .artwork-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background-color: var(--color-bg);
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: auto;
}

body.dark-mode .footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .social-links {
    justify-content: flex-end;
  }
}

.social-links a {
  color: var(--color-text);
  font-size: 1.2rem;
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
}

body.dark-mode .social-links a {
  background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  color: var(--color-primary);
  background-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.social-links a:hover i {
  color: #fff;
}

/* ========================================
   Writing Page Restructure
   ======================================== */
.writing-editorial-card {
  margin-bottom: 3rem;
  padding-right: 1.5rem;
}

.writing-thumbnail-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 0.5rem;
  display: block;
}

body.dark-mode .writing-thumbnail-label {
  color: #aaa;
}

.writing-title-editorial {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  /* Cleaner sans-serif as seen in screenshot */
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.writing-subtitle-editorial {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 1rem;
  font-weight: 300;
}

body.dark-mode .writing-subtitle-editorial {
  color: #bbb;
}

.writing-pub-info {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

body.dark-mode .writing-pub-info {
  border-bottom: 1px solid #333;
}

.writing-pub-info strong {
  color: var(--color-text);
  text-decoration: underline;
}

.writing-body-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.writing-subhead {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.writing-body-wrapper {
  position: relative;
  /* This ensures we can position things if needed, but flexbox is doing the work now */
}

/* Collapsed State */
.writing-body-text.collapsed {
  max-height: 150px;
  /* Adjust this height to control the initial visible text */
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.writing-body-text.expanded {
  max-height: none;
  mask-image: none;
  -webkit-mask-image: none;
}

.btn-read-more {
  background: none;
  border: none;
  color: var(--color-primary);
  /* Uses your primary link color */
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0;
  margin-top: 0.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.btn-read-more:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.btn-read-more i {
  transition: transform 0.3s ease;
}

.btn-read-more.active i {
  transform: rotate(180deg);
}

/* ========================================
   Global Scroll Animations
   ======================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for gallery items */
.gallery-card:nth-child(1) {
  transition-delay: 0.1s;
}

.gallery-card:nth-child(2) {
  transition-delay: 0.2s;
}

.gallery-card:nth-child(3) {
  transition-delay: 0.3s;
}

.gallery-card:nth-child(4) {
  transition-delay: 0.1s;
}

/* ... pattern repeats naturally or handled by masonry order */
/* Additional contact page styles */
.contact-content-wrapper {
  max-width: 100%;
}

.contact-form-content {
  max-width: 600px;
}

/* Gallery wrapper styles are defined at line 252-256 */

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Vendor prefixes for transforms */
.gallery-card:hover img {
  -webkit-transform: scale(1.08);
  -ms-transform: scale(1.08);
  transform: scale(1.08);
}

.btn-view-project:hover {
  -webkit-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  transform: translateY(-2px);
}

.hero-title:hover {
  -webkit-transform: translateX(10px);
  -ms-transform: translateX(10px);
  transform: translateX(10px);
}

/* Print Styles */
@media print {

  /* Hide navigation, dark mode toggle, and footer */
  .navbar,
  .dark-mode-toggle,
  .footer,
  .breadcrumb-container,
  .gallery-overlay,
  .btn-view-project,
  .social-links,
  .contact-form {
    display: none !important;
  }

  /* Adjust hero section for print */
  .hero-enhanced {
    min-height: auto;
    padding: 2rem 1rem;
    page-break-after: avoid;
  }

  /* Optimize gallery for print */
  .gallery-section {
    padding: 2rem 0;
  }

  .gallery-card {
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }

  /* Ensure good contrast */
  body {
    background: white;
    color: black;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: black;
    page-break-after: avoid;
  }

  /* About page optimizations */
  .about-image {
    max-width: 400px;
    filter: none !important;
  }

  /* Show links in print */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  a[href^="#"]:after,
  a[href^="javascript:"]:after,
  a[href^="mailto:"]:after {
    content: "";
  }
}

@media print and (color) {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Extra small devices (phones, less than 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 3.8rem;
    letter-spacing: 0.03em;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-enhanced {
    padding: 4rem 1rem 2rem 1rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }
}

/* ========================================
   Scroll to Top Button
   ======================================== */
.progress-wrap {
  position: fixed;
  right: 30px;
  bottom: 30px;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  border-radius: 50px;
  box-shadow: inset 0 0 0 2px rgba(197, 160, 89, 0.2);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 200ms linear;
}

.progress-wrap.active-progress {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.progress-wrap::after {
  position: absolute;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f062';
  /* arrow-up */
  text-align: center;
  line-height: 46px;
  font-size: 18px;
  color: var(--color-accent);
  left: 0;
  top: 0;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  z-index: 1;
  transition: all 200ms linear;
}

.progress-wrap:hover::after {
  opacity: 0;
}

.progress-wrap::before {
  position: absolute;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f062';
  /* arrow-up */
  text-align: center;
  line-height: 46px;
  font-size: 18px;
  opacity: 0;
  background-image: linear-gradient(298deg, var(--color-accent), var(--color-accent-hover));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  left: 0;
  top: 0;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  z-index: 2;
  transition: all 200ms linear;
}

.progress-wrap:hover::before {
  opacity: 1;
}

.progress-wrap svg path {
  fill: none;
}

.progress-wrap svg.progress-circle path {
  stroke: var(--color-accent);
  stroke-width: 4;
  box-sizing: border-box;
  transition: all 200ms linear;
}

/* ========================================
   Writing Section Redesign
   ======================================== */

/* Writing Index Grid */
.writing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 2rem;
}

.writing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 2rem;
  transition: transform var(--transition-speed) ease;
}

.writing-card:hover {
  transform: translateY(-5px);
}

.writing-card-meta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.writing-card-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-text);
  flex-grow: 0;
}

.writing-card-excerpt {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
  opacity: 0.8;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.writing-read-more {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
  width: fit-content;
  transition: all var(--transition-speed) ease;
}

.writing-read-more:hover {
  color: var(--color-accent);
  border-bottom-color: transparent;
}

/* Individual Article Page */
.article-header {
  padding: 4rem 0 4rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.article-meta {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-accent);
  font-style: italic;
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-content {
  max-width: 100%;
  margin: 0 auto 5rem;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--color-text);
}

.article-content p {
  margin-bottom: 2rem;
}

.article-content h2,
.article-content h3 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  color: var(--color-text);
}

.article-navigation {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.btn-back:hover {
  color: var(--color-accent);
}

/* Dark Mode Adjustments */
body.dark-mode .writing-card {
  border-bottom-color: var(--color-border-dark);
}

body.dark-mode .writing-card-meta {
  color: var(--color-accent);
}

body.dark-mode .article-navigation {
  border-top-color: var(--color-border-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .writing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-title {
    font-size: 2.2rem;
  }

  .article-header {
    padding-top: 4rem;
  }
}

/* ========================================
   Form Validation & Dark Mode Fixes
   ======================================== */
.form-control.error {
  border: 2px solid #dc3545 !important;
  background-image: none !important;
}

.error-message {
  color: #dc3545 !important;
  font-weight: 500;
  margin-top: 5px;
}

/* Dark Mode Form Visibility */
body.dark-mode .form-control {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
}

body.dark-mode .form-control:focus {
  background-color: #444;
  color: #fff;
  border-color: var(--color-accent);
}

body.dark-mode .form-control.error {
  border-color: #ff6b6b !important;
  /* Brighter red for dark mode */
}

body.dark-mode .error-message {
  color: #ff6b6b !important;
}

/* ========================================
   Mobile Overlay Menu (991px only)
   ======================================== */

/* Hamburger Icon */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
  transition: transform 0.3s ease;
}

.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

/* Dark mode hamburger */
body.dark-mode .hamburger-line {
  background-color: var(--color-text-dark);
}

/* Hamburger to X animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Overlay Container */
.mobile-overlay-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1050;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-overlay-menu.active {
  visibility: visible;
  opacity: 1;
}

/* Backdrop */
.mobile-overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .mobile-overlay-backdrop {
  background-color: rgba(0, 0, 0, 0.95);
}

/* Overlay Content */
.mobile-overlay-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.mobile-overlay-menu.active .mobile-overlay-content {
  transform: translateY(0);
}

/* Mobile Navigation List */
.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-nav-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: calc(var(--item-index) * 0.05s);
}

.mobile-overlay-menu.active .mobile-nav-item {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Navigation Links */
.mobile-nav-link {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  padding: 1rem 1.5rem;
  min-height: 48px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background-color: var(--color-accent);
  transition: transform 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  color: var(--color-accent);
  transform: scale(1.05);
}

.mobile-nav-link:hover::after,
.mobile-nav-link:focus::after {
  transform: translateX(-50%) scaleX(1);
}

.mobile-nav-link:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* Body scroll lock when menu is open */
body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Desktop: Hide mobile menu completely */
@media (min-width: 992px) {

  .mobile-menu-toggle,
  .mobile-overlay-menu {
    display: none !important;
  }
}

/* Tablet adjustments */
@media (max-width: 768px) {
  .mobile-nav-link {
    font-size: 1.75rem;
    padding: 0.875rem 1.25rem;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .mobile-nav-link {
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
  }
}

/* Close Button */
.mobile-menu-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8) rotate(-90deg);
}

.mobile-overlay-menu.active .mobile-menu-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition-delay: 0.2s;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.1) rotate(90deg);
}

.mobile-menu-close:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* Submenu Styles */
.mobile-nav-parent {
  cursor: default;
  position: relative;
}

.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-submenu-item {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-overlay-menu.active .mobile-submenu-item {
  opacity: 1;
  transform: translateX(0);
}

.mobile-overlay-menu.active .mobile-submenu-item:nth-child(1) {
  transition-delay: calc(1 * 0.05s + 0.15s);
}

.mobile-overlay-menu.active .mobile-submenu-item:nth-child(2) {
  transition-delay: calc(1 * 0.05s + 0.2s);
}

.mobile-submenu-link {
  display: block;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  min-height: 40px;
  line-height: 1.4;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 2.5rem;
}

.mobile-submenu-link::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.mobile-submenu-link:hover::before,
.mobile-submenu-link:focus::before {
  opacity: 1;
  transform: translateX(0);
}

.mobile-submenu-link:hover,
.mobile-submenu-link:focus {
  color: var(--color-accent);
  padding-left: 3rem;
}

/* Social Media Icons */
.mobile-menu-social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-overlay-menu.active .mobile-menu-social {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.mobile-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.mobile-social-link:hover,
.mobile-social-link:focus {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 20px rgba(197, 160, 89, 0.4);
}

.mobile-social-link:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* Adjust mobile nav positioning for social icons */
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.mobile-nav-list {
  margin-bottom: 0;
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .mobile-menu-close {
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .mobile-submenu-link {
    font-size: 1.1rem;
    padding: 0.4rem 1.25rem;
    padding-left: 2.25rem;
  }

  .mobile-menu-social {
    gap: 1rem;
    margin-top: 2rem;
  }

  .mobile-social-link {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }
}

/* Submenu Toggle Arrow */
.submenu-arrow {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.mobile-nav-parent[aria-expanded='true'] .submenu-arrow {
  transform: rotate(180deg);
}

/* Submenu collapsed by default */
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.mobile-nav-item-submenu.active .mobile-submenu {
  max-height: 300px;
  opacity: 1;
}

/* Button reset for mobile-nav-parent */
.mobile-nav-parent {
  background: none;
  border: none;
  width: 100%;
  text-align: center;
}

/* ========================================
   Abstract Gradient Blobs
   ======================================== */

.gradient-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  animation: float 20s ease-in-out infinite, pulse 8s ease-in-out infinite;
  will-change: transform, opacity;
}

/* Light Theme Blobs - Pastel Gradients */
.blob-1 {
  width: 400px;
  height: 400px;
  top: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.6) 0%, rgba(186, 85, 211, 0.4) 100%);
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  top: 20%;
  right: -10%;
  background: radial-gradient(circle, rgba(135, 206, 250, 0.6) 0%, rgba(0, 191, 255, 0.4) 100%);
  animation-delay: -5s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  bottom: -5%;
  left: 15%;
  background: radial-gradient(circle, rgba(255, 218, 185, 0.6) 0%, rgba(255, 165, 0, 0.4) 100%);
  animation-delay: -10s;
}

.blob-4 {
  width: 450px;
  height: 450px;
  bottom: 10%;
  right: 20%;
  background: radial-gradient(circle, rgba(221, 160, 221, 0.6) 0%, rgba(218, 112, 214, 0.4) 100%);
  animation-delay: -15s;
}

/* Dark Mode Blobs - Deeper Gradients with Lower Opacity */
body.dark-mode .blob {
  opacity: 0.25;
  filter: blur(90px);
}

body.dark-mode .blob-1 {
  background: radial-gradient(circle, rgba(75, 0, 130, 0.5) 0%, rgba(138, 43, 226, 0.3) 100%);
}

body.dark-mode .blob-2 {
  background: radial-gradient(circle, rgba(0, 100, 150, 0.5) 0%, rgba(0, 150, 200, 0.3) 100%);
}

body.dark-mode .blob-3 {
  background: radial-gradient(circle, rgba(0, 128, 128, 0.5) 0%, rgba(32, 178, 170, 0.3) 100%);
}

body.dark-mode .blob-4 {
  background: radial-gradient(circle, rgba(72, 61, 139, 0.5) 0%, rgba(123, 104, 238, 0.3) 100%);
}

/* Floating Animation */
@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -30px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }

  75% {
    transform: translate(20px, 30px) scale(1.02);
  }
}

/* Ensure hero content is above blobs */
.hero-content {
  position: relative;
  z-index: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .blob {
    filter: blur(60px);
  }

  .blob-1,
  .blob-2,
  .blob-3,
  .blob-4 {
    width: 250px;
    height: 250px;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
  }
}

/* Pulse Animation */
@keyframes pulse {

  0%,
  100% {
    opacity: 0.2;
    filter: blur(80px);
  }

  50% {
    opacity: 0.35;
    filter: blur(70px);
  }
}

/* Dark mode pulse */
body.dark-mode .blob {
  animation: float 20s ease-in-out infinite, pulseDark 8s ease-in-out infinite;
}

@keyframes pulseDark {

  0%,
  100% {
    opacity: 0.25;
    filter: blur(90px);
  }

  50% {
    opacity: 0.4;
    filter: blur(80px);
  }
}


/* ========================================
   Website Preloader
   ======================================== */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-blob {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.8) 0%, rgba(186, 85, 211, 0.6) 100%);
  opacity: 0.6;
  filter: blur(20px);
  animation: loaderPulse 2s ease-in-out infinite;
}

body.dark-mode .loader-blob {
  background: radial-gradient(circle, rgba(75, 0, 130, 0.8) 0%, rgba(138, 43, 226, 0.6) 100%);
  filter: blur(25px);
}

.loader-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  opacity: 0;
  animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes loaderPulse {

  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes fadeInOut {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* ========================================
   Skeleton Loading UI
   ======================================== */

.skeleton {
  background-color: #e0e0e0;
  animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
  border-radius: 4px;
  display: inline-block;
  line-height: 1;
  width: 100%;
}

@keyframes skeleton-pulse {
  0% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

/* Specific Element Skeletons */
.skeleton-text {
  height: 0.9em;
  margin-bottom: 0.5em;
  border-radius: 4px;
}

.skeleton-title {
  height: 2em;
  margin-bottom: 1rem;
  width: 70%;
}

.skeleton-img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

/* Loading State Container Helper */
.loading-container {
  position: relative;
}

/* Hide actual image while loading */
.loading-img {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.loaded-img {
  opacity: 1;
}

/* Dark Mode Overrides */
body.dark-mode .skeleton {
  background-color: #2a2a2a;
}

.project-detail-row {
  display: flex;
  align-items: center;
}
.display-5{
  font-size: 2rem;
}