/* 
   WebCatalog - Bright & Modern Template 
   Fonts: Outfit
*/

:root {
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --secondary-color: #3f37c9;
    --accent-color: #f72585;
    --light-bg: #f8f9fa;
    --dark-color: #2b2d42;
    --text-color: #4a4e69;
    --gradient-1: linear-gradient(135deg, #4361ee 0%, #4cc9f0 100%);
    --gradient-2: linear-gradient(135deg, #f72585 0%, #7209b7 100%);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
}

/* Utilities */
.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.2);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Glassmorphism */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.95);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
    overflow: hidden;
}

.z-index-1 {
    z-index: 1;
}

/* Abstract Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: #4cc9f0;
}

.shape-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: #4361ee;
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    right: 20%;
    width: 300px;
    height: 300px;
    background: #f72585;
    opacity: 0.3;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Hero Images & Floating Cards */
.hero-image-wrapper {
    position: relative;
    padding: 2rem;
}

.mockup-card {
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.floating-card {
    position: absolute;
    z-index: 3;
    animation: float-small 6s infinite ease-in-out;
}

.floating-card-1 {
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 10%;
    left: -5%;
    animation-delay: 3s;
}

.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

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

/* Catalog Filters */
.btn-filter {
    background: white;
    color: var(--text-color);
    border: 1px solid #e9ecef;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.btn-filter.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

/* Template Cards */
.template-card {
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0 !important;
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.card-img-top-wrapper {
    overflow: hidden;
}

.card-img-top {
    transition: transform 0.5s ease;
    height: 240px;
    object-fit: cover;
    object-position: top;
}

.template-card:hover .card-img-top {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 45, 66, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover .overlay {
    opacity: 1;
}

.overlay .btn {
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.template-card:hover .overlay .btn {
    transform: translateY(0);
}

/* Footer Links */
.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 80px;
    }
    .mockup-card {
        transform: none;
    }
    .floating-card {
        display: none;
    }
}
