:root {
    --primary-red: #ff4d4d; /* Softer red */
    --primary-red-hover: #ff6666; /* Lighter red for hover states */
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --border-radius: 15px;
}

/* Custom scrollbar for the entire page */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-red-hover) var(--dark-bg);
}

/* Webkit browsers custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
    background-color: var(--dark-bg);
}

::-webkit-scrollbar-track {
    background-color: var(--dark-bg);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red-hover);
    border-radius: 20px;
    border: 3px solid var(--dark-bg);
    background-clip: padding-box;
    min-height: 50px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
    border: 3px solid var(--dark-bg);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Accounts for fixed header */
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111;
    z-index: 9999;
    transition: transform 1.5s cubic-bezier(0.7, 0, 0.3, 1);
}

#loading-overlay.hide {
    transform: translateY(-100%);
}

.ghost-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ghost {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0;
    animation: floatGhost 2s ease-out forwards;
}

@media screen and (max-width: 768px) {
    .ghost {
        width: 80px;
        height: 80px;
        right: auto; /* Ensure right positioning is reset */
    }

    /* Hide some ghosts on mobile */
    .ghost:nth-child(2),
    .ghost:nth-child(4),
    .ghost:nth-child(6),
    .ghost:nth-child(8),
    .ghost:nth-child(9) {
        display: none;
    }

    /* Readjust positions for remaining ghosts */
    .ghost:nth-child(1) { left: 5%; }
    .ghost:nth-child(3) { left: 35%; }
    .ghost:nth-child(5) { left: 65%; }
    .ghost:nth-child(7) { left: 85%; }

    @keyframes floatGhost {
        0% {
            bottom: -20%;
            opacity: 0;
            transform: scale(0.5) translateX(0);
        }
        50% {
            opacity: 0.7;
            transform: scale(1) translateX(0);
        }
        100% {
            bottom: 120%;
            opacity: 0;
            transform: scale(0.5) translateX(0);
        }
    }
}

.ghost-body {
    fill: white;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.ghost-eye {
    fill: var(--dark-bg);
}

.ghost:nth-child(1) { left: 5%; animation-delay: 0.2s; }
.ghost:nth-child(2) { left: 20%; animation-delay: 0.4s; }
.ghost:nth-child(3) { left: 35%; animation-delay: 0.1s; }
.ghost:nth-child(4) { left: 50%; animation-delay: 0.3s; }
.ghost:nth-child(5) { left: 65%; animation-delay: 0.5s; }
.ghost:nth-child(6) { left: 80%; animation-delay: 0.2s; }
.ghost:nth-child(7) { left: 95%; animation-delay: 0.4s; }
.ghost:nth-child(8) { left: 15%; animation-delay: 0.6s; }
.ghost:nth-child(9) { left: 75%; animation-delay: 0.3s; }

@keyframes floatGhost {
    0% {
        bottom: -20%;
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        bottom: 120%;
        opacity: 0;
        transform: scale(0.5);
    }
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--dark-bg);
    color: white;
    overflow-x: hidden; /* Prevent horizontal scroll from AOS animations */
}

[data-aos="zoom-out-up"] {
    transform: scale(1.1) translateY(50px); /* Reduced scale and translation */
    opacity: 0;
    transition-property: transform, opacity;
    transform-origin: center center;
    backface-visibility: hidden; /* Prevent flickering */
    perspective: 1000px; /* Help with performance */
    will-change: transform, opacity; /* Optimize for animation */
}

