body {
    margin: 0;
    height: 100vh;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #ffffff;
    background-color: black;
    background-image: 
        radial-gradient(ellipse at 20% 30%, rgba(38, 38, 80, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(58, 28, 58, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, black 0%, rgb(22,22,22) 50%, rgb(18,18,18) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50'%3E%3Ctext x='15' y='35' font-size='28' fill='rgba(255,255,255,0.08)' font-family='monospace' font-weight='bold'%3E%2B%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    background-attachment: fixed;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #080808;
    border-bottom: 1px solid #1d1d1d;
    padding: 1rem 2rem;
}

nav > a {
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav ul a {
    text-decoration: none;
    font-size: 18px;
    color: #fff;
    position: relative;
    display: inline-block;
    transition: color 0.4s ease;
}

nav ul a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #b8c0ff;
    border-radius: 2px;
    transform: translateX(-50%);
    transition:
        width 0.15s ease,
        left 0.15s ease,
        transform 0.15s ease;
}

nav ul a:hover:not(.active1) {
    color: #b8c0ff;
}

nav ul a:hover:not(.active1)::after {
    width: 50%;
}

nav ul a.active1 {
    color: #b8c0ff;
    font-weight: 600;
}

nav ul a.active1::after {
    width: 100%;
}


.heroSection {
    display: flex;
    height: clamp(300px, 50vh, 300px);
    background: linear-gradient(135deg, rgba(40,40,80,0.4), rgba(60,30,60,0.4));
    border: 1px solid rgba(255,255,255,0.1);
    margin: 10vh auto 0;
    margin-top: 11vh;
    width: 90%;
    max-width: 700px;
    border-radius: 16px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 4rem;
    padding-top: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.title{
    font-size: 40px;
    color: #fffffff8;
    margin-bottom: 40px;
}

.intro{
    text-align: center;
    font-size: 18px;
    color: #ffffffab;
}

.explore{
    margin-top: 50px;
    height: 50px;
    width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.137);
    border-radius: 26px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(80,80,160,0.8), rgba(120,60,120,0.8));
    transition: filter 0.3s;
}

.explore:hover, .explore2:hover{
    cursor: pointer;
    filter: brightness(1.15);
}

.container{
    display: flex;
    justify-content: center;
    gap: 110px;
    margin-top: 60px;
    margin-bottom: 70px;
}

.stat{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat label{
    font-size: 50px;
    font-weight: bold;
    color: #ffffffe1;
}

.stat h3{
    font-size: 15px;
    color: #ffffffa2;
}

.container2{
    display: flex;
    margin: 0 auto;
    width: 1100px;
    gap: 30px;
    align-items: center;
    justify-content: center;
    padding-bottom: 60px;
}

.topics{
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.123);
    border-radius: 10px;
    background: rgba(20, 20, 20, 0.6);
    transition: 0.3s ease;
    padding: 2rem;
    padding-bottom: 2.5rem;
    max-height: 120px;
}

.topics:hover{
    transform: translateY(-6px);
    border: 1px solid rgba(255, 255, 255, 0.247);
}

.name{
    font-size: 22px;
    margin: 0 auto;
    text-align: center;
}

.explain{
    font-size: 15px;
    color: #ffffffa2;
    font-weight: normal;
    text-align: center;
}

.container3{
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 20px;
    justify-self: center;
    align-items: center;
}

.start{
    font-size: 46px;
    margin: 0;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.836);
}

.startDesc{
    font-size: 20px;
    color: #ffffffa2;
    font-weight: 400;
}

.container1{
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: left;
    border: 1px solid rgba(255, 255, 255, 0.123);
    border-radius: 10px;
    background: rgba(20, 20, 20, 0.6);
    padding: 2rem;
    width: 800px;
    margin-bottom: 30px;
}

.container1 h1{
    margin-top: 0;
    margin-bottom: 0;
    font-size: 32px;
}

.container1 h2{
    margin-bottom: 0;
    color: #ffffffe8;
}

.container1 h3{
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    font-weight: normal;
    color: #ffffffa2;
}

.control{
    background-color: #1b1b29;
    padding: 18px;
    margin-bottom: 16px;
    border-radius: 6px;
    border-left: 3px solid #474689;
}

.invis{
    padding-bottom: 70px;
}

.invis2{
    padding-bottom: 20px;
}

.explore2{
    margin: 0 auto;
    margin-top: 26px;
    height: 50px;
    width: 234px;
    border: 1px solid rgba(255, 255, 255, 0.137);
    border-radius: 26px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(135deg, rgba(80,80,160,0.8), rgba(120,60,120,0.8));
    transition: filter 0.3s;
}

.button{
    width: 175px;
    font-size: 14px;
    padding: 12px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.123);
    background-color: #1d1d31;
    color: white;
    transition: background-color 0.2s ease, transform 0.3s ease;
}

