html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #a5baff;
    overflow-x: hidden;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    font-weight: bold;
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}

.nav-links a {
    margin-left: 25px;
    text-decoration: none;
    color: #333;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3;
}

.nav-links a:hover {
    border-bottom: 2px solid  rgb(121, 134, 177);
}

.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    background: linear-gradient(to bottom, #739add 0%, #527ea5 20%, #173452 95%, #ffffff 100%);
}

model-viever {
    width: 95vw;
    height: 85vh;
    --poster-color: transparent;
    transition: transform 0.1s ease-out;
    z-index: 1;
    transform: scale(1.5);
}

.hero-text {
    position: absolute;
    top: 30%;
    left: 10%;
    z-index: 2;
    color: white;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-text h1 {
    font-size: 4rem;
    margin: 0 0 10px 0;
    font-weight: normal;
}

.hero-text p {
    font-size: 1.5rem;
    margin: 0;
    opacity: 0.9;
}

#shark-model {
    width: 80%;
    height: 80%;
    justify-content: center;
}

#top-bar {
    display: flex; 
    justify-content: space-between; 
    width: 100%;  
    background: linear-gradient(to bottom, rgb(159, 174, 222) 20%, rgb(133, 156, 234) 60%,rgb(97, 119, 188)100%);

    color: #fff;
    font-weight: bold;
    font-size: large;

    position: fixed;
    top: 0;
    left: 0;
}

#logo {
    font-size: 140%;
    font-weight: bold;
    margin-left: 20px; margin-top: 2px;
    color:#ffffff29;
    background: linear-gradient(0deg,rgb(16, 10, 86) 0%, rgb(56, 82, 146) 100%);
    background-clip: text;
    text-decoration: dotted;
}

#bottom-bar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    width: 100%;  
    background: linear-gradient(to bottom, rgb(83, 118, 233) 20%, rgb(78, 107, 206) 60%,rgb(64, 84, 146)100%);

    color: #fff;
    font-size: large;
    padding: 20px 40px;
}

.bottom-links a {
    margin-right: 40px;
    padding-right: 25px;
    text-decoration: none;
    color: #3f4873;
    border-bottom: 2px solid transparent;
    align-items: center;
    justify-content: space-between;
}

.bottom-links a:hover {
    border-bottom: 2px solid  rgb(121, 134, 177);
}

.about-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff 0%, #5a9ed9 10%, #2f5e8d 100%);
    padding: 10px 40px;
}

.about-section h2 {
    font-size: 2.5rem;
    border-bottom: 3px solid #ffda1a;
    display: inline-block;
    padding-bottom: 5px;
}

.about-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: white;
    word-wrap: break-word;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.introduction-section {
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #ffffff 0%, #5a9ed9 10%, #2f5e8d 100%);
    padding: 60px 40px;
    gap: 40px;
}

.introduction-section h2 {
    font-size: 2.5rem;
    border-bottom: 3px solid #ffda1a;
    display: inline-block;
    padding-bottom: 5px;
}

.introduction-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: white;
    word-wrap: break-word;
}

.introduction-content {
    max-width: 600px;
    flex: 1;
    padding-top: 80px;
    padding-bottom: 80px;
}

.popularity-section {
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, #adcfed 0%, #5a9ed9 10%, #2f5e8d 100%);
    padding: 80px 0;
    overflow: hidden;
    width: 100%;
}

.popularity-section h2 {
    font-size: 2.5rem;
    border-bottom: 3px solid #ffda1a;
    display: inline-block;
    padding-bottom: 5px;
}

.popularity-section h3 {
    font-size: 1.8rem;
    border-bottom: 3px solid #4a779e;
    margin-top: 30px
}

.popularity-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: white;
    word-wrap: break-word;
    margin-bottom: 20px;
}

.popularity-content {
    max-width: 800px;
    width: 90%;
    text-align: center;
    padding-bottom: 40px;
    color: white;
}

.video-center {
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.gallery-section {
    flex: 1;
    max-height: 120vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 15px;
    padding: 10px;
}

.gallery-item {
    width: 100%;
    height: 340px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.slider-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.slider-track-1, .slider-track-2 {
    display: flex;
    width: max-content;
    gap: 20px;
}

.slider-track-1 {
    animation: scrollMarquee 35s linear infinite;
}

.slider-track-2 {
    animation: scrollMarquee 38s linear infinite reverse;
}

.slider-container:hover .slider-track-1, .slider-container:hover .slider-track-2 {
    animation-play-state: paused;
}

.slider-track .gallery-item {
    width: 450px;
    height: 300px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slider-track .gallery-item:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

@keyframes scrollMarquee {
    0% {
        transform: translaeX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #222;
    padding: 20px;
    border-radius: 15px;
    color: white;
}

#lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 5px;
}

#lightbox-header {
    width: 100%;
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: left;
}

.lightbox-footer {
    width: 100%;
    margin-top: 10px;
    text-align: right;
}

.lightbox-footer a {
    color: #ffda1a;
    text-decoration: underline;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3);
}
.prev-btn {
    z-index: 1001;
    left: 5%;
}
.next-btn {
    right: 5%;
    z-index: 1001;
}






/* Credits */
.credits-body {
    background-color: #173452
}

.credits-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, #ffffff 0%, #527ea5 20%, #173452 95%);
    padding: 120px 20px 60px 20px;
}

.credits-container {
    max-width: 1100px;
    width: 100%;
    text-align: center;
}

.credits-container h2 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 10px;
}

.credits-subtitle {
    font-size: 1.2rem;
    color: #2c2b2f;
    margin-bottom: 40px;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minimax(300px, 1fr));
    gap: 25px;
    padding: 10px;
}

.credit-card {
    background: rgba(255,255,255,0.95);
    padding: 25px;
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.credit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.credit-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #173452
}

.credit-card p {
    margin: 0 0 20px 0;
    font-size: 1rem;
    color: #666;
    line-height: 1.4;
}

.license-tag {
    align-self: flex-start;
    background: #e1ecf4;
    color: #2f5e8d;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.credit-link, .multi-links a {
    color: #2f5e8d;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.credit-link:hover, .multi-links:hover {
    color: #ffda1a
}

.multi-links {
    display: flex;
    gap: 15px
}



/* Quiz Time! */
body.quiz-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(to bottom, #a5baff 0%, #5396d1 60%, #7167c0 100%);
    margin: 0;
}

#quiz {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 20px 60px 20px;
  box-sizing: border-box;
  max-width: 600px;
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

#quiz h1 {
  color: #173452;
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 2rem;
}

#quiz-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    width: 100%;
    box-sizing: border-box;
}

#question {
    font-size: 1.25rem;
    color: #333;
    padding-bottom: 25px;
    font-weight: 600;
    line-height: 1.4;
}

#options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 25px;
}

#options button {
    background-color: #f0f4f8;
    color: #173452;
    border: 2px solid #d0daf0;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

#options button:hover {
    background-color: #e1ecf4;
    border-color: #2f5e8d;
    transform: translateY(-2px);
}

#submit {
    background-color: #2f5e8d;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s, transform 0.2s;
}

#submit:hover {
    background-color: #173452;
    transform: translateY(-2px)
}