/* Import a modern font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', serif;
    background-color: #f0f0f0; /* Softer complementary color */
    color: #1a2a3a; /* Deep blue for text */
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

header{
    background-color: #1a2a3a; /* Deep blue */
    color: #b89b5e; /* Softer gold tone */
    text-align: center;
    padding: 20px;
    background-image: url('_images/Goldleaf-bg.png'); /* Add background image */
    background-size: cover; /* Ensure the image covers the entire header */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    background-position: center; /* Center the background image */
}

footer {
    background-color: #1a2a3a; /* Deep blue */
    color: #b89b5e; /* Softer gold tone */
    text-align: center;
    padding: 20px;
}

/* Styles for the intro list in the header */
.intro-list {
    list-style-type: none; /* Remove default list styling */
    padding: 0; /* Remove default padding */
    margin: 20px 0 0 0; /* Add spacing above the list */
    display: flex; /* Display list items horizontally */
    justify-content: center; /* Center the list items */
    gap: 40px; /* Add more spacing between list items */
    font-family: 'Roboto', sans-serif; /* Use modern font */
    font-size: 2em; /* Increase font size */
    color: #ffcc0099; /* Standout color on navy blue background */
    font-weight: bold; /* Make the text bold */
    letter-spacing: 0.1em; /* Add spacing between letters */
    opacity: 0; /* Start hidden */
    animation: fadeInUp 2s ease-out forwards; /* Apply fade-in animation */
    animation-delay: 1.5s; /* Delay for a staggered effect */
}

.intro-list li {
    font-size: 1em; /* Adjust font size */
    color: #ffcc0099; /* Standout color on navy blue background */
    font-weight: bold; /* Make the text bold */
}

