/*
  style.css
  Theme: Movie Talks
  Design System: Retro with Volumetric UI
  Color Scheme: Triad
  Animation Style: Non-linear Movements
*/

/* -------------------------------------------------- */
/* 1. CSS Variables & Global Styles
/* -------------------------------------------------- */

:root {
    --color-bg: #1a1a2e;
    --color-primary: #16213e;
    --color-secondary: #0f3460;
    --color-accent: #e94560;
    --color-accent-dark: #a12f42;
    --color-text: #dcdcdc;
    --color-text-muted: #8892b0;
    --color-heading: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition-funky: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

a {
    color: var(--color-accent);
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-heading);
}

.container {
    max-width: 1200px;
}

/* -------------------------------------------------- */
/* 2. Header & Navigation
/* -------------------------------------------------- */

header {
    transition: var(--transition-smooth);
}

header nav a {
    position: relative;
    padding-bottom: 5px;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

header nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

#mobile-menu {
    border-top: 1px solid var(--color-secondary);
}

/* -------------------------------------------------- */
/* 3. Reusable Components (Buttons, Cards, Forms)
/* -------------------------------------------------- */

/* Global Button Styles */
.btn-3d, button[type='submit'] {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-heading);
    background-color: var(--color-accent);
    border: none;
    border-bottom: 5px solid var(--color-accent-dark);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.2);
    cursor: pointer;
    transform: translateY(0);
    transition: var(--transition-funky);
}

.btn-3d:hover, button[type='submit']:hover {
    transform: translateY(-3px);
    border-bottom-width: 8px;
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.3);
}

.btn-3d:active, button[type='submit']:active {
    transform: translateY(2px);
    border-bottom-width: 3px;
    box-shadow: 0 2px 10px rgba(233, 69, 96, 0.2);
}


/* Form Input Styles */
.form-input-3d {
    background-color: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--color-secondary);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    color: var(--color-text);
}

.form-input-3d::placeholder {
    color: var(--color-text-muted);
}

.form-input-3d:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.3), inset 2px 2px 5px rgba(0, 0, 0, 0.3);
}


/* Card Styles */
.card {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card-3d {
    background-color: var(--color-primary);
    border: 1px solid var(--color-secondary);
    border-radius: 1rem;
    box-shadow: 5px 5px 0 0 var(--color-secondary);
    transition: var(--transition-funky);
    height: 100%; /* Ensure cards in a row are same height */
}

.card-3d:hover {
    transform: translateY(-10px) rotate(-1.5deg);
    box-shadow: 10px 10px 0 0 var(--color-accent);
}

.card-image {
    height: 224px; /* Fixed height for image container */
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-3d:hover .card-image img {
    transform: scale(1.1) rotate(2deg);
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content .font-bold.text-accent {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-block;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.card-content .font-bold.text-accent::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.card-content .font-bold.text-accent:hover::after {
    transform: translateX(5px);
}

/* -------------------------------------------------- */
/* 4. Section Styles
/* -------------------------------------------------- */

/* Hero Section */
#home {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

#home h1 {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

/* Parallax Background Utility */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Media Gallery */
#media img {
    box-shadow: 5px 5px 0 0 var(--color-secondary);
    transition: var(--transition-funky);
}

#media img:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 10px 10px 0 0 var(--color-accent);
}

/* Accolades Section */
#accolades .card-3d {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Pricing Section */
#pricing .card-3d {
    align-items: center;
}

#pricing ul {
    list-style: none;
    padding: 0;
}

#pricing ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

#pricing ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: contain;
}

#pricing ul li[class*="✓"]::before {
    content: '✓';
    color: var(--color-accent);
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

#pricing ul li[class*="-"]::before {
    content: '×';
    color: var(--color-text-muted);
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

/* -------------------------------------------------- */
/* 5. Footer
/* -------------------------------------------------- */

footer {
    border-top: 5px solid var(--color-secondary);
}

footer h4 {
    color: var(--color-heading);
}

footer a {
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--color-accent);
    text-shadow: 0 0 5px var(--color-accent);
}

footer .border-t {
    border-color: rgba(136, 146, 176, 0.2);
}

/* -------------------------------------------------- */
/* 6. Page-Specific Styles
/* -------------------------------------------------- */

/* For success.html */
.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background-color: var(--color-bg);
}
.success-page-container h1 {
    color: var(--color-heading);
    font-size: 3rem;
}
.success-page-container p {
    color: var(--color-text);
    margin: 1rem 0 2rem;
    font-size: 1.2rem;
}

/* For privacy.html & terms.html */
.static-page-content {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.static-page-content .container {
    max-width: 800px;
    background-color: var(--color-primary);
    padding: 2rem 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.static-page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.static-page-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 0.5rem;
}

.static-page-content p, .static-page-content li {
    color: var(--color-text);
    margin-bottom: 1rem;
}

.static-page-content ul {
    list-style-type: disc;
    padding-left: 2rem;
}