/* assets/css/style.css */
/* ----------------------------------------------
 * Page Transition Animations for DVIX
 * --------------------------------------------- */

/* Page Transition Container */
.page-transition-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* Page Transition Overlay */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #001F3F 0%, #002856 100%);
  z-index: 9998;
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}

.page-transition-overlay.active {
  transform: translateX(0);
}

.page-transition-overlay.exit {
  transform: translateX(100%);
}

/* DVIX Logo Animation during transition */
.transition-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  color: #FFD700;
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  opacity: 0;
  animation: pulse-logo 1s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse-logo {
  0%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Roll-out-blurred-right animation */
.roll-out-blurred-right {
  -webkit-animation: roll-out-blurred-right 0.8s cubic-bezier(0.755, 0.050, 0.855, 0.060) both;
  animation: roll-out-blurred-right 0.8s cubic-bezier(0.755, 0.050, 0.855, 0.060) both;
}

/* Page Enter Animation */
.page-enter {
  animation: slide-in-blurred-left 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
}

@-webkit-keyframes slide-in-blurred-left {
  0% {
    -webkit-transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);
            transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);
    -webkit-transform-origin: 100% 50%;
            transform-origin: 100% 50%;
    -webkit-filter: blur(40px);
            filter: blur(40px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0) scaleY(1) scaleX(1);
            transform: translateX(0) scaleY(1) scaleX(1);
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
    -webkit-filter: blur(0);
            filter: blur(0);
    opacity: 1;
  }
}
@keyframes slide-in-blurred-left {
  0% {
    -webkit-transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);
            transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);
    -webkit-transform-origin: 100% 50%;
            transform-origin: 100% 50%;
    -webkit-filter: blur(40px);
            filter: blur(40px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0) scaleY(1) scaleX(1);
            transform: translateX(0) scaleY(1) scaleX(1);
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
    -webkit-filter: blur(0);
            filter: blur(0);
    opacity: 1;
  }
}

/* Roll-out-blurred-right animation definition */
@-webkit-keyframes roll-out-blurred-right {
  0% {
    -webkit-transform: translateX(0) rotate(0deg);
            transform: translateX(0) rotate(0deg);
    -webkit-filter: blur(0);
            filter: blur(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateX(1000px) rotate(720deg);
            transform: translateX(1000px) rotate(720deg);
    -webkit-filter: blur(50px);
            filter: blur(50px);
    opacity: 0;
  }
}
@keyframes roll-out-blurred-right {
  0% {
    -webkit-transform: translateX(0) rotate(0deg);
            transform: translateX(0) rotate(0deg);
    -webkit-filter: blur(0);
            filter: blur(0);
    opacity: 1;
  }
  100% {
    -webkit-transform: translateX(1000px) rotate(720deg);
            transform: translateX(1000px) rotate(720deg);
    -webkit-filter: blur(50px);
            filter: blur(50px);
    opacity: 0;
  }
}

/* Fade animations */
.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

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

.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

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

/* Content wrapper for page transitions */
.page-content {
  animation: pageLoad 0.6s ease-out;
}

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

/* Loading spinner for transition */
.transition-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 215, 0, 0.1);
  border-top-color: #FFD700;
  border-right-color: #FFD700;
  border-radius: 50%;
  z-index: 10001;
  animation: spin 1s linear infinite;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.transition-spinner.active {
  opacity: 1;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
:root {
    --primary-yellow: #FFD700;
    --primary-dark-blue: #001F3F;
    --secondary-blue: #002856;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

/* General Styles */
/* ----------------------------------------------
 * Title Animations for DVIX
 * ---------------------------------------------- */

/* Tracking-in-contract animation */
@-webkit-keyframes tracking-in-contract {
  0% {
    letter-spacing: 1em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    letter-spacing: normal;
    opacity: 1;
  }
}
@keyframes tracking-in-contract {
  0% {
    letter-spacing: 1em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    letter-spacing: normal;
    opacity: 1;
  }
}

/* Animation classes for titles */
.animate-title {
  animation: tracking-in-contract 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

/* Hero title animation */
.hero-title-animate {
  animation: tracking-in-contract 1.5s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

/* Section title animation */
.section-title-animate {
  animation: tracking-in-contract 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

/* Banner title animation */
.banner-title-animate {
  animation: tracking-in-contract 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

/* Delay variations */
.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}
.delay-500 {
  animation-delay: 0.5s;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-yellow);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

/* Buttons */
.btn {
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-dark-blue);
    border-color: var(--primary-dark-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,31,63,0.3);
}

.btn-warning {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--primary-dark-blue);
}

.btn-warning:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,31,63,0.2);
}

.product-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.add-to-cart {
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background-color: var(--primary-yellow) !important;
    color: var(--primary-dark-blue) !important;
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255,215,0,0.3) !important;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255,215,0,0.25);
}

.form-check-input:checked {
    background-color: var(--primary-dark-blue);
    border-color: var(--primary-dark-blue);
}

/* Cart */
.cart-item {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background-color: var(--light-gray);
    color: var(--primary-dark-blue);
    font-weight: bold;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background-color: var(--primary-yellow);
}

/* Order Summary */
.order-summary {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 20px;
    position: sticky;
    top: 100px;
}

/* Referral Section */
.referral-code {
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: 10px;
    border: 2px dashed var(--primary-yellow);
    font-family: monospace;
    font-size: 1.2rem;
}

.copy-btn {
    background-color: var(--primary-dark-blue);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: var(--secondary-blue);
    transform: scale(1.05);
}

/* Order Tracking */
.tracking-steps {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.tracking-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--light-gray);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: var(--primary-dark-blue);
    transition: all 0.3s ease;
}

.step.completed .step-icon {
    background-color: var(--primary-yellow);
    color: var(--primary-dark-blue);
}

.step.active .step-icon {
    background-color: var(--primary-dark-blue);
    color: var(--primary-yellow);
    transform: scale(1.1);
}

/* Wallet Card */
.wallet-card {
    background: linear-gradient(135deg, var(--primary-dark-blue), var(--secondary-blue));
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.wallet-balance {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-yellow);
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table-responsive-custom {
        border: 0;
    }
    
    .table-responsive-custom thead {
        display: none;
    }
    
    .table-responsive-custom tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #dee2e6;
        border-radius: 10px;
        padding: 10px;
    }
    
    .table-responsive-custom td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        border: none;
        padding: 8px;
    }
    
    .table-responsive-custom td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 10px;
        color: var(--primary-dark-blue);
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 250px;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease forwards;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast i {
    font-size: 1.2rem;
}

.toast-success {
    background-color: #28a745;
}

.toast-error {
    background-color: #dc3545;
}

.toast-warning {
    background-color: #ffc107;
    color: #333;
}

.toast-info {
    background-color: #17a2b8;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Animation for cart */
.animate__animated {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.animate__rubberBand {
    animation-name: rubberBand;
}

@keyframes rubberBand {
    from {
        transform: scale3d(1, 1, 1);
    }
    30% {
        transform: scale3d(1.25, 0.75, 1);
    }
    40% {
        transform: scale3d(0.75, 1.25, 1);
    }
    50% {
        transform: scale3d(1.15, 0.85, 1);
    }
    65% {
        transform: scale3d(0.95, 1.05, 1);
    }
    75% {
        transform: scale3d(1.05, 0.95, 1);
    }
    to {
        transform: scale3d(1, 1, 1);
    }
}
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background-color: white;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-left: 4px solid var(--primary-yellow);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}