/* Custom styles that complement Tailwind */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Custom selection color */
::selection {
    background: #e05624;
    color: #faf6f0;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #e05624;
    outline-offset: 2px;
}

/* Image aspect ratios */
.img-zoom {
    position: relative;
}

/* Geometric pattern overlay */
.pattern-diagonal {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(224, 86, 36, 0.03) 10px,
        rgba(224, 86, 36, 0.03) 20px
    );
}

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

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #e05624, #f4a078);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated underline */
.animated-underline {
    position: relative;
}
.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e05624;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.animated-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Staggered animation delays */
.reveal-on-scroll[data-delay="100"] {
    transition-delay: 0.1s;
}
.reveal-on-scroll[data-delay="200"] {
    transition-delay: 0.2s;
}
.reveal-on-scroll[data-delay="300"] {
    transition-delay: 0.3s;
}

/* Button ripple effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
.btn-primary:active::after {
    width: 200px;
    height: 200px;
}

/* Card glow effect */
.card-hover {
    position: relative;
}
.card-hover::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(224, 86, 36, 0.2), transparent, rgba(224, 86, 36, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.card-hover:hover::before {
    opacity: 1;
}

/* Navbar glass effect */
.nav-scrolled {
    background: rgba(250, 246, 240, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile menu animation */
.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Parallax-like subtle movement */
@media (prefers-reduced-motion: no-preference) {
    .geometric-accent {
        will-change: transform;
    }
}

/* Print styles */
@media print {
    nav, .marquee-strip, #contact {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .btn-primary {
        border: 2px solid ButtonText;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .marquee-track {
        animation: none;
    }
    .float-slow, .float-medium, .float-fast, .rotate-slow {
        animation: none;
    }
}
