/* styles.css - Custom styling for Kan Studio AI Fashion Portfolio */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Inter:wght@100..900&display=swap');

:root {
    --color-primary: #031635;
    --color-primary-light: #1a2b4b;
    --color-primary-container: #e8eefc;
    --color-on-primary: #ffffff;
    --color-secondary: #655e51;
    --color-secondary-container: #e9dece;
    --color-on-secondary: #ffffff;
    --color-background: #fbf8fc;
    --color-surface: #ffffff;
    --color-surface-muted: #f5f3f6;
    --color-text-main: #1b1b1e;
    --color-text-muted: #44474e;
    --color-outline: #c5c6cf;
    --color-outline-muted: rgba(101, 94, 81, 0.15);
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-background);
}
::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

body {
    background-color: var(--color-background);
    color: var(--color-text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
    font-family: var(--font-heading);
}

/* Premium Typography Settings */
.letter-spacing-wide {
    letter-spacing: 0.05em;
}

.letter-spacing-widest {
    letter-spacing: 0.15em;
}

/* Glassmorphism Header */
.glass-header {
    background: rgba(251, 248, 252, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-outline-muted);
}

.glass-header.scrolled {
    background: rgba(3, 22, 53, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-header.scrolled a,
.glass-header.scrolled nav a {
    color: rgba(255, 255, 255, 0.8);
}
.glass-header.scrolled a:hover,
.glass-header.scrolled nav a:hover {
    color: var(--color-on-primary);
}
.glass-header.scrolled .logo-text {
    color: #ffffff;
}

/* Before/After Draggable Slider */
.before-after-container {
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.before-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: inset(0 50% 0 0);
}

.slider-drag-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ffffff;
    cursor: ew-resize;
    z-index: 30;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.slider-drag-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: #ffffff;
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(3, 22, 53, 0.25);
    border: 3px solid var(--color-secondary-container);
    transition: transform 0.2s ease, background 0.2s ease;
}

.slider-drag-handle:hover .slider-drag-circle,
.slider-drag-handle:active .slider-drag-circle {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--color-secondary-container);
}

/* Micro-animations */
.hover-lift {
    transition: var(--transition-smooth);
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(3, 22, 53, 0.08);
}

.hover-glow {
    transition: var(--transition-smooth);
}
.hover-glow:hover {
    box-shadow: 0 0 25px rgba(101, 94, 81, 0.3);
}

/* Dynamic Filter Badges */
.filter-btn {
    transition: var(--transition-smooth);
}
.filter-btn.active {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    border-color: var(--color-primary);
}

/* Custom Floating Contact Widget for Desktop */
.floating-widget-item {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-widget-item:hover {
    padding-left: 20px;
    transform: translateX(-8px);
}

/* Portfolio Masonry & Aspect Ratios */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
}

@media (min-width: 640px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Custom portfolio filtering fade animations */
.gallery-card {
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    transform: scale(1);
}

.gallery-card.hidden {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Service Card Background Highlight */
.service-icon-bg {
    background: radial-gradient(circle, rgba(233,222,206,0.5) 0%, rgba(233,222,206,0.1) 100%);
}

/* Timeline Process Line */
.process-line {
    position: absolute;
    top: 36px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--color-secondary) 0px, var(--color-secondary) 8px, transparent 8px, transparent 16px);
    z-index: 0;
}

/* Banner Gradients */
.bg-gradient-premium {
    background: linear-gradient(135deg, #031635 0%, #122954 50%, #031635 100%);
}

/* Image Shimmer / Hover Scale */
.img-zoom-container {
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}
.img-zoom-container img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom-container:hover img {
    transform: scale(1.08);
}
.img-zoom-container::after {
    content: 'zoom_in';
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 28px;
    color: #ffffff;
    position: absolute;
    inset: 0;
    background: rgba(3, 22, 53, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.img-zoom-container:hover::after {
    opacity: 1;
}
.img-zoom-container > div.absolute {
    z-index: 20;
}

/* Interactive Accordion / Timeline */
.process-card {
    border-left: 2px solid var(--color-secondary);
    padding-left: 24px;
    position: relative;
}

.process-card::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid var(--color-secondary-container);
}

/* Utility Scrollbars */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
