/* Reset styles */
body, html, nav ul, nav ul li {
    margin: 0;
    padding: 0;
}

/* Default styles */
body, html {
    font-family: Arial, sans-serif;
    color: #333;
    background: #fff;
    margin: 0;
}

.content {
    text-align: justify;
    margin: 0;
}

/*Background id styles*/
#home {
    position: relative;
}

#home::before {
    content: "";
    background-image: url('../images/cartoon_doppler_us_01.webp');
    background-size: cover;
    background-position: 50% 15%;
    opacity: 0.3; /* Adjust this value to your preference */
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;   
}

#intro {
    background-color: #215cbc; /* Change to your preferred color */
    font-size: 1.2vw;
    color: #ffffff;
    padding: 5% 5%;
}


/* Section 2 Skill Cards */
.skills-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    padding: 10px 10px;
}

.skills-section .content h1 {
    text-align: center;
    color:#000000;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 100%;
}

.card {
    width: 30%;
    perspective: 1000px;
    margin: 20px 0;
    background-color: #ffffff;
    border-radius: 10%;
    word-wrap: break-word; /* Add this to prevent text overflow */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center; 
    align-items: center; 
    flex-direction: column; 
}
.card-back {
    transform: rotateY(180deg);
    text-align: left;
    overflow: auto;
    padding: 20px;
}

.card-back h2 {
    text-align: center;
}

.card-image {
    width: 80%;
    height: auto;
    border-radius: 10%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .cards {
        flex-direction: column;
    }

    .card {
        width: 100%; 
        overflow: auto; 
    }

    .card-back {
        font-size: 3vw;
        padding: 20px;
    }
}

/* About Section */
.aboutus {
    padding: 10px 10px;
    background-color: #215cbc;; /* Change to your preferred color */
    color: #ffffff;
}
.aboutus h2{
    text-align: center;
}
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 60%; /* Adjust as needed */
    margin-left: auto;
    margin-right: auto;
}

.about-text {
    text-align: justify;
}

.about-image {
    height: 200px; /* Adjust as needed */
    width: auto; /* Adjust as needed */
    border-radius: 50%; /* Makes the image circular */
    border: 3px solid #ffffff;
    margin-right: 20px;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        
    }

    .about-image {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* Contact Section */
.contactus {
    display: flex;
    justify-content: center;
    flex-direction: column;
    background-color: #ffffff;
    color: #000000;
    padding: 10px 0;
}

.contactus p{
    font-size: larger;
}

.email-icon {
    width: 40px;
    height: auto;
    border-radius: 10%;
    outline: none;
}

/* Floating navbar styles */
.floating-navbar {
    background-color: #03045E;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding-left: 10px; /* Adjust this value to your preference */
    justify-content: flex-start; /* Aligns items to the start of the container */
}

.floating-navbar a {
    position: relative;
    transition: color 0.5s; /* Transition the text color */
}

.floating-navbar a:hover {
    color: #ffffff8b; /* Text color when the link is hovered */
}


/*Logo Styles*/
.hi-text-container {
    display: flex;
    flex-direction: column; /* Stacks children vertically */
    align-items: flex-end;
}
.hi-text {
    font-size: 20px; /* Adjust font size to match the screenshot */
    font-weight: bold; /* Make the text bold */
    color: #ffffff; /* Set the text color to white */
    padding: 0px 0px; /* Adjust padding for better spacing */
    display: block; /* Makes the text elements stack */
    text-transform: uppercase; /* Make the text uppercase */
    letter-spacing: -2px; /* Adjust letter spacing */
}

.logo, .menu {
    display: flex;
    justify-content: center;
}

.logo {
    align-items: center;
    transform: scale(0.6);
}

.triangle {
    position: relative;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 40px solid #ffffff;
    z-index: 1001;
}

.waves {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: -20px;
}

.wave {
    width: 25px;
    height: 25px;
    border: 5px solid #ffffff;
    border-bottom-color: transparent;
    border-left-color: transparent;
    border-right-color: transparent;
    border-radius: 50% 50% 0 0;
    transform: rotate(90deg);
    animation: wave 0.5s forwards;
    opacity: 0;
}

.wave1 {
    width: 25px;
    height: 25px;
    margin-right: -30px;
    animation-delay: 0.2s;
}

.wave2 {
    width: 35px;
    height: 35px;
    margin-right: -40px;
    animation-delay: 0.4s;
}

.wave3 {
    width: 45px;
    height: 45px;
    animation-delay: 0.6s;
}

/* Menu styles */
.menu {
    display: none; /* Hide the menu by default */
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    background-color: #002366;
    text-align: center;
}

nav {
    display: flex;
}

nav ul {
    display: flex;
    justify-content: center; /* Center the menu links */
    list-style: none;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    padding: 15px 15px;
    display: inline-block;
    animation: fadeIn 0.5s forwards;
    opacity: 0;
}


/* Hero section styles */
.hero {
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #002366; /* Set text color to white */
    text-align: center; /* Center the text */
    overflow: hidden;
    z-index: 1;
    /*clip-path: ellipse(75% 40% at 50% 0%); /* Correctly oriented curved effect */
}

.hero-content img {
    width: 700px; /* Adjust this value to your preference */
    height: auto; /* Keep the aspect ratio */
    position: relative;
    top: 40px;
}

@media screen and (max-width: 350px) {
    .hero-content img {
        width: 50%; /* Adjust this value to your preference */
    }
}


/* Section styles */
section {
    padding: 50px;
    text-align: center;
    min-height: 200px;
}


/* Icon Style*/
.icon-text {
    display: flex;
    align-items: center;
    padding: 10px;
    text-align: justify;
}

.icon-text img {
    width: 5%; /* Adjust width of icons */
    height: auto;
    margin-right: 20px;
}

.icon-text p {
    margin: 20px 0;
}


/* Footer styles */
footer {
    text-align: center;
    padding: 20px;
    background: #03045E;
    color: white;
}

.triangle-wave-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}


