/* PDF Empire Landing Page Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Base Styles */
body {
    box-sizing: border-box;
    overflow-x: hidden;
}

* {
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Gradient Backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 3D Card Effects */
.card-3d {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* Floating Animation */
.floating {
    animation: float 6s ease-in-out infinite;
}

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

/* Pulse Glow Effect */
.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.8); }
}

/* Text Shadow */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Parallax Effects */
.parallax {
    transform: translateZ(0);
    transition: transform 0.1s ease-out;
}

/* 3D Button Effects */
.btn-3d {
    transform: perspective(1000px) rotateX(0deg);
    transition: all 0.2s ease;
}

.btn-3d:hover {
    transform: perspective(1000px) rotateX(-10deg) translateY(-5px);
}

/* Product Image Styles */
.product-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.product-image:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Scroll Animation Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

.parallax-bg {
    will-change: transform;
}

/* Stagger Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Hero Parallax Elements */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
    will-change: transform;
}

/* Section Padding */
.section-padding {
    padding: 8rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
}

/* Card Container Styles - From Uiverse.io */
.card-container {
    width: 300px;
    height: 400px;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.card {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.card .front-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1)
}

.card .front-content p {
    font-size: 32px;
    font-weight: 700;
    opacity: 1;
    background: linear-gradient(-45deg, #f89b29 0%, #ff0f7b 100% );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1)
}

.card .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    background: linear-gradient(-45deg, #f89b29 0%, #ff0f7b 100% );
    color: #e8e8e8;
    padding: 20px;
    line-height: 1.5;
    border-radius: 5px;
    pointer-events: none;
    transform: translatex(96%);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.card .content button {
    pointer-events: auto;
    cursor: pointer;
}

.card .content .heading {
    font-size: 32px;
    font-weight: 700;
}

.card:hover .content {
    transform: translateY(0);
}

.card:hover .front-content {
    transform: translateX(20%);
}

.card:hover .front-content p {
    opacity: 0;
}

/* Animated Cityscape Background */
.cityscape-bg {
    --color-0: #fff;
    --color-1: #111;
    --color-2: #222;
    --color-3: #333;
    --color-4: #2e2e2e;
    --color-5: #d2b48c;
    --color-6: #b22222;
    --color-7: #871a1a;
    --color-8: #ff6347;
    --color-9: #ff3814;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-1);
    background-image: linear-gradient(
        to top,
        var(--color-2) 5%,
        var(--color-1) 6%,
        var(--color-1) 7%,
        transparent 7%
      ),
      linear-gradient(to bottom, var(--color-1) 30%, transparent 80%),
      linear-gradient(to right, var(--color-2), var(--color-4) 5%, transparent 5%),
      linear-gradient(
        to right,
        transparent 6%,
        var(--color-2) 6%,
        var(--color-4) 9%,
        transparent 9%
      ),
      linear-gradient(
        to right,
        transparent 27%,
        var(--color-2) 27%,
        var(--color-4) 34%,
        transparent 34%
      ),
      linear-gradient(
        to right,
        transparent 51%,
        var(--color-2) 51%,
        var(--color-4) 57%,
        transparent 57%
      ),
      linear-gradient(to bottom, var(--color-1) 35%, transparent 35%),
      linear-gradient(
        to right,
        transparent 42%,
        var(--color-2) 42%,
        var(--color-4) 44%,
        transparent 44%
      ),
      linear-gradient(
        to right,
        transparent 45%,
        var(--color-2) 45%,
        var(--color-4) 47%,
        transparent 47%
      ),
      linear-gradient(
        to right,
        transparent 48%,
        var(--color-2) 48%,
        var(--color-4) 50%,
        transparent 50%
      ),
      linear-gradient(
        to right,
        transparent 87%,
        var(--color-2) 87%,
        var(--color-4) 91%,
        transparent 91%
      ),
      linear-gradient(to bottom, var(--color-1) 37.5%, transparent 37.5%),
      linear-gradient(
        to right,
        transparent 14%,
        var(--color-2) 14%,
        var(--color-4) 20%,
        transparent 20%
      ),
      linear-gradient(to bottom, var(--color-1) 40%, transparent 40%),
      linear-gradient(
        to right,
        transparent 10%,
        var(--color-2) 10%,
        var(--color-4) 13%,
        transparent 13%
      ),
      linear-gradient(
        to right,
        transparent 21%,
        var(--color-2) 21%,
        #1a1a1a 25%,
        transparent 25%
      ),
      linear-gradient(
        to right,
        transparent 58%,
        var(--color-2) 58%,
        var(--color-4) 64%,
        transparent 64%
      ),
      linear-gradient(
        to right,
        transparent 92%,
        var(--color-2) 92%,
        var(--color-4) 95%,
        transparent 95%
      ),
      linear-gradient(to bottom, var(--color-1) 48%, transparent 48%),
      linear-gradient(
        to right,
        transparent 96%,
        var(--color-2) 96%,
        #1a1a1a 99%,
        transparent 99%
      ),
      linear-gradient(
        to bottom,
        transparent 68.5%,
        transparent 76%,
        var(--color-1) 76%,
        var(--color-1) 77.5%,
        transparent 77.5%,
        transparent 86%,
        var(--color-1) 86%,
        var(--color-1) 87.5%,
        transparent 87.5%
      ),
      linear-gradient(
        to right,
        transparent 35%,
        var(--color-2) 35%,
        var(--color-4) 41%,
        transparent 41%
      ),
      linear-gradient(to bottom, var(--color-1) 68%, transparent 68%),
      linear-gradient(
        to right,
        transparent 78%,
        var(--color-3) 78%,
        var(--color-3) 80%,
        transparent 80%,
        transparent 82%,
        var(--color-3) 82%,
        var(--color-3) 83%,
        transparent 83%
      ),
      linear-gradient(
        to right,
        transparent 66%,
        var(--color-2) 66%,
        var(--color-4) 85%,
        transparent 85%
      );
    background-size: 300px 150px;
    background-position: center bottom;
}

.cityscape-bg:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    background-color: var(--color-1);
    background-image: linear-gradient(
        to top,
        var(--color-5) 5%,
        var(--color-1) 6%,
        var(--color-1) 7%,
        transparent 7%
      ),
      linear-gradient(to bottom, var(--color-1) 30%, transparent 30%),
      linear-gradient(to right, var(--color-6), var(--color-7) 5%, transparent 5%),
      linear-gradient(
        to right,
        transparent 6%,
        var(--color-8) 6%,
        var(--color-9) 9%,
        transparent 9%
      ),
      linear-gradient(
        to right,
        transparent 27%,
        #556b2f 27%,
        #39481f 34%,
        transparent 34%
      ),
      linear-gradient(
        to right,
        transparent 51%,
        #fa8072 51%,
        #f85441 57%,
        transparent 57%
      ),
      linear-gradient(to bottom, var(--color-1) 35%, transparent 35%),
      linear-gradient(
        to right,
        transparent 42%,
        #008080 42%,
        #004d4d 44%,
        transparent 44%
      ),
      linear-gradient(
        to right,
        transparent 45%,
        #008080 45%,
        #004d4d 47%,
        transparent 47%
      ),
      linear-gradient(
        to right,
        transparent 48%,
        #008080 48%,
        #004d4d 50%,
        transparent 50%
      ),
      linear-gradient(
        to right,
        transparent 87%,
        #789 87%,
        #4f5d6a 91%,
        transparent 91%
      ),
      linear-gradient(to bottom, var(--color-1) 37.5%, transparent 37.5%),
      linear-gradient(
        to right,
        transparent 14%,
        #bdb76b 14%,
        #989244 20%,
        transparent 20%
      ),
      linear-gradient(to bottom, var(--color-1) 40%, transparent 40%),
      linear-gradient(
        to right,
        transparent 10%,
        #808000 10%,
        #4d4d00 13%,
        transparent 13%
      ),
      linear-gradient(
        to right,
        transparent 21%,
        #8b4513 21%,
        #5e2f0d 25%,
        transparent 25%
      ),
      linear-gradient(
        to right,
        transparent 58%,
        #8b4513 58%,
        #5e2f0d 64%,
        transparent 64%
      ),
      linear-gradient(
        to right,
        transparent 92%,
        #2f4f4f 92%,
        #1c2f2f 95%,
        transparent 95%
      ),
      linear-gradient(to bottom, var(--color-1) 48%, transparent 48%),
      linear-gradient(
        to right,
        transparent 96%,
        #2f4f4f 96%,
        #1c2f2f 99%,
        transparent 99%
      ),
      linear-gradient(
        to bottom,
        transparent 68.5%,
        transparent 76%,
        var(--color-1) 76%,
        var(--color-1) 77.5%,
        transparent 77.5%,
        transparent 86%,
        var(--color-1) 86%,
        var(--color-1) 87.5%,
        transparent 87.5%
      ),
      linear-gradient(
        to right,
        transparent 35%,
        #cd5c5c 35%,
        #bc3a3a 41%,
        transparent 41%
      ),
      linear-gradient(to bottom, var(--color-1) 68%, transparent 68%),
      linear-gradient(
        to right,
        transparent 78%,
        #bc8f8f 78%,
        #bc8f8f 80%,
        transparent 80%,
        transparent 82%,
        #bc8f8f 82%,
        #bc8f8f 83%,
        transparent 83%
      ),
      linear-gradient(
        to right,
        transparent 66%,
        #a52a2a 66%,
        #7c2020 85%,
        transparent 85%
      );
    background-size: 300px 150px;
    background-position: center bottom;
    clip-path: circle(150px at center center);
    animation: flashlight 20s ease infinite;
}

.cityscape-bg:after {
    content: "";
    width: 25px;
    height: 10px;
    position: absolute;
    left: calc(50% + 59px);
    bottom: 100px;
    background-repeat: no-repeat;
    background-image: radial-gradient(circle, #fff 50%, transparent 50%),
      radial-gradient(circle, #fff 50%, transparent 50%);
    background-size: 10px 10px;
    background-position:
      left center,
      right center;
    animation: eyes 20s infinite;
}

@keyframes flashlight {
    0% {
      clip-path: circle(150px at -25% 10%);
    }
  
    38% {
      clip-path: circle(150px at 60% 20%);
    }
  
    39% {
      opacity: 1;
      clip-path: circle(150px at 60% 86%);
    }
  
    40% {
      opacity: 0;
      clip-path: circle(150px at 60% 86%);
    }
  
    41% {
      opacity: 1;
      clip-path: circle(150px at 60% 86%);
    }
  
    42% {
      opacity: 0;
      clip-path: circle(150px at 60% 86%);
    }
  
    54% {
      opacity: 0;
      clip-path: circle(150px at 60% 86%);
    }
  
    55% {
      opacity: 1;
      clip-path: circle(150px at 60% 86%);
    }
  
    59% {
      opacity: 1;
      clip-path: circle(150px at 60% 86%);
    }
  
    64% {
      clip-path: circle(150px at 45% 78%);
    }
  
    68% {
      clip-path: circle(150px at 85% 89%);
    }
  
    72% {
      clip-path: circle(150px at 60% 86%);
    }
  
    74% {
      clip-path: circle(150px at 60% 86%);
    }
  
    100% {
      clip-path: circle(150px at 150% 50%);
    }
}
  
@keyframes eyes {
    0%,
    38% {
      opacity: 0;
    }
  
    39%,
    41% {
      opacity: 1;
      transform: scaleY(1);
    }
  
    40% {
      transform: scaleY(0);
      filter: none;
      background-image: radial-gradient(circle, #fff 50%, transparent 50%),
        radial-gradient(circle, #fff 50%, transparent 50%);
    }
  
    41% {
      transform: scaleY(1);
      background-image: radial-gradient(circle, #ff0000 50%, transparent 50%),
        radial-gradient(circle, #ff0000 50%, transparent 50%);
      filter: drop-shadow(0 0 4px #ff8686);
    }
  
    42%,
    100% {
      opacity: 0;
    }
}

/* Additional Animations */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced card hover effects */
.card-3d {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) translateZ(20px) scale(1.02);
}

/* Smooth transitions for all interactive elements */
button, .btn-3d {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Performance optimizations */
.parallax-bg, .scroll-reveal, .scroll-reveal-left, .scroll-reveal-right, .scroll-scale {
    will-change: transform, opacity;
}

/* Header Styles */
header {
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

/* Logo Styles */
.logo-container {
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

/* Navigation Styles */
nav a {
    position: relative;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #dc2626;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Styles */
.mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateY(0);
}

/* Payhip Button Integration */
.payhip-buy-button {
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.payhip-buy-button:hover {
    text-decoration: none;
}

/* Ensure Payhip buttons maintain our styling */
a.payhip-buy-button {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Carousel Navigation Styles */
.carousel-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Review Carousel Styles */
.carousel-container {
    overflow: visible;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 25px;
    background: transparent;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.carousel-slide {
    flex: 0 0 calc(50% - 10px); /* Show 2 cards at a time with gap */
    min-width: calc(50% - 10px);
}

.review-card {
    margin: 20px 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px 30px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    align-items: center;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}


.avatar-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-container img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

/* Different colored circles for each avatar */
.review-card:nth-child(1) .avatar-container { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.review-card:nth-child(2) .avatar-container { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.review-card:nth-child(3) .avatar-container { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.review-card:nth-child(4) .avatar-container { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.review-card:nth-child(5) .avatar-container { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.review-card:nth-child(6) .avatar-container { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.review-card:nth-child(7) .avatar-container { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.review-card:nth-child(8) .avatar-container { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.review-card:nth-child(9) .avatar-container { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }

.rating {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.star {
    color: #ffc107;
    font-size: 18px;
    margin: 0 2px;
}

.testimonial-quote {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    text-align: center;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    text-align: center;
    margin-top: 20px;
}

.author-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.author-title {
    font-size: 14px;
    color: #777;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-container {
        padding: 30px 15px;
    }
    
    .carousel-slide {
        flex: 0 0 100%; /* Show 1 card on mobile */
        min-width: 100%;
    }
    
    .carousel-track {
        gap: 15px;
    }
    
    .review-card {
        margin: 15px 0;
    }
    
    .carousel-nav {
        padding: 8px;
    }
    
    .carousel-nav svg {
        width: 20px;
        height: 20px;
    }
}
