@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');
/* Importing the Instrument Serif font */

body {
    display: flex;
    flex-direction: column;
    background-color: black;
    font-family: Arial, sans-serif;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.titlepage {
    cursor: pointer;
}

@keyframes bounce {

    /* Animation for the bouncing effect */
    0%,
    100% {
        /* Start and end at the same position */
        transform: translateY(0);
        /* No vertical movement */
    }

    50% {
        /* At the halfway point */
        transform: translateY(10px);
        /* Move down 10 pixels */
    }
}

.arrowcircle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    border: 3px solid pink;
    background-color: transparent;
    border-radius: 100px;
    padding: 20px;
    margin: 20px auto;
    margin-bottom: 50px;
    position: relative;
    animation: bounce 2s infinite;
    /* Infinite bounce animation */
    cursor: pointer;
    /* Cursor changes to pointer on hover */
    transition: transform 0.3s ease;
    /* Smooth transition for scaling */

}

.arrowcircle:hover {
    /* Scale up the circle on hover */
    border-color: rgba(255, 192, 203, 0.7);
    /* Add subtle color fade */
}

.arrow {
    display: block;
    position: absolute;
    border: solid pink;
    border-width: 0 3px 3px 0;
    padding: 5px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    ;
}

.navbar {
    display: flex;
    justify-content: center;
    background-color: rgba(255, 192, 203, 0.15);
    backdrop-filter: blur(5px);
    /*slight blur effect to improve text readability*/
    position: sticky;
    top: 20px;
    z-index: 100;
    padding: 20px;
    border-radius: 50px;
    margin: 20px auto;
}

.navbar a {
    float: left;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    background-color: pink;
    color: white;
    border-radius: 50px;
}

.navbar a.active {
    background-color: pink;
    color: white;
    border-radius: 50px;
}

/* Tab styling */
.tab {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    padding-bottom: 20px;
}

.tab button {
    background-color: transparent;
    color: white;
    border: 1px solid pink;
    border-radius: 25px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab button:hover {
    background-color: rgba(255, 192, 203, 0.1);
    color: pink;
}

.tab button.active {
    background-color: rgba(255, 192, 203, 0.15);
    color: pink;
}

.tabcontent {
    display: none;
    padding: 20px;
    color: white;
    background-color: rgba(255, 192, 203, 0.05);
    border-radius: 25px;
    margin-top: 20px;
}

/* Fade effect for the tab content*/
.tabcontent {
    animation: fadeEffect 1s;
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Style the button that is used to open and close the collapsible content */
.collapsible {
  background-color: transparent;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: 2px solid pink;
  text-align: left;
  outline: none;
  font-size: 15px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  max-width: 1100px;
  margin: 20px auto;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .collapsible:hover {
  background-color: rgba(255, 192, 203, 0.1);
}

.collapsible:after {
    content: '▶';
    color: pink;
    float: right;
    margin-left: 5px;
}

.collapsible.active:after {
    content: '▼';
}

/* Style the collapsible content. Note: hidden by default */
.content {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  background-color: transparent;
}

.hero-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.welcome-paragraph {
    margin: 0;
    padding: 100px;
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 20px;
    color: white;
}

.reflection-subtitle {
    color: white;
    font-size: 1.2rem;
    /* This means 1.2 times the root element's font size */
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: normal;
}

.pink-title {
    color: pink;
}

.breakline {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 5px;
    background-color: pink;
    border-radius: 50px;
}

footer {
    background-color: transparent;
    padding: 40px 20px;
    margin-top: 40px;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 192, 203, 0.1);
    border-radius: 25px;
    padding: 20px;
}

.footer-section {
    text-align: center;
    padding: 15px;
    margin: 10px;
}

.footer-section h3 {
    color: pink;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-section p {
    color: white;
    margin: 8px 0;
    font-size: 0.9em;
}

.project-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px;
    perspective: 1000px;
}

.project-square {
    width: 250px;
    height: 250px;
    border: 2px solid pink;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.project-square:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 192, 203, 0.3);
}

.project-square a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
    color: white;
}

.project-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-square h3 {
    position: absolute;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-link {
    color: pink;
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: rgba(255, 192, 203, 0.7);
}

.project-image {
    max-width: 800px;       /* Limits maximum width of image */
    width: 100%;            /* Makes image responsive*/
    height: auto;           /* Maintains aspect ratio*/
    margin: 20px 0;
    border-radius: 8px;
    display: block;         /* Removes any unwanted space below image */
}

.cube-container {
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.box-card {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s ease;
    cursor: pointer;
}

.box-card:hover {
    animation: rotate3d 8s infinite linear;
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    backface-visibility: hidden;
    ;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 192, 203, 0.3);
    box-shadow: 0 8px 32px 0 rgba(255, 192, 203, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.face::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(206, 14, 177, 0.1), transparent);
    top: -100%;
    left: -100%;
    transition: all 0.5s ease;
    transform: translateZ(20px);
}

.face::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            rgba(206, 14, 177, 0.1) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.face:hover::before {
    top: 100%;
    left: 100%;
}

.face:hover::after {
    opacity: 1;
}

.front {
    transform: translateZ(100px);
    border-color: pink;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('Images/Cube_Face_Portfolio.png');
    background-size: cover;
    background-position: center;
}

.back {
    transform: translateZ(-100px) rotateY(180deg);
    border-color: pink;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('Images/belco_map_ux.png');
    background-size: cover;
    background-position: center;
}

.right {
    transform: translateX(100px) rotateY(90deg);
    border-color: pink;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('Images/cube_face_dev.png');
    background-size: cover;
    background-position: center;
}

.left {
    transform: translateX(-100px) rotateY(-90deg);
    border-color: pink;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('Images/Cube_Face_Branding.png');
    background-size: cover;
    background-position: center;
}

.top {
    transform: translateY(-100px) rotateX(90deg);
    border-color: pink;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('Images/cube_face_projectx.png');
    background-size: cover;
    background-position: center;
}

.bottom {
    transform: translateY(100px) rotateX(-90deg);
    border-color: pink;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('Images/cube_face_other.png');
    background-size: cover;
    background-position: center;
}

@keyframes rotate3d {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    25% {
        transform: rotateX(90deg) rotateY(90deg);
    }

    50% {
        transform: rotateX(180deg) rotateY(180deg);
    }

    75% {
        transform: rotateX(270deg) rotateY(270deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@media (max-width: 768px) {
    .box-card {
        width: 150px;
        height: 150px;
    }

    .front {
        transform: translateZ(75px);
    }

    .back {
        transform: translateZ(-75px) rotateY(180deg);
    }

    .right {
        transform: translateX(75px) rotateY(90deg);
    }

    .left {
        transform: translateX(-75px) rotateY(-90deg);
    }

    .top {
        transform: translateY(-75px) rotateX(90deg);
    }

    .bottom {
        transform: translateY(75px) rotateX(-90deg);
    }
}

.about-section,
.skills-section,
.contact-section {
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 2rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}