/* Pyckle Design System - Tokyo Night Theme */
/* https://pyckle.co | Intelligence, Preserved. */

/* CSS Custom Properties */
:root {
    --void: #1a1b26;
    --slate: #24283b;
    --slate-light: #414868;
    --crystal: #5dd9e8;
    --crystal-hover: #7dcfff;
    --crystal-deep: #3d9ca8;
    --mist: #9aa5ce;
    --smoke: #c0caf5;
    --orange: #f08c4a;
    --green: #9ece6a;
    --red: #f7768e;
    --purple: #bb9af7;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--void);
    color: var(--smoke);
}

/* Glassmorphism */
.glass {
    background: rgba(36, 40, 59, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -moz-backdrop-filter: blur(20px);
}

/* Hero Background - Multi-layer gradient */
.hero-bg {
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(93, 217, 232, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(93, 217, 232, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, #1a1b26 0%, #16161e 100%);
}

/* Pillar Card - Hover effect with crystal line */
.pillar-card {
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(93, 217, 232, 0.5) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pillar-card:hover::before {
    opacity: 1;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--smoke) 0%, var(--crystal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Line Reveal - Crystal underline for headers */
.line-reveal {
    position: relative;
}

.line-reveal::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--crystal) 0%, transparent 100%);
}

/* Crystal Divider */
.crystal-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(93, 217, 232, 0.3) 50%, transparent 100%);
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.2s; }
.fade-in-delay-2 { animation-delay: 0.4s; }
.fade-in-delay-3 { animation-delay: 0.6s; }
.fade-in-delay-4 { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Memory Cell - Hexagon animation (for hero elements) */
.memory-cell {
    position: relative;
    width: 120px;
    height: 120px;
}

.memory-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(93, 217, 232, 0.3) 0%, transparent 50%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: pulse-glow 4s ease-in-out infinite;
}

.memory-cell::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(135deg, var(--void) 0%, var(--slate) 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.memory-cell-inner {
    position: absolute;
    inset: 20px;
    background: radial-gradient(circle at 30% 30%, rgba(93, 217, 232, 0.4) 0%, rgba(93, 217, 232, 0.1) 50%, transparent 70%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 1;
    animation: light-shift 6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

@keyframes light-shift {
    0%, 100% { 
        background: radial-gradient(circle at 30% 30%, rgba(93, 217, 232, 0.5) 0%, rgba(93, 217, 232, 0.1) 50%, transparent 70%);
    }
    50% { 
        background: radial-gradient(circle at 70% 60%, rgba(93, 217, 232, 0.5) 0%, rgba(93, 217, 232, 0.1) 50%, transparent 70%);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7dcfff;
}

/* Light Theme - Site Wide (Muted warm grey for eye comfort) */
[data-theme="light"] {
    --slate: #deddd4;
    --slate-light: #d1d0c7;
    --crystal: #0a7a8c;
    --crystal-hover: #0c8a9e;
    --mist: #5a5d5e;
    --smoke: #1a1d1e;
    --green: #2a7a4a;
    --red: #a53030;
}

[data-theme="light"] body {
    background: #e8e7e0;
    color: #2a2d2e;
}

[data-theme="light"] .glass {
    background: rgba(222, 221, 212, 0.15);
}

[data-theme="light"] nav {
    background: rgba(222, 221, 212, 0.15);
}

[data-theme="light"] footer {
    background: #e8e7e0;
    border-top-color: rgba(209, 208, 199, 0.6);
}

[data-theme="light"] .text-smoke {
    color: #2a2d2e !important;
}

[data-theme="light"] .text-mist {
    color: #5a5d5e !important;
}

[data-theme="light"] .text-crystal {
    color: #0a7a8c !important;
}

[data-theme="light"] .bg-void {
    background: #deddd4 !important;
}

[data-theme="light"] .bg-slate {
    background: #d1d0c7 !important;
}

[data-theme="light"] .bg-slate-light\/30 {
    background: rgba(209, 208, 199, 0.5) !important;
}

[data-theme="light"] .bg-crystal\/10 {
    background: rgba(10, 122, 140, 0.1) !important;
}

[data-theme="light"] .bg-crystal\/5 {
    background: rgba(10, 122, 140, 0.05) !important;
}

[data-theme="light"] .bg-crystal\/20 {
    background: rgba(10, 122, 140, 0.15) !important;
}

[data-theme="light"] .border-slate-light\/30 {
    border-color: rgba(209, 208, 199, 0.6) !important;
}

[data-theme="light"] .border-slate-light\/50 {
    border-color: rgba(209, 208, 199, 0.8) !important;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #e8e7e0 !important;
    border-color: #c5c4bd !important;
    color: #2a2d2e !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: #9a9d9e !important;
}

[data-theme="light"] a:hover {
    color: #0a7a8c;
}

[data-theme="light"] .text-gradient {
    background: linear-gradient(135deg, #2a2d2e 0%, #0a7a8c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #deddd4;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #0a7a8c;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #0c8a9e;
}

/* Toggle Switch */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--crystal);
}

/* Section Connector - Vertical line between sections */
.section-connector {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 8rem;
    background: linear-gradient(180deg, rgba(93, 217, 232, 0.3) 0%, transparent 100%);
}

/* Decorative Blur Circles */
.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    pointer-events: none;
}

.blur-circle-crystal {
    background: rgba(93, 217, 232, 0.05);
}

.blur-circle-purple {
    background: rgba(187, 154, 247, 0.05);
}

/* Scroll to bottom button */
.scroll-bottom-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: #5dd9e8;
    color: #1a1b26;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(93, 217, 232, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-bottom-btn:hover {
    background: #7dcfff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(93, 217, 232, 0.4);
}

[data-theme="light"] .scroll-bottom-btn {
    background: #0a7a8c;
    color: #e8e7e0;
    box-shadow: 0 4px 12px rgba(10, 122, 140, 0.3);
}

[data-theme="light"] .scroll-bottom-btn:hover {
    background: #0c8a9e;
}
