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

:root {
    --bg: #faf8f5;
    --bg-white: #ffffff;
    --text: #1a1a2e;
    --text-light: #6b6b7b;
    --accent: #b83240;
    --accent-light: #f0d4d8;
    --accent-warm: #c9956b;
    --navy: #2c3e6b;
    --navy-light: #e8ecf4;
    --gold: #c9a96e;
    --gold-light: #f5ead6;
    --border: #e8e5e0;
    --shadow: 0 8px 32px rgba(26,26,46,0.08);
    --shadow-lg: 0 16px 48px rgba(26,26,46,0.12);
    --radius: 16px;
    --max-w: 1200px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(250,248,245,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.header.scrolled {
    box-shadow: var(--shadow);
    border-bottom-color: var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
    font-size: 15px;
    color: var(--text-light);
    transition: color 0.2s;
    position: relative;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a:hover, .nav a.active { color: var(--accent); }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(250,248,245,0.3) 0%, rgba(250,248,245,0.7) 50%, rgba(250,248,245,0.95) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: var(--max-w);
    width: 100%;
}

.hero-photo-wrapper {
    flex-shrink: 0;
}

.hero-polaroid {
    position: relative;
    animation: polaroidFloat 4s ease-in-out infinite;
}

.hero-polaroid-frame {
    width: 340px;
    height: 420px;
    background: white;
    padding: 16px 16px 56px 16px;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(26,26,46,0.15), 0 4px 16px rgba(26,26,46,0.08);
    transform: rotate(-3deg);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-polaroid-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-polaroid-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.hero-polaroid-shadow {
    position: absolute;
    bottom: -12px;
    left: 20px;
    right: 20px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(26,26,46,0.12) 0%, transparent 70%);
    filter: blur(8px);
}

@keyframes polaroidFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-content { flex: 1; }

.hero-name {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 0%, var(--navy) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-desc {
    max-width: 480px;
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.hero-scroll svg { width: 28px; height: 28px; stroke: var(--accent); }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Hero entrance animations */
.anim-photo-left {
    opacity: 0;
    transform: translateX(-60px);
    animation: photoSlideIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.anim-text {
    opacity: 0;
    transform: translateY(40px);
    animation: textFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-text:nth-child(1) { animation-delay: 0.3s; }
.anim-text:nth-child(2) { animation-delay: 0.45s; }
.anim-text:nth-child(3) { animation-delay: 0.6s; }
.anim-text:nth-child(4) { animation-delay: 0.75s; }

@keyframes photoSlideIn {
    to { opacity: 1; transform: translateX(0); }
}

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

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 48px;
    max-width: 500px;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--accent-light);
}

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

.about-image-placeholder {
    font-size: 80px;
    color: var(--accent);
}

.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; font-size: 16px; line-height: 1.8; }

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 36px 32px;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

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

.service-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.service-card .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.service-card-featured {
    border-color: var(--accent);
    border-width: 2px;
    background: linear-gradient(135deg, var(--bg-white) 0%, #fff5f5 100%);
}

.service-addon {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}

.service-addon-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.service-addon-price {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin-left: 8px;
}

.service-addon p {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-light);
}

/* ===== PORTFOLIO PREVIEW ===== */
.portfolio-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.portfolio-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer;
    background: var(--accent-light);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-item:hover img { transform: scale(1.08); }

.portfolio-item-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 20px;
    background: linear-gradient(transparent, rgba(26,26,46,0.8));
    color: white;
    opacity: 0;
    transition: opacity 0.4s;
}

.portfolio-item:hover .portfolio-item-overlay { opacity: 1; }

.portfolio-item-overlay h4 { font-size: 16px; margin-bottom: 4px; }
.portfolio-item-overlay span { font-size: 13px; opacity: 0.8; }

.text-center { text-align: center; }

.btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--accent) 0%, #d44050 100%);
    color: white;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(184,50,64,0.3);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,50,64,0.4); }

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: none;
}

.btn-outline:hover { background: var(--accent); color: white; box-shadow: 0 8px 24px rgba(184,50,64,0.4); }

