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

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* Navigation Bar */
.navbar {
    background-color: #1a1a1a;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo .shake {
    color: #b20101;
}

.hero .title-ss {
    letter-spacing: 15px;
    font-size: 50px;
    margin-bottom: 2rem;
}

[lang="my"] .title-ss {
    letter-spacing: normal;
    font-family: 'Padauk', sans-serif;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #b20101;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    text-decoration: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a1a1a;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    text-decoration: none;
    list-style: none;
    padding: 0;
}

.dropdown-content li {
    padding: 0.5rem 1rem;
    text-decoration: none;
    list-style: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    background-color: #000000;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: url('Assets/PePeE.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.hero h1, .hero p, .get-started-btn {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Jaro', sans-serif;
    font-size: 50px;
    color: #ffffff;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.hero p {
    max-width: 800px;
    margin-bottom: 2rem;
    color: #ffffff;
}

.get-started-btn {
    background-color:  #b20101;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.get-started-btn:hover {
    background-color:  #b20101;
}

/* About Section */
.about-section {
    padding: 4rem 2rem;
    background-color: #1a1a1a;
}

.about-section h2 {
    color:  #b20101;
    text-align: center;
    margin-bottom: 2rem;
}

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

/* Earthquake Information Page Styles */
.earthquake-section {
    min-height: 100vh;
    padding: 6rem 2rem 2rem;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.earthquake-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.4;
    z-index: 0;
}

#what-is-earthquake::before {
    background-image: url('Assets/top-view-leather-boots-cracked-dry-earth_346278-75.jpg.avif');
}

#how-earthquakes-occur {
    background-color: #000000;
}

#how-earthquakes-occur::before {
    display: none;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}


#what-is-earthquake .content-wrapper {
    text-align: left;
    max-width: 800px;
}

.earthquake-section h2 {
    color: #b20101;
    font-size: 2.5rem;
    font-family: 'Jaro', sans-serif;
    letter-spacing: 8px;
    margin-bottom: 1.5rem;
}

.earthquake-section p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.right-content {
    max-width: 800px;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 10px;
    margin-left: auto;
    color: #000000;
}

.right-content h2 {
    color: #000000;
    font-family: 'Jaro', sans-serif;
    letter-spacing: 8px;
    margin-bottom: 1.5rem;
}

.right-content p {
    color: #000000;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.right-content ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.right-content ul li {
    color: #000000;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    position: relative;
}

.right-content ul li::before {
    content: "•";
    color: #b20101;
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

.image-container {
    margin: 2rem 0;
    text-align: center;
}

.earth-layers, .seismic-waves {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.resources-section {
    padding: 4rem 2rem;
    background-color: #1a1a1a;
    position: relative;
}

.resources-section h2 {
    color: #b20101;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-family: 'Jaro', sans-serif;
    letter-spacing: 8px;
}

.resources-list {
    max-width: 800px;
    margin: 0 auto;
}

.resources-list ul {
    list-style: none;
    padding: 0;
}

.resources-list li {
    margin-bottom: 1rem;
}

.resources-list a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: block;
    padding: 1rem;
    background-color: rgba(178, 1, 1, 0.1);
    border-radius: 5px;
}

.resources-list a:hover {
    color: #b20101;
    background-color: rgba(178, 1, 1, 0.2);
}

.language-selector {
    margin-left: 2rem;
    display: flex;
    align-items: center;
}

.language-tabs {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.lang-tab {
    background: none;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    line-height: 1;
}

.lang-tab:hover {
    color: #b20101;
}

.lang-tab.active {
    background: none;
    color: #b20101;
}

/* Language-specific styles */
html[lang="my"] .earthquake-section h2,
html[lang="my"] .resources-section h2,
html[lang="my"] .hero h1 {
    letter-spacing: normal;
}

[lang="my"] {
    font-family: 'Padauk', sans-serif;
}


/* Types of Earthquakes Page Styles */
.boundary-image, .volcanic-image, .induced-image, .waves-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 1.5rem 0;
}

.image-container {
    text-align: center;
    margin: 2rem 0;
}

#types-of-earthquakes .content-wrapper {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

#tectonic-earthquakes, #volcanic-earthquakes, #induced-earthquakes, #earthquake-forces {
    background-color: #1a1a1a;
    padding: 4rem 2rem;
}

#tectonic-earthquakes::before, #volcanic-earthquakes::before, #induced-earthquakes::before, #earthquake-forces::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

#tectonic-earthquakes::before {
    background-image: url('Assets/tectonic-plates.jpg');
}

#volcanic-earthquakes::before {
    background-image: url('Assets/volcano.jpg');
}

#induced-earthquakes::before {
    background-image: url('Assets/mining.jpg');
}

#earthquake-forces::before {
    background-image: url('Assets/seismic-waves.jpg');
}

.right-content h3 {
    color: #b20101;
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    font-family: 'Jaro', sans-serif;
    letter-spacing: 4px;
}

.right-content ul {
    list-style: none;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.right-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #000000;
}

