/* CSS Variables */
:root {
    --color-sky-light: #E0F2FE;
    --color-sky: #BAE6FD;
    --color-blue: #3B82F6;
    --color-blue-dark: #2563EB;
    --color-cyan: #06B6D4;
    --color-cyan-dark: #0891B2;
    --color-orange: #F97316;
    --color-orange-dark: #EA580C;
}

/* ========================================
   BASE STYLES
   ======================================== */

* {
    font-family: 'Outfit', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.gradient-text {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-gradient {
    background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 50%, #DBEAFE 100%);
}

.nav-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.text-balance {
    text-wrap: balance;
}

.bg-pattern {
    background-image: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
}

/* ========================================
   ANIMATIONS
   ======================================== */

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.slide-up {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

.pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.badge-float {
    animation: float 3s ease-in-out infinite;
}

/* Animation Delays */
.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;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

/* Keyframes */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.diagonal-cut {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.diagonal-cut-reverse {
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    border: 2px solid var(--color-blue);
    color: var(--color-blue);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-blue);
    color: white;
    transform: scale(1.05);
}

/* ========================================
   CARDS
   ======================================== */

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

/* ========================================
   PRODUCT DETAIL PAGE STYLES
   ======================================== */

/* Tabs */
.tab-button {
    transition: all 0.3s ease;
    position: relative;
}

.tab-button.active {
    color: var(--color-blue);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-cyan) 100%);
    border-radius: 3px;
}

/* Thumbnails */
.thumbnail {
    transition: all 0.3s ease;
    cursor: pointer;
}

.thumbnail.active {
    border-color: var(--color-blue);
    transform: scale(1.05);
}

.thumbnail:hover {
    border-color: var(--color-cyan);
}

/* Quantity Input */
.quantity-input {
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Specifications */
.spec-row {
    transition: background-color 0.2s ease;
}

.spec-row:hover {
    background-color: #f0f9ff;
}

/* Reviews */
.review-star {
    transition: all 0.2s ease;
}

.review-star:hover {
    transform: scale(1.2);
}

/* ========================================
   STATIC PAGE / CONTENT STYLES
   ======================================== */

/* Table of Contents */
.toc-item {
    transition: all 0.3s ease;
}

.toc-item:hover {
    transform: translateX(4px);
}

.toc-item.active {
    color: var(--color-blue);
    font-weight: 600;
}

.content-section {
    scroll-margin-top: 100px;
}

.sticky-toc {
    position: sticky;
    top: 100px;
}

/* Prose Content Styling */
.prose h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4b5563;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose p {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.prose ul, .prose ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: #4b5563;
}

.prose li {
    margin: 0.5rem 0;
    line-height: 1.75;
}

.prose ul li {
    list-style-type: disc;
}

.prose ol li {
    list-style-type: decimal;
}

.prose strong {
    font-weight: 600;
    color: #1f2937;
}

.prose a {
    color: var(--color-blue);
    text-decoration: underline;
}

.prose a:hover {
    color: var(--color-blue-dark);
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%);
    border-left: 4px solid var(--color-blue);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}

.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%);
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}

/* ========================================
   CONTACT PAGE STYLES
   ======================================== */

.input-field {
    transition: all 0.3s ease;
}

.input-field:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.map-placeholder {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    position: relative;
    overflow: hidden;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0px, transparent 1px, transparent 50px, rgba(59, 130, 246, 0.05) 51px),
    repeating-linear-gradient(0deg, rgba(59, 130, 246, 0.05) 0px, transparent 1px, transparent 50px, rgba(59, 130, 246, 0.05) 51px);
}

.pulse-ring {
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ========================================
   THANK YOU PAGE STYLES
   ======================================== */

/* Success Checkmark Animation */
.success-checkmark {
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.check-icon {
    width: 120px;
    height: 120px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #10b981;
    animation: scaleUp 0.5s ease-in-out;
}

.check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotateCircle 4.25s ease-in;
}

.icon-line {
    height: 5px;
    background-color: #10b981;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.icon-line.line-tip {
    top: 57px;
    left: 21px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s 0.5s;
}

.icon-line.line-long {
    top: 52px;
    right: 13px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s 0.75s;
}

.icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(16, 185, 129, 0.25);
}

.icon-fix {
    top: 12px;
    width: 8px;
    left: 32px;
    z-index: 1;
    height: 95px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: #E0F2FE;
}

@keyframes scaleUp {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotateCircle {
    0% {
        transform: rotate(-45deg);
    }
    5% {
        transform: rotate(-45deg);
    }
    12% {
        transform: rotate(-405deg);
    }
    100% {
        transform: rotate(-405deg);
    }
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }
    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }
    100% {
        width: 25px;
        left: 21px;
        top: 57px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }
    100% {
        width: 47px;
        right: 13px;
        top: 52px;
    }
}

/* Confetti Animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #f0f;
    position: absolute;
    animation: confetti-fall 3s linear infinite;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Timeline */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 50px;
    width: 2px;
    height: calc(100% - 50px);
    background: linear-gradient(180deg, #3B82F6 0%, #06B6D4 100%);
}

.timeline-item:last-child::before {
    display: none;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 768px) {
    .hero-gradient {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .prose h2 {
        font-size: 1.5rem;
    }

    .prose h3 {
        font-size: 1.25rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .nav-shadow,
    footer,
    .floating,
    .card-hover {
        display: none;
    }

    .prose {
        max-width: 100%;
    }
}
