/* ============================================
   BUBU SHAKTI - Minimal Sacred Theme
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Gloock&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Colors - Light Purple Theme (default) */
    --color-bg: #dcaff4;
    --color-bg-alt: #dfcceb;
    --color-bg-card: #FFFFFF;
    --color-text: #2D1B4E;
    --color-text-muted: #5E4A7A;
    --color-text-light: #8A7A9E;
    --color-accent: #9B4DCA;
    --color-accent-hover: #7B2DA0;
    --color-secondary: #6B3FA0;
    --color-muted: #D4C4E0;
    --color-border: rgba(107, 63, 160, 0.15);
    --color-border-strong: rgba(107, 63, 160, 0.25);

    /* Nav background for light theme */
    --nav-bg: rgba(240, 230, 246, 0.9);
    --footer-bg: #1A1025;

    /* Shadows - Light theme */
    --shadow-sm: 0 1px 2px rgba(45, 27, 78, 0.08);
    --shadow-md: 0 4px 12px rgba(45, 27, 78, 0.12);
    --shadow-lg: 0 8px 24px rgba(45, 27, 78, 0.16);

    /* Typography */
    --font-display: 'Gloock', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-nav: 100;
    --z-overlay: 200;
}

/* ============================================
   DARK THEME
   ============================================ */
[data-theme="dark"] {
    --color-bg: #1A1025;
    --color-bg-alt: #251435;
    --color-bg-card: #2D1B3D;
    --color-text: #F5F0FA;
    --color-text-muted: #B8A5C8;
    --color-text-light: #8B7A9E;
    --color-accent: #E8B4F8;
    --color-accent-hover: #D896F0;
    --color-secondary: #7B5CFF;
    --color-muted: #3D2952;
    --color-border: rgba(232, 180, 248, 0.15);
    --color-border-strong: rgba(232, 180, 248, 0.3);

    --nav-bg: rgba(26, 16, 37, 0.85);
    --footer-bg: #0F0A15;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

p {
    margin-bottom: var(--space-4);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-accent {
    color: var(--color-accent);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container--narrow {
    max-width: var(--container-narrow);
}

section {
    padding: var(--space-24) 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--color-text);
    letter-spacing: 0.02em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav__link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav__link:hover {
    color: var(--color-text);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--color-accent);
    background: var(--color-border);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle__sun {
    display: block;
}

.theme-toggle__moon {
    display: none;
}

[data-theme="dark"] .theme-toggle__sun {
    display: none;
}

[data-theme="dark"] .theme-toggle__moon {
    display: block;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: var(--space-2);
}

.lang-btn {
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.lang-btn:hover,
.lang-btn.active {
    opacity: 1;
}

.lang-btn img {
    width: 20px;
    height: 20px;
    border-radius: 2px;
}

/* Mobile menu toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 72px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.04;
}

.hero__bg svg {
    width: 100%;
    height: 100%;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: var(--text-6xl);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero__tagline {
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-12);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero__cta {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-text-light);
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.8s forwards;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.btn--primary {
    background: var(--color-text);
    color: var(--color-bg);
}

.btn--primary:hover {
    background: var(--color-secondary);
}

.btn--outline {
    border: 1px solid var(--color-border-strong);
    color: var(--color-text);
}

.btn--outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn--ghost {
    color: var(--color-text-muted);
}

.btn--ghost:hover {
    color: var(--color-accent);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header__label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
}

.section-header__title {
    margin-bottom: var(--space-4);
}

.section-header__desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-muted);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: var(--color-bg);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.service-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-slow);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.service-card__image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card__content {
    padding: var(--space-6);
}

.service-card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.service-card__desc {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--space-5);
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-accent);
    transition: gap var(--transition-fast);
}

.service-card__link:hover {
    gap: var(--space-3);
}

.service-card__link svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
    background: var(--color-bg-alt);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.product-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-8);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.product-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.product-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-5);
    color: var(--color-accent);
}

.product-card__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.product-card__desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-5);
}

.product-card__price {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--color-secondary);
    margin-bottom: var(--space-5);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--color-bg);
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about__content {
    max-width: 500px;
}

.about__label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
}

.about__title {
    margin-bottom: var(--space-6);
}

.about__text {
    color: var(--color-text-muted);
    line-height: 1.8;
}

.about__text p+p {
    margin-top: var(--space-4);
}

.about__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about__symbol {
    width: 300px;
    height: 300px;
    opacity: 0.15;
    color: var(--color-accent);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--color-bg-alt);
}

.contact__inner {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-4);
    font-size: var(--text-base);
    font-family: var(--font-body);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-card);
    color: var(--color-text);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235E4A7A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-12);
}

[data-theme="dark"] .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B8A5C8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: var(--space-4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--footer-bg);
    color: #F5F0FA;
    padding: var(--space-16) 0 var(--space-8);
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-12);
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.footer__desc {
    font-size: var(--text-sm);
    opacity: 0.7;
    line-height: 1.7;
}

.footer__heading {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: var(--space-5);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__link {
    font-size: var(--text-sm);
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer__link:hover {
    opacity: 1;
}

.footer__social {
    display: flex;
    gap: var(--space-4);
}

.footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.footer__social a:hover {
    opacity: 1;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.footer__bottom {
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-xs);
    opacity: 0.5;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--delay-1 {
    transition-delay: 0.1s;
}

.reveal--delay-2 {
    transition-delay: 0.2s;
}

.reveal--delay-3 {
    transition-delay: 0.3s;
}

/* ============================================
   GRAIN TEXTURE OVERLAY
   ============================================ */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-muted);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}
