@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

:root {
    --color-primary-gold: #3a4ec2; /* Darker, more elegant gold */
    --color-secondary-gold: #5565bb; /* Classic gold for accents */
    --color-text-dark: #1a1a1a; /* Very dark text for strong contrast */
    --color-text-medium: #4a4a4a; /* Softer dark gray for paragraphs */
    --color-background-light: #f5f5f5; /* Slightly warmer off-white for sections */
    --color-background-lighter: #ffffff; /* Pure white for cards */
    --color-border-light: #dcdcdc; /* Very light gray border */
    --color-shadow-light: rgba(0, 0, 0, 0.08); /* Slightly more pronounced subtle shadow */
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text-medium);
    background-color: var(--color-background-lighter);
    line-height: 1.7; /* Improved readability */
}

h1, h2, h3, h4 {
    color: var(--color-text-dark);
    font-weight: 700; /* Ensure headings are bold */
}

p {
    font-weight: 400; /* Standard paragraph weight */
}

/* Custom animations */
@keyframes fadeInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInFromBottom 0.8s ease-out forwards;
    opacity: 0; /* Initial state before animation */
}

.animate-fade-in-up.delay-200 {
    animation-delay: 0.2s;
}

.animate-fade-in-up.delay-400 {
    animation-delay: 0.4s;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Hero section background image styling */
#hero {
    background-attachment: fixed; /* Parallax effect */
    background-size: cover;
    background-position: center center;
}

/* Custom CSS for hero section */
#hero .hero-title-container {
    padding-top: 5rem; /* Default top padding for mobile */
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    align-content: center;
    z-index: 10;
}

#hero .hero-title {
    font-size: 1.5rem; /* text-4xl for mobile */
    color: white;
}

#hero .hero-content-container {
    margin-top: 10rem; /* Default top margin for content on mobile */
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    #hero .hero-title-container {
        padding-top: 8rem; /* Adjust for medium screens */
    }
    #hero .hero-title {
        font-size: 3rem; /* text-7xl for medium screens */
    }
    #hero .hero-content-container {
        margin-top: 16rem; /* Adjust for medium screens */
    }
}

/* Collection Hero Section */
#collection-hero {
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    padding-top: 80px; /* Adjust for fixed header */
}

/* General styling for sections with noise background */
.relative.overflow-hidden .absolute.inset-0.bg-repeat.opacity-5 {
    background-size: 100px; /* Adjust noise pattern size */
    opacity: 0.03; /* Even more subtle noise */
}

/* Card styling for subtle hover effects (GSAP handles transform and shadow) */
.bg-white.p-8.rounded-lg.shadow-lg,
.bg-white.p-6.rounded-lg.shadow-lg {
    box-shadow: 0 8px 20px var(--color-shadow-light); /* Refined initial shadow */
    border: 1px solid var(--color-border-light); /* Subtle border for definition */
    transition: box-shadow 0.3s ease-out, border-color 0.3s ease-out;
    margin-bottom: 1.5rem; /* Consistent bottom margin for cards */
}

/* Ensure image icons in "Why Choose Us" section are visible */
#why-choose-us img {
    filter: brightness(0.6); /* Darken icons for better contrast on white background */
}

/* Featured Gallery Item Styling */
.featured-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 0.75rem; /* Tailwind's rounded-lg */
    box-shadow: 0 8px 20px var(--color-shadow-light); /* Refined initial shadow */
    border: 1px solid var(--color-border-light);
    transition: all 0.3s ease-out;
}

.featured-item img {
    transition: transform 0.5s ease-out;
}

.featured-item .absolute {
    transition: opacity 0.3s ease-out;
}

/* Sparkle/Glow effect on hover */
.featured-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease-out;
    z-index: 1;
}

.featured-item:hover::before {
    width: 150%;
    height: 150%;
    opacity: 1;
}

