html, body {
    transform-style: flat !important;
}

html {
    height: 100vh;
    overflow: hidden;
}

body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    background: #4A7594;
    perspective: 1px;
    transform-style: preserve-3d;
    overflow-x: hidden;
    overflow-y: scroll;
}


header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 99;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.35);
    transform: translateZ(0);
}

.nav-wrapper {
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #ffd447;
    font-size: 22px;
    font-weight: bold;
    text-shadow:
        0 0 10px rgba(255,212,71,0.8),
        0 0 30px rgba(255,212,71,0.5);
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
    transition: 0.2s;
}

nav a:hover {
    color: #ffd447;
    text-shadow: 0 0 10px rgba(255,212,71,0.8);
}

.section1::before,
.section1::after,
.section2::before,
.section2::after,
.section3::before,
.section3::after {
    pointer-events: none !important;
}

.section2 *,
.section3 * {
    pointer-events: auto;
}


.section1, .section2 {
    width: 100%;
    min-height: 100vh;
    position: relative;
    transform-style: preserve-3d;
    margin: 0;
    padding: 0;
}

.section1::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background: url("city.jpg") top center no-repeat;
    background-size: cover;
    transform: translateZ(-1px) scale(2.2);
    filter: blur(2px);
}

.section1::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background: url("crosswalk.png") top center no-repeat;
    background-size: cover;
}

.section1 .text {
    top: 10%;
    left: 50%;
    position: absolute;
        color: #ffd447;
    text-shadow:
        0 0 10px rgba(255,255,255,0.8),
        0 0 25px rgba(255,255,255,0.6),
        2px 2px 5px rgba(0,0,0,0.7);
    transform: translateZ(-0.5px) scale(1.5, 1.6) translate(-33%, 10%);
}

.section2 {
    position: relative;
    min-height: 100vh;
    transform-style: preserve-3d;
    background: #4A7594;
    margin: 0;
    padding: 0;
}

.section2::before {
    content: "";
    position: absolute;
    top: -50px; 
    left: 0;
    width: 100%;
    height: 100%;
    background: url("section2-background.jpg") center/cover no-repeat;
    transform: translateZ(-1px) scale(2.2);
    filter: blur(1.5px);
    z-index: 10000;
}


.section2::after {
    content: "";
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    
    background:url("cave6.png") bottom center no-repeat;
    background-size: contain;
    
    z-index: -1; 
}



.text {
    top: 30%;
    left: 50%;
    position: absolute;
    font-family: 'Franklin Gothic Family';
    font-size: 13vw;
    color: #fff;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.7),
        0 0 30px rgba(0,0,0,0.4);
    transform: scale(1,1.1) translate(-50%, 10%);
    text-align: center;
}

.section2 .text {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 90%;
    max-width: 800px;
    margin: 40px auto 80px auto; /* more space above and below */
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.section2 .text h2 {
    font-size: 5rem;
    margin-bottom: 20px; /* space between heading and paragraphs */
}

.section2 .text p {
    font-size: 1.2rem; /* normal paragraph size */
    line-height: 1.6;
    margin-bottom: 10px; /* spacing between paragraphs */
}

.about-cards {
    display: flex;
    flex-wrap: wrap;          
    justify-content: center;  
    gap: 50px;                
    margin: 120px auto 40px auto;        
    width: 90%;
    max-width: 1000px;
}

.section2::before,
.section2::after,
.intro-bg {
    pointer-events: none;
}

.about-cards {
    position: relative;  
    z-index: 3;          
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 70px;
    margin: 150px auto 40px auto; 
    width: 90%;
    max-width: 1000px;
}

.about-cards .card {
    position: relative;    
    z-index: 3;           
    flex: 1 1 300px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(5px);
    padding: 30px 20px;
    border-radius: 15px;
    color: #fff;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;      
}

.about-cards .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.6);
}


.about-cards .card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.about-cards .card p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
}

.modal {
    display: none;              
    position: absolute;         
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); 
    backdrop-filter: blur(8px);  
    justify-content: center;
    align-items: center;
    z-index: 99999;
}


.modal-content {
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    color: #fff;
    text-align: center;
    font-size: 1.2rem;
    position: relative;
    .modal {
    display: none;              
    position: absolute;         
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); 
    backdrop-filter: blur(8px);  
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    color: #fff;
    text-align: center;
    font-size: 1.2rem;
    position: relative;

    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.modal.show {
    display: flex; 
}

.modal.show .modal-content {
    transform: translateY(0); 
    opacity: 1;             
}

}
.modal-content h3 {
    margin-bottom: 15px;
    font-size: 2rem;
    color: #ffd447;
    text-shadow: 0 0 10px rgba(255, 212, 71, 0.8);
}


.modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}


.section3 {
    position: relative;
    padding-top: 0;
    margin-top: 0;
    top: 0px;
    width: 100%;
    min-height: 100vh;
    background: #4A7594 url(cave6.png) top center no-repeat;
    background-size: cover;
    z-index: 0;
}

.section3::before {
    content: "";
    position: absolute;
    padding-top: 0;
    margin-top: 0;
    top: -200px;
    left: 0;
    width: 100%;
    height: 200px;
    background: url("cave7.png") top center no-repeat;
    background-size: cover;
    pointer-events: none;
    z-index: 5;
}


html {
    height: 100vh;
    overflow: hidden;
}

body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    background: 222;
    perspective: 1px;
    transform-style: preserve-3d;
    overflow-x: hidden;
    overflow-y: scroll;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 999999;
    backdrop-filter: blur(10px);
    background: rgba(0,0,0,0.35);
    pointer-events: auto;
}

.nav-wrapper {
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #ffd447;
    font-size: 22px;
    font-weight: bold;
    text-shadow:
        0 0 10px rgba(255,212,71,0.8),
        0 0 30px rgba(255,212,71,0.5);
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 16px;
    transition: 0.2s;
}

nav a:hover {
    color: #ffd447;
    text-shadow: 0 0 10px rgba(255,212,71,0.8);
}


.section1, .section2 {
    width: 100%;
    min-height: 100vh;
    position: relative;
    transform-style: preserve-3d;
    margin: 0;
    padding: 0;
}

.section1::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background: url("city.jpg") top center no-repeat;
    background-size: cover;
    transform: translateZ(-1px) scale(2.2);
    filter: blur(2px);
}

.section1::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background: url("crosswalk.png") top center no-repeat;
    background-size: cover;
}

.section1 .text {
    top: 10%;
    left: 50%;
    position: absolute;
        color: #ffd447;
    text-shadow:
        0 0 10px rgba(255,255,255,0.8),
        0 0 25px rgba(255,255,255,0.6),
        2px 2px 5px rgba(0,0,0,0.7);
    transform: translateZ(-0.5px) scale(1.5, 1.6) translate(-33%, 10%);
}

.section2 {
    position: relative;
    min-height: 100vh;
    transform-style: preserve-3d;
    background: #4A7594;
    margin: 0;
    padding: 0;
}

.section2::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("section2-background.jpg") center/cover no-repeat;
    transform: translateZ(-1px) scale(2.2);
    filter: blur(1.5px);
    z-index: -2;
}

.section2::after {
    content: "";
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    
    background:url("cave6.png") bottom center no-repeat;
    background-size: contain;
    
    z-index: -1; 
}



.text {
    top: 30%;
    left: 50%;
    position: absolute;
    font-family: 'Franklin Gothic Family';
    font-size: 13vw;
    color: #fff;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.7),
        0 0 30px rgba(0,0,0,0.4);
    transform: scale(1,1.1) translate(-50%, 10%);
    text-align: center;
}

.section2 .text {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 90%;
    max-width: 800px;
    margin: 40px auto 80px auto; 
    text-align: center;
    color: #ffd447;
    text-shadow: 0 0 25px rgba(255,212,71,0.9);
}

.section2 .intro {
    padding-top: 50px;
    color: #ffd447;
    text-shadow: 0 0 25px rgba(255,212,71,0.9);
    margin-bottom: 40px;
    text-align: center;
}

.section2 .intro p {
    color: white;
    text-align: center;
}

.section2 .text h2 {
    font-size: 5rem;
    margin-bottom: 20px; 
}

.section2 .text p {
    font-size: 1.2rem; 
    line-height: 1.6;
    margin-bottom: 10px;
}

.about-cards {
    display: flex;
    flex-wrap: wrap;          
    justify-content: center;  
    gap: 50px;                
    margin: 120px auto 40px auto;        
    width: 90%;
    max-width: 1000px;
}


.section2::before,
.section2::after,
.intro-bg {
    pointer-events: none; 
}

.about-cards {
    position: relative;  
    z-index: 3;          
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 70px;
    margin: 150px auto 40px auto; 
    width: 90%;
    max-width: 1000px;
}

.about-cards .card {
    position: relative;    
    z-index: 3;           
    flex: 1 1 300px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    color: white;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;      
}

.about-cards .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.6);
}


.about-cards .card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Card content */
.about-cards .card p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0;
}

.modal {
    display: none;              
    position: absolute;         
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); 
    backdrop-filter: blur(10px);  
    justify-content: center;
    align-items: center;
    z-index: 99999;
}


