/* Custom styles for Pack 'N' Mail */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Geometric shapes */
.geo-shape {
    position: absolute;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.shape-circle-1 {
    top: 15%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #b82847, #e96e8e);
    border-radius: 50%;
    animation-delay: 0s;
}

.shape-circle-2 {
    top: 60%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff8ba2, #ff5c7a);
    border-radius: 50%;
    animation-delay: -2s;
}

.shape-square-1 {
    top: 25%;
    left: 8%;
    width: 60px;
    height: 60px;
    background: #971e3a;
    border-radius: 12px;
    transform: rotate(45deg);
    animation-delay: -4s;
}

.shape-triangle-1 {
    bottom: 20%;
    right: 8%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #ff5c7a;
    opacity: 0.3;
    animation-delay: -1s;
}

.shape-ring-1 {
    top: 45%;
    right: 15%;
    width: 100px;
    height: 100px;
    border: 4px solid #f3a5b8;
    border-radius: 50%;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(3deg); }
    66% { transform: translateY(8px) rotate(-2deg); }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-up:nth-child(2) {
    animation-delay: 0.15s;
}

.animate-fade-in-up:nth-child(3) {
    animation-delay: 0.3s;
}

.animate-fade-in-up:nth-child(4) {
    animation-delay: 0.45s;
}

/* Service cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #971e3a, #ff5c7a);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 80px;
    font-weight: 700;
    color: #fce7eb;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

.testimonial-card > * {
    position: relative;
    z-index: 1;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(255, 253, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(151, 30, 58, 0.08);
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fffdf8;
}

::-webkit-scrollbar-thumb {
    background: #f3a5b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b82847;
}

/* Selection */
::selection {
    background: #fce7eb;
    color: #3a0c15;
}

/* Input autofill */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 80px;
        height: 80px;
    }
    .shape-circle-2 {
        width: 50px;
        height: 50px;
    }
    .shape-square-1 {
        width: 40px;
        height: 40px;
    }
    .shape-triangle-1 {
        border-left-width: 25px;
        border-right-width: 25px;
        border-bottom-width: 45px;
    }
    .shape-ring-1 {
        width: 60px;
        height: 60px;
    }
}