.right-content ul li::before {
    content: "•";
    color: #b20101;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Language-specific styles for Types of Earthquakes page */
html[lang="my"] .right-content h3 {
    letter-spacing: normal;
} 

#preparations::before {
    background-image: url('Assets/Orange and Green Illustrative Disaster Awareness Presentation.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.2;
    z-index: 0;
}

.preparation-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
}

.nav-box {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    padding: 1rem;
}

.nav-box:hover {
    transform: translateY(-10px);
}

.nav-box.red {
    background-color: #b20101;
    color: white;
}

.nav-box.white {
    background-color: white;
    color: #b20101;
}

.nav-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Jaro', sans-serif;
}

.nav-box p {
    font-size: 1rem;
    line-height: 1.4;
}

.nav-box #du {
    color: #b20101;
}

@media (max-width: 768px) {
    .preparation-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .nav-box {
        width: 100%;
        max-width: 300px;
        height: 150px;
    }
}

.preparation-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#before .image-container,
#during .image-container,
#after .image-container {
    text-align: center;
    margin: 2rem 0;
}

/* Preparations Page Styles */
.preparations-content {
    padding: 6rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #000000;
    min-height: 100vh;
    position: relative;
}

.preparations-content::before {
    content: '';
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    height: 600px;
    background-image: url('Assets/Orange and Green Illustrative Disaster Awareness Presentation.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.preparations-content h1,
.preparations-content .intro,
.preparation-nav {
    position: relative;
    z-index: 1;
}

.preparations-content h1 {
    color: #b20101;
    font-family: 'Jaro', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 8px;
}

.preparations-content .intro {
    color: #ffffff;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.preparation-sections {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.preparation-sections .section {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease;
}

.preparation-sections .section:hover {
    transform: translateY(-10px);
}

.preparation-sections .section img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

.preparation-sections .section h2 {
    color: #b20101;
    font-family: 'Jaro', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: 4px;
}

.preparation-sections .section p {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.preparation-sections .section .nav-box {
    display: inline-block;
    background-color: #b20101;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.preparation-sections .section .nav-box:hover {
    background-color: #8b0000;
}

.preparation-details {
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: #1a1a1a;
    border-radius: 15px;
}

.preparation-details h2 {
    color: #b20101;
    font-family: 'Jaro', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 6px;
}

#before {
    background-color: #1a1a1a;
    transform: scale(1.02);
    z-index: 2;
}



.preparation-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.preparation-card h3 {
    color: #b20101;
    font-family: 'Jaro', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.preparation-card ul {
    list-style: none;
    padding: 0;
}

.preparation-card ul li {
    color: #000000;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.preparation-card ul li::before {
    content: "•";
    color: #b20101;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.resources {
    padding: 4rem 2rem;
    background-color: #1a1a1a;
    position: relative;
}

.resources h2 {
    color: #b20101;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-family: 'Jaro', sans-serif;
    letter-spacing: 8px;
}

.resource-links {
    max-width: 800px;
    margin: 0 auto;
}

.resource-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: block;
    padding: 1rem;
    background-color: rgba(178, 1, 1, 0.1);
    border-radius: 5px;
    margin-bottom: 1rem;
}

.resource-links a:hover {
    color: #b20101;
    background-color: rgba(178, 1, 1, 0.2);
}

@media (max-width: 768px) {
    .preparation-sections {
        flex-direction: column;
        align-items: center;
    }
    
    .preparation-sections .section {
        width: 100%;
        max-width: 400px;
    }
    
    .preparations-content h1 {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .preparation-details h2 {
        font-size: 2rem;
        letter-spacing: 3px;
    }
}

[lang="my"] .nav-box h3 {
    font-family: 'Padauk', sans-serif;
    font-size: 1.3rem;
    min-height: 2.5rem;
    letter-spacing: normal;
}

/* All Burmese-specific preparations page heading styles and related commented-out blocks have been removed to restore default heading styles. */

/* Footer Styles */
footer {
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 1.5rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #1a1a1a;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #2a2a2a;
        width: 100%;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #ffffff;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .language-selector {
        margin-left: 1rem;
    }

    .language-tabs {
        gap: 0.5rem;
    }

    .lang-tab {
        padding: 0.3rem 0.5rem;
        font-size: 1rem;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
        letter-spacing: 0.5px;
    }

    .hero p {
        font-size: 1rem;
    }

    .get-started-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    /* Content Sections Mobile */
    .content-wrapper {
        padding: 0 1rem;
    }

    .earthquake-section h2 {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .earthquake-section p {
        font-size: 1rem;
    }

    .right-content {
        padding: 1rem;
        margin: 1rem 0;
    }

    /* Resources Section Mobile */
    .resources-section {
        padding: 2rem 1rem;
    }

    .resources-list a {
        padding: 0.8rem;
        font-size: 1rem;
    }

    /* Footer Mobile */
    footer {
        padding: 1rem;
    }

    footer p {
        font-size: 0.9rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .earthquake-section h2 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .nav-box {
        width: 100%;
        max-width: 280px;
    }

    .preparation-sections .section {
        width: 100%;
        padding: 1.5rem;
    }

    .preparation-sections .section h2 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #1a1a1a;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #2a2a2a;
        width: 100%;
    }
}
