/* TM CMS */
/* ========================================
   TRACED METHOD WEBSITE - CUSTOM STYLES
   ======================================== */

/* Cool Professional Theme Colors */
:root {
    --bg-primary: #0a0f1a;
    --bg-secondary: #141b2d;
    --bg-card: rgba(20, 27, 45, 0.5);
    
    --accent-primary: #14b8a6;
    --accent-secondary: #0ea5e9;
    --accent-tertiary: #06b6d4;
    
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
}

/* Global Font Family */
* {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Thin Typography */
h1 {
    font-weight: 200 !important; /* Extra light */
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-weight: 300 !important; /* Light */
    letter-spacing: -0.01em;
    line-height: 1.2;
}

h3 {
    font-weight: 400 !important; /* Normal/Regular */
    line-height: 1.3;
}

/* Keep emphasis bold */
strong, b {
    font-weight: 600;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ========================================
   GRADIENT BACKGROUNDS & ANIMATIONS
   ======================================== */

.gradient-bg {
    background: linear-gradient(135deg, #0a0f1a 0%, #141b2d 50%, #1e293b 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========================================
   GLASS MORPHISM EFFECTS
   ======================================== */

.glass {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ========================================
   HOVER EFFECTS & INTERACTIONS
   ======================================== */

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ========================================
   SCROLL-TRIGGERED ANIMATIONS
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Delays for Staggered Effects */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ========================================
   BUTTON STYLES
   ======================================== */

.btn-gradient {
    background: linear-gradient(135deg, #14b8a6, #0ea5e9, #06b6d4);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* ========================================
   MOBILE MENU ANIMATIONS
   ======================================== */

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* ========================================
   NAVIGATION INDICATORS
   ======================================== */

.nav-indicator {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #14b8a6, #0ea5e9);
    transition: width 0.3s ease;
}

.nav-link.active .nav-indicator {
    width: 100%;
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #14b8a6, #0ea5e9, #06b6d4);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #14b8a6, #0ea5e9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 50;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* ========================================
   IMAGE OVERLAY UTILITIES
   ======================================== */

/* Ensure content stays on top of images */
.content-over-image {
    position: relative;
    z-index: 10;
}

/* Parallax effect for hero image */
.parallax-image {
    transform: translateY(var(--parallax-offset, 0));
    transition: transform 0.1s ease-out;
}

/* Smooth image loading transition */
img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

/* Hide broken images gracefully */
img[src=""] {
    display: none;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    /* Hide interactive elements */
    .scroll-progress,
    .back-to-top,
    header,
    #mobile-menu,
    .gradient-bg {
        display: none !important;
    }
    
    /* Clean print layout */
    body {
        background: white !important;
        color: black !important;
    }
    
    /* Override dark backgrounds */
    .bg-slate-950,
    .bg-slate-900 {
        background: white !important;
    }
    
    /* Override light text colors */
    .text-slate-100,
    .text-slate-200,
    .text-slate-300 {
        color: black !important;
    }
    
    /* Show URLs after links */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    /* Remove glass effects */
    .glass {
        background: white !important;
        backdrop-filter: none !important;
    }
}