.button:hover{
    transform: translateY(-2px);
    border: 1px solid rgba(255, 255, 255, 0.247);
    background-color: #2b2b49;
    cursor: pointer;
}

.button:active{
    background-color: #3e3e69;
}

.active{
    background-color: #2b2b49;
}

.line{
    height: 1px;
    border: none;
    background-color: #34355f;
    width: 100%;
    justify-self: center;
}

.law{
    background-color: #291b28;
    padding: 18px;
    margin-bottom: 16px;
    border-radius: 6px;
    border-left: 3px solid #944c95;
}

.law b{
    color: #f673f8;
}

.nameOfLaws{
    margin: 0;
}

.lawTitle{
    margin-top: 0;
}

.formulaDiv {
    padding: 18px;
    border-radius: 6px;
    border-left: 3px solid #4664aa;
    background-color: #191929;
    justify-content: center;
    margin-bottom: 20px;
}

.formulaEquation {
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 10px;
    font-style: italic;
}

.formulaEquation sup {
    font-size: 18px;
    vertical-align: super;
}

.formulaEquation sub {
    font-size: 16px;
    vertical-align: sub;
}

.formulaExplanation {
    text-align: center;
    font-size: 14px;
    color: #b8c0ff;
    margin-top: 10px;
    font-family: system-ui, -apple-system, sans-serif;
}

