#content {
    background: rgb(0, 89, 152);
    color: #fff;
    font-family: 'Arial', sans-serif;
    padding: 4rem 2rem;
    position: relative;
}

#content .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 200px;
}

#content h2.section-title {
    font-size: 2.5em;
    text-align: center;
    color: #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

/* Adjust spacing for Profile and Contact titles */
#projects-title,
#contact-title {
    padding-top: 200px;
    z-index: 10;
}

.projects-title,
.contact-title {
    padding-bottom: 10px;
}

/* Letter-by-Letter Animation */
.section-title span {
    display: inline-block;
    opacity: 0;
    transform: translateX(-20px);
}

/* Underwater Background Styling */
#bubbles,
#seaweed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#bubbles {
    z-index: 1;
}

#seaweed {
    z-index: 0;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 300px;
    height: 200px;
    transform-style: preserve-3d;
    transform: rotateX(-15deg) rotateZ(-15deg);
    margin: 0 auto;
    z-index: 2;
}

.carousel-item {
    position: absolute;
    width: 300px;
    height: 200px;
    transform-style: preserve-3d;
    transition: filter 0.3s ease-out;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

.carousel-item p {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    font-size: 1em;
    border-radius: 0 0 5px 5px;
}

/* Profile */
.profile-container {
    display: flex;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
}

.left-column {
    flex: 1;
    max-width: 300px;
}

.right-column {
    flex: 1;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.right-column h2 {
    color: #00894d;
    margin-bottom: 10px;
    font-size: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.right-column p,
.right-column ul {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.right-column ul {
    list-style-type: disc;
    padding-left: 20px;
}

.right-column ul li {
    margin-bottom: 10px;
}

.right-column h2:nth-child(1) {
    animation-delay: 0.2s;
}

.right-column p:nth-child(2) {
    animation-delay: 0.4s;
}

.right-column h2:nth-child(3) {
    animation-delay: 0.6s;
}

.right-column ul:nth-child(4) {
    animation-delay: 0.8s;
}

.right-column h2:nth-child(5) {
    animation-delay: 1.0s;
}

.right-column ul:nth-child(6) {
    animation-delay: 1.2s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.parent {
    width: 290px;
    height: 300px;
    perspective: 1000px;
}

.card {
    transform: translateZ(0);
    will-change: transform;
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(135deg, rgb(0, 255, 214) 0%, rgb(8, 226, 96) 100%);
    transition: all 0.5s ease-in-out;
    transform-style: preserve-3d;
    box-shadow: rgba(5, 71, 17, 0) 40px 50px 25px -40px, rgba(5, 71, 17, 0.2) 0px 25px 25px -5px;
}

.image-container {
    position: absolute;
    inset: 8px;
    border-radius: 55px;
    border-top-right-radius: 100%;
    overflow: hidden;
    transform: translate3d(0, 0, 25px) scale(1.001);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    will-change: transform;
}

.glass-overlay {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.logo {
    position: absolute;
    right: 0;
    top: 0;
    transform-style: preserve-3d;
}

.logo .circle {
    display: block;
    position: absolute;
    aspect-ratio: 1;
    border-radius: 50%;
    top: 0;
    right: 0;
    box-shadow: -10px 10px 20px 0px rgba(100, 100, 111, 0.2);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    background: rgba(0, 249, 203, 0.2);
    transition: all 0.5s ease-in-out;
}

.logo .circle1 {
    width: 110px;
    transform: translate3d(0, 0, 60px);
    top: 17px;
    right: 17px;
    animation: wave 4s ease-in-out infinite;
}

.logo .circle2 {
    width: 80px;
    transform: translate3d(0, 0, 80px);
    top: 23px;
    right: 23px;
    animation: wave2 4s ease-in-out infinite 0.5s;
}

.logo .circle3 {
    width: 50px;
    transform: translate3d(0, 0, 100px);
    top: 30px;
    right: 30px;
    display: grid;
    place-content: center;
    animation: wave3 4s ease-in-out infinite 1s;
}

.logo .circle3 .svg {
    width: 20px;
    fill: white;
}

.parent:hover .card {
    transform: rotate3d(1, 1, 0, 30deg);
    box-shadow: rgba(5, 71, 17, 0.3) 30px 50px 25px -40px, rgba(5, 71, 17, 0.1) 0px 25px 30px 0px;
}

.parent:hover .card .logo .circle1 {
    transform: translate3d(0, 0, 80px);
    animation: wave 3s ease-in-out infinite, depth-pulse 3s ease-in-out infinite;
}

.parent:hover .card .logo .circle2 {
    transform: translate3d(0, 0, 100px);
    animation: wave2 3s ease-in-out infinite 0.3s, depth-pulse 3s ease-in-out infinite 0.3s;
}

.parent:hover .card .logo .circle3 {
    transform: translate3d(0, 0, 120px);
    animation: wave3 3s ease-in-out infinite 0.6s, depth-pulse 3s ease-in-out infinite 0.6s;
}

.bottom {
    padding: 10px 12px;
    transform-style: preserve-3d;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translate3d(0, 0, 26px);
}

.bottom .social-buttons-container {
    display: flex;
    gap: 10px;
    transform-style: preserve-3d;
}

.bottom .social-buttons-container .social-button {
    width: 30px;
    aspect-ratio: 1;
    padding: 5px;
    background: rgb(255, 255, 255);
    border-radius: 50%;
    border: none;
    display: grid;
    place-content: center;
    box-shadow: rgba(5, 71, 17, 0.5) 0px 7px 5px -5px;
}

.bottom .social-buttons-container .social-button:first-child {
    transition: transform 0.2s ease-in-out 0.4s, box-shadow 0.2s ease-in-out 0.4s;
}

.bottom .social-buttons-container .social-button:nth-child(2) {
    transition: transform 0.2s ease-in-out 0.6s, box-shadow 0.2s ease-in-out 0.6s;
}

.bottom .social-buttons-container .social-button:nth-child(3) {
    transition: transform 0.2s ease-in-out 0.8s, box-shadow 0.2s ease-in-out 0.8s;
}

.bottom .social-buttons-container .social-button .svg {
    width: 15px;
    fill: #00894d;
}

.bottom .social-buttons-container .social-button:hover {
    background: black;
}

.bottom .social-buttons-container .social-button:hover .svg {
    fill: white;
}

.bottom .social-buttons-container .social-button:active {
    background: rgb(255, 234, 0);
}

.bottom .social-buttons-container .social-button:active .svg {
    fill: black;
}

@keyframes wave {
    0%, 100% {
        transform: translate3d(0, 0, 60px) scale(1);
    }
    25% {
        transform: translate3d(0, 0, 60px) scale(1.1);
    }
    50% {
        transform: translate3d(0, 0, 60px) scale(0.95);
    }
    75% {
        transform: translate3d(0, 0, 60px) scale(1.05);
    }
}

@keyframes wave2 {
    0%, 100% {
        transform: translate3d(0, 0, 80px) scale(1);
    }
    25% {
        transform: translate3d(0, 0, 80px) scale(1.08);
    }
    50% {
        transform: translate3d(0, 0, 80px) scale(0.97);
    }
    75% {
        transform: translate3d(0, 0, 80px) scale(1.03);
    }
}

@keyframes wave3 {
    0%, 100% {
        transform: translate3d(0, 0, 100px) scale(1);
    }
    25% {
        transform: translate3d(0, 0, 100px) scale(1.05);
    }
    50% {
        transform: translate3d(0, 0, 100px) scale(0.98);
    }
    75% {
        transform: translate3d(0, 0, 100px) scale(1.02);
    }
}

@keyframes depth-pulse {
    0%, 100% {
        transform: translate3d(0, 0, 60px) scale(1);
    }
    50% {
        transform: translate3d(0, 0, 90px) scale(1);
    }
}

/* Contact */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-info {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-info p {
    font-size: 1.2em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f0f0f0;
}

.contact-info p svg {
    width: 20px;
    height: 20px;
    fill: #f0f0f0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    position: relative;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

label {
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 0.9em;
    color: #f0f0f0;
    transition: all 0.3s ease;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: #fff;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(45deg, #ff8e53, #ff6b6b);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 600px) {
    .section-title {
        font-size: 2em;
    }

    .contact-container {
        padding: 0px;
    }

    input,
    textarea {
        font-size: 0.9em;
    }

    .profile-container {
        flex-direction: column;
        align-items: center;
    }

    .left-column {
        max-width: 100%;
    }
}