/* ========================================
   ARTIKA ICECUBE - Ice/Glass/Crystal Theme
   ======================================== */

/* CSS Custom Properties - Ice Palette */
:root {
    /* Core Colors */
    --bg-deep: #050d1a;
    --bg-arctic: #0a1628;
    --bg-midnight: #0f1e36;
    
    /* Ice Blues */
    --ice-primary: #a8d8ea;
    --ice-accent: #68c4e8;
    --ice-bright: #7dd3fc;
    --ice-glow: #38bdf8;
    
    /* Crystal & Frost */
    --crystal-white: #f0f8ff;
    --frost-light: rgba(255, 255, 255, 0.08);
    --frost-medium: rgba(255, 255, 255, 0.12);
    --frost-strong: rgba(255, 255, 255, 0.18);
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;
    
    /* Shadows & Glows */
    --glow-ice: 0 0 30px rgba(104, 196, 232, 0.3);
    --glow-intense: 0 0 50px rgba(56, 189, 248, 0.4);
    --shadow-frost: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-arctic) 50%, var(--bg-midnight) 100%);
    color: var(--crystal-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   BACKGROUND EFFECTS
   ======================================== */

/* Aurora Borealis Effect */
.aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(104, 196, 232, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 30%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 50% 80%, rgba(125, 211, 252, 0.08) 0%, transparent 50%);
    animation: auroraShift 20s ease-in-out infinite;
}

@keyframes auroraShift {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-20px) scale(1.05);
        opacity: 0.5;
    }
}

/* Ice Crystals Background */
.ice-crystals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.crystal {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 2px;
}

.crystal-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    transform: rotate(45deg);
    animation: crystalFloat 15s ease-in-out infinite;
}

.crystal-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    transform: rotate(30deg);
    animation: crystalFloat 18s ease-in-out infinite reverse;
}

.crystal-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    transform: rotate(60deg);
    animation: crystalFloat 12s ease-in-out infinite 2s;
}

@keyframes crystalFloat {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: rotate(45deg) translateY(-30px);
        opacity: 0.8;
    }
}

/* ========================================
   SNOWFLAKES
   ======================================== */

.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    animation: snowfall linear infinite;
    user-select: none;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0.3;
    }
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-lg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.logo-icon {
    font-size: 3rem;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(104, 196, 232, 0.5));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.logo-text {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--crystal-white) 0%, var(--ice-primary) 50%, var(--ice-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.logo-text .highlight {
    background: linear-gradient(135deg, var(--ice-accent) 0%, var(--ice-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--ice-primary);
    opacity: 0.9;
    letter-spacing: 0.05em;
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery {
    flex: 1;
    padding: var(--space-lg) 0;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--crystal-white);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.ice-accent {
    font-size: 1.8rem;
}

/* ========================================
   ICECUBE GRID
   ======================================== */

.icecube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-sm);
}

/* ========================================
   ICECUBE CARDS - Frosted Glass Effect
   ======================================== */

.icecube-card {
    position: relative;
    display: block;
    padding: var(--space-xl);
    border-radius: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: 
        transform var(--transition-smooth),
        box-shadow var(--transition-smooth),
        border-color var(--transition-smooth);
    cursor: pointer;
}

.icecube-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    opacity: 0.5;
}

.icecube-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--glow-ice), var(--shadow-frost);
    border-color: rgba(104, 196, 232, 0.3);
}

/* Card Shimmer Effect */
.card-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    transition: left 0.8s ease;
    pointer-events: none;
}

.icecube-card:hover .card-shimmer {
    left: 100%;
}

/* Card Frost Overlay */
.card-frost {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, 
        rgba(168, 216, 234, 0.05) 0%, 
        transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.icecube-card:hover .card-frost {
    opacity: 1;
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.app-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform var(--transition-smooth);
}

.icecube-card:hover .app-icon {
    transform: scale(1.1) rotate(-5deg);
}

.app-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    background: linear-gradient(135deg, var(--crystal-white) 0%, var(--ice-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-description {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--ice-primary);
    opacity: 0.8;
    line-height: 1.5;
}

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

.footer {
    margin-top: auto;
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid var(--frost-light);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    color: var(--ice-primary);
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-link {
    color: var(--ice-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.7;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer-link:hover {
    opacity: 1;
    color: var(--ice-accent);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding: var(--space-md);
    }
    
    .header {
        padding: var(--space-xl) 0;
    }
    
    .logo-icon {
        font-size: 2.5rem;
    }
    
    .icecube-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .icecube-card {
        padding: var(--space-lg);
    }
    
    .app-icon {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .tagline {
        font-size: 0.95rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .snowflake {
        display: none;
    }
}

/* Focus Styles */
.icecube-card:focus-visible,
.footer-link:focus-visible {
    outline: 2px solid var(--ice-accent);
    outline-offset: 4px;
}
