/* =========================================
   POLISH & FINAL TOUCHES
   Premium CV - Quentin Hanssen
   ========================================= */

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

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

/* Consistent heading styles */
.section-header h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.02em;
}

/* =========================================
   SUBTLE HOVER EFFECTS
   ========================================= */

/* Smooth transitions for all interactive elements */
a, button, .glow-card, .timeline-content {
    transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}

/* =========================================
   SCROLL BEHAVIOR
   ========================================= */

/* Smooth scroll with offset for fixed header */
html {
    scroll-padding-top: 100px;
}

/* =========================================
   SELECTION STYLING
   ========================================= */

::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(212, 175, 55, 0.3);
    color: #ffffff;
}

/* =========================================
   FOCUS STATES (Accessibility)
   ========================================= */

a:focus-visible,
button:focus-visible {
    outline: 2px solid #d4af37;
    outline-offset: 4px;
}

/* =========================================
   LINK STYLING
   ========================================= */

/* Subtle underline animation for nav links */
.nav-links a:not(.btn-primary) {
    position: relative;
    overflow: hidden;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #d4af37;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:not(.btn-primary):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* =========================================
   CARD ENHANCEMENTS
   ========================================= */

/* Subtle shadow on cards */
.glow-card,
.timeline-content.glow-card {
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08);
}

.glow-card:hover,
.timeline-content.glow-card:hover {
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 4px 10px rgba(0, 0, 0, 0.15);
}

/* =========================================
   SECTION SEPARATORS
   ========================================= */

.section:not(:last-child)::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #d4af37, transparent);
    margin: 4rem auto 0;
    opacity: 0.3;
}

/* =========================================
   LOADING SCREEN POLISH
   ========================================= */

/* Ensure smooth transition from loader to content */
body:not(.loading) {
    animation: body-fade-in 0.5s ease;
}

@keyframes body-fade-in {
    from {
        opacity: 0.95;
    }
    to {
        opacity: 1;
    }
}

/* =========================================
   STATS REFINEMENT
   ========================================= */

.stat-number {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37 0%, #f5d87a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   SKILL COLUMN POLISH
   ========================================= */

.skill-column h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #d4af37;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.clean-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clean-list li {
    padding: 0.6rem 0;
    color: #cccccc;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.clean-list li:last-child {
    border-bottom: none;
}

.clean-list li:hover {
    color: #ffffff;
    padding-left: 0.5rem;
}

.clean-list li strong {
    color: #ffffff;
}

/* =========================================
   EDUCATION CARD POLISH
   ========================================= */

.minimalist-education {
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.minimalist-education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

/* =========================================
   CONTACT SECTION POLISH
   ========================================= */

.contact-header h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* CTA Button enhancement */
.cta-primary-btn {
    position: relative;
    overflow: hidden;
}

.cta-primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.cta-primary-btn:hover::before {
    left: 100%;
}

/* =========================================
   SCROLLBAR STYLING
   ========================================= */

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

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

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #333 #0a0a0a;
}

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

@media print {
    .navbar,
    .scroll-indicator,
    .premium-loader,
    #hero-field {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-title,
    h1.hero-title {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
}