.featured-item:hover {
    transform: translateY(-10px) rotateZ(0.5deg); /* Subtle lift and rotation */
    box-shadow: 0 18px 40px rgba(0,0,0,0.15); /* Enhanced shadow */
    border-color: var(--color-primary-gold); /* Highlight border on hover */
}

.featured-item:hover img {
    transform: scale(1.03) rotateZ(-0.5deg); /* Slight zoom and counter-rotation */
}

.featured-item:hover .absolute {
    opacity: 1;
}

/* Header styling */
header {
    background-color: transparent; /* Transparent header initially */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header .logo-container {
    height: 3.5rem;
}

header .logo-container img {
    filter: none;
}

/* Desktop navigation */
header nav {
    display: none; /* Always hidden as per new design */
}

/* Menu icon container (visible on both mobile and desktop) */
header .menu-icon-container {
    display: block; /* Always block to show the menu icon */
}

header .menu-icon-container .menu-button {
    background-color: var(--color-background-lighter);
    border-radius: 50%; /* Round background for menu icon */
    padding: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-dropdown {
    z-index: 40; /* Ensure it's above other content */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full screen height */
    background-color: var(--color-background-lighter);
    transform: translateY(-100%); /* Start off-screen above */
    transition: transform 0.5s ease-in-out; /* Smooth transition */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-dropdown.open {
    transform: translateY(0); /* Slide down to full screen */
}

.mobile-menu-dropdown nav a.active-link {
    color: var(--color-primary-gold);
    font-weight: 700; /* Tailwind's font-bold */
}

/* Start Your Custom Design Button Animation */
.bg-primary-gold, .about-more-btn {
    background-color: #3a4ec2 !important; /* Force the blue-gold color */
    color: #ffffff !important; /* Force white text */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.bg-primary-gold:hover {
    background-color: var(--color-secondary-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ensure button background is visible on mobile */
@media (max-width: 768px) {
    .bg-primary-gold {
        background-color: var(--color-primary-gold) !important;
        z-index: 20; /* Ensure it's above other elements if needed */
    }
}

/* Jewelry items in hero section */
.jewelry-items-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Keep items within the container */
    pointer-events: auto; /* Enable pointer events for dragging */
    position: relative; /* Ensure proper positioning context for children */
}

.jewelry-item {
    position: absolute;
    height: auto;
    opacity: 0;
    filter: drop-shadow(0 0 15px var(--color-secondary-gold)); /* Stronger gold glow */
    border-radius: 50%; /* Make some items circular for variety */
    border: 2px solid rgba(255, 215, 0, 0.3); /* Subtle gold border */
    transition: transform 0.3s ease-out, border-radius 0.3s ease-out;
    cursor: grab; /* Indicate draggable */
}

/* Specific positioning for each item using vw/vh for responsiveness */
.jewelry-items-container .jewelry-item:nth-child(1) { /* Engagement Ring */
    top: 20vh;
    left: 10vw;
    width: 10vw;
    max-width: 120px;
    min-width: 80px;
    border-radius: 50%;
}

.jewelry-items-container .jewelry-item:nth-child(2) { /* Bracelet */
    top: 60vh;
    left: 75vw;
    width: 12vw;
    max-width: 150px;
    min-width: 100px;
    border-radius: 10px;
}

.jewelry-items-container .jewelry-item:nth-child(3) { /* Necklace */
    top: 10vh;
    left: 65vw;
    width: 15vw;
    max-width: 180px;
    min-width: 120px;
    border-radius: 50%;
}

.jewelry-items-container .jewelry-item:nth-child(4) { /* Earring */
    top: 80vh;
    left: 15vw;
    width: 8vw;
    max-width: 90px;
    min-width: 60px;
    border-radius: 10px;
}

.jewelry-items-container .jewelry-item:nth-child(5) { /* Men's Ring */
    top: 40vh;
    left: 5vw;
    width: 9vw;
    max-width: 110px;
    min-width: 70px;
    border-radius: 50%;
}

/* Responsive adjustments for jewelry items */
@media (max-width: 768px) {
    .jewelry-items-container .jewelry-item:nth-child(1) {
        top: 25vh;
        left: 5vw;
        width: 15vw;
    }
    .jewelry-items-container .jewelry-item:nth-child(2) {
        top: 55vh;
        left: 70vw;
        width: 18vw;
    }
    .jewelry-items-container .jewelry-item:nth-child(3) {
        top: 15vh;
        left: 60vw;
        width: 20vw;
    }
    .jewelry-items-container .jewelry-item:nth-child(4) {
        top: 75vh;
        left: 10vw;
        width: 12vw;
    }
    .jewelry-items-container .jewelry-item:nth-child(5) {
        top: 35vh;
        left: 0vw;
        width: 14vw;
    }
}

@media (max-width: 576px) {
    .jewelry-items-container {
        display: none; /* Hide jewelry items on very small screens to avoid clutter */
    }
}

/* Integrated Services Section Styles */
#integrated-services {
    overflow: hidden;
    background-color: #ffffff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.service-step {
    position: relative;
    opacity: 0.2;
    transition: all 0.5s ease;
    padding-left: 2rem;
}

.service-step.active {
    opacity: 1;
    transform: translateX(10px);
}

.service-step h3 {
    transition: color 0.3s ease;
    line-height: 1.2;
}

.service-step.active h3 {
    color: var(--color-primary-gold);
}

.step-dot {
    position: absolute;
    left: -6px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e5e7eb;
    border: 2px solid #fff;
    z-index: 10;
    transition: all 0.3s ease;
}

.service-step.active .step-dot {
    background-color: var(--color-primary-gold);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.15);
    transform: scale(1.1);
}

.progress-line-container {
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: #f0f0f0;
    z-index: 1;
}

@media (max-width: 768px) {
    #integrated-services {
        height: 100vh !important;
        overflow: hidden;
        padding-top: 60px !important;
    }
    #integrated-services .container {
        height: 100% !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 0 !important;
        padding-bottom: 20px !important;
    }
    #integrated-services h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
        text-align: center;
    }
    #integrated-services .flex-col {
        gap: 1.5rem !important;
    }
    #integrated-services .w-full.max-w-\[300px\] {
        max-width: 220px !important;
        margin: 0 auto;
    }
    .service-step {
        padding-left: 1.5rem;
        margin-bottom: 0.75rem !important;
    }
    .step-dot {
        left: -5px;
        top: 8px;
        width: 10px;
        height: 10px;
    }
    .service-step p {
        display: none;
    }
    .service-step.active p {
        display: block;
        font-size: 0.75rem;
        line-height: 1.3;
        margin-top: 2px;
        color: #666;
    }
    .service-step h3 {
        font-size: 1rem !important;
        margin-bottom: 0 !important;
    }
    .progress-line-container {
        top: 10px;
        bottom: 10px;
    }
}

#progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primary-gold);
    height: 0%;
    z-index: 2;
}

/* Jewelry Manufacturing Products Horizontal Scroll */
#jewelry-manufacturing-products {
    height: 100vh;
    overflow: hidden;
}

.products-horizontal-wrapper {
    width: 100%;
    overflow: hidden;
}

.products-horizontal-container {
    display: flex;
    width: fit-content;
    will-change: transform;
}

.product-card {
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

/* Section Spacing for Header */
section.min-h-screen, section.h-screen {
    padding-top: 60px; /* Optimized header space */
    box-sizing: border-box;
}

/* About Sonart Reveal Text Styles */
.reveal-text {
    color: #b0b0b0; /* Darker gray for better visibility before reveal */
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

/* Footer social media icons to be white */
footer .flex.space-x-4 img {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
}

.reveal-text span {
    color: #b0b0b0;
    display: inline-block;
    margin-right: 0.2em;
}

@media (max-width: 768px) {
    section.min-h-screen, section.h-screen {
        padding-top: 50px;
    }
}