.modal-content {
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    color: white;
    text-align: center;
    font-size: 1.2rem;
    position: relative;
    .modal {
    display: none;              
    position: absolute;         
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); 
    backdrop-filter: blur(8px);  
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    color: white;
    text-align: center;
    font-size: 1.2rem;
    position: relative;

    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.modal.show {
    display: flex; 
}

.modal.show .modal-content {
    transform: translateY(0); 
    opacity: 1;             
}

}
.modal-content h3 {
    margin-bottom: 15px;
    font-size: 2rem;
    color: #ffd447;
    text-shadow: 0 0 10px rgba(255, 212, 71, 0.8);
}


.modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.modal-images {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.modal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 150px;
}

.modal-item img {
    width: 100%;
    max-width: 140px;
    height: auto;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.2);
}

.modal-item span {
    margin-top: 0;
    font-size: 0.95rem;
    color: #ffd447;
    text-align: center;
    text-shadow: 0 0 8px rgba(255,212,71,0.6);
}

.section3 {
    position: relative;
    padding-top: 0;
    margin-top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background: #4A7594 url("cave6.png") top center no-repeat;
    background-size: cover;
    pointer-events: auto;
    z-index: 0;
}

.section3::before {
    content: "";
    position: absolute;
    padding-top: 0;
    margin-top: 0;
    top: -250px;
    left: 0;
    width: 100%;
    height: 250px;
    background: url("cave7.png") top center no-repeat;
    background-size: cover;
    pointer-events: none;
    z-index: 5;
}

.section3::after {
    content: "";
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    
    background:url("cave7.png") bottom center no-repeat;
    background-size: contain;
    
    z-index: -1;
}


.section3-title {
    font-size: 5rem;
    padding-top: 50px;
    color: #ffd447;
    text-shadow: 0 0 25px rgba(255,212,71,0.9);
    margin-bottom: 40px;
    text-align: center;
}

.component-cards {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 70px;
    margin-top: 10px;
}

.section3-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 40px 50px;
    max-width: 250px;
    width: 100%;
    color: white;
    font-size: 1.3rem;
    line-height: 1.8;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section3-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.6);
}



.section4 {
    position: relative;
    padding-top: 0;
    margin-top: -55px;
    top: 0px;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background: #4A7594 url("deep-sea.jpg") top center no-repeat;
    background-size: cover;
    pointer-events: auto;
    z-index: 0;
}

.section4-title {
    position: absolute;
    left: 500px;
    top: -100px;
    font-size: 5rem;
    padding-top: 50px;
    color: #ffd447;
    text-shadow: 0 0 25px rgba(255,212,71,0.9);
    margin-bottom: 40px;
    text-align: center;
    z-index: 999999;
}

.section4::before {
    content: "";
    position: absolute;
    padding-top: 0;
    margin-top: 0;
    top: -100px;
    left: 0;
    width: 100%;
    height: 90vh;
    background: url("cave6.png") top center no-repeat;
    background-size: cover;
    pointer-events: auto;
    z-index: 5;
}



.section4-1 {
    position: absolute;
    left: 100px;
    top: 250px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 40px 50px;
    max-width: 250px;
    width: 85%;
    color: white;
    font-size: 1.3rem;
    line-height: 1.8;
    text-align: center;
}

.section4-2 {
    position: absolute;
    left: 500px;
    top: 250px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 40px 50px;
    max-width: 250px;
    width: 85%;
    color: white;
    font-size: 1.3rem;
    line-height: 1.8;
    text-align: center;
}

.section4-3 {
    position: absolute;
    left: 900px;
    top: 250px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 40px 50px;
    max-width: 250px;
    width: 85%;
    color: white;
    font-size: 1.3rem;
    line-height: 1.8;
    text-align: center;
}

.intro {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    position: relative; 
    color: #fff;
    z-index: 1; 
}

.intro-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;     
    height: 100%;     
    background: url("sewers.png") center/cover no-repeat;
    filter: blur(2px); 
    z-index: -1;       
    border-radius: 10px;
}


.intro h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    top: -40px;
}

.intro p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    top: -30px;
}



footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: #ddd;
    font-size: 0.9rem;
}

.intro {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    position: relative; 
    color: #fff;
    z-index: 1; 
}

.intro-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;     
    height: 100%;    
    background: url("sewers.png") center/cover no-repeat;
    filter: blur(2px);
    z-index: -1;      
    border-radius: 10px; 
}


.intro h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    top: -40px;
}

.intro p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    top: -30px;
}



footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: #ddd;
    font-size: 0.9rem;
}

