/* General Reset */
* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Media Section Styling */
.media-section {
    position: relative;
    padding: 20px;
    margin: 20px 0;
    width: 100%;
    top: 650px;
}

.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.youtube-videos {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.spotify-playlist {
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
}

/* Body Styling */
body {
    background-color: #f0f0f0;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s, transform 1s ease-in-out;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.lottie-animation {
    width: 32px;
    height: 32px;
    margin: 10px;
    color: #fff;
    cursor: pointer;
}

.lottie-animation svg {
    fill: #fff;
}

.title {
    font-size: 30px;
    margin-bottom: 20px;
    color: #06cdff;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3); /* Light mode drop shadow */
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    font-family: "Pacifico", serif;
}

.title-container{
    position: absolute;
    top: 4px;
    left: 20px;
    z-index: 100;
}


/* Loading Screen */
#loading-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
}

.loading-bar {
    width: 100%;
    height: 5px;
    background-color: #8c00ff;
    animation: loading 1.4s infinite;
    position: absolute;
    top: 0px;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loading-icon {
    width: 150px;  /* increased from 100px */
    height: 150px; /* increased from 100px */
    opacity: 0.8;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { 
        transform: scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.2);
        opacity: 1;
    }
    100% { 
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Navbar Styling */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 998;
}

/* Circle Menu Styling */
.circle-menu {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 380px; /* Increased width for better fit */
    height: 60px;
    background: rgba(255, 255, 255, 0.2); /* Frosted glass effect */
    backdrop-filter: blur(10px); /* Blur effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.circle-menu > a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px; /* Reduced padding to fit all items */
    text-decoration: none;
    color: inherit;
    font-size: 16px;
    transition: color 0.3s;
}

.circle-menu > a:hover,
.settings-btn:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    font-weight: bold;
}

.circle-menu, .gallery-item {
    box-shadow: none;
}

/* Dark Mode */
body.dark-mode {
    background-color: #121212;
    color: #eee;
}

body.dark-mode .circle-menu {
    background: rgba(0, 0, 0, 0.2); /* Dark mode frosted glass effect */
}

.dark-mode .circle-menu,
.dark-mode .dropdown-content {
    background-color: #333;
}

.dark-mode .title {
    color: #8c00ff;
}

.dark-mode .nav-link,
.dark-mode .settings-btn {
    color: #eee;
}

.dark-mode .footer {
    background-color: #6e6e6e;
    color: #ffffff;
}


.dark-mode .gallery-item{
    background-color: #222;
}

.dark-mode,
.dark-mode .contact-section {
    background-color: #333;
    color: #eee;
}

.dark-mode .pagination-dot {
    background-color: #e9e9e9;
}

/* Settings Dropdown */
.settings-dropdown {
    position: relative;
    margin-left: 8px;
}

.settings-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
    outline: none;
    transition: color 0.3s;
}

.dropdown-content {
    position: absolute;
    top: 35px;
    left: 0;
    width: 230px;
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    transform: scale(0.95);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.dropdown-content.show {
    transform: scale(1);
    opacity: 1;
}

.dark-mode-slider {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.dark-mode-slider input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: transform 0.3s;
    border-radius: 50%;
}

.dark-mode-slider input:checked + .slider {
    background-color: #6e6e6e;
}

.dark-mode-slider input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Language Select Styling */
#language-select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    color: #333;
    font-size: 14px;
}

.dark-mode #language-select {
    background-color: #444;
    color: #fff;
    border-color: #666;
}

label[for="language-select"] {
    display: block;
    margin-top: 10px;
    color: #333;
    font-size: 14px;
}

.gallery-item {
    flex: 0 0 auto;
    width: 270px; /* Fixed width for each project */
    height: 100%;
    scroll-snap-align: start;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: auto;
}

.gallery-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 5px;
}

.gallery-container {
    display: flex;
    grid-template-columns: repeat(4, 1fr); /* Ensure 4 equal columns */
    gap: 20px; /* Adjust gap for better spacing */
    width: calc(4 * 270px + 3 * 20px); /* 4 items + 3 gaps of 20px */
    justify-content: space-between; /* Ensure proper spacing between items */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    margin: 0 auto; /* Center the container horizontally */
    left: 0; /* Remove left offset */
    right: 0; /* Remove right offset */
    margin-top: 20px;
    padding: 20px;
    scroll-behavior: smooth;
    white-space: nowrap;
    top: 50px;
    position: absolute;
    margin-bottom: 50px;
    scroll-snap-type: x mandatory; /* Ensure snapping to projects */
    height: 100%;
}

.gallery-container .gallery-item:last-child {
    margin-right: 200px; /* Adjust the margin as needed */
}

.gallery-container::-webkit-scrollbar {
    display: none;
}

.parent-element {
  overflow: hidden;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    bottom: 180px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    background-color: #9c9c9c;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pagination-dot.active {
    background-color: #8c00ff; /* Highlight active dot */
}

