:root {
    --primary-color: #008953;
    --secondary-color: #4ebf85;
    --secondary-light: #88f9ba;
    --accent-color: #005f73;

    --background-color: #dcf6f0; 
    --black-color: #0D1717;
    --gray-color: #D9D9D9;
}

* {
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--background-color);
}

html, body {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--black-color);
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--secondary-light) 50%, var(--background-color) 100%);
    min-height: 100vh;
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(0, 133, 83, 0.2);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

#objectives, #methodology, #behind {
    scroll-margin-top: 2em; 
}


/* NAVIGATION LINKS STYLES */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
 
.site-title {
    font-size: 1.3em !important;
    font-weight: 900;
    font-style: italic;
}

.navbar {
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    padding: 0 3em;
}

.navbar > div {
    display: flex;
    align-items: center;
}

.navbar ul {
    list-style: none;
    padding: 1em;
    display: flex;
    gap: 2em;
    align-items: center;
}

.navbar a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.2rem;
}

.nav-links a {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.navbar a:hover {
    color: var(--secondary-color) !important;
}

.nav-sections.hidden {
    display: none;
}

section {
    padding: 7em 5em 0em 5em;
}

#title-section {
    height: 100vh;
    display: flex;
}

#title-section img {
    margin-left: 15%;
    animation: float 6s ease-in-out infinite;
}


/* LANDING PAGE STYLES */
.title {
    width: 45%;
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title h1 {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 133, 83, 0.3);
    animation: fadeInUp 0.9s ease-out;
}

.title h3 {
    font-style: italic;
    font-weight: 600;
}

.title p {
    padding-top: 2.5em;
}

.title.list-desc {
    width: 60%;
}

.main-heading {
    font-size: 2.2em;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 133, 83, 0.3);
    animation: fadeInUp 1s ease-out;
}

.objectives {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 4rem;
}

.objective-card {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 133, 83, 0.15);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(0, 133, 83, 0.1);
    transition: all 5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(20px);
    opacity: 0;
}

.objective-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.objective-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 133, 83, 0.2);
    border-color: var(--secondary-color);
}

.objectives p {
    color: var(--accent-color);
    line-height: 1.5;
    font-size: 1.1rem;
}

.objective-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.methodology-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem auto;
    width: 70%;
}

.methodology-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 133, 83, 0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 133, 83, 0.15);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.methodology-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.methodology-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 133, 83, 0.2);
    border-color: var(--secondary-color);
}

.methodology-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(136, 249, 186, 0.3), transparent);
    transition: left 2s;
}

.methodology-card:hover::before {
    left: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    color: white;
    font-weight: bold;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--black-color);
    flex: 1;
}

.expand-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.expand-btn.expanded {
    transform: rotate(180deg);
}

.card-content {
    color: var(--accent-color);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.card-content.expanded {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
}

.card-preview {
    color: var(--accent-color);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.card-preview.hidden {
    display: none;
}


.story-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    color: white;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(120deg, var(--secondary-light) 0%, var(--secondary-light) 100%);
    background-size: 100% 0.2em;
    background-repeat: no-repeat;
    background-position: 0 88%;
    transition: background-size 0.25s ease-in;
    padding: 0 4px;
    border-radius: 3px;
}

.highlight:hover {
    background-size: 100% 88%;
    color: var(--black-color);
}

.emphasis {
    color: var(--secondary-light);
    font-weight: 600;
    position: relative;
}

.quote-box {
    width: 80%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem auto;
    position: relative;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.6;
    box-shadow: 0 10px 25px rgba(0, 133, 83, 0.3);
    transform: translateX(-50px);
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.quote-box.visible {
    transform: translateX(0);
    opacity: 1;
}

.quote-box::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.3;
    font-family: serif;
}




/* MOLECULAR DOCKING PAGE STYLES */

.molecular-docking {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-gap: 2em;
}

@media (min-width: 1024px) {
    .molecular-docking {
        grid-template-columns: 30% auto;
    }
}

.docking-content p {
    padding: 1em 1.5em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.docking-content p:nth-of-type(1) {
    animation-delay: 0.3s;
}

.docking-content p:nth-of-type(2) {
    animation-delay: 0.6s;
}

.docking-content p:nth-of-type(3) {
    animation-delay: 0.9s;
}

.docking-content > div {
    padding-bottom: 1.5em;
}

.dropdown-container {
    display: flex;
    gap: 1.2em;
}

label {
    font-weight: bold;
}

select {
    margin-top: 0.8em;
    padding: 0.8em;
    border: none;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1em;
}

.iframe-container iframe {
    width: 100%;
    height: 72vh;
    border: 3px solid var(--secondary-color);
    border-radius: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.iframe-container a {
    width: 100%;
    color: var(--primary-color) !important;
    text-decoration: none !important;
    text-align: end;
    font-weight: 600;
}

.iframe-container a:hover {
    color: var(--secondary-color);
}

#peptide-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 15px;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    transition: all 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(20px);
    opacity: 0;
    width: 300px;
    margin: 1.5em 0;
}

#peptide-btn.visible {
    transform: translateY(0);
    opacity: 1;
    cursor: pointer;
}

#peptide-btn:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 30px rgba(0, 133, 83, 0.2);
}








