/* ========================
   Global Styles
======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', sans-serif;
  }
  
  body {
    margin: 0;
    font-family: 'Helvetica Neue', sans-serif;
    background: #fff;
    color: #111;
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  /* ========================
     Hero Section
  ======================== */
  header {
    position: relative;
    height: 100vh;
    overflow: hidden;
  }
  
  .slideshow {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: slideshow 15s infinite;
    background-size: cover;
    background-position: center;
  }
  
  @keyframes slideshow {
    0% { background-image: url('https://farhanonfrontline.in/assets/images/sinking-dreams.jpeg'); }
    33% { background-image: url('https://farhanonfrontline.in/assets/images/bear-attacks.jpeg'); }
    66% { background-image: url('https://farhanonfrontline.in/assets/images/innocence-betrayed.jpeg'); }
    100% { background-image: url('https://farhanonfrontline.in/assets/images/two-indias.jpeg'); }
  }
  
  .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
  }
  
  .overlay h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
  }
  
  .overlay p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }
  
  .overlay a {
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
  }
  
  .overlay a:hover {
    background: #ddd;
  }
  
  /* ========================
     Navbar
  ======================== */
/* Add to your styles.css */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1rem;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }
  
  .hamburger {
    display: block;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
  }
  
  .contact-button {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
  }
}

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #111;
    color: #fff;
    padding: 1rem 2rem;
  }
  
  .navbar .logo a {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
  }
  
  .navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
  }
  
  .navbar .nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
  }
  
  .navbar .nav-links a:hover {
    background-color: #007acc;
    border-radius: 5px;
  }
  
  .navbar .contact-link {
    text-decoration: none;
    background-color: #fff;
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s;
  }
  
  .navbar .contact-link:hover {
    background-color: #ddd;
  }
  
  /* ========================
     Sections
  ======================== */
  section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: auto;
  }
  
  .container {
    max-width: 900px;
    margin: auto;
    padding: 4rem 2rem;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
  }
  
  /* ========================
     Projects
  ======================== */
  .projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }
  
  .card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 1s ease-in-out 2s forwards;
  }
  
  .card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .card-content p {
    font-size: 0.95rem;
    color: #444;
  }
  
  .card-content a {
    display: inline-block;
    margin-top: 0.75rem;
    color: #007acc;
    text-decoration: none;
  }
  
  /* ========================
     Clients
  ======================== */
  .clients {
    text-align: center;
    padding-top: 2rem;
  }
  
  .clients h2 {
    margin-bottom: 1rem;
  }
  
  .client-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    font-weight: bold;
    font-size: 1.1rem;
  }
  
  .clients p {
    margin-top: 1.5rem;
    color: #555;
  }
  
  /* ========================
     About Section
  ======================== */
  .about-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: slideUp 1s ease-in-out forwards;
  }
  
  .profile-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 0.5s forwards;
  }
  
  h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 1s forwards;
  }
  
  h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #555;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 1.5s forwards;
  }
  
  .bio {
    margin-top: 2rem;
    font-size: 1rem;
    color: #333;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 2s forwards;
  }
  
  /* Expertise Section */
  .expertise {
    margin-top: 3rem;
  }
  
  .expertise h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .expertise-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .expertise-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
  }
  
  .expertise-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #222;
  }
  
  .expertise-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
  }
  
  .expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: #ccc;
  }
  
  
  /* ========================
     Contact Info Section
  ======================== */
  .contact-info {
    margin-top: 2rem;
    font-size: 1rem;
    color: #555;
    opacity: 0;
    animation: fadeIn 1s ease-in-out 3s forwards;
  }
  
  .contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #333;
  }
  
  /* Contact Cards */
  .contact-info .card {
    background-color: #fafafa;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .contact-info .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: #f0f0f0;
  }
  
  .contact-info .card div {
    margin-bottom: 1rem;
    font-size: 1.1rem;
  }
  
  .contact-info .card div span {
    font-weight: bold;
  }
  
  .contact-info .email-card {
    background-color: #e3f2fd;
  }
  
  .contact-info .phone-card {
    background-color: #f1f8e9;
  }
  
  .contact-info .location-card {
    background-color: #fff3e0;
  }
  
  .contact-info .birthday-card {
    background-color: #fce4ec;
  }
  
  /* ========================
     Footer
  ======================== */
  .footer {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
  }
  
  .footer p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .footer .social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
  }
  
  .footer .social-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
  }
  
  .footer .social-links a:hover {
    color: #007acc;
  }
  
  /* ========================
     Animations
  ======================== */
  @keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }
  
  @keyframes slideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  
  /* ========================
     Responsive
  ======================== */
  @media (max-width: 600px) {
    .overlay h1 { font-size: 2rem; }
    .overlay p { font-size: 1rem; }
  }
  .contact-section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 40px;
  color: #777;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.contact-details {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-wrapper {
  flex: 1;
  min-width: 300px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s ease;
  font-size: 1em;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #333;
  outline: none;
}

