/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --alice-blue: #edf2fb;
    --lavender-1: #e2eafc;
    --lavender-2: #d7e3fc;
    --lavender-3: #ccdbfd;
    --periwinkle-1: #c1d3fe;
    --periwinkle-2: #b6ccfe;
    --baby-blue: #abc4ff;
    
    --primary: var(--baby-blue);
    --primary-dark: #8da9ff;
    --bg: var(--alice-blue);
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --error: #ff4d4d;
    --success: #00c853;
    
    --radius: 24px;
    --radius-sm: 12px;
    --container: 1100px;
    --shadow: 0 20px 40px -10px rgba(171, 196, 255, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Spacer for the fixed header */
main {
    flex: 1;
    padding-top: 60px; /* Increased space after navbar */
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
h1 { font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 800; margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* --- Header --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

.nav-capsule {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(171, 196, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 32px; width: auto; display: block; }

.nav-links { display: none; gap: 20px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 700; font-size: 0.9rem; }

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .nav-capsule { padding: 10px 24px; }
    .logo img { height: 36px; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    text-align: center;
}

@media (min-width: 640px) { .btn { width: auto; } }

.btn-primary { background: var(--primary); color: var(--text-main); box-shadow: var(--shadow); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary { background: var(--white); border: 2px solid var(--lavender-2); color: var(--text-main); }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; display: flex; }

/* --- Cards & Sections --- */
section { padding: 50px 0; }

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--lavender-2);
    margin-bottom: 24px;
    width: 100%;
}

@media (min-width: 768px) { .card { padding: 32px; } }

/* --- Hero --- */
.hero {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 0;
}

.hero-visual { position: relative; width: 100%; }
.hero-visual img { 
    width: 100%; 
    height: auto; 
    border-radius: var(--radius); 
    border: 6px solid white;
    box-shadow: var(--shadow);
}

@media (min-width: 1024px) {
    .hero { flex-direction: row; align-items: center; }
    .hero-content { flex: 1.2; }
    .hero-visual { flex: 1; }
}

/* --- Grids --- */
.grid { display: grid; gap: 24px; width: 100%; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

/* --- Forms --- */
.input-group { margin-bottom: 24px; }
.input-group label { display: block; font-weight: 700; margin-bottom: 10px; font-size: 0.95rem; }
input[type="text"], input[type="email"], input[type="password"], textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: 16px;
    border: 2px solid var(--lavender-2);
    font-family: inherit;
    font-size: 1rem;
    background: #fafbff;
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 440px;
    border-radius: 32px;
    padding: 32px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active { display: flex; }

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lavender-1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

/* --- Custom File Uploads --- */
.custom-file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafbff;
    border: 2px dashed var(--lavender-3);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.guest-saved-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--lavender-2);
}

.remove-guest-btn {
    background: #fff1f2;
    color: #f43f5e;
    border: none;
    width: 28px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
}

.custom-file-upload:hover {
    background: var(--lavender-1);
    border-color: var(--primary);
}

.custom-file-upload i { font-size: 1.5rem; margin-bottom: 8px; color: var(--primary-dark); }
.custom-file-upload span { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.custom-file-upload input { display: none; }

/* --- Collection Premium View --- */
.collection-hero {
    position: relative;
    height: 70vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    padding: 40px 24px;
    color: white;
    text-align: center;
}

.collection-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.collection-hero-content {
    position: relative;
    z-index: 2;
}

.collection-hero h1 {
    color: white;
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.upload-btn-lg {
    background: #4f6bc1; /* The blue from the screenshot */
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

.photos-count {
    margin-top: 16px;
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0.9;
}

.collection-gallery-container {
    background: white;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    margin-top: -32px;
    position: relative;
    z-index: 10;
    padding: 32px 16px;
    min-height: 40vh;
}

.grid-item-rounded {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #f8fafc;
}

/* --- Rejection/Alerts --- */
.rejection-msg { color: var(--error); font-size: 0.85rem; font-weight: 700; text-align: center; margin-bottom: 12px; opacity: 0; }
.rejection-msg.active { opacity: 1; }

.alert { padding: 16px; border-radius: 16px; font-weight: 700; margin-bottom: 24px; }
.alert-success { background: #e8f5e9; color: #2e7d32; }
.alert-error { background: #ffebee; color: #c62828; }

/* --- Footer --- */
footer {
    background: var(--white);
    padding: 60px 0 40px;
    border-top: 2px solid var(--lavender-1);
}

.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-links h4 { margin-bottom: 20px; font-size: 0.9rem; text-transform: uppercase; color: var(--text-main); }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; }

/* --- Steps Journey --- */
.steps-journey {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.step-point {
    display: flex;
    gap: 32px;
}

.step-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-circle {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-main);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.step-line {
    width: 4px;
    background: var(--lavender-2);
    flex: 1;
    margin-top: 12px;
    border-radius: 100px;
}

.step-content {
    padding-bottom: 20px;
}

.step-content h3 { font-size: 1.5rem; margin-bottom: 8px; }
.step-content p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.5; }

@media (min-width: 1024px) {
    .steps-journey {
        flex-direction: row;
        align-items: flex-start;
        max-width: none;
    }
    
    .step-point {
        flex: 1;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .step-visual {
        flex-direction: row;
        width: 100%;
        align-items: center;
    }
    
    .step-line {
        height: 4px;
        width: 100%;
        margin-top: 0;
        margin-left: 12px;
    }
}

/* --- Use Case Grid --- */
.use-case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .use-case-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .use-case-grid { grid-template-columns: repeat(3, 1fr); }
}

.use-case-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius);
    display: flex;
    gap: 20px;
    border: 1px solid var(--lavender-2);
    transition: transform 0.2s;
}

.use-case-card:hover { transform: translateY(-5px); }

.use-case-icon {
    width: 60px;
    height: 60px;
    background: var(--lavender-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.use-case-content h3 { font-size: 1.15rem; margin-bottom: 4px; }
.use-case-content p { font-size: 0.9rem; margin-bottom: 12px; }
.use-case-content a { color: var(--primary-dark); font-weight: 800; text-decoration: none; font-size: 0.85rem; }

/* --- Animations --- */
@keyframes dot-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.5); opacity: 1; }
}

.dot-pulse {
    width: 12px;
    height: 12px;
    background: var(--primary-dark);
    border-radius: 50%;
    animation: dot-pulse 1s infinite ease-in-out;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
}

@keyframes blue-pulse {
    0% { filter: drop-shadow(0 10px 20px rgba(171, 196, 255, 0.4)); }
    50% { filter: drop-shadow(0 20px 50px rgba(171, 196, 255, 0.8)); }
    100% { filter: drop-shadow(0 10px 20px rgba(171, 196, 255, 0.4)); }
}
.pulse-shadow { animation: blue-pulse 4s infinite ease-in-out; }

/* Utilities */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
