/* Custom styles for Graham Ink */

:root {
    --color-charcoal-950: #0a0f1a;
    --color-charcoal-900: #1f2937;
    --color-charcoal-800: #1f2937;
    --color-charcoal-700: #2d3748;
    --color-charcoal-600: #374151;
    --color-charcoal-500: #4b5563;
    --color-charcoal-400: #6b7280;
    --color-charcoal-300: #a1a1aa;
    --color-charcoal-200: #d1d1d8;
    --color-charcoal-100: #e8e8ec;
    --color-charcoal-50: #f5f5f7;
    --color-coral-500: #f43f5e;
    --color-coral-400: #fb7185;
    --color-coral-300: #fda4af;
    --color-coral-200: #fecdd3;
    --color-coral-100: #ffe4e1;
    --color-coral-50: #fff1f0;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f5f7;
}
::-webkit-scrollbar-thumb {
    background: #d1d1d8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

/* Selection */
::selection {
    background: #fecdd3;
    color: #1f2937;
}

/* Smooth transitions for all interactive elements */
a, button, input, textarea, select {
    -webkit-tap-highlight-color: transparent;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(250, 252, 252, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

#navbar.scrolled .font-serif {
    color: #1f2937 !important;
}

#navbar.scrolled a:not([class*="bg-"]) {
    color: #374151 !important;
}

/* Mobile menu animation */
#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Menu toggle animation */
.menu-toggle-active .menu-line:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle-active .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle-active .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(5px, -5px);
    margin-left: 0;
}

/* Hero decorative line animation */
@keyframes growLine {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.hero-line {
    transform-origin: top;
    animation: growLine 1s ease forwards;
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-card {
    animation: float 6s ease-in-out infinite;
}

/* Pulse animation for CTA */
@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.2); }
    50% { box-shadow: 0 0 0 12px rgba(244, 63, 94, 0); }
}

.cta-pulse {
    animation: softPulse 3s ease-in-out infinite;
}

/* Service card hover glow */
.service-card-glow:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(253, 164, 175, 0.3);
}

/* Image hover zoom */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}
