/*
Theme Name: Chemistry by Zeenat
Theme URI:  https://chemistrybyzeenat.com/
Author:     Sarmad Databot
Author URI: https://lancers.dev/
Description: Chemistry portfolio
Version:    2.0
License:    GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chemistry-by-maam-zeenat
*/


@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

.affiliation-card {
    transition: all 0.3s ease;
}

.affiliation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.logo-container {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-container {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 640px) {
    .logo-container {
        width: 80px;
        height: 80px;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(5deg);
    }

    50% {
        transform: translateY(-20px) rotate(0deg);
    }

    75% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

.floating-svg {
    opacity: 0.1;
}

.hero-gradient {
    background: linear-gradient(135deg, #C7E3FF 0%, #E8F4FD 100%);
}

.stats-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
}

.paper-image {
    max-width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto;
}

.paper-card {
    transition: box-shadow 0.3s ease;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.25rem !important;
}

.paper-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes spin-slow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

/* Chemistry Icons Background */
.chemistry-bg {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(132, 204, 22, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(30, 64, 175, 0.05) 0%, transparent 50%);
}

/* Ensure vertical video reviews display fully */
.video-review-portrait {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 2px 16px 0 rgba(30, 64, 175, 0.07);
}

@media (max-width: 360px) {
    .responsive {
        width: 300px !important;
    }

    .hero-img-responsive {
        width: 10rem !important;
        height: 10rem !important;
    }

}

@media (max-width: 425px) {
    .stats-cards-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        justify-items: center;
        margin-right: 4rem;
    }

    .hero-img-responsive {
        width: 20rem !important;
        height: 20rem !important;
    }

    .stats-card {
        width: 70%;
    }
}

/* Tab Navigation Styles */
.tab-nav-container {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0 0 2rem 0;
}
.tab-nav {
  background: #fff;
  border-radius: 2rem;
  padding: 0.25rem;
  display: flex;
  gap: 0.5rem;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 2px 8px 0 rgba(30, 64, 175, 0.03);
  justify-content: center;
}
.tab-btn {
  background: none;
  color: #1e293b;
  border: none;
  outline: none;
  border-radius: 2rem;
  padding: 0.9rem 2.2rem 0.7rem 2.2rem;
  font-size: 1.13rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-bottom 0.2s;
  position: relative;
  box-shadow: none;
  min-width: 160px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 3px solid transparent;
}
.tab-btn .tab-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}
.tab-btn .tab-desc {
  font-size: 0.98rem;
  font-weight: 400;
  color: #64748b;
}
.tab-btn.active, .tab-btn:focus {
  color: #1e40af;
  font-weight: 700;
  border-bottom: 3px solid #1e40af;
  background: none;
}
.tab-btn:hover:not(.active) {
  color: #17929b;
  background: none;
}
.tab-content-wrapper {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 1px 8px 0 rgba(30, 64, 175, 0.04);
  padding: 2rem 1.5rem;
  margin-top: 1.5rem;
  border: 1.5px solid #e5e7eb;
}
.tab-content {
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
  .tab-btn { min-width: 120px; font-size: 1rem; padding: 0.7rem 1.1rem 0.6rem 1.1rem; }
}
@media (max-width: 600px) {
  .tab-nav { flex-direction: column; gap: 0.5rem; border-radius: 1rem; }
  .tab-btn { width: 100%; min-width: 0; border-radius: 1rem; }
  .tab-content-wrapper { padding: 1rem 0.5rem; }
}

/* PDF Chapter Toggle Styles */
.pdf-chapters-container {
    max-width: 100%;
}

.pdf-chapter {
    margin-bottom: 1rem;
}

.chapter-toggle {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.chapter-toggle:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.chapter-toggle.active {
    background: #f0f9ff;
    border-color: #0ea5e9;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.1), 0 2px 4px -1px rgba(14, 165, 233, 0.06);
}

.chapter-toggle h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    flex: 1;
}

.chapter-toggle i {
    color: #6b7280;
    transition: transform 0.2s ease;
    font-size: 0.875rem;
}

.chapter-toggle.active i {
    color: #0ea5e9;
}

.pdf-content {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0 0 0.75rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-top: none;
    margin-top: -1px;
}

.pdf-content.hidden {
    display: none;
}

/* Responsive adjustments for PDF chapters */
@media (max-width: 768px) {
    .chapter-toggle {
        padding: 0.75rem;
    }
    
    .chapter-toggle h3 {
        font-size: 1rem;
    }
    
    .pdf-content {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .chapter-toggle {
        padding: 0.5rem;
    }
    
    .chapter-toggle h3 {
        font-size: 0.875rem;
    }
    
    .pdf-content {
        padding: 0.5rem;
    }
}
#highlightGallery {
    position: relative;
    overflow: hidden;
  }
  
  .highlight-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  
    /* start “out” state: transparent, zoomed in, slightly blurred & rotated */
    opacity: 0;
    transform: scale(1.1) rotate(1deg);
    filter: blur(4px) grayscale(10%);
    
    /* animate all three properties */
    transition: 
      opacity 0.8s ease-in-out, 
      transform 0.8s ease-in-out, 
      filter 1s ease-in-out;
    z-index: 0;
  }
  
  /* “in” state for the active slide */
  .highlight-image.active {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0) grayscale(0);
    z-index: 10;
    
    /* optional: tiny continuous zoom while shown */
    animation: kenburns 12s ease-in-out infinite alternate;
  }
  
  /* Ken Burns keyframes */
  @keyframes kenburns {
    from   { transform: scale(1)   translate(0, 0); }
    to     { transform: scale(1.05) translate(-2%, -2%); }
  }
  