.formulaTitle {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.formulaSubtitle {
    font-size: 13px;
    color: #b8c0ff;
    text-align: left;
    margin-bottom: 18px;
}

.formulaDetails {
    background: rgba(0, 0, 0, 0.25);
    padding: 14px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.6;
}

.container5 {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 2rem;
    padding-top: 1px;
    margin-top: 40px;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: #aaa;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: rgba(40,40,80,0.4);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.filter-btn.active {
    background: rgba(78, 78, 155, 0.6);
    border-color: rgba(255,255,255,0.4);
    transform: none;
}

.filter-btn:hover:not(.active) {
    transform: translateY(-3px);
    background: rgba(61, 61, 122, 0.6);
}

.filter-btn:hover:not(.active),
.filter-btn.active {
    border-color: rgba(255,255,255,0.4);
}


.simulations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.sim-card {
    background: rgba(20,20,20,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 490px;
}

.sim-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.sim-preview {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(40,40,80,0.5), rgba(60,30,60,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sim-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sim-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(100,100,200,0.3);
    border-radius: 15px;
    font-size: 0.75rem;
    color: #aaf;
    margin-bottom: 0.8rem;
    width: fit-content;
}

.sim-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.sim-description {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.sim-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sim-difficulty {
    font-size: 0.85rem;
    color: #999;
}

.difficulty-easy { color: #9f9; }
.difficulty-medium { color: #ff9; }
.difficulty-hard { color: #f99; }

.sim-launch {
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, rgba(80,80,160,0.6), rgba(120,60,120,0.6));
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.sim-launch:hover {
    background: linear-gradient(135deg, rgba(100,100,180,0.8), rgba(140,80,140,0.8));
}

.category-section {
    margin-bottom: 4rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.category-icon {
    font-size: 2.5rem;
}

.category-title {
    font-size: 2rem;
    color: #fff;
}

.coming-soon {
    opacity: 0.6;
    position: relative;
}

.coming-soon::after {
    content: "COMING SOON";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,100,100,0.9);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.coming-soon .sim-launch {
    pointer-events: none;
    opacity: 0.5;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.container-links {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: left;
    border: 1px solid rgba(255, 255, 255, 0.123);
    border-radius: 10px;
    background: rgba(20, 20, 20, 0.6);
    padding: 2rem;
    max-width: 1000px;
    width: 90%;
    margin-bottom: 30px;
}

.journey-container {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(20, 20, 30, 0.6);
    border-radius: 10px;
}

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

.journey-card {
    text-align: left;
    padding: 1.5rem;
    background: rgba(40, 40, 60, 0.4);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.journey-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.3);
}

.journey-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.journey-card ul {
    margin: 0;
    padding-left: 1.2rem;
}

.journey-card li {
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.journey-card li:last-child {
    margin-bottom: 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    width: 100%;
}

.resource-card {
    background: rgba(25, 25, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.resource-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 10px;
}

.resource-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.resource-title {
    font-size: 1.4rem;
    margin: 0;
    color: #fff;
    flex-grow: 1;
}

.resource-level {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.resource-description {
    color: #ffffffab;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1.2rem;
}

.resource-link {
    margin-bottom: 1rem;
}

.resource-link a {
    color: #8ab4f8;
    text-decoration: none;
    transition: color 0.2s;
    word-break: break-all;
}

.resource-link a:hover {
    color: #a8c7fa;
    text-decoration: underline;
}

.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    background: rgba(70, 100, 170, 0.3);
    border-radius: 15px;
    color: #b8c0ff;
}

@media (max-width: 1100px) {
    .container-links {
        max-width: 95%;
        width: 95%;
    }
    
    .resources-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .container-links {
        padding: 1.5rem;
        width: 95%;
        max-width: 95%;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .resource-header {
        flex-direction: row;
        align-items: center;
    }
    
    .resource-icon {
        margin-bottom: 0;
    }
    
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .journey-card {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container-links {
        padding: 1rem;
    }
    
    .resource-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .resource-icon {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .resource-title {
        margin-bottom: 10px;
    }
    
    .resource-level {
        align-self: flex-start;
    }
}

.elements{
    color: #ffffffab;
    padding-left: 1.2rem;
    display: block;
    left: auto;
}

.sim-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.sim-link:visited {
    color: inherit;
}

.sim-link:hover {
    text-decoration: none;
}

.sim-link * {
    text-decoration: none !important;
}

.sim-link:focus-visible .sim-card {
    outline: 2px solid #b8c0ff;
    outline-offset: 4px;
}

.sim-link {
    -webkit-tap-highlight-color: transparent;
}

.suggestionForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 90%;
    max-width: 600px;
    margin-top: 2rem;
}

.suggestionForm input,
.suggestionForm textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(30,30,50,0.7);
    color: #fff;
    font-size: 16px;
    resize: none;
    font-family:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.suggestionForm input::placeholder,
.suggestionForm textarea::placeholder {
    color: #aaa;
}
.buttonContainer {
    display: flex;
    justify-content: flex-end;
}

@keyframes move {
  0% {
    transform: translateX(-50%) translateY(-60px);
    opacity: 0;
  }
  15% {
    transform: translateX(-50%) translateY(-85px);
    opacity: 1;
  }
  25% {
    transform: translateX(-50%) translateY(-80px);
  }
  75% {
    transform: translateX(-50%) translateY(-80px);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(-60px);
    opacity: 0;
  }
}


.thanksMessage {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  color: #9f9;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
  pointer-events: none;
  white-space: nowrap;
}

.button1 {
    width: 175px;
    font-family: 'roboto', sans-serif;
    font-size: 15px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.123);
    background-color: #1d1d31;
    box-shadow: -4px 6px 6px rgba(0, 0, 0, 0.25);
    color: white;
    transition: background-color 0.2s ease, transform 0.05s ease;
}

.button1:hover{
    background-color: #19192b;
    cursor: pointer;
}

.button1:active{
    background-color: #11111d;
    transform: translateY(2px) translateX(-2px);
    box-shadow: -2px 4px 4px rgba(0, 0, 0, 0.25);;
}

.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown > a {
    cursor: default;
    pointer-events: none;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-10%);
    background: linear-gradient(135deg, rgba(3, 3, 5, 0.98), rgba(3, 3, 5, 0.98));
    backdrop-filter: blur(10px);
    min-width: 200px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    padding: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-content a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(3, 3, 5, 0.98), rgba(3, 3, 5, 0.98));
    transition: left 0.4s ease;
    z-index: -1;
}

.dropdown-content a:not(:last-child) {
    margin-bottom: 4px;
}

.dropdown-content a:hover:not(.active2) {
    background-color: rgba(80, 80, 160, 0.3);
    color: #b8c0ff;
    transform: translateX(4px);
}

.dropdown-content a.active2 {
    background-color: rgba(80, 80, 160, 0.3);
    color: #b8c0ff;
}

.dropdown-content a:hover:not(.active2)::before {
    left: 100%;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-600%);
    width: 0;
    height: 0;
    background: linear-gradient(135deg, rgba(3, 3, 5, 0.98), rgba(3, 3, 5, 0.98));
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(255, 255, 255, 0.12);
}

.dropdown-content::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-600%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(3, 3, 5, 0.98);
}
.dropdown::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #b8c0ff;
    border-radius: 2px;
    transform: translateX(-50%);
    transition:
        width 0.15s ease,
        left 0.15s ease,
        transform 0.15s ease;
}

.dropdown:hover::after {
    width: 50%;
}
.dropdown:hover > a {
    color: #b8c0ff;
}
.dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}