@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    body {
        @apply bg-custom-bg;
    }
}

@layer utilities {
    .bg-custom-bg {
        background-color: #fef9f2;
    }
}

#hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
    background-image: url('./assets/images/AnyaWakuWaku.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#main-content {
    position: relative;
    z-index: 20;
    margin-top: 100vh;
    background-image: url('./assets/images/HomeBG.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.triangle-down {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid white;
}

.triangle-right {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid white;
}

@media (max-width: 768px) {
    #about .flex {
        flex-direction: column;
        align-items: center;
    }

    #about .flex-1 {
        flex-direction: column;
        align-items: center;
        margin-bottom: 1rem;
    }

    #about .flex-1 > div {
        margin-right: 0;
        margin-bottom: 1rem;
        text-align: center;
    }

    #about .ml-8 {
        margin-left: 0;
    }

    #about .space-x-8 > * + * {
        margin-left: 0;
        margin-top: 1rem;
    }
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    text-decoration: none;
}

.contact-icon i {
    position: relative;
    z-index: 2;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    transition: all 0.3s ease;
}

.contact-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.contact-icon:hover::before {
    transform: scale(1.2);
}

.contact-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-icon:active::after {
    width: 150%;
    height: 150%;
    transition: 0s;
}

/* Add padding around the icon to increase clickable area */
.contact-icon {
    padding: 0.5rem;
}

/* Adjust the icon container to accommodate the padding */
#contact .flex {
    margin: -0.5rem;
}

#contact .flex > * {
    margin: 0.5rem;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card {
    transition: transform 0.3s ease-in-out;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Add this to your existing styles */
.hobby-card {
    transition: transform 0.3s ease-in-out;
}

.hobby-card:hover {
    transform: translateY(-5px);
}

.slideshow-image {
    transition: opacity 0.5s ease-in-out;
}

.project-carousel,
.hobby-carousel {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.project-card,
.hobby-card {
    width: 90%;
    margin: 0 auto;
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Add these styles at the end of your file */
.flickity-button {
    background: #333;
}
.flickity-button:hover {
    background: #444;
}
.flickity-prev-next-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.flickity-button-icon {
    fill: white;
}
.project-carousel,
.hobby-carousel {
    margin-bottom: 40px;  /* Add some space below the carousel */
}

/* Flickity-specific styles */
.flickity-slider {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.flickity-page-dots {
    bottom: -40px;
}

.flickity-page-dots .dot {
    width: 12px;
    height: 12px;
    opacity: 1;
    background: transparent;
    border: 2px solid #333;
}

.flickity-page-dots .dot.is-selected {
    background: #333;
}

.flickity-prev-next-button {
    width: 30px;
    height: 30px;
    background: #333;
    transition: background 0.3s ease-in-out;
}

.flickity-prev-next-button:hover {
    background: #555;
}

.flickity-prev-next-button .arrow {
    fill: black;
}

.flag-container {
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
}

.flag-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.language-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#spoken-languages .grid {
    justify-content: center;
}

/* Add this to your existing styles */
#surpriseButton {
    transition: all 0.3s ease;
}

#surpriseButton:hover {
    transform: scale(1.05);
}

#surpriseButton i {
    transition: all 0.3s ease;
}

#surpriseButton:hover i {
    transform: scale(1.2);
}

/* Add these styles at the end of your file */
.experience-item {
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.experience-item h3 {
    color: #2c3e50;
}

.experience-item p {
    color: #7f8c8d;
}

.experience-item ul {
    margin-top: 0.5rem;
}

.experience-item li {
    margin-bottom: 0.25rem;
}

/* Add these styles at the end of your file */
#favorites .grid > div {
    transition: all 0.3s ease;
}

#favorites .grid > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#favorites h3 {
    color: #2c3e50;
}

#favorites ul {
    color: #34495e;
}

#favorites li {
    margin-bottom: 0.5rem;
}

#likeButton {
    transition: all 0.3s ease;
}

#likeButton:hover {
    transform: scale(1.05);
}

#likeButton i {
    transition: all 0.3s ease;
}

#likeButton:hover i {
    transform: scale(1.2);
}
