:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-primary: #2563EB; /* Vibrant Blue */
    --color-secondary: #000000;
    --color-accent: #A3E635; /* Lime Green */
    --color-surface: #f8f9fa;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-width: 2px;
    --shadow-hard: 5px 5px 0px #000;
    --shadow-hover: 8px 8px 0px #000;
    --radius-pill: 50rem;
    --radius-card: 1rem;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
}

/* Utilities */
.text-primary { color: var(--color-primary) !important; }
.bg-black { background-color: #000 !important; }
.text-white { color: #fff !important; }
.shadow-hard { box-shadow: var(--shadow-hard); }
.border-2-black { border: var(--border-width) solid #000; }
.py-section { padding-top: 5rem; padding-bottom: 5rem; }

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: var(--border-width) solid transparent;
    transition: all 0.3s;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar.scrolled {
    border-bottom-color: #000;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    margin-left: 1rem;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

/* Buttons */
.btn {
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    border: var(--border-width) solid #000;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: var(--shadow-hard);
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-hover);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 #000;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: #000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #000;
    color: #fff;
}

.btn-outline-dark {
    background-color: #fff;
    color: #000;
}

.btn-cta {
    background-color: var(--color-accent);
    color: #000;
}

.btn-cta:hover {
    background-color: #8cc629;
    color: #000;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 80px;
}

.background-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 1;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent), transparent);
}

.blob-2 {
    bottom: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-primary), transparent);
}

