/* ============================================================
   IdeaForge Studios — Custom CSS
   Colors: Navy #141142, Orange #e64925, Red #ef383a
   Fonts: Playfair Display (headings), Poppins (body), Fjalla One (footer)
   ============================================================ */

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

/* Selection color */
::selection {
    background: #e64925;
    color: white;
}

/* Drop cap effect for page titles */
.drop-cap::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 4em;
    float: left;
    line-height: 0.8;
    margin-right: 0.1em;
    margin-top: 0.05em;
    color: #141142;
}

/* Ink splatter decoration */
.ink-splatter {
    position: relative;
}
.ink-splatter::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(20,17,66,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Header shrink on scroll */
#main-header.scrolled {
    box-shadow: 0 4px 30px rgba(20, 17, 66, 0.3);
}
#main-header.scrolled nav {
    height: 4rem;
}

/* Smooth transitions for nav dropdown */
.group\/nav:hover .group\/nav\:visible {
    transition-delay: 0ms;
}

/* Paper rip effect refinement */
.paper-rip {
    filter: url(#rough-edge);
}

/* Page hero with ink background */
.page-hero {
    background: linear-gradient(135deg, #141142 0%, #151142 50%, #1a1856 100%);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(230, 73, 37, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Service cards hover effect */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -15px rgba(20, 17, 66, 0.2);
}

/* Fade in on scroll (JS-powered) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Blog card hover */
.blog-card {
    transition: all 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
}

/* Floating CTA orb */
.cta-orb {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #e64925;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 30px rgba(230, 73, 37, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 40;
}
.cta-orb:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(230, 73, 37, 0.5);
    background: #ef383a;
}

/* Enso circle animation */
@keyframes enso-draw {
    from { stroke-dashoffset: 550; }
    to { stroke-dashoffset: 0; }
}
.enso-animate circle {
    animation: enso-draw 2s ease-out forwards;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f6f6f6;
}
::-webkit-scrollbar-thumb {
    background: #141142;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e64925;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: 0.85em;
    }
}
