* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: black;
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 40px;
}

.title {
    font-size: 10rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px white;
}

.subtitle {
    font-size: 1.5rem;
    color: white;
    margin-top: 5px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

#typewriter {
    border-right: 2px solid white;
    animation: blink 1s infinite;
    text-shadow: 0 0 15px white;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { border-color: white; }
    51%, 100% { border-color: transparent; }
}

@media (max-width: 768px) {
    .title {
        font-size: 5rem;
    }
    
    .box {
        width: 120px;
        height: 120px;
    }
    
    .box-logo {
        font-size: 1.5rem;
    }
    
    .box-text {
        font-size: 0.8rem;
    }
    
    .boxes {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .logo {
        width: 30px;
        height: 30px;
    }
}



.molecule {
    position: absolute;
    font-size: 0.8rem;
    color: #444;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.boxes {
    display: flex;
    gap: 40px;
    margin-top: 80px;
}

.boxes:nth-of-type(2) {
    margin-top: 25px;
}

.box {
    width: 150px;
    height: 150px;
    background: rgba(128, 128, 128, 0.3);
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    background: rgba(50, 50, 50, 0.8);
}

.box-content {
    text-align: center;
    color: white;
}

.box-logo {
    font-size: 2rem;
    margin-bottom: 10px;
}

.box-text {
    font-size: 0.9rem;
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #222;
    margin: 5% auto;
    padding: 20px;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    color: white;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: white;
}

.periodic-table {
    display: grid;
    grid-template-columns: repeat(18, 1fr);
    gap: 5px;
    margin-top: 20px;
}

.element {
    background: linear-gradient(135deg, #333, #555);
    border: 1px solid #666;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.element:hover {
    background: linear-gradient(135deg, #555, #777);
    transform: scale(1.1);
}

.element span {
    font-size: 0.7rem;
    position: absolute;
    top: 2px;
    right: 4px;
    opacity: 0.7;
}

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

.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 1000;
}

.logo:hover {
    transform: scale(1.1);
}

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.profile {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    transform: scale(1.1);
}

.line {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover .line {
    background: rgba(255, 255, 255, 0.8);
}

.home-link {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    border: 1px solid transparent;
}

.home-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}



.graph-container {
    background: black;
    width: 100%;
    height: 100vh;
    color: white;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.axis-controls {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.axis-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.axis-control label {
    color: white;
    font-weight: bold;
}

.axis-control select {
    background: #333;
    color: white;
    border: 1px solid #666;
    border-radius: 5px;
    padding: 8px;
    font-size: 14px;
}

#graphCanvas {
    background: black;
    border: 2px solid #333;
    display: block;
    margin: 0 auto;
    width: 90%;
    max-width: 1000px;
    height: 70vh;
}

.review-section {
    margin: 60px auto;
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.review-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    display: inline-block;
}

.review-boxes {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.review-box {
    background: black;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.review-box.animate {
    opacity: 1;
    transform: translateY(0);
}

.review-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

.review-box.animate:hover {
    transform: scale(1.05) translateY(0);
}

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    width: 0;
}

.typing-text.animate {
    animation: typing 2s steps(40) forwards;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.review-avatar {
    font-size: 3rem;
    margin-bottom: 15px;
    color: white;
}

.review-content h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.rating {
    color: #ffd700;
    font-size: 1.2rem;
    margin-top: 10px;
}

.review-content p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    font-style: italic;
}

.faq-section {
    margin: 60px auto 0;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.faq-title {
    color: white;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    display: inline-block;
}

.faq-item {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.faq-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.faq-item:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.02);
}

.faq-question {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.5;
    display: none;
    margin-top: 15px;
    padding: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

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

.feedback-section {
    margin: 60px auto 0;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feedback-title {
    color: white;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.feedback-box {
    width: 100%;
    min-height: 120px;
    background: black;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    padding: 20px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-100px);
}

.feedback-box.animate {
    opacity: 1;
    transform: translateX(0);
}

.feedback-box:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.feedback-box::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
    background: black;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    padding: 15px 40px;
    color: white;
    font-size: 1.2rem;
    font-family: inherit;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.submit-btn:active {
    transform: scale(0.95);
}

.rotating-boxes-section {
    margin: 60px auto;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.highly-used-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.highly-used-title.typing-text {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    animation: typing 2s steps(40) forwards;
}

.rotating-boxes-container {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.rotating-box {
    width: 180px;
    height: 180px;
    background: rgba(128, 128, 128, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.rotating-box:hover {
    transform: scale(1.15);
}

.rotating-box-content {
    text-align: center;
    color: white;
    z-index: 1;
}

.rotating-box-logo {
    font-size: 3rem;
    margin-bottom: 12px;
}

.rotating-box-text {
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.copyright-footer {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
}

@media (max-width: 480px) {
    .title {
        font-size: 3.5rem;
    }
    
    .box {
        width: 100px;
        height: 100px;
    }
    
    .boxes {
        gap: 15px;
    }
    
    .faq-title {
        font-size: 2rem;
    }
    
    .faq-question {
        font-size: 1.1rem;
    }
    
    .rotating-boxes-container {
        gap: 30px;
    }
    
    .highly-used-title {
        font-size: 2rem;
    }
    
    .rotating-box {
        width: 140px;
        height: 140px;
    }
    
    .rotating-box-logo {
        font-size: 2.2rem;
    }
    
    .rotating-box-text {
        font-size: 0.9rem;
    }
}