/* Adjustments for smaller screens */
@media (max-width: 765px) {
    .triangle-wave-container {
        flex-direction: column;
    }

    .floating-navbar {
        flex-direction: column; /* Allow column direction for centering */
        padding: 0px 10px 10px 0px; /* Adjust as needed */
    }

    .hi-text-container {
        display: flex;
        flex-direction: column; /* Stacks children vertically */
        align-items: center;
    }

    .logo {
        flex-direction: column; /* Stacks children vertically on small screens */
    }

    .menu {
        display: none;
        flex-direction: column;
        position: static;
        width: auto;
        background-color: transparent;
        padding: 0;
    }

    nav ul {
        display: flex;
        flex-direction: column;
    }

    nav ul li {
        display: block;
    }

    .triangle {
        transform: rotate(90deg);
        cursor: pointer; /* Make it clear that the triangle is clickable */
        margin-bottom: -20px;
    }

    .waves {
        display: none;
        align-items: center;
        transform: rotate(90deg);
        margin-left: 0;
    }

    .hero-content img {
        width: 400px; /* Adjust this value to your preference */
        height: auto; /* Keep the aspect ratio */
        position: relative;
        top: 40px;
    }

    #intro {
        font-size: 10px;
    }

}

@keyframes differentWave {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* Show nav links on larger screens */
@media (min-width: 765px) {
    .hi-text {
        display: inline-block;
        margin-right: 10px; /* Adjust as needed */
    }

    .waves, nav ul {
        display: flex;
    }

    .wave, #navLinks li {
        display: inline-block;
    }

    .menu {
        display: block;
        position: static;
        width: auto;
        background-color: transparent;
        padding: 0;
    }

    section {
        padding: 100px;
        text-align: center;
        min-height: 300px;
    }
}


/* Define the animation */
@keyframes wave {
    0% {
        transform: translateY(0) rotate(90deg);
        opacity: 0;
    }
    100% {
        transform: translateX(20px) rotate(90deg);
        opacity: 1;
    }
}


/* Define the animation for the links */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* Add different animation delays to each link */
.link1 {
    animation-delay: 0.8s;
}

.link2 {
    animation-delay: 1s;
}

.link3 {
    animation-delay: 1.2s;
}

.link4 {
    animation-delay: 1.4s;
}

.link5 {
    animation-delay: 1.6s;
}