/* Design Refinements - Logan Detty Photo
 * Polished enhancements building on your existing design
 * Add this AFTER global.css in your HTML files
 */

/* ========================================
   REFINED COLOR SYSTEM
   ======================================== */
:root {
    /* Your existing colors - enhanced */
    --primary: #fdad01;
    --primary-hover: #ffba1f;
    --primary-dim: rgba(253, 173, 1, 0.08);
    --primary-glow: rgba(253, 173, 1, 0.2);

    --bg-dark: #0a0a0a;
    --bg-card: #111;
    --bg-light: #1a1a1a;
    --bg-elevated: #151515;

    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #666;
    --text-dim: #444;

    /* New refined accent colors */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.12);
    --shadow-soft: rgba(0, 0, 0, 0.4);
    --shadow-medium: rgba(0, 0, 0, 0.6);

    /* Refined animation timing */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 600ms cubic-bezier(0.19, 1, 0.22, 1);
}

/* ========================================
   TYPOGRAPHY REFINEMENTS
   ======================================== */

/* Better font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Refined heading spacing and color transitions */
h1 {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

h2 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* Subtle text selection styling */
::selection {
    background-color: var(--primary);
    color: #000;
}

::-moz-selection {
    background-color: var(--primary);
    color: #000;
}

/* ========================================
   BUTTON REFINEMENTS
   ======================================== */

.learn-more-btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-base);
}

.learn-more-btn::before {
    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 var(--transition-smooth), height var(--transition-smooth);
}

.learn-more-btn:hover::before {
    width: 300px;
    height: 300px;
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(253, 173, 1, 0.25),
        0 4px 8px rgba(0, 0, 0, 0.3);
}

.learn-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(253, 173, 1, 0.2);
}

.btn-outline {
    box-shadow: 0 0 0 2px var(--primary) inset;
    transition: all var(--transition-base);
}

.btn-outline:hover {
    box-shadow: 0 0 0 2px var(--primary) inset,
        0 8px 24px rgba(253, 173, 1, 0.15);
}

/* ========================================
   SERVICE CARDS - ENHANCED
   ======================================== */

.service-card {
    position: relative;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-slow);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg,
            var(--primary-dim) 0%,
            transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    border-color: rgba(253, 173, 1, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(253, 173, 1, 0.1) inset;
}

.service-card-image {
    transition: transform var(--transition-smooth),
        filter var(--transition-base);
    filter: brightness(0.9) saturate(0.95);
}

.service-card:hover .service-card-image {
    transform: scale(1.05);
    filter: brightness(1) saturate(1.1);
}

.service-card h3 {
    transition: color var(--transition-base);
}

.service-card:hover h3 {
    color: var(--primary-hover);
    text-shadow: 0 0 20px var(--primary-glow);
}

/* ========================================
   HERO REFINEMENTS
   ======================================== */

.hero-content h1 {
    animation: heroTitleFade 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-content h2 {
    animation: heroSubtitleFade 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes heroTitleFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSubtitleFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle vignette on hero */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    z-index: 2;
}

/* ========================================
   REVIEW CARDS - ENHANCED
   ======================================== */

.review-card {
    position: relative;
    border: 1px solid var(--border-medium);
    transition: all var(--transition-slow);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary) 50%,
            transparent 100%);
    border-radius: 12px 12px 0 0;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(253, 173, 1, 0.2) inset;
}

.review-stars {
    text-shadow: 0 0 10px var(--primary-glow);
    filter: drop-shadow(0 2px 4px rgba(253, 173, 1, 0.3));
}

/* Animated quote marks */
.review-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

/* ========================================
   ABOUT SECTION REFINEMENTS
   ======================================== */

.about-image {
    border: 1px solid var(--border-medium);
    transition: all var(--transition-slow);
    position: relative;
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(253, 173, 1, 0.3) inset;
}

.signature {
    position: relative;
    display: inline-block;
}

.signature::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
}

/* ========================================
   NAVBAR REFINEMENTS
   ======================================== */

