/* ==========================================================================
   ABYNS STUDIO - Core Design System & Base Layouts
   ========================================================================== */

/* 1. Imports */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* 2. Custom Properties (Design Tokens) */
:root {
    /* Color Palette */
    --color-bg-primary: #140917;     /* Deepest Royal Purple */
    --color-bg-secondary: #1a0b1e;   /* Medium Purple */
    --color-bg-tertiary: #230f2b;    /* Light Purple for cards */
    --color-gold: #d6b77a;           /* Champagne Gold Primary Accent */
    --color-gold-hover: #e5cd9e;     /* Light Gold Hover State */
    --color-white: #f6f1eb;          /* Warm Ivory */
    --color-text-primary: #f6f1eb;
    --color-text-secondary: #a390a5;  /* Muted Elegant Purple-Gray */
    --color-text-dark: #140917;
    --color-border-glass: rgba(214, 183, 122, 0.15); /* Thin champagne gold border */
    --color-purple-glow: rgba(84, 40, 92, 0.4);

    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Spacing & Layout */
    --container-max-width: 1440px;
    --section-padding: 8rem 2rem;
    --section-padding-mobile: 5rem 1.25rem;

    /* Transitions & Physics */
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 3. Resets & Core Elements */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: initial; /* Handled by Lenis for smooth scroll */
    font-size: 16px;
    overflow-x: hidden;
    background-color: var(--color-bg-primary);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 4. Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-bg-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* Selection State */
::selection {
    background-color: var(--color-gold);
    color: var(--color-bg-primary);
}

/* 5. Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
    color: var(--color-text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 5.5rem);
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    letter-spacing: 0.06em;
}

p {
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    color: var(--color-text-secondary);
    font-weight: 300;
    line-height: 1.7;
}

.font-serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.text-gold {
    color: var(--color-gold);
}

.text-gradient-gold {
    background: linear-gradient(135deg, #f6f1eb 0%, #d6b77a 50%, #b29357 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }

/* 6. Layout Helpers */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    width: 100%;
}

.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

@media (max-width: 1287px) {
    .section {
        padding: var(--section-padding-mobile);
    }
    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

.flex { display: flex; }
.grid { display: grid; }

/* Section Header styling for narrative storytelling */
.section-header {
    max-width: 800px;
    margin-bottom: 5rem;
}

.section-tag {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-gold);
    display: inline-block;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1px;
    background-color: var(--color-gold);
}

.section-title {
    margin-top: 0.5rem;
}

.section-desc {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    max-width: 600px;
}

/* Background Gradients & Glow overlays */
.glow-blur {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-purple-glow) 0%, rgba(20, 9, 23, 0) 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
}