/* Fade-out and shrink animation for the intro list */
@keyframes fadeOutShrink {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes fadeInGrow {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo.scrolled .intro-list {
    animation: fadeOutShrink 1s ease-in-out forwards; /* Fade out and shrink */
}

.logo.reverse .intro-list {
    animation: fadeInGrow 1s ease-in-out forwards; /* Fade in and grow */
}

/* Ensure the header content is properly aligned */
.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full-screen height */
    text-align: center;
    perspective: 1000px; /* Add perspective for 3D effect */
    position: relative; /* Ensure relative positioning for absolute elements */
}

.scroll-arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 20px solid #b89b5e; /* Softer gold tone */
    margin: 20px auto;
    animation: bounce 2s infinite;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    cursor: default; /* Change cursor to default to indicate no action */
    animation-delay: 1.5s; /* Delay for a staggered effect */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.logo.scrolled .scroll-arrow {
    animation: fadeOutDown 1s ease-in-out forwards; /* Fade out and move down */
}

.logo.reverse .scroll-arrow {
    animation: fadeInUp 1s ease-in-out forwards; /* Fade in and move up */
}

/* Gradient animation for .logo h1 */
.logo h1 {
    font-size: 12vw; /* Adjusts dynamically based on screen width */
    position: relative;
    margin: 0;
    white-space: nowrap; /* Prevents text from wrapping */
    overflow: hidden; /* Ensure the pseudo-element stays within the bounds */
    color: transparent; /* Hide the original text color */
}

.logo h1::before {
    content: attr(data-text); /* Use the same text as the original element */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #b8860b, #716524, #cbbd84, #daa520, #b8860b, #baa00c, #e0d6b2, #b8860b);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientAnimation 5s linear infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 200% 50%; }
    100% { background-position: 0% 50%; }
}

/* Fade-in animation for .logo h1, .logo p, and .scroll-arrow */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo h1, .logo p, .scroll-arrow {
    opacity: 0; /* Start hidden */
    animation: fadeInUp 2s ease-out forwards; /* Apply fade-in animation */
}

.logo h1 {
    animation-delay: 0.5s; /* Delay for a staggered effect */
}

.logo p {
    font-size: 2vw; /* Scales with screen size */
    color: #b89b5e; /* Softer gold tone */
    margin-top: 10px;
    animation-delay: 1s; /* Delay for a staggered effect */
}

.scroll-arrow {
    animation-delay: 1.5s; /* Delay for a staggered effect */
}

@keyframes rotateFadeOutX {
    from {
        opacity: 1;
        transform: rotateX(0deg) scale(1);
    }
    to {
        opacity: 0;
        transform: rotateX(90deg) scale(1.1); /* Slightly grow */
    }
}

@keyframes rotateFadeInX {
    from {
        opacity: 0;
        transform: rotateX(90deg) scale(1.1); /* Slightly shrink */
    }
    to {
        opacity: 1;
        transform: rotateX(0deg) scale(1);
    }
}

.logo.scrolled h1, .logo.scrolled p {
    animation: rotateFadeOutX 1s ease-in-out forwards; /* Rotate, fade out, and grow on X-axis */
    transform-origin: center bottom; /* Set the transform origin for a better 3D effect */
}

.logo.reverse h1, .logo.reverse p {
    animation: rotateFadeInX 1s ease-in-out forwards; /* Rotate, fade in, and shrink on X-axis */
    transform-origin: center bottom; /* Set the transform origin for a better 3D effect */
}

.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.card {
    background-color: #ffffff; /* White background for cards */
    border: 1px solid #ddd; /* Light border */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    padding: 20px;
    text-align: center;
    width: 48%; /* 50% width minus gap */
    opacity: 0.5; /* Start with partial opacity */
    transform: scale(0.9) translateY(10px); /* Start slightly smaller and translated */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    margin: 20px auto; /* Center the card and add spacing */
}

.card.visible {
    opacity: 1; /* Fully visible */
    transform: scale(1) translateY(0); /* Original size and position */
}

/* Styles for the Welcome card */
.card.welcome-card h1 {
    font-size: 2.5em; /* Increase font size */
    color: #1a2a3a; /* Deep blue for text */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
    margin-bottom: 20px; /* Add spacing below the heading */
    animation: textGlow 2s ease-in-out infinite alternate; /* Add text glow effect */
}

.card.welcome-card p {
    font-size: 1.2em; /* Increase font size */
    line-height: 1.6; /* Improve readability */
    color: #333; /* Darker color for text */
    text-align: justify; /* Justify text for better alignment */
    margin-bottom: 20px; /* Add spacing below the paragraph */
}

.features-list {
    list-style-type: none; /* Remove default list styling */
    padding: 0; /* Remove default padding */
    margin: 20px 0; /* Add spacing around the list */
}

.features-list li {
    font-size: 1.2em; /* Increase font size */
    color: #1a2a3a; /* Deep blue for text */
    margin-bottom: 10px; /* Add spacing between list items */
    position: relative; /* Position relative for custom bullet */
    padding-left: 20px; /* Reduce padding to bring text closer to bullet */
    font-weight: bold; /* Make the text bolder */
}

.features-list li::before {
    content: '•'; /* Custom bullet */
    color: #b89b5e; /* Softer gold tone for bullet */
    position: absolute; /* Position absolute for custom bullet */
    left: 0; /* Align bullet to the left */
    top: 0; /* Align bullet to the top */
    font-size: 1.5em; /* Increase bullet size */
}

#container3D {
    width: 100%; /* Full width */
    height: 300px; /* Set height for the container */
    background-color: #000000; /* Black background */
    border-radius: 10px; /* Rounded corners */
    margin-top: 20px; /* Add spacing above the container */
}

.scroller-card {
    width: 100%; /* Full width for the scroller card */
    margin: 20px auto; /* Center the card and add spacing */
    background-color: #ffffff; /* White background for the card */
    border: 1px solid #ddd; /* Light border */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    padding: 20px;
}

.scroller {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 300px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    background-color: #e0e0e0; /* Light grey background to break up the white */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow below the scroller */
    margin-top: 20px; /* Add spacing between the above text and the scroller */
}

.scroller__inner {
    display: flex;
    animation: scroll 20s linear infinite;
}

.scroller[data-direction="right"] .scroller__inner {
    animation-direction: reverse;
}

.scroller[data-speed="slow"] .scroller__inner {
    animation-duration: 40s;
}

