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

:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    
    --dark-bg: #1a1a1a;
    --dark-text: #fff;
    --dark-card-bg: #2a2a2a;
    --dark-header-bg: rgba(0, 0, 0, 0.7);
    --dark-footer-bg: #111;

    --light-bg: #f4f7fc;
    --light-text: #333;
    --light-card-bg: #fff;
    --light-header-bg: rgba(255, 255, 255, 0.7);
    --light-footer-bg: #e9ecef;
}

body.light-theme {
    --bg-color: var(--light-bg);
    --text-color: var(--light-text);
    --card-bg: var(--light-card-bg);
    --header-bg: var(--light-header-bg);
    --footer-bg: var(--light-footer-bg);
}

body:not(.light-theme) {
    --bg-color: var(--dark-bg);
    --text-color: var(--dark-text);
    --card-bg: var(--dark-card-bg);
    --header-bg: var(--dark-header-bg);
    --footer-bg: var(--dark-footer-bg);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.3s;
}

header nav {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

nav ul li a:hover::after {
    width: 100%;
}

.hero {
    min-height:70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px;
    background: var(--bg-color);
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s;
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s;
}

.brand-videos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.video-container {
    position: relative;
    width: 360px; /* Increased width */
    height: 580px; /* Increased height */
    border-radius: 20px; /* Slightly larger radius */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); /* Enhanced shadow */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.video-container:hover {
    transform: scale(1.05);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%); /* Gradient for text visibility */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem;
    text-align: center;
    opacity: 1; /* Always visible */
    transition: background 0.3s;
}

.video-overlay h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff; /* Always white */
}

.cta-button {
    padding: 0.8rem 2rem;
    border: 2px solid #fff; /* Always white */
    background: transparent;
    color: #fff; /* Always white */
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-button:hover {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-color: transparent;
}

.content-section {
    padding: 6rem 5%;
    border-bottom: 1px solid #333;
}

.content-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#about .about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

#about .about-text {
    flex-basis: 60%;
}

#about .about-image {
    flex-basis: 40%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#about .about-image img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 15px;
}

.brand-showcase {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.brand-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    width: 350px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid;
}

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

#dauren-labs-card { border-color: var(--secondary-color); }
#bloom-fields-card { border-color: #28a745; }
#kore-beauty-card { border-color: #dc3545; }

.brand-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.brand-card .tagline {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.brand-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.brand-card ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 20px;
}

.brand-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

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

.list-item-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.list-item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.list-item-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    flex-basis: 45%;
}

.contact-info p {
    margin-bottom: 1rem;
}

form {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form input, form textarea {
    padding: 1rem;
    border: 1px solid var(--text-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
}

body.light-theme form input, body.light-theme form textarea {
    border: 1px solid #ccc;
}

form button {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

form button:hover {
    transform: scale(1.05);
}

footer {
    background: var(--footer-bg);
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sitemap a, .legal a {
    color: #aaa;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

.sitemap a:hover, .legal a:hover {
    color: var(--secondary-color);
}

.newsletter {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.newsletter input {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--text-color);
    width: 300px;
    background: var(--card-bg);
    color: var(--text-color);
}

body.light-theme .newsletter input {
    border: 1px solid #ccc;
}

.newsletter button {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    cursor: pointer;
    transition: transform 0.3s;
}

.newsletter button:hover {
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s, transform 0.6s;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Theme Switcher */
.theme-toggle-button {
    background: transparent;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 2rem;
}

.theme-toggle-button:hover {
    background-color: var(--text-color);
}

.theme-toggle-button:hover svg {
    stroke: var(--bg-color);
}

.theme-toggle-button svg {
    stroke: var(--text-color);
    transition: stroke 0.3s;
}

.sun-icon, .moon-icon {
    position: absolute;
}

.light-theme .moon-icon { display: none; }
.light-theme .sun-icon { display: block; }

body:not(.light-theme) .sun-icon { display: none; }
body:not(.light-theme) .moon-icon { display: block; }


/* View Transitions */
::view-transition-group(root) {
  animation-timing-function: var(--expo-out);
}

::view-transition-new(root) {
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><defs><filter id="blur"><feGaussianBlur stdDeviation="2"/></filter></defs><circle cx="40" cy="0" r="18" fill="white" filter="url(%23blur)"/></svg>') top right / 0 no-repeat;
  mask-origin: content-box;
  animation: scale 0.65s;
  transform-origin: top right;
}

::view-transition-old(root),
  .dark::view-transition-old(root) {
  animation: scale 0.65s;
  transform-origin: top right;
  z-index: -1;
}

@keyframes scale {
  to {
    mask-size: 350vmax;
  }
}
