@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-main: #F4EBE1; /* Soft Beige */
    --bg-alt: #EBE0D4; /* Slightly darker beige */
    --text-dark: #4A3320; /* Deep Brown */
    --text-light: #8E6A50; /* Medium Brown */
    --accent: #A96C4E; /* Warm Brown Accent */
    --mustard: #E2C4A2; /* Soft Gold/Beige */
    --white: #FCFAF7;
    --border-width: 0;
    --shadow-sm: 0 0.5vmin 1vmin rgba(74, 51, 32, 0.08);
    --shadow-md: 0 1.5vmin 3vmin rgba(74, 51, 32, 0.12);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #222; /* Dark outside presentation */
    color: var(--text-dark);
    overflow: hidden;
}

.presentation-wrapper {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #222;
}

.deck-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-main);
}

/* ── Floating Animated Decorations ── */
.deck-container::after {
    content: "✦";
    position: absolute;
    top: 10%;
    right: 5%;
    font-size: 4vmin;
    color: var(--accent);
    animation: floatStar 4s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes floatStar {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-1.5vmin) rotate(15deg); }
}

/* ── Global Header ── */
.global-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3vmin 6vmin;
    z-index: 10;
    font-family: 'Playfair Display', serif;
    font-size: 2.5vmin;
    font-weight: 600;
    color: var(--text-dark);
    pointer-events: none;
}

body.cover-active .global-header img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

/* ── Slide Container ── */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(6vmin);
    pointer-events: none;
    z-index: 1;
    padding: 15vmin 8vmin 12vmin 8vmin;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 5;
}

.slide.prev {
    transform: translateY(-6vmin);
    opacity: 0;
}

.slide.next {
    transform: translateY(6vmin);
    opacity: 0;
}

.slide.alt-bg {
    background-color: var(--bg-alt);
    height: 100%;
    top: 0;
    padding-top: 12vmin;
}

/* ── Typography ── */
h1, h2, h3, h4, .serif-title {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    line-height: 1.1;
    font-weight: 600;
}

.main-title {
    font-size: 8vmin;
    margin-bottom: 2vmin;
}

.slide-title {
    font-size: 5vmin;
    margin-bottom: 4vmin;
}

p, li {
    font-size: 2.2vmin;
    line-height: 1.6;
    color: var(--text-light);
}

strong {
    font-weight: 600;
    color: var(--text-dark);
}

/* ── Layouts ── */
.center-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6vmin;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4vmin;
}

/* ── Cards ── */
.elegant-card {
    background-color: var(--white);
    padding: 4vmin;
    border-radius: 3vmin;
    box-shadow: var(--shadow-md);
    position: relative;
    margin-bottom: 2.5vmin;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.elegant-card:hover {
    transform: translateY(-0.8vmin);
    box-shadow: 0 2vmin 4vmin rgba(74, 51, 32, 0.15);
}

.elegant-card h3 {
    font-size: 3vmin;
    margin-bottom: 1.5vmin;
    color: var(--accent);
}

.elegant-card ul {
    list-style-type: none;
    margin-top: 2vmin;
}

.elegant-card li {
    margin-bottom: 1.5vmin;
    position: relative;
    padding-left: 3vmin;
    color: inherit;
}

.elegant-card li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.8vmin;
    color: var(--accent);
}

.elegant-card ul ul {
    list-style-type: circle;
    padding-left: 3vmin;
    margin-top: 0.5vmin;
}

.elegant-card ul ul li {
    padding-left: 0;
}

.elegant-card ul ul li::before {
    content: none;
}

/* ── Cover Image ── */
.cover-image-wrapper {
    width: 100%;
    height: 50vmin;
    border-radius: 4vmin;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.cover-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Phone Mockup (Exactly like Khads but elegant) ── */
.phone-mockup {
    width: 30vmin;
    height: 60vmin;
    margin: 0 auto;
    border: 1vmin solid #222;
    border-radius: 4vmin;
    background-color: #111;
    position: relative;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Interactive wrapper */
.phone-mockup-wrapper {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.34, 1.2, 0.64, 1);
    cursor: pointer;
}

.phone-mockup-wrapper:hover {
    transform: scale(1.08);
}

.phone-mockup-interactive {
    animation: phoneshake 5s ease-in-out infinite;
}

@keyframes phoneshake {
    0%   { transform: rotate(1deg) translateY(0px); }
    33%  { transform: rotate(-1deg) translateY(-1vmin); }
    66%  { transform: rotate(2deg) translateY(-0.5vmin); }
    100% { transform: rotate(1deg) translateY(0px); }
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 3vmin;
    padding-top: 3.5vmin; /* Padding so notch doesn't cover UI */
    background-color: #000;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 1vmin;
    left: 50%;
    transform: translateX(-50%);
    width: 8vmin;
    height: 2vmin;
    background-color: #222;
    border-radius: 1vmin;
    z-index: 10;
}

/* ── Controls & Pagination ── */
.controls {
    position: absolute;
    bottom: 4vmin;
    right: 6vmin;
    display: flex;
    gap: 2vmin;
    z-index: 20;
}

.nav-btn {
    width: 6vmin;
    height: 6vmin;
    background-color: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    color: var(--text-dark);
}

.nav-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.nav-btn svg {
    stroke: currentColor;
    width: 3vmin;
    height: 3vmin;
}

.pagination {
    position: absolute;
    bottom: 5.5vmin;
    left: 6vmin;
    font-family: 'Inter', sans-serif;
    font-size: 1.8vmin;
    font-weight: 600;
    color: var(--text-dark);
    z-index: 20;
    letter-spacing: 0.1em;
}

.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.6vmin;
    background-color: rgba(74, 51, 32, 0.1);
    z-index: 20;
}

.progress-bar {
    height: 100%;
    background-color: var(--accent);
    width: 0%;
    transition: width 0.4s ease;
}

/* Specific elements */
.divider {
    height: 0.3vmin;
    width: 10vmin;
    background-color: var(--accent);
    margin: 3vmin 0;
}

.tag {
    display: inline-block;
    padding: 1vmin 2vmin;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 5vmin;
    font-size: 1.4vmin;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2vmin;
    font-weight: 600;
}

.image-mask {
    border-radius: 3vmin;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.image-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