.btn-primary {
  background-color: #000;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #444;
}
/* Portfolio Section */
#portfolio {
    padding: 3rem 2rem;
    background: #fff;
    text-align: center;
  }
  
  .filters {
    margin-bottom: 2rem;
  }
  
  .filter-btn {
    padding: 1rem 2rem;
    background-color: #007acc;
    color: white;
    border: none;
    cursor: pointer;
    margin-right: 1rem;
    font-size: 1rem;
  }
  
  .filter-btn:hover {
    background-color: #005f99;
  }
  
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
  }
  
  .gallery-item {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
  }
  
  .gallery-item:hover {
    transform: scale(1.05);
  }
  
  .project-info {
    padding: 1rem;
    background-color: #f4f4f4;
    border-radius: 0 0 8px 8px;
  }
  
  .project-info h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
  }
  
  .project-info .date {
    font-size: 1rem;
    color: #555;
  }
  
  .project-info .description {
    font-size: 1rem;
    color: #777;
  }
  
  .fancybox {
    max-width: 100%;
    height: auto;
  }
  @media (max-width: 768px) {
    header {
      height: 80vh;
    }
    
    .overlay h1 {
      font-size: 2rem;
    }
    
    .overlay p {
      font-size: 1rem;
    }
    
    .overlay a {
      padding: 0.5rem 1rem;
    }
  }
  @media (max-width: 600px) {
    .projects {
      grid-template-columns: 1fr;
    }
    
    .card {
      margin-bottom: 1.5rem;
    }
  }
  @media (max-width: 600px) {
    .client-logos {
      flex-direction: column;
      gap: 1rem;
    }
  }
  @media (max-width: 768px) {
    .about-section {
      padding: 2rem 1rem;
    }
    
    .expertise-cards {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 768px) {
    .contact-content {
      flex-direction: column;
    }
    
    .contact-form-wrapper, 
    .contact-details {
      width: 100%;
    }
  }
  @media (max-width: 600px) {
    .footer {
      padding: 1.5rem 0;
    }
    
    .footer .social-links {
      flex-wrap: wrap;
      gap: 1rem;
    }
  }
/* Portfolio Filter Styles */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: #111;
  border: 2px solid #007acc;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(0, 122, 204, 0.1);
}

.filter-btn.active {
  background: #007acc;
  color: white;
}

/* Portfolio Container */
.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  min-height: 50vh; /* Ensure container has minimum height */
  position: relative;
}

/* Initially hide all portfolio items */
.portfolio-item {
  display: none;
}

/* Published Works Specific Styles */
.published-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.published-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.published-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.image-container {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.publication-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: white;
}

.publication-name {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
}

