/* ========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ======================================== */

:root {
    /* Color Palette - HSL for easy manipulation */
    --color-primary: hsl(260, 80%, 65%);
    --color-primary-dark: hsl(260, 80%, 55%);
    --color-secondary: hsl(340, 75%, 65%);
    --color-accent: hsl(180, 70%, 60%);
    
    /* Background colors */
    --color-bg-dark: hsl(240, 30%, 8%);
    --color-bg-darker: hsl(240, 35%, 5%);
    --color-bg-card: hsla(250, 30%, 12%, 0.85);
    
    /* Text colors */
    --color-text-primary: hsl(0, 0%, 95%);
    --color-text-secondary: hsl(0, 0%, 75%);
    --color-text-muted: hsl(0, 0%, 60%);
    
    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    
    /* Border radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(138, 80, 255, 0.4);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Z-index layers */
    --z-background: -1;
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-cursor: 9999;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: linear-gradient(135deg, var(--color-bg-darker) 0%, var(--color-bg-dark) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: none; /* Custom cursor will replace default */
}

/* Fallback cursor for touch devices */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* ========================================
   CUSTOM CURSOR FOLLOWER
   ======================================== */

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 80, 255, 0.3) 0%, transparent 70%);
    border: 2px solid var(--color-primary);
    pointer-events: none;
    z-index: var(--z-cursor);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    transition: width var(--transition-base), height var(--transition-base);
    opacity: 0;
}

.cursor-follower.active {
    opacity: 1;
}

.cursor-follower svg {
    color: var(--color-primary);
    width: 20px;
    height: 20px;
}

.cursor-follower.enlarged {
    width: 60px;
    height: 60px;
}

.cursor-follower.enlarged svg {
    width: 28px;
    height: 28px;
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-follower {
        display: none;
    }
}

/* ========================================
   PARALLAX BACKGROUND
   ======================================== */

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    pointer-events: none;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-out;
}

.parallax-layer-1 {
    background: radial-gradient(circle at 20% 30%, rgba(138, 80, 255, 0.15) 0%, transparent 50%);
}

.parallax-layer-2 {
    background: radial-gradient(circle at 80% 70%, rgba(255, 80, 138, 0.12) 0%, transparent 50%);
}

.parallax-layer-3 {
    background: radial-gradient(circle at 50% 50%, rgba(80, 220, 255, 0.08) 0%, transparent 60%);
}

/* ========================================
   SNOWFALL EFFECT
   ======================================== */

.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-fixed);
}

.snowflake {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.7;
    pointer-events: none;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ========================================
   LAYOUT - CONTAINER
   ======================================== */

.container {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    padding: var(--space-md) var(--space-sm);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    position: relative;
    z-index: var(--z-base);
}

/* ========================================
   BIO CARD SECTION
   ======================================== */

.bio-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    width: 100%;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Entrance animation properties */
    opacity: 0;
    transform: scale(0.8) translateY(30px);
}

.bio-card.animated {
    animation: bioCardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bioCardEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Profile Image */
.profile-image-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-lg);
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: var(--shadow-glow);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-bg-card);
}

/* Profile Info */
.profile-info {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.profile-name {
    font-size: clamp(var(--font-size-2xl), 5vw, var(--font-size-4xl));
    font-weight: 700;
    margin-bottom: var(--space-xs);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-tagline {
    font-size: clamp(var(--font-size-sm), 3vw, var(--font-size-lg));
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    font-weight: 400;
}

.profile-bio {
    font-size: var(--font-size-base);
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.cta-button {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    text-align: center;
}

.cta-button::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-slow), height var(--transition-slow);
}

.cta-button:hover::before,
.cta-button:focus::before {
    width: 300px;
    height: 300px;
}

.primary-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: var(--shadow-md);
}

.primary-cta:hover,
.primary-cta:focus {
    transform: scale(1.05) translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.secondary-cta {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.secondary-cta:hover,
.secondary-cta:focus {
    transform: scale(1.05) translateY(-2px);
    background: rgba(138, 80, 255, 0.1);
}

/* Focus states for accessibility */
.cta-button:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* Social Links */
.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.social-link:hover,
.social-link:focus {
    transform: scale(1.1) translateY(-4px);
    background: rgba(138, 80, 255, 0.2);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.social-link:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.social-icon {
    width: 32px;
    height: 32px;
    color: var(--color-text-secondary);
    transition: color var(--transition-base);
}

.social-link:hover .social-icon,
.social-link:focus .social-icon {
    color: var(--color-primary);
}

.social-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* ========================================
   PRODUCT GALLERY
   ======================================== */

.product-gallery {
    width: 100%;
}

.section-title {
    font-size: clamp(var(--font-size-xl), 4vw, var(--font-size-3xl));
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.product-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.product-item:hover,
.product-item:focus-within {
    transform: scale(1.1) rotate(2deg);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.product-item:hover .product-image,
.product-item:focus-within .product-image {
    transform: scale(1.05);
}

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

.footer {
    width: 100%;
    text-align: center;
    padding: var(--space-lg) var(--space-sm);
    margin-top: var(--space-xl);
}

.footer-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.footer-contact {
    font-size: var(--font-size-sm);
}

.footer-link {
    color: var(--color-primary);
    transition: color var(--transition-base);
}

.footer-link:hover,
.footer-link:focus {
    color: var(--color-secondary);
    text-decoration: underline;
}

.footer-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Small devices (landscape phones, 640px and up) */
@media (min-width: 640px) {
    .container {
        padding: var(--space-lg) var(--space-md);
    }
    
    .bio-card {
        padding: var(--space-2xl);
    }
    
    .profile-image-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }
    
    .social-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    .container {
        max-width: 56rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}

/* ========================================
   REDUCED MOTION PREFERENCES
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .bio-card.animated {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .snowflake {
        display: none;
    }
    
    .cursor-follower {
        display: none;
    }
    
    body {
        cursor: auto;
    }
}

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

@media print {
    .cursor-follower,
    .snow-container,
    .parallax-bg {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