.highlight-text {
    background: linear-gradient(120deg, transparent 0%, transparent 40%, var(--color-accent) 40%, var(--color-accent) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 88%;
    padding: 0 5px;
}

.dot { color: var(--color-primary); }

.badge-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid #000;
    border-radius: 50px;
    font-weight: 700;
    background: #fff;
    box-shadow: 4px 4px 0 #000;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

/* Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

.rotate-divider {
    transform: rotate(-2deg) scale(1.05);
    z-index: 10;
    position: relative;
    margin-top: -50px;
    margin-bottom: 30px;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Portfolio Cards */
.project-card {
    border: 2px solid #000;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-hard);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 8px 8px 0 #000;
}

.card-img-holder {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #000;
    position: relative;
    font-size: 4rem;
}

.placeholder-art {
    transition: transform 0.3s ease;
}

.project-card:hover .placeholder-art {
    transform: scale(1.2) rotate(10deg);
}

.bg-soft-blue { background-color: #e0f2fe; }
.bg-soft-green { background-color: #dcfce7; }
.bg-soft-purple { background-color: #f3e8ff; }
.bg-soft-yellow { background-color: #fef9c3; }

.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #000;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.card-body { padding: 1.5rem; }

.link-arrow {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.link-arrow i { transition: transform 0.2s; margin-left: 5px; }
.link-arrow:hover i { transform: translateX(5px); }

/* About */
.about-image-stack {
    position: relative;
    height: 400px;
    width: 100%;
}

.stack-card {
    position: absolute;
    width: 80%;
    height: 100%;
    border-radius: var(--radius-card);
    border: 2px solid #000;
    box-shadow: var(--shadow-hard);
    left: 10%;
    transform: rotate(-3deg);
    background-size: cover;
}

/* Forms */
.form-control {
    border: 2px solid #000;
    border-radius: 0.5rem;
    padding: 1rem;
    font-weight: 500;
    background: #f8f9fa;
}

.form-control:focus {
    box-shadow: 4px 4px 0 var(--color-primary);
    border-color: #000;
    background: #fff;
}

.modal form[action="checkout.php"] .form-label {
    margin-bottom: 0.45rem;
    color: #0f172a !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
}

.modal form[action="checkout.php"] .form-control:not(.donation-amount-input),
.modal form[action="checkout.php"] .form-select {
    min-height: 48px;
    border: 1.5px solid #94a3b8;
    border-radius: 10px;
    background-color: #fff;
    color: #0f172a;
    font-weight: 600;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.modal form[action="checkout.php"] textarea.form-control {
    min-height: 88px;
}

.modal form[action="checkout.php"] .form-control:not(.donation-amount-input)::placeholder {
    color: #94a3b8;
    font-weight: 500;
    opacity: 1;
}

.modal form[action="checkout.php"] .form-control:not(.donation-amount-input):focus,
.modal form[action="checkout.php"] .form-select:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
    background-color: #fff;
}

.modal form[action="checkout.php"] .form-text {
    color: #475569;
    font-weight: 600;
}

.modal form[action="checkout.php"] .donation-amount-group {
    border-color: #94a3b8;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.modal form[action="checkout.php"] .donation-amount-group:focus-within {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
}

.modal form[action="checkout.php"] .payment-method-options {
    display: grid;
    gap: 0.65rem;
}

.modal form[action="checkout.php"] .payment-method-option {
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    padding: 0.85rem;
}

.modal form[action="checkout.php"] .payment-method-option:focus-within,
.modal form[action="checkout.php"] .payment-method-option:has(.form-check-input:checked) {
    border-color: #059669;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.amount-preset-buttons {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0 0.75rem 0.45rem;
    overflow: visible;
}

.amount-preset-buttons .btn {
    min-width: 0;
    width: 100%;
    margin: 0 !important;
    padding: 0.6rem 0.35rem;
    white-space: nowrap;
}

.donation-amount-group {
    direction: ltr;
    flex-wrap: nowrap;
    align-items: stretch;
    min-height: 56px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
}

.donation-amount-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
}

.donation-amount-group .donation-amount-input {
    min-width: 0;
    height: auto;
    min-height: 54px;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0.8rem 1rem !important;
    background: #fff;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    direction: ltr;
    box-shadow: none !important;
}

.donation-amount-group .donation-amount-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.donation-amount-group .donation-amount-currency {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    border: 0 !important;
    border-left: 1px solid #e5e7eb !important;
    border-radius: 0 !important;
    padding: 0 0.9rem;
    background: #fff;
    color: #111827;
    font-weight: 700;
}

.donation-amount-input::-webkit-outer-spin-button,
.donation-amount-input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.donation-amount-input[type="number"] {
    -moz-appearance: textfield;
}

.payment-method-option {
    min-width: 0;
    align-items: flex-start;
}

.payment-method-option .form-check-input {
    flex: 0 0 auto;
}

.payment-method-option-body {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.payment-method-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 800;
    color: #111827;
}

.payment-method-title i {
    color: var(--primary-color);
    font-size: 1.05rem;
    line-height: 1;
}

.payment-method-option small {
    color: #6b7280;
    line-height: 1.45;
}

/* Gift occasion choices */
.occasion-choice-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
}

.occasion-choice {
    min-height: 58px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 900;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.24rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.occasion-choice i {
    font-size: 1rem;
}

.occasion-choice:hover,
.occasion-choice:focus,
.occasion-choice.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.11);
    color: var(--primary-color);
    outline: none;
}

/* Gift card template picker */
.gift-template-field {
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #fff;
    padding: 0.85rem;
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 0.8rem;
    align-items: center;
}

.gift-template-thumb,
.gift-template-preview {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #ecfdf5;
    isolation: isolate;
}

.gift-template-thumb {
    width: 92px;
    aspect-ratio: 4 / 3;
}

.gift-template-thumb::before,
.gift-template-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(135deg, var(--gift-card-a, #047857), var(--gift-card-b, #d1fae5));
}

.gift-template-thumb::after,
.gift-template-preview::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 34%;
    z-index: -1;
    background: rgba(255,255,255,0.74);
    clip-path: polygon(0 36%, 100% 0, 100% 100%, 0 100%);
}

.gift-template-thumb i,
.gift-template-preview i {
    position: absolute;
    top: 0.7rem;
    inset-inline-start: 0.7rem;
    color: rgba(255,255,255,0.96);
}

.gift-template-thumb-title,
.gift-template-preview-title {
    position: absolute;
    inset-inline: 0.7rem;
    bottom: 0.55rem;
    color: var(--gift-card-text, #053b2f);
    font-weight: 900;
    line-height: 1.2;
}

.gift-template-thumb-title {
    font-size: 0.72rem;
}

.gift-template-copy {
    min-width: 0;
}

.gift-template-label {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
}

.gift-template-name {
    display: block;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
}

.gift-template-hint {
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.5;
}

.gift-template-open-btn {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    padding: 0.45rem 0.8rem;
    font-weight: 900;
}

.gift-template-open-btn:hover,
.gift-template-open-btn:focus {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.gift-template-picker {
    position: fixed;
    inset: 0;
    z-index: 1095;
    padding: clamp(1rem, 3vw, 2rem);
    background: rgba(15, 23, 42, 0.54);
    overflow-y: auto;
}

.gift-template-picker-dialog {
    overflow: visible;
    width: min(100%, 980px);
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
    border: 1px solid #e2e8f0;
}

.gift-template-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.gift-template-picker-title {
    margin: 0;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 900;
}

.gift-template-picker-subtitle {
    margin: 0.25rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.gift-template-close {
    width: 40px;
    height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gift-template-grid {
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    padding: 1rem;
}

.gift-template-option {
    position: relative;
    z-index: 1;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #fff;
    padding: 0.75rem;
    text-align: inherit;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.gift-template-option:hover,
.gift-template-option:focus {
    z-index: 40;
    border-color: var(--primary-color);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
    outline: none;
}

.gift-template-option.is-selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.13);
}

.gift-template-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
}

.gift-template-preview-title {
    font-size: 1rem;
}

.gift-template-option-name {
    display: block;
    margin-top: 0.65rem;
    color: #0f172a;
    font-weight: 900;
}

.gift-template-option-subtitle {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.83rem;
    line-height: 1.5;
}

.gift-template-hover-preview {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 60;
    width: min(430px, calc(100vw - 56px));
    padding: 0.45rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(15, 23, 42, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.94);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.gift-template-hover-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    background: #eef2f7;
}

.gift-template-option:hover .gift-template-hover-preview {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.gift-card-template-emerald { --gift-card-a: #047857; --gift-card-b: #a7f3d0; --gift-card-text: #053b2f; }
.gift-card-template-gold { --gift-card-a: #92400e; --gift-card-b: #fde68a; --gift-card-text: #3f2308; }
.gift-card-template-blue { --gift-card-a: #1d4ed8; --gift-card-b: #bfdbfe; --gift-card-text: #102a56; }
.gift-card-template-rose { --gift-card-a: #be185d; --gift-card-b: #fecdd3; --gift-card-text: #5f1236; }
.gift-card-template-teal { --gift-card-a: #0f766e; --gift-card-b: #99f6e4; --gift-card-text: #073b36; }
.gift-card-template-sky { --gift-card-a: #0369a1; --gift-card-b: #bae6fd; --gift-card-text: #0c344a; }

@media (max-width: 767px) {
    .occasion-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gift-template-field {
        grid-template-columns: 76px 1fr;
    }

    .gift-template-thumb {
        width: 76px;
    }

    .gift-template-open-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .gift-template-grid {
        grid-template-columns: 1fr;
    }

    .gift-template-preview {
        display: none;
    }

    .gift-template-hover-preview {
        position: static;
        display: block;
        width: 100%;
        margin-bottom: 0.65rem;
        padding: 0;
        border-radius: 10px;
        box-shadow: none;
        border: 1px solid rgba(15, 23, 42, 0.1);
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }

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

/* Social */
.social-links a {
    transition: transform 0.2s;
    display: inline-block;
}
.social-links a:hover {
    transform: scale(1.2) rotate(10deg);
    color: var(--color-accent) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .rotate-divider {
        transform: rotate(0);
        margin-top: 0;
        margin-bottom: 2rem;
    }
    
    .hero-section {
        padding-top: 120px;
        text-align: center;
        min-height: auto;
        padding-bottom: 100px;
    }
    
    .display-1 { font-size: 3.5rem; }
    
    .blob-1 { width: 300px; height: 300px; right: -20%; }
    .blob-2 { width: 300px; height: 300px; left: -20%; }
}