.publish-date {
  display: block;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .portfolio-filters {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .portfolio-container, 
  .published-gallery {
    grid-template-columns: 1fr;
  }
}
  /* Fluid typography */
html {
  font-size: 16px;
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Better spacing on mobile */
section {
  padding: 2rem 1rem;
}

@media (min-width: 768px) {
  section {
    padding: 4rem 2rem;
  }
}
/* Mobile Menu Styles */
.hamburger {
  display: none; /* Hidden by default on desktop */
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 10px;
  z-index: 1000;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 30px;
  height: 3px;
  background-color: #fff;
  border-radius: 4px;
  position: absolute;
  transition: transform 0.15s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -10px;
}

.hamburger-inner::after {
  bottom: -10px;
}

/* Active state (when menu is open) */
.hamburger.active .hamburger-inner {
  transform: rotate(45deg);
}

.hamburger.active .hamburger-inner::before {
  transform: translateY(10px) rotate(0deg);
  opacity: 0;
}

.hamburger.active .hamburger-inner::after {
  transform: translateY(-10px) rotate(-90deg);
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: #111;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease-in-out;
    z-index: 999;
    padding-top: 80px;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .contact-button {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1000;
  }
  
  .navbar {
    position: relative;
    padding: 15px;
  }
  
  .logo {
    width: 100%;
    text-align: center;
  }
}
/* Add this to your existing CSS */
.nav-links::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.nav-links.active::before {
  opacity: 1;
  pointer-events: auto;
}
/* Lightbox customizations */
.fancybox-caption {
  font-size: 1.1rem;
  text-align: center;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.8);
}

.fancybox-image {
  max-height: 90vh;
  max-width: 90vw;
}

.fancybox-thumbs {
  background: rgba(0, 0, 0, 0.8);
}

.fancybox-button {
  background: rgba(30, 30, 30, 0.6);
  color: white;
}

.fancybox-button:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Make sure images in lightbox are properly scaled */
.fancybox-slide--image .fancybox-content {
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 40px 0;
}
/* Add to styles.css */
.fancybox-error {
  padding: 20px;
  color: #fff;
  background: #d33;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 4px;
}
/* Photo Story Cards */
.photo-story-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.photo-story-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.photo-story-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.photo-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-story-link:hover .photo-story-image img {
  transform: scale(1.05);
}

.photo-story-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-story-link:hover .photo-story-overlay {
  opacity: 1;
}

.photo-story-overlay i {
  color: white;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  border-radius: 50%;
}

.caption {
  padding: 20px;
  background: white;
}

.caption h3 {
  margin: 0 0 8px 0;
  font-size: 1.3rem;
  color: #333;
}

.caption p {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.external-link-hint {
  color: #0066cc;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
  transition: transform 0.3s ease;
}

.photo-story-link:hover .external-link-hint {
  transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .photo-story-image {
    height: 200px;
  }
  
  .caption {
    padding: 15px;
  }
  
  .caption h3 {
    font-size: 1.1rem;
  }
}
/* Photo Essay Card */
.photo-essay-card {
  display: flex;
  flex-wrap: wrap;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: white;
  transition: transform 0.3s ease;
}

.photo-essay-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.photo-essay-preview {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.photo-essay-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-essay-preview:hover .preview-overlay {
  opacity: 1;
}

.preview-button {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.preview-button:hover {
  background: white;
  transform: scale(1.05);
}

.photo-essay-details {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.photo-essay-details h3 {
  font-size: 1.8rem;
  margin: 0 0 10px 0;
  color: #222;
}

.authors {
  color: #666;
  font-style: italic;
  margin: 0 0 15px 0;
}

.description {
  color: #444;
  line-height: 1.6;
  margin: 0 0 25px 0;
}

.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.download-button, .read-button {
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.download-button {
  background: #e74c3c;
  color: white;
}

.download-button:hover {
  background: #c0392b;
}

.read-button {
  background: #3498db;
  color: white;
  border: none;
  cursor: pointer;
}

.read-button:hover {
  background: #2980b9;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.modal-content {
  background: white;
  margin: 2% auto;
  width: 90%;
  max-width: 1000px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.close-button {
  position: absolute;
  right: 25px;
  top: 15px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
}

.close-button:hover {
  color: #333;
}

.modal-header {
  padding: 20px;
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  margin: 0;
  color: #222;
}

.modal-header p {
  margin: 5px 0 0 0;
  color: #666;
}

.pdf-container {
  flex: 1;
  overflow: hidden;
}

.pdf-container iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: none;
}

.modal-footer {
  padding: 15px 20px;
  background: #f8f8f8;
  border-top: 1px solid #eee;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .photo-essay-card {
    flex-direction: column;
  }
  
  .photo-essay-preview {
    min-height: 250px;
  }
  
  .photo-essay-details {
    padding: 20px;
  }
  
  .modal-content {
    width: 95%;
    margin: 5% auto;
  }
}
/* Photo Essay Card - Simplified Version */
.photo-essay-card {
  display: flex;
  flex-wrap: wrap;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: white;
  transition: transform 0.3s ease;
  max-width: 800px;
  margin: 0 auto;
}

.photo-essay-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.photo-essay-preview {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.photo-essay-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-essay-preview:hover .preview-overlay {
  opacity: 1;
}

.preview-button {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.preview-button:hover {
  background: white;
  transform: scale(1.05);
}

.photo-essay-details {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.photo-essay-details h3 {
  font-size: 1.8rem;
  margin: 0 0 10px 0;
  color: #222;
}

.authors {
  color: #666;
  font-style: italic;
  margin: 0 0 15px 0;
}

.description {
  color: #444;
  line-height: 1.6;
  margin: 0 0 25px 0;
}

.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.download-button, .read-button {
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-align: center;
}

.download-button {
  background: #e74c3c;
  color: white;
}

.download-button:hover {
  background: #c0392b;
}

.read-button {
  background: #3498db;
  color: white;
}

.read-button:hover {
  background: #2980b9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .photo-essay-card {
    flex-direction: column;
  }
  
  .photo-essay-preview {
    min-height: 250px;
  }
  
  .photo-essay-details {
    padding: 20px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .download-button, .read-button {
    justify-content: center;
  }
}
/* Published Works Section */
.published-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #222;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.published-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.published-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.published-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.image-container {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.published-item:hover .image-container img {
  transform: scale(1.05);
}

.publication-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: white;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.publication-info {
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.published-item:hover .publication-info {
  transform: translateY(0);
}

.publication-name {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.publish-date {
  display: block;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Fancybox Customizations */
.fancybox-caption {
  font-size: 1.1rem;
  text-align: center;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.8);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .published-gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .published-section {
    padding: 2rem 1rem;
  }
  
  .published-gallery {
    grid-template-columns: 1fr;
  }
}
/* Hide all items by default */
.portfolio-item {
  display: none;
  margin-bottom: 3rem;
}

/* Show active category */
.portfolio-item.active {
  display: block;
}

/* Published section specific styles */
.published-section {
  padding: 2rem 0;
}

/* Active filter button style */
.filter-btn.active {
  background: #007acc;
  color: white;
}
/* Responsive fixes */
@media (max-width: 768px) {
  .portfolio-container {
    grid-template-columns: 1fr;
  }
  
  .published-gallery {
    grid-template-columns: 1fr;
  }
}
.footer .developer-credit {
  font-size: 0.95rem;
  margin-top: 6px;
  color: #f1f1f1; /* Bright and visible on dark background */
}

.footer .developer-credit a {
  color: #4fc3f7; /* Light sky blue for contrast */
  text-decoration: none;
  font-weight: 600;
}

.footer .developer-credit a:hover {
  color: #81d4fa;
  text-decoration: underline;
}
/* Photographs specific styling */
.portfolio-item.photographs {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.portfolio-item.photographs:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.portfolio-item.photographs img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item.photographs:hover img {
  transform: scale(1.05);
}

.portfolio-item.photographs .caption {
  padding: 15px;
  background: white;
  text-align: center;
  font-weight: 600;
  color: #333;
  border-top: 1px solid #eee;
}