/* PEPTIDE PROPERTY PAGE STYLES */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 40px;
}

.visualization-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 137, 83, 0.1);
    border: 2px solid var(--secondary-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 137, 83, 0.15);
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Peptide Sequence */
.sequence-container {
    background: linear-gradient(135deg, #f8fffe, var(--background-color));
    border-radius: 15px;
    padding: 25px;
    border: 1px solid var(--secondary-light);
}

.sequence-container p {
    color:var(--accent-color);
    padding-top: 1em;
}

.sequence-text {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: 2px;
    word-break: break-all;
    line-height: 1.8;
}

.amino-acid {
    display: inline-block;
    padding: 6px 10px;
    margin: 3px;
    background: var(--secondary-light);
    color: var(--accent-color);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
}

.amino-acid:hover {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

/* 3D Viewer */
.viewer-container {
    position: relative;
}

.viewer-iframe {
    width: 100%;
    height: 50vh;
    border: 3px solid var(--secondary-light);
    border-radius: 20px;
    background-color: white;
}

.viewer-iframe::-webkit-scrollbar {
    width: 12px; 
    height: 12px; 
    
}

.viewer-iframe::-webkit-scrollbar-track {
    background: var(--background-color); 
    border-radius: 10px;
}

.viewer-iframe::-webkit-scrollbar-thumb {
    background: var(--secondary-color); 
    border-radius: 10px;
    border: 2px solid var(--background-color); 
}

.viewer-iframe::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color); 
}


/* ADMET  */
.admet-category {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 3px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 137, 83, 0.1);
    transition: all 0.3s ease;
}

.admet-category.list {
    width: 70%;
    margin: 50px auto;
}

.admet-category:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(0, 137, 83, 0.15);
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title::before {
    content: '';
    width: 6px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.properties-list {
    list-style: none;
    padding: 0;
}

.properties-list a {
    text-decoration: none;;
}

.property-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.property-item:last-child {
    border-bottom: none;
}

.property-item:hover {
    background: linear-gradient(90deg, transparent, var(--background-color), transparent);
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
}

.property-name {
    font-weight: 500;
    color: var(--accent-color);
    flex: 1;
}

.property-value {
    font-weight: 600;
    color: var(--black-color);
    margin-left: 20px;
}

.value-positive {
    color: var(--primary-color);
}

.value-negative {
    color: #d63384;
}

.value-neutral {
    color: var(--accent-color);
}

.value-number {
    font-family: 'Courier New', monospace;
    background: var(--background-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.units {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    margin-left: 5px;
}

.dashboard-section {
    width: min-content;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 137, 83, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}


.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.tab-navigation {
    display: flex;
    position: relative;
}

.tab-button {
    flex: 1;
    padding: 20px 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--black-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-family: 'Outfit', sans-serif;
}

.tab-button:hover {
    background: rgba(0, 137, 83, 0.1);
    transform: translateY(-2px);
}

.tab-button.active {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 137, 83, 0.3);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-light);
    animation: slideIn 0.3s ease-out;
}

.tab-content {
    display: none;
    padding: 40px;
    animation: fadeInUp 0.5s ease-out;
}

.tab-content.active {
    display: block;
}













/* FOOTER STYLES */

.footer {
    background: linear-gradient(120deg, var(--secondary-light) 0%, var(--secondary-light) 100%);
    color: var(--accent-color);
    padding: 1.8em 4em;
    font-size: 14px;
    margin-top: 8%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 3em;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-text h4 {
    margin: 0;
    font-size: 1.2em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--secondary-color);
}





/* KEYFRAMES */

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}