/* Modern white and pearl styles for THE GLOW EDIT */

/* Base styles */
body {
    font-family: 'Times New Roman', Times, serif;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Navigation */
.navbar {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(250, 250, 250, 0.9));
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-right: 0;
}

.navbar-brand img {
    height: 100px; /* Increased logo size */
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #000;
}

.navbar-dark .navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #e0e0e0, #f5f5f5);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover:after,
.navbar-dark .navbar-nav .nav-link.active:after {
    width: 80%;
}

.navbar-dark .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Content sections */
.content-section {
    padding: 5rem 0;
    position: relative;
}

.header-section {
    background-image: url('images/cinematic-snow-mountains.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    margin-top: 120px; /* Added to ensure hero is below navbar */
}

.header-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(250, 250, 250, 0.5));
}

.bg-light {
    background: linear-gradient(135deg, rgba(250, 250, 250, 0.5), rgba(255, 255, 255, 0.5)) !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #e0e0e0, #f5f5f5);
    margin: 1rem auto;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

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

/* Buttons */
.btn {
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #333;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
    color: #000;
    transform: translateY(-2px);
}

/* Molecule visualization */
.molecule-container {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.molecule-3d {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
    animation: float 6s ease-in-out infinite;
    background: transparent !important;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.molecule-overlay {
    position: relative;
}

.molecule-hud {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.molecule-hud-line {
    position: absolute;
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
    transform-origin: left center;
    animation: fadeInOut 3s infinite;
}

@keyframes fadeInOut {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

.molecule-hud-text {
    position: absolute;
    font-size: 0.8rem;
    color: #333;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    animation: fadeIn 1s ease-in;
}

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

/* Touch screen effect */
.touch-screen {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.touch-screen:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.formula-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.formula-description {
    color: #555;
}

/* Custom cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(200, 200, 200, 0.5);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.2s, height 0.2s;
    display: none;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: 0.1s ease-out;
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideLeft {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.reveal {
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
}

.fade-bottom {
    transform: translateY(50px);
}

.fade-left {
    transform: translateX(50px);
}

.fade-right {
    transform: translateX(-50px);
}

.reveal.active.fade-bottom,
.reveal.active.fade-left,
.reveal.active.fade-right {
    transform: translateY(0) translateX(0);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(250, 250, 250, 0.9), rgba(255, 255, 255, 0.9));
    padding: 3rem 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.footer img {
    height: 60px;
}

/* Animated Charts */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

.bar {
    position: absolute;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to top, #f5f5f5, #e0e0e0);
    border-radius: 5px 5px 0 0;
    transition: height 1s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.bar-label {
    position: absolute;
    bottom: -25px;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #333;
}

.bar-value {
    position: absolute;
    top: -25px;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #333;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bar:hover .bar-value {
    opacity: 1;
}

.line-chart {
    position: relative;
    height: 200px;
    width: 100%;
    margin: 20px 0;
}

.line {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, #e0e0e0, #d0d0d0);
    transform-origin: left center;
    transition: width 1s ease;
}

.line-point {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.line-label {
    position: absolute;
    font-size: 0.8rem;
    color: #333;
    transform: translateX(-50%);
}

/* Media queries for responsiveness */
@media (max-width: 1199.98px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .molecule-container {
        height: 350px;
    }
}

@media (max-width: 991.98px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 4rem 0;
    }
    
    .molecule-container {
        height: 300px;
        margin-top: 2rem;
    }
    
    .navbar-brand img {
        height: 80px;
    }
    
    .header-section {
        margin-top: 100px;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .navbar-brand img {
        height: 70px;
    }
    
    .content-section {
        padding: 3rem 0;
    }
    
    .molecule-container {
        height: 250px;
    }
    
    .custom-cursor, .cursor-follower {
        display: none !important;
    }
    
    .header-section {
        min-height: 400px;
        margin-top: 90px;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .touch-screen {
        padding: 1.2rem;
    }
    
    .molecule-3d {
        animation: float 4s ease-in-out infinite;
    }
    
    .navbar-collapse {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .navbar-nav {
        width: 100%;
        padding-right: 15px;
    }
}

@media (max-width: 575.98px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .navbar-brand img {
        height: 60px;
    }
    
    .content-section {
        padding: 2.5rem 0;
    }
    
    .molecule-container {
        height: 200px;
    }
    
    .touch-screen {
        padding: 1rem;
    }
    
    .header-section {
        min-height: 350px;
        margin-top: 80px;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .formula-name {
        font-size: 1rem;
    }
    
    .formula-description {
        font-size: 0.9rem;
    }
    
    .molecule-hud-text {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 0 0 10px 10px;
        padding: 10px;
    }
}

/* Hide cursor on touch devices */
@media (hover: none) {
    .custom-cursor, .cursor-follower {
        display: none !important;
    }
}
