/* ============================================
   Digital Business Cards — Custom Styles
   Brand Colors:
     Primary:   #f6923c (orange)
     Secondary: #2c3e72 (navy)
     Accent:    #ee2c46 (red)
   ============================================ */

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0b1022;
}
::-webkit-scrollbar-thumb {
    background: #2c3e72;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a4874;
}

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

/* Selection */
::selection {
    background: rgba(246, 146, 60, 0.3);
    color: #fff;
}

/* Glassmorphism Utility */
.glass {
    background: rgba(11, 16, 34, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(44, 62, 114, 0.3);
}

.glass-light {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #f6923c, #ee2c46, #f6923c);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

/* Glow Effects */
.glow-primary {
    box-shadow: 0 0 30px rgba(246, 146, 60, 0.15),
                0 0 60px rgba(246, 146, 60, 0.05);
}
.glow-accent {
    box-shadow: 0 0 30px rgba(238, 44, 70, 0.15),
                0 0 60px rgba(238, 44, 70, 0.05);
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animate on scroll — hidden state */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Card Hover Effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -10px rgba(246, 146, 60, 0.15);
}

/* Gradient Border */
.gradient-border {
    position: relative;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #f6923c, #ee2c46);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Hero Background Pattern */
.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(246, 146, 60, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(238, 44, 70, 0.05) 0%, transparent 50%);
}

/* Stats Counter */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Noise Texture Overlay */
.noise-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* WordPress specific overrides */
.wp-block-image img {
    border-radius: 1rem;
}
.wp-block-quote {
    border-left: 3px solid #f6923c;
    padding-left: 1.5rem;
    font-style: italic;
    color: #8a9bc5;
}