.scroller[data-speed="fast"] .scroller__inner {
    animation-duration: 10s;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.scroller img {
    width: 300px; /* Adjust width as needed */
    height: 300px; /* Adjust height as needed */
    object-fit: cover;
    margin-right: 20px; /* Space between images */
}

@media (max-width: 600px) {
    .jewelry-item {
        width: 200px; /* Adjust width for smaller screens */
    }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 27%; }
}

@keyframes blinkTextCursor {
    0% { border-right-color: rgba(26, 42, 58, 0.75); }
    100% { border-right-color: transparent; }
}

#features h1 {
    font-size: 3em; /* Initial font size */
    overflow: hidden; /* Ensures the text is hidden initially */
    border-right: 0.15em solid rgba(26, 42, 58, 0.75); /* Cursor effect */
    white-space: nowrap; /* Prevents text from wrapping */
    margin: 0 auto; /* Centers the text */
    letter-spacing: 0.15em; /* Adds spacing between letters */
    animation: 
        typewriter 2s steps(40, end) 1s 1 normal both,
        blinkTextCursor 500ms steps(40, end) 4s 1 normal both; /* Stops blinking after typing */
    text-align: center;
}

#features h1.finished {
    border-right: none; /* Remove cursor effect */
}

#features p {
    font-size: 1.5em; /* Adjust font size for paragraph */
    text-align: center;
}

#features .feature {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

#features .feature img {
    width: 100px; /* Set a fixed width for the icons */
    height: 100px; /* Set a fixed height for the icons */
}

#features .feature h2 {
    font-size: 2em; /* Adjust font size for heading */
}

#features .feature p {
    font-size: 1.5em; /* Adjust font size for paragraph */
}

#contact {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    opacity: 0; /* Start hidden */
    transform: translateY(20px); /* Start slightly below */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#contact.visible {
    opacity: 1; /* Fade in */
    transform: translateY(0); /* Move to original position */
}

#contact h1 {
    font-size: 3em; /* Adjust font size for heading */
    animation: fadeInUp 1s ease-out forwards; /* Apply animation */
}

#contact p {
    font-size: 1.5em; /* Adjust font size for paragraph */
    animation: fadeInUp 1s ease-out forwards; /* Apply animation */
    animation-delay: 0.3s; /* Delay for a staggered effect */
}

/* Ensure the "About Us" section is full width with text on the left and image on the right */
#about {
    padding: 20px;
    background-color: #f9f9f9; /* Light background color */
    border: 1px solid #ddd; /* Light border */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    margin: 30px auto; /* Center the section and add spacing */
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Center items vertically */
    justify-content: space-between; /* Space items evenly */
    max-width: 1500px; /* Limit the maximum width */
}

#about h1 {
    font-size: 2em; /* Increase font size */
    color: #1a2a3a; /* Deep blue for text */
    text-align: left; /* Align the heading to the left */
    margin-bottom: 20px; /* Add spacing below the heading */
}

#about .card {
    background-color: #ffffff; /* White background for cards */
    border: none; /* Remove border */
    box-shadow: none; /* Remove shadow */
    padding: 0; /* Remove padding */
    text-align: left; /* Align text to the left */
    margin: 0; /* Remove margin */
    flex: 1; /* Allow the card to grow */
}

#about .about-image {
    width: 50%; /* Set width for the image */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Rounded corners */
    margin-left: 20px; /* Add spacing to the left of the image */
}

#about h2 {
    font-size: 1.5em; /* Increase font size */
    color: #1a2a3a; /* Deep blue for text */
    margin-bottom: 10px; /* Add spacing below the subheading */
}

#about p {
    font-size: 1.2em; /* Increase font size */
    line-height: 1.6; /* Improve readability */
    color: #333; /* Darker color for text */
    text-align: justify; /* Justify text for better alignment */
    margin-bottom: 20px; /* Add spacing below the paragraph */
    padding-bottom: 20px; /* Add padding to the bottom */
    border-bottom: 1px solid #ddd; /* Add a border at the bottom */
}