.pagination-dot:hover {
    background-color: #ae00ff; /* Change color on hover */
}

/* Add this to your CSS */
.about-section {
    text-align: left;
    position: relative;
    bottom: -720px;
    left: 70px;
    width: 400px;
    height: 200px;
}

.about-section h2 {
    font-size: 60px;
    margin-bottom: 10px;
    text-align: center;
    font-family: "Pacifico", serif;
}

.about-section p {
    font-size: 20px;
    line-height: 1.6;
    text-align: left;
    font-family: "Indie Flower", serif;
}

/* Gallery container */
.gallery {
    position: relative;
    width: 60%;
    height: 400px; /* Adjust the height of the gallery */
    margin: 0 auto;
    perspective: 1500px; /* 3D perspective effect */
    bottom: -475px;
    left: 300px;
}

/* Card styling */
.card {
    position: absolute;
    top: 0;
    left: 50%;
    width: 300px;
    height: 400px;
    transition: transform 0.5s ease, opacity 0.5s ease; /* Transition opacity */
    z-index: 1;
    opacity: 1; /* Cards are initially visible */
    transform: translateX(-50%);
}

/* Stack images inside cards */
.card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Different rotations for each card for stacking effect */
.card:nth-child(1) {
    z-index: 1;
    transform: translateX(-50%) rotate(-5deg); /* Slight rotation for the first card */
}

.card:nth-child(2) {
    z-index: 2;
    transform: translateX(-50%) rotate(5deg); /* Slight rotation for the second card */
}

/* Gallery Items */
.gallery-item {
    flex: 0 0 auto; /* Prevent shrinking and ensure items stay in their width */
    width: 270px;
    height: 490px;
    background-color: #ddd;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
}
  

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Text Overlay */
.gallery-text {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 5px 10px;
    font-size: 1.5em; /* instead of font-size: 16px; */
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-text {
    opacity: 1;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: -10px;
    background-color: #c2c2c2;
    color: #000000;
    width:100%;
    height: 15%;
    left: 0;
    bottom: -1550px;
    position: absolute;
}

.footer p{
    margin-top: 20px;
}

footer a{
    text-decoration: none;
    margin-top: -20px;
}

.social-links {
    display: flex;
    justify-content: center; /* Center the social links */
    gap: 20px; /* Add space between the links */
    padding: 10px 0;
}

/*Contact Section*/
.contact-section {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 50px;
    padding: 20px;
    background-color: #f2f2f2;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    
}


/* Firefox (uncomment to work in Firefox, although other properties will not work!)  */
/** {
  scrollbar-width: thin;
  scrollbar-color: #06CDFF #000000;
}*/

/* Chrome, Edge and Safari */
*::-webkit-scrollbar {
  height: 7px;
  width: 7px;
}
*::-webkit-scrollbar-track {
  border-radius: 20px;
  background-color: #000000;
}

*::-webkit-scrollbar-track:hover {
  background-color: #D4D4D4;
}

*::-webkit-scrollbar-track:active {
  background-color: #A2A9AB;
}

*::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #06CDFF;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #4C00A3;
}

*::-webkit-scrollbar-thumb:active {
  background-color: #4C00A3;
}

/* Media Queries for Phone Version */
@media (max-width: 600px) {
    

    #loading-screen {
        display: flex;
        justify-content: center;
        align-items: center;
        background: #fff;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 999;
    }

    .title {
        font-size: 30px;
        margin-bottom: 20px;
        color: #06cdff;
        font-weight: bold;
        text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
         /* Change this from fixed to absolute */
          /* Ensure it's above other elements */
        position: absolute;
        bottom: -125px;
        left: 125px;
    }
    
    .gallery-container {
        display: flex;
        flex-direction: row;
        width: calc(2 * 270px + 20px); /* Width for 2 items + gap */
        margin: 0 auto;
        padding: 0 10px;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
    }

    .gallery-item {
        flex: 0 0 calc(50% - 10px); /* Take up half the container minus gap */
        width: auto;
        height: 400px; /* Reduced height for mobile */
        margin-right: 20px;
    }
    

    .pagination-container {
        bottom: -690px; /* Adjust position for pagination dots */
        left: 30px;
    }

    .about-section {
        text-align: left;
        position: relative;
        bottom: -700px;
        left: 30px;
        width: 400px;
        height: 200px;
    }
    
    .gallery {
        position: relative;
        width: 60%;
        height: 400px; /* Adjust the height of the gallery */
        margin: 0 auto;
        perspective: 1500px; /* 3D perspective effect */
        bottom: -750px;
        left: 30px;
    }

    .footer {
        text-align: center;
        margin-top: -10px;
        background-color: #c2c2c2;
        color: #000000;
        width: 450px;
        height: 15%;
        left: 0;
        bottom: -930px;
        position: absolute;
    }
    
    .contact-section {
        text-align: center;
        margin-top: 20px;
        margin-bottom: 50px;
        padding: 20px;
        background-color: #f2f2f2;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}
