/*
 * Professional Modern Styles for Itchypet
 * Modern styling patterns adapted from CarnivoreLifestyles
 */

/* ===== CSS CUSTOM PROPERTIES (DESIGN TOKENS) ===== */
:root {
    /* Enhanced Color Palette - Teal Theme for Pet Health */
    --color-primary-50: #00CED1;
    --color-primary-100: #20B2AA;
    --color-primary-200: #48D1CC;
    --color-primary-300: #66CDAA;
    --color-primary-400: #00CED1;
    --color-primary-500: #008B8B;
    --color-primary-600: #00CED1;
    --color-primary-700: #008B8B;
    --color-primary-800: #006666;
    --color-primary-900: #004D4D;

    /* Secondary Colors - Orange Accent */
    --color-secondary-400: #FF8C42;
    --color-secondary-500: #ea580c;

    /* Action Color - Gold Accent */
    --color-cta: #FFD700;
    --color-cta-hover: #FFC107;

    /* Modern spacing scale */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
    --spacing-3xl: 3rem;
    --spacing-4xl: 4rem;
    --spacing-5xl: 6rem;

    /* Modern shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Modern transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-medium: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* ===== MODERN ANIMATIONS ===== */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes liquid-flow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px var(--color-primary-600); }
    100% { box-shadow: 0 0 20px var(--color-primary-600), 0 0 30px var(--color-primary-600); }
}

/* ===== GRADIENT TEXT EFFECT ===== */
.gradient-text {
    background: linear-gradient(
        135deg,
        var(--color-primary-600) 0%,
        var(--color-primary-100) 50%,
        var(--color-primary-600) 100%
    );
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 8s ease-in-out infinite;
}

/* ===== LIQUID BUTTON EFFECT ===== */
.btn-liquid {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-100));
    color: white;
    border: none;
    z-index: 1;
}

.btn-liquid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: translateX(-100%);
    animation: liquid-flow 3s linear infinite;
    z-index: -1;
}

.btn-liquid:hover::before {
    animation-duration: 1s;
}

.btn-liquid:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== GLOW BOX EFFECT ===== */
.glow-box {
    box-shadow: 0 0 15px rgba(0, 206, 209, 0.3);
    transition: box-shadow var(--transition-medium), transform var(--transition-medium);
}

.glow-box:hover {
    box-shadow: 0 0 25px rgba(0, 206, 209, 0.5);
}

/* ===== MAGNETIC CARD EFFECT ===== */
.magnetic-card {
    position: relative;
    transition: all var(--transition-medium);
    cursor: pointer;
}

.magnetic-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 206, 209, 0.05) 0%,
        rgba(32, 178, 170, 0.05) 50%,
        rgba(0, 139, 139, 0.05) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-medium);
    border-radius: inherit;
    pointer-events: none;
}

.magnetic-card:hover::after {
    opacity: 1;
}

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

/* ===== MODERN HEADER ===== */
.site-header.modern {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===== MODERN NAV LINK ===== */
.nav-link.modern {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link.modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-600), var(--color-primary-100));
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

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

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero--compact {
    min-height: auto;
    padding: var(--spacing-5xl) 0 var(--spacing-3xl);
}

/* Blob background effect */
.blob-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(0, 206, 209, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 60%, rgba(0, 139, 139, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 40% 80%, rgba(32, 178, 170, 0.08) 0%, transparent 50%);
    z-index: -1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.9), rgba(26, 26, 26, 0.95));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-split .hero-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-4xl);
}

.hero-text {
    flex: 1;
}

/* Hero scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    animation: gentle-float 2s ease-in-out infinite;
}

.scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: var(--color-primary-600);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid rgba(0, 206, 209, 0.3);
}

.scroll-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(4px);
    border-color: var(--color-primary-600);
}

/* ===== SECTION STYLES ===== */
.section {
    padding: var(--spacing-5xl) 0;
}

.section-subtitle {
    color: var(--color-gray-400);
    font-size: 1.125rem;
    margin-top: var(--spacing-sm);
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===== TEXT UTILITIES ===== */
.text-center {
    text-align: center;
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

/* ===== FLOAT ANIMATION ===== */
.float-animation {
    animation: gentle-float 3s ease-in-out infinite;
}

/* Stagger animations */
.float-animation:nth-child(1) { animation-delay: 0s; }
.float-animation:nth-child(2) { animation-delay: 0.2s; }
.float-animation:nth-child(3) { animation-delay: 0.4s; }
.float-animation:nth-child(4) { animation-delay: 0.6s; }

/* ===== MODERN CARD STYLES ===== */
.card.modern {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 206, 209, 0.1);
}

.card.modern:hover {
    border-color: rgba(0, 206, 209, 0.3);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .hero-split .hero-content {
        flex-direction: column;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .section {
        padding: var(--spacing-3xl) 0;
    }
}
