:root {
    --primary-color: #a78bfa; /* Tailwind violet-400 */
    --primary-dark: #8b5cf6; /* Tailwind violet-500 */
    --text-color: #e5e7eb; /* Tailwind gray-200 */
    --bg-color: #111827; /* Tailwind gray-900 */
    --card-bg: #1f2937; /* Tailwind gray-800 */
    --border-color: #374151; /* Tailwind gray-700 */
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #111827 25%, #131a2b 50%, #0f0f0f 100%);
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: gradientShift 30s ease infinite;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.nav-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.7)), url('/Media/item7.jpg');
    background-size: cover;
    background-position: center;
    padding: 0 2rem;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.hero.scrolled::after {
    opacity: 1;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), #ec4899);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #d1d5db; /* Tailwind gray-300 */
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(167, 139, 250, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--card-bg);
    border-color: var(--card-bg);
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 6rem 0;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #d1d5db;
}

/* Essences Section */
.essences-section {
    padding: 1rem 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #111827 25%, #131a2b 50%, #0f0f0f 100%);
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: gradientShift 30s ease infinite;
    text-align: center;
    overflow: visible;
    margin-bottom: 6rem;
}

.essences-section h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.essences-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.essence-card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.essence-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.essence-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(139, 92, 246, 0.4);
    border-color: var(--primary-color);
}

.essence-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.essence-card:hover .essence-image {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.essence-content {
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    gap: 1rem;
}

.essence-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0;
    font-weight: 700;
    text-transform: capitalize;
}

.essence-description {
    font-size: 1rem;
    color: #d1d5db;
    line-height: 1.6;
    margin: 0;
}

/* Essence Link Styles */
.essence-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.essence-link:hover {
    text-decoration: none;
    color: inherit;
}

.shop-now-cta {
    margin-top: 4rem;
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.gradient-card .essence-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(167, 139, 250, 0.3), rgba(236, 72, 153, 0.3));
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.gradient-card:hover .essence-image-container::after {
    opacity: 0.5;
}

.gradient-card .essence-title {
    background: linear-gradient(45deg, var(--primary-color), #ec4899);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-card .essence-description {
    color: var(--text-color);
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about, .essences-section {
        padding: 4rem 1rem;
    }

    .essences-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .essence-card {
        max-width: 100%;
    }

    .essence-image-container {
        height: 200px;
    }

    .essence-content {
        padding: 1.5rem;
        gap: 0.8rem;
    }

    .essence-title {
        font-size: 1.5rem;
    }

    .essence-description {
        font-size: 0.9rem;
    }
}