/* ===== CONTACT FORM ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h3 { font-size: 24px; margin-bottom: 20px; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-item-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--gold-light) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg { width: 22px; height: 22px; stroke: var(--accent); }

.contact-item-text span { display: block; font-size: 13px; color: var(--text-light); }
.contact-item-text a, .contact-item-text strong { font-size: 15px; }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-white);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184,50,64,0.1);
}

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

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.footer-links a {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ===== PORTFOLIO PAGE ===== */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--bg-white);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

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

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent) 0%, #d44050 100%);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(184,50,64,0.25);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.portfolio-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.portfolio-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--accent-light);
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-card:hover .portfolio-card-image img { transform: scale(1.05); }

.portfolio-card-info { padding: 20px; }
.portfolio-card-info h3 { font-size: 17px; margin-bottom: 6px; }
.portfolio-card-info span { font-size: 13px; color: var(--text-light); }

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.1); }

.lightbox-info {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
}

.lightbox-info h3 { font-size: 20px; margin-bottom: 4px; }
.lightbox-info span { font-size: 14px; opacity: 0.7; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-light);
}

.empty-state svg { width: 64px; height: 64px; stroke: var(--border); margin-bottom: 16px; }

/* ===== ADMIN ===== */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 260px;
    background: var(--text);
    color: white;
    padding: 32px 0;
    flex-shrink: 0;
}

.admin-sidebar-logo {
    padding: 0 24px 32px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-nav { padding: 16px 0; }

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    transition: all 0.2s;
}

.admin-sidebar-nav a:hover { color: white; background: rgba(255,255,255,0.05); }
.admin-sidebar-nav a.active { color: white; background: rgba(255,255,255,0.1); }

.admin-sidebar-nav a svg { width: 20px; height: 20px; }

.admin-main {
    flex: 1;
    padding: 32px 40px;
    background: var(--bg);
    overflow-y: auto;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.admin-header h1 { font-size: 28px; font-weight: 700; }

.admin-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 32px;
    margin-bottom: 24px;
}

.admin-card h2 { font-size: 20px; margin-bottom: 20px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
}

.stat-card .number { font-size: 36px; font-weight: 700; color: var(--accent); }
.stat-card .label { font-size: 14px; color: var(--text-light); margin-top: 4px; }

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.admin-table tr:hover { background: var(--bg); }

.admin-table .thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--accent-light);
}

.admin-actions { display: flex; gap: 8px; }

.admin-actions a, .admin-actions button {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.btn-edit { background: var(--accent-light); color: var(--text); }
.btn-edit:hover { background: var(--accent); color: white; }

.btn-delete { background: #ffebee; color: #c62828; }
.btn-delete:hover { background: #c62828; color: white; }

.btn-view { background: #e3f2fd; color: #1565c0; }
.btn-view:hover { background: #1565c0; color: white; }

/* Admin Form */
.admin-form { max-width: 600px; }

.admin-form .form-group { margin-bottom: 24px; }

.admin-form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-white);
}

.admin-form .file-upload {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.admin-form .file-upload:hover { border-color: var(--accent); }
.admin-form .file-upload.dragover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }

.admin-form .file-upload input { display: none; }

.admin-form .file-upload p { color: var(--text-light); font-size: 14px; }

.admin-form .preview-image {
    max-width: 300px;
    border-radius: 8px;
    margin-top: 12px;
}

/* Flash messages */
.flash {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.flash-success { background: #e8f5e9; color: #2e7d32; }
.flash-error { background: #ffebee; color: #c62828; }

/* Login page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
}

.login-box {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
}

.login-box h1 { font-size: 24px; text-align: center; margin-bottom: 8px; }
.login-box .subtitle { text-align: center; color: var(--text-light); margin-bottom: 32px; }

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.services-grid .service-card:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.3s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.4s; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .nav.open { display: flex; }
    .burger { display: block; }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-polaroid-frame {
        width: 260px;
        height: 320px;
        padding: 12px 12px 44px 12px;
    }

    .hero-desc { margin-left: auto; margin-right: auto; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .portfolio-preview-grid { grid-template-columns: 1fr 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }

    .admin-sidebar { display: none; }
    .admin-main { padding: 24px 16px; }

    .section { padding: 60px 0; }
}
