/* HookWave Site - Custom CSS */
/* Additional styles that complement Tailwind CSS */

/* ========================================
   CSS Variables (HookWave Brand Colors)
   ======================================== */
:root {
    /* HookWave Colors */
    --color-hookwave-purple: #822dd3;
    --color-hookwave-blue: #077fe6;
    --color-hookwave-blue-2: #1670e2;
    --color-hookwave-blue-purple: #3e4dd7;
    --color-hookwave-purple-2: #5c3ad7;

    /* Escalada Colors */
    --color-escalada-navy: #001f3f;
    --color-escalada-red: #790c15;
    --color-escalada-gray: #808080;
    --color-escalada-light-gray: #ede8e8;
    --color-escalada-white: #ffffff;

    /* Functional Colors */
    --color-whatsapp: #25d366;
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
}

/* ========================================
   Smooth Scroll Behavior
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* ========================================
   Body & Typography
   ======================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Custom Animations
   ======================================== */

/* Pulse Animation for WhatsApp Button */
@keyframes pulse-custom {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.animate-pulse-custom {
    animation: pulse-custom 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

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

/* Slide In from Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out forwards;
}

/* Slide In from Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

/* ========================================
   Gradient Text Effect
   ======================================== */
.gradient-text {
    background: linear-gradient(135deg, var(--color-hookwave-purple), var(--color-hookwave-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Custom Buttons
   ======================================== */

/* Primary Button (Gradient) */
.btn-primary {
    background: linear-gradient(135deg, var(--color-hookwave-purple), var(--color-hookwave-blue));
    color: white;
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(130, 45, 211, 0.3);
}

/* Secondary Button (Outline) */
.btn-secondary {
    background: transparent;
    color: var(--color-hookwave-purple);
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    border: 2px solid var(--color-hookwave-purple);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--color-hookwave-purple);
    color: white;
    transform: translateY(-2px);
}

/* WhatsApp Button */
.btn-whatsapp {
    background: var(--color-whatsapp);
    color: white;
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-whatsapp:hover {
    background: #1ea952;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

/* ========================================
   Custom Cards
   ======================================== */

/* Hover effect for feature cards */
.feature-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Gradient border effect */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 16px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--color-hookwave-purple), var(--color-hookwave-blue));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ========================================
   Form Styles
   ======================================== */

/* Input Focus Effect */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(130, 45, 211, 0.1);
}

/* Input with icon */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.input-with-icon input {
    padding-left: 48px;
}

/* Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* ========================================
   Navbar Effects
   ======================================== */

/* Glass morphism effect for navbar */
.navbar-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ========================================
   Section Spacing
   ======================================== */
.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

/* Shadow on hover */
.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Elevation on hover */
.hover-elevate {
    transition: transform 0.3s ease;
}

.hover-elevate:hover {
    transform: translateY(-4px);
}

/* ========================================
   Responsive Typography
   ======================================== */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .no-print {
        display: none !important;
    }
}

/* ========================================
   Accessibility
   ======================================== */

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--color-hookwave-purple);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   Custom Scrollbar (Webkit browsers)
   ======================================== */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--color-hookwave-purple), var(--color-hookwave-blue));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-hookwave-purple);
}

/* ========================================
   Selection Color
   ======================================== */
::selection {
    background-color: var(--color-hookwave-purple);
    color: white;
}

::-moz-selection {
    background-color: var(--color-hookwave-purple);
    color: white;
}
