@font-face {
    font-family: 'Ancizar Serif';
    src: url('AncizarSerif.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@keyframes riseFade {
    0% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

* {
    font-family: 'Ancizar Serif', serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    position: relative;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    font-family: sans-serif;
}

body::before {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: url('images/calculations.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.img-container {
    position: relative;
    width: 100%;
}

.mainImage {
    width: 100%;
    height: auto;
    display: block;
}

.oppenheimer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45%;
    height: auto;
    z-index: 2;
}

.text, .mainText , .calledText{
    animation: riseFade 1.5s ease-out forwards;
}

.text {
    position: absolute;
    color: whitesmoke;
    display: flex;
    justify-content: center;
    gap: 20vw;
    font-size: 5vw;
    position: absolute;
    bottom: 68%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    text-shadow: 2px 2px 6px #000000;
    animation-delay: 0.5s;
}

.mainText {
    color: whitesmoke;
    text-align: center;
    font-size: 10vw;
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.6);
    font-weight: bold;
    letter-spacing: 0.05em;
    animation-delay: 1s;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(0, 0, 0, 0);
    color: rgb(0, 0, 0);
    z-index: 999;
    font-size: 2.3vw;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand {
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 2.3vw;
}

.nav-right a {
    margin-left: 20px;
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    font-size: 2.3vw;
}

.nav-right a:hover {
    color: #ffffff;
}

.about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 40px 0 40px;
}

.oppenheimer2 {
    bottom: 0;
    width: 25%;
    z-index: 2;
}

.text-about {
    font-size: 2vw;
    margin-right: 5vw;
}

.journey-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px 40px;
}

.journey-card {
    background-color: #f4f4f4;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    overflow: hidden;
    max-width: 300px;
    transition: transform 0.3s;
}

.journey-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.journey-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.journey-card h3 {
    font-size: 1.5em;
    margin: 15px;
    color: #333;
}

.journey-card p {
    font-size: 1em;
    padding: 0 15px 20px;
    color: #555;
    text-align: justify;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 40px 60px;
}

.portfolio-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-text {
    padding: 20px;
}

.portfolio-text h4 {
    font-size: 1.3em;
    color: #222;
    margin-bottom: 10px;
}

.portfolio-text p {
    font-size: 1em;
    color: #555;
    text-align: justify;
}

.peoples-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.peoples-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.contact-container {
    text-align: center;
    padding: 40px 20px 80px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 20px;
    margin: 0 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.contact-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #333;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 25px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 120px;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.contact-card i {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: #0056b3;
}

.navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}