/* Custom CSS overrides and animations */

html {
    scroll-behavior: auto;
}

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

/* ─── Cormorant Garamond display refinements ───────────────────────
   The font tops at weight 700; nudge letter-spacing for large serif
   headlines so they read with editorial grace rather than tightness.
   Jost body copy gets a touch of tracking for open, premium feel.   */

.font-display {
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

/* Large display headings — relax tracking from Tailwind's tightest */
h1.font-display,
h2.font-display,
.font-display.text-6xl,
.font-display.text-7xl,
.font-display.text-8xl,
.font-display.text-9xl {
    letter-spacing: -0.01em;
}

/* Body copy — subtle openness */
body {
    letter-spacing: 0.01em;
}

/* Custom minimal dark scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0A0A0A; 
}
 
::-webkit-scrollbar-thumb {
    background: #333333; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555555; 
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* Text reveal clip path logic */
.reveal-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.reveal-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #d97743; /* Accent color */
    transform-origin: left;
    transform: scaleX(0);
    z-index: 1;
}

/* Service cards glossy effect */
.service-card {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Custom Selection */
::selection {
    background-color: #d97743;
    color: #fff;
}