.navbar {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.desktop-nav a {
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.nav-cta {
    box-shadow: 0 4px 12px rgba(253, 173, 1, 0.25);
}

.nav-cta:hover {
    box-shadow: 0 6px 20px rgba(253, 173, 1, 0.35);
}

/* ========================================
   FOOTER REFINEMENTS
   ======================================== */

.footer-column a {
    position: relative;
    padding-left: 12px;
}

.footer-column a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all var(--transition-base);
    transform: translateX(-4px);
}

.footer-column a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-logo img {
    transition: all var(--transition-slow);
    border: 1px solid var(--border-subtle);
}

.footer-logo img:hover {
    transform: scale(1.05);
    border-color: rgba(253, 173, 1, 0.3);
    box-shadow: 0 8px 32px rgba(253, 173, 1, 0.15);
}

/* ========================================
   LOGE MEDIA AD REFINEMENTS
   ======================================== */

.loge-media-container {
    position: relative;
    border: 1px solid var(--border-medium);
    transition: all var(--transition-slow);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
}

.loge-media-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg,
            transparent 0%,
            rgba(253, 173, 1, 0.03) 100%);
    pointer-events: none;
}

.loge-media-container:hover {
    border-color: rgba(253, 173, 1, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.loge-media-btn {
    box-shadow: 0 4px 12px rgba(253, 173, 1, 0.2);
    transition: all var(--transition-base);
}

.loge-media-btn:hover {
    box-shadow: 0 6px 20px rgba(253, 173, 1, 0.35);
    transform: translateY(-2px);
}

/* ========================================
   CTA SECTION REFINEMENTS
   ======================================== */

.cta-section {
    position: relative;
    background: linear-gradient(135deg,
            var(--bg-light) 0%,
            var(--bg-dark) 50%,
            var(--bg-light) 100%);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
            var(--primary-dim) 0%,
            transparent 70%);
    pointer-events: none;
}

.cta-section h2,
.cta-section p {
    position: relative;
    z-index: 1;
}

/* ========================================
   GALLERY ENHANCEMENTS
   ======================================== */

.premium-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.premium-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.premium-gallery-item:hover::after {
    opacity: 1;
}

/* ========================================
   STICKY CTA BUTTON
   ======================================== */

.sticky-cta {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: linear-gradient(135deg, var(--secondary) 0%, #fdad01 100%);
    color: #fff;
    padding: 18px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    /* Ensure it's on top of everything */
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(120px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    cursor: pointer;
}

.sticky-cta.visible {
    transform: translateY(0);
    opacity: 1 !important;
    visibility: visible !important;
}

.sticky-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.5),
        0 6px 12px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

.sticky-cta-icon {
    font-size: 1.25rem;
    transition: transform var(--transition-base);
}

.sticky-cta:hover .sticky-cta-icon {
    transform: translateX(4px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sticky-cta {
        bottom: 20px;
        right: 20px;
        padding: 14px 24px;
        font-size: 0.875rem;
    }

    .sticky-cta-text {
        display: none;
    }

    .sticky-cta {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .sticky-cta-icon {
        font-size: 1.5rem;
        transform: rotate(-45deg);
    }

    .sticky-cta:hover .sticky-cta-icon {
        transform: rotate(-45deg) scale(1.1);
    }
}

/* ========================================
   SCROLL PROGRESS INDICATOR (Optional)
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
    transform-origin: left;
    z-index: 9999;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ========================================
   LINK REFINEMENTS
   ======================================== */

a {
    transition: color var(--transition-base);
}

/* Smooth focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ========================================
   LOADING STATES
   ======================================== */

img[data-src]:not([src]) {
    filter: blur(8px);
    transition: filter var(--transition-smooth);
}

img[src] {
    filter: blur(0);
}

/* ========================================
   RESPONSIVE REFINEMENTS
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Better mobile touch targets */
@media (max-width: 768px) {

    .learn-more-btn,
    .nav-cta,
    .loge-media-btn {
        min-height: 48px;
        padding-top: 14px;
        padding-bottom: 14px;
    }
}

/* ========================================
   MICRO-INTERACTIONS
   ======================================== */

/* Smooth cursor changes */
.learn-more-btn,
.service-card,
.nav-cta,
.loge-media-btn,
button,
a {
    cursor: pointer;
}

/* Loading state for buttons */
.learn-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.learn-more-btn.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}