[data-aos="zoom-out-up"].aos-animate {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Add overflow control to sections with AOS */
section[data-aos] {
    overflow: hidden;
    max-width: 100vw;
}

nav {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem; /* Increased horizontal padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 2rem; /* Use gap instead of margin for consistent spacing */
}

.nav-links a {
    color: white;
    text-decoration: none;
    white-space: nowrap; /* Prevent text wrapping */
}

@media screen and (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .mobile-menu-button {
        margin-right: 1rem; /* Add space from the edge */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--card-bg);
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-button span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .mobile-menu-button {
        display: flex;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 0;
        font-size: 1.2rem;
    }

    /* Hamburger animation */
    .mobile-menu-button.active span:first-child {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-button.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-button.active span:last-child {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

.nav-links a:hover {
    color: var(--primary-red);
}

section {
    padding: 4rem 2rem;
    min-height: 80vh; /* Change to auto for the last section */
}

section:last-of-type {
    min-height: auto;
    padding-bottom: 4rem;
}

#work {
    overflow: hidden; /* Contain expanded folders */
    position: relative;
    z-index: 1;
}

.work-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 600px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.folder-menu {
    width: 250px;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-icon {
    width: 24px;
    height: 24px;
    fill: white;
}

.folder-list {
    padding: 1rem;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.folder-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.folder-item.active {
    background: var(--primary-red);
}

.folder-icon {
    width: 24px;
    height: 24px;
    fill: white;
}

.item-count {
    margin-left: auto;
    opacity: 0.7;
}

.gallery-container {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    max-height: 800px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: zoom-in; /* Change cursor to indicate zoomable */
    filter: brightness(1);
}

.gallery-grid img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

@media screen and (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-container {
        max-height: 600px;
    }
}

.folder-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.folder-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media screen and (max-width: 768px) {
    .work-container {
        flex-direction: column;
    }

    .folder-menu {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-toggle {
        display: block;
    }

    .folder-list {
        display: none;
        padding: 0;
    }

    .folder-list.active {
        display: block;
    }
}

section h2 {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(
        90deg,
        var(--primary-red) 0%,
        #ffffff 50%,
        var(--primary-red) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@media screen and (max-width: 768px) {
    section h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
}

#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
}

.hero-logo {
    width: 300px;
    height: auto;
    margin-bottom: 0rem;
    filter: invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from {
        filter: invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    to {
        filter: invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
    }
}

.hero-content h1 {
    font-size: 6vw;
    margin: 0;
    letter-spacing: 0.2em;
    font-weight: 800;
    color: var(--primary-red);
}

.hero-content h2 {
    font-size: 6vw;
    margin: 0;
    letter-spacing: 0.3em;
    color: white;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-top: 2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 2px solid var(--primary-red);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.02);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.price-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 26, 26, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
}

.price-note {
    font-size: 0.8rem;
    opacity: 0.7;
    font-style: italic;
    margin-top: 1rem;
}

.price-notice {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background-color: rgba(255, 26, 26, 0.1);
    border-radius: var(--border-radius);
}

.price-notice p {
    margin: 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.pricing-section {
    margin-top: 4rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-red);
}

.price-card.featured {
    border: 2px solid var(--primary-red);
    transform: scale(1.02);
}

.price-card .add-ons {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-card .add-ons h4 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.price-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-list li:last-child {
    border-bottom: none;
}

.note {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.7;
    margin-top: 1rem;
}

@media screen and (max-width: 768px) {
    .pricing-section {
        margin-top: 3rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.contact-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.contact-card a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Light persistent underline */
    padding-bottom: 2px;
}

.contact-card a:hover {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

/* Remove the previous after pseudo-element animation */
.contact-card a::after {
    display: none;
}

@media screen and (max-width: 768px) {
    .contact-card a {
        border-bottom-color: var(--primary-red); /* More visible on mobile */
        opacity: 0.9;
    }
    
    .contact-card a:active {
        opacity: 1;
        transform: scale(0.98);
    }
}

contact-card i {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    padding: 0.8rem;
    background-color: black;
    border: 1px solid var(--primary-red);
    color: white;
}

button {
    padding: 1rem 2rem;
    background-color: var(--primary-red);
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: darkred;
}

.form-group select[multiple] {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--primary-red);
    border-radius: var(--border-radius);
    color: white;
    font-size: 0.95rem; /* Slightly smaller text */
    max-height: 300px; /* Limit height */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-red-hover) rgba(0, 0, 0, 0.2);
}

/* For Webkit browsers (Chrome, Safari, etc.) */
.form-group select[multiple]::-webkit-scrollbar {
    width: 8px;
}

.form-group select[multiple]::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
}

.form-group select[multiple]::-webkit-scrollbar-thumb {
    background: var(--primary-red-hover);
    border-radius: var(--border-radius);
    background-clip: padding-box;
    min-height: 40px;
    transition: background 0.3s ease;
    border: 2px solid var(--card-bg);
}

.form-group select[multiple]::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red);
}

.form-group select[multiple] option {
    padding: 0.5rem;
    background: var(--card-bg);
}

.form-group select[multiple] option:checked {
    background: var(--primary-red);
    color: white;
}

.form-group select[multiple] optgroup {
    color: var(--primary-red-hover);
    font-weight: bold;
    padding: 0.5rem;
}

.select-hint {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    text-align: right;
}

.folders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 380px;
    transition: min-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Adjust min-height when folder is active to prevent section movement */
.folders:has(.folder.active) {
    min-height: 700px;
}

.folder {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transform-origin: center;
    height: auto;
    will-change: transform, opacity, grid-row-start, grid-row-end;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.folder:not(.active) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.folder.active {
    grid-column: 1 / -1;
    position: relative;
}

.folder.active ~ .folder {
    opacity: 0;
    transform: translateY(20px);
    transition-delay: 0s;
}

.folder.active ~ .folder:nth-child(2) { transition-delay: 0.1s; }
.folder.active ~ .folder:nth-child(3) { transition-delay: 0.15s; }
.folder.active ~ .folder:nth-child(4) { transition-delay: 0.2s; }

.folder-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 0;
    line-height: 0; /* Fix elongated outline */
}

.folder-close:hover {
    background: var(--primary-red);
    transform: scale(1.1);
}

.folder-header {
    cursor: pointer;
    position: relative;
    width: 100%;
    padding-top: 100%; /* Create square aspect ratio */
}

.folder-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.folder-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.folder-content {
    display: none;
    width: 100%;
}

.folder-expanded {
    display: none;
}

.folder.active {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.folder.active .folder-header {
    display: none;
}

.folder.active .folder-expanded {
    display: block;
    width: 100%;
}

.folder.active .folder-content {
    display: block;
    padding: 1rem;
}

.folder.active .folder-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.folder.active .folder-info h3 {
    font-size: 2rem;
    margin: 0;
}

.folder.active .folder-info h3:after {
    content: "|";
    margin-left: 0.5rem;
    opacity: 0.5;
}

.folder.active .item-count {
    font-size: 2rem;
    opacity: 0.7;
}

.folder-top {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.folder-top img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.folder-top .folder-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.folder-top h3 {
    font-size: 2rem;
    margin: 0;
}

.folder-top h3:after {
    content: "|";
    margin-left: 1rem;
    opacity: 0.5;
}

.folder-top .item-count {
    font-size: 2rem;
    opacity: 0.7;
}

@media screen and (max-width: 768px) {
    .folder.active {
        padding: 2rem 1rem 1rem;
    }

    .folder.active .folder-top {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 3rem; /* Increased space for scroll hint */
    }

    .folder.active .folder-top img {
        display: none;
    }

    .folder-close {
        top: -0.5rem;
        right: 0;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border: 2px solid var(--primary-red);
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.3);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.pricing-calculator {
    max-width: 600px; /* Reduced from 800px */
    margin: 0 auto;
    padding: 1.5rem; /* Reduced from 2rem */
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.calculator-section {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-red);
    border-radius: var(--border-radius);
    color: white;
    font-size: 1rem;
}

.checkbox {
    display: block;
    padding: 0.5rem 0;
    cursor: pointer;
}

.checkbox input {
    margin-right: 0.5rem;
}

.add-ons {
    padding: 1rem;
    background: rgba(255, 26, 26, 0.1);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.add-ons.show {
    transform: translateY(0);
    opacity: 1;
}

.add-ons.hidden {
    display: none;
}

.price-summary {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.total-price {
    font-size: 2.2rem; /* Slightly smaller */
    color: var(--primary-red-hover);
    margin: 1rem 0;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.3); /* Subtle glow */
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.item-category {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.item-category h4 {
    color: var(--primary-red);
    margin-top: 0;
    margin-bottom: 1rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px; /* Limit line length for better readability */
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-align: center; /* Ensure paragraphs are centered */
}

.about-text .social-message {
    color: var(--primary-red);
    font-size: 1em;
    margin-top: 1rem;
    display: inline-block;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
    transition: all 0.3s ease;
}

.about-text .social-message:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 15px rgba(255, 77, 77, 0.5);
}

.about-text .credit {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: 0rem;
}

.about-text .credit a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.about-text .credit a:hover {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

@media screen and (max-width: 768px) {
    .about-content,
    .practices-content {
        padding: 1rem;
    }
    
    .practices-list {
        padding: 1.5rem;
    }

    .practices-list p {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    .practices-content h3 {
        font-size: 1.1rem;
    }

    .signature {
        font-size: 1rem;
    }
}

.practices-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.practices-content h3 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--primary-red);
}

.practices-list {
    text-align: left;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.practices-list p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.signature {
    font-size: 1.2rem;
    color: var(--primary-red);
    margin-top: 2rem;
}

@media screen and (max-width: 768px) {
    .about-content,
    .practices-content {
        padding: 1rem;
    }
    
    .practices-list {
        padding: 1.5rem;
    }

    .practices-list p {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }

    .practices-content h3 {
        font-size: 1.1rem;
    }

    .signature {
        font-size: 1rem;
    }
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.practice-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.practice-card i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.practice-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.practice-card p {
    opacity: 0.8;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat {
        padding: 1rem;
    }

    .stat h3 {
        font-size: 2rem;
    }
}

#username {
    border-radius: 1.5em;
}

#submit-pricing {
    border-radius: 1.5em;
    transition: transform 0.15s cubic-bezier(0.4,0,0.2,1), box-shadow 0.15s cubic-bezier(0.4,0,0.2,1);
    padding: 0.75em 2em;
    font-size: 1.1em;
    cursor: pointer;
}

#submit-pricing:hover:not(:disabled) {
    transform: scale(1.07);
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

#submit-pricing:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.notify-box {
    position: fixed;
    left: 0; right: 0;
    top: 0; bottom: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1);
}
.notify-box.show {
    opacity: 1;
    pointer-events: auto;
}
.notify-content {
    background: #202020;
    border-radius: 1.2em;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 2em 2.5em;
    min-width: 320px;
    max-width: 90vw;
    text-align: center;
    animation: fadeUp 0.3s cubic-bezier(0.4,0,0.2,1);
}
@keyframes fadeUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.notify-content button {
    margin: 1.2em 0.5em 0 0.5em;
    padding: 0.6em 2em;
    border-radius: 1em;
    border: none;
    background: #222;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.15s;
}
.notify-content button:hover {
    background: #444;
}
