/*
  friton.agency - Premium Custom CSS
  Complementing Tailwind utility classes
*/

:root {
    --accent: #38bdf8;
    /* Tailwind amber-500 equivalent */
    --bg-color: #09090b;
    /* Tailwind zinc-900 */
}

body {
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 
  Glassmorphism Cards
*/
.glass-card {
    background: rgba(24, 24, 27, 0.4);
    /* Zinc-800 with opacity */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
}

.glass-card:hover {
    background: rgba(24, 24, 27, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(56, 189, 248, 0.1);
    /* Subtle accent glow */
    transform: translateY(-4px);
}

/*
  Buttons
*/
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background-color: #ffffff;
    color: #000000;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    border-radius: 9999px;
    transition: all 0.3s ease;
    will-change: transform;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.custom-glow:hover {
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
    background-color: var(--accent);
    color: #000;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 
  Noise Overlay for Texture 
*/
.noise-overlay {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* 
  Animations & Interactions
*/
.glow-orb {
    animation: float 20s ease-in-out infinite alternate;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(5%, 10%) scale(1.05);
    }

    100% {
        transform: translate(-5%, -5%) scale(0.95);
    }
}

/* Reveal up on scroll (handled via IntersectionObserver in script.js) */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Magnetic Button Wrapper */
.magnetic-btn {
    will-change: transform;
}

/* Code Snippet Scrollbar */
pre::-webkit-scrollbar {
    height: 4px;
}

pre::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/*
  Marquee Animation
*/
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
}

.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

.marquee-content {
    display: flex;
    animation: scroll-left 30s linear infinite;
    gap: 4rem;
    padding-right: 4rem;
    /* Match gap for seamless loop */
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/*
  Contact Form Items
*/
.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.input-field::placeholder {
    color: #71717a;
    /* Tailwind zinc-500 equivalent */
}

/*
  Scrollytelling Word Reveal
*/
.word-reveal-text.is-visible .word {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/*
  Showreel Modal
*/
.showreel-modal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(20px);
}

.showreel-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}