/* 
   THE PURPLE MONOLITH 
   Digital Workstation Master Styles
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;800&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --accent-purple: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-dim: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(5, 5, 5, 0.6);
    
    --section-gap: clamp(60px, 10vw, 140px);
    --container-width: 1200px;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8fb;
    --text-primary: #121214;
    --text-secondary: #3f3f46;
    --accent-purple: #7c3aed;
    --accent-glow: rgba(124, 58, 237, 0.08);
    --border-dim: rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.85);
}

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

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.5s ease;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-purple);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 3000;
}

.skip-link:focus {
    top: 0;
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0; 
    left: 0;
    width: 600px; 
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1500;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    transition: opacity 0.3s;
    will-change: transform;
}

@media (max-width: 768px) {
    .cursor-glow {
        display: none;
    }
}

[data-theme="light"] .cursor-glow {
    mix-blend-mode: multiply;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
}

h1, h2, h3, .brand {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-weight: 800;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

/* Navigation */
nav {
    position: fixed;
    top: 0; 
    width: 100%;
    z-index: 2000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--accent-purple);
    padding: 20px 0;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    letter-spacing: 2px;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    z-index: 2001;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 2001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(15px, 3vw, 30px);
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--accent-purple);
    outline: none;
}

.nav-links a:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 4px;
}

.theme-btn {
    background: none; 
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    margin-left: 10px;
    display: flex; 
    align-items: center;
    transition: color 0.3s;
    padding: 5px;
}

.theme-btn:hover,
.theme-btn:focus { 
    color: var(--accent-purple); 
    outline: none;
}

.theme-btn:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 4px;
}

.theme-btn .sun { display: none; }
.theme-btn .moon { display: block; }

[data-theme="light"] .theme-btn .sun { display: block; }
[data-theme="light"] .theme-btn .moon { display: none; }

.lang-switcher {
    display: flex; 
    gap: 8px; 
    font-size: 0.75rem; 
    font-family: 'Outfit', sans-serif;
    margin-left: 10px;
    align-items: center;
}

.lang-switcher span {
    color: var(--text-secondary);
    opacity: 0.3;
}

.lang-btn {
    background: none; 
    border: none; 
    color: var(--text-primary);
    cursor: pointer; 
    font-weight: 600; 
    opacity: 0.6;
    transition: all 0.3s;
    padding: 5px 8px;
    position: relative;
}

.lang-btn:hover,
.lang-btn:focus { 
    opacity: 1; 
    outline: none;
    color: var(--accent-purple);
}

.lang-btn:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

/* Hero Module */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 6vw, 60px);
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 0.9;
    margin: 20px 0;
}

.hero-hello {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    letter-spacing: clamp(2px, 0.5vw, 5px);
    color: var(--accent-purple);
}

.hero-role {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-tagline {
    margin-bottom: 20px;
    font-weight: 500;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--text-primary);
}

.hero-location {
    margin-bottom: 40px;
    font-size: clamp(0.85rem, 1.5vw, 0.9rem);
    opacity: 0.7;
}

.btn-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: clamp(12px, 2vw, 14px) clamp(24px, 4vw, 34px);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    text-transform: uppercase;
    display: inline-block;
}

.btn:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 4px;
}

.btn-solid {
    background: var(--accent-purple);
    color: #fff;
    border: 1px solid var(--accent-purple);
}

.btn-solid:hover,
.btn-solid:focus {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--accent-purple);
    border: 1px solid var(--accent-purple);
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--accent-purple);
    color: #fff;
    transform: scale(1.05);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.visual-sphere {
    width: 100%;
    max-width: 500px;
    mix-blend-mode: screen;
    animation: float 8s ease-in-out infinite;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .visual-sphere {
        animation: none;
    }
}

[data-theme="light"] .visual-sphere {
    mix-blend-mode: multiply;
    filter: invert(1) hue-rotate(180deg) brightness(1.1);
}

/* Bento Grid About */
.bento-section {
    padding: var(--section-gap) 0;
}

.section-title {
    margin-bottom: 30px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: clamp(15px, 2vw, 25px);
    margin-top: 50px;
}

.bento-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    padding: clamp(20px, 3vw, 30px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .bento-item {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bento-item:hover,
.bento-item:focus-within {
    border-color: var(--accent-purple);
    transform: translateY(-5px);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: flex-start;
}

.bento-large h3 {
    margin-bottom: 20px;
}

.bento-large p {
    color: var(--text-secondary);
}

.bento-stat {
    text-align: center;
    gap: 8px;
}

.bento-num {
    font-size: clamp(2rem, 5vw, 3rem);
    font-family: 'Outfit', sans-serif;
    color: var(--accent-purple);
    display: block;
    margin-bottom: 5px;
}

.bento-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    display: block;
}

.bento-sublabel {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 5px;
    line-height: 1.3;
}

.bento-photo-box {
    grid-column: span 2;
    background: linear-gradient(45deg, var(--bg-secondary), var(--accent-purple));
    position: relative;
    overflow: hidden;
    padding: 0;
}

.bento-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.bento-photo-box:hover .bento-photo {
    transform: scale(1.05);
}

.bento-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-photo-placeholder::after {
    content: '👤';
    font-size: 4rem;
    opacity: 0.3;
}

.bento-timeline-widget {
    grid-column: span 2;
    padding: 25px !important;
    display: block !important;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.bento-timeline-widget h4 {
    color: var(--accent-purple);
    font-size: 0.75rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

.bento-timeline {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bento-evo-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    padding: 15px;
    background: rgba(139, 92, 246, 0.03);
    border-left: 3px solid var(--accent-purple);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.bento-evo-item:hover {
    background: rgba(139, 92, 246, 0.08);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.bento-evo-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--bg-secondary);
}

.evo-year {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--accent-purple);
    font-size: 1.1rem;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
}

.evo-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.evo-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.bento-evo-item p {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
    display: flex;
    align-items: center;
    font-weight: 500;
}

/* Project Mosaic Gallery */
.mosaic-section {
    padding: var(--section-gap) 0;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.projects-header .section-title {
    margin-bottom: 0;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    gap: clamp(20px, 4vw, 40px);
    margin-top: 50px;
}

.mosaic-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-dim);
    padding: clamp(25px, 4vw, 40px);
    border-radius: 15px;
    position: relative;
    transition: all 0.4s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mosaic-card:hover,
.mosaic-card:focus-within {
    border-color: var(--accent-purple);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.05);
}

.card-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--text-primary);
}

.card-mission-label {
    color: var(--accent-purple);
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-top: 10px;
    font-weight: 600;
}

.card-desc {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    margin: 20px 0;
}

.tech-capsules {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.capsule {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Project Filters */
.project-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-dim);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

.filter-btn.active, 
.filter-btn:hover,
.filter-btn:focus {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.mosaic-card.hidden {
    display: none;
}

/* Tabbed Toolkit */
.stack-section {
    padding: var(--section-gap) 0;
}

.tab-toolkit {
    background: var(--bg-secondary);
    border: 1px solid var(--border-dim);
    border-radius: 15px;
    overflow: hidden;
    margin-top: 50px;
}

.tab-triggers {
    display: flex;
    border-bottom: 1px solid var(--border-dim);
    overflow-x: auto;
}

.tab-trigger {
    flex: 1;
    background: transparent;
    border: none;
    padding: 20px;
    color: var(--text-secondary);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    white-space: nowrap;
    min-width: fit-content;
}

.tab-trigger:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: -2px;
}

.tab-trigger.active {
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.03);
    border-bottom: 2px solid var(--accent-purple);
}

.tab-content-container {
    padding: clamp(25px, 4vw, 40px);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

.stack-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    list-style: none;
}

.stack-list li {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    display: flex; 
    align-items: center; 
    gap: 10px;
}

.stack-detailed {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.stack-item {
    padding: 20px;
    background: rgba(139, 92, 246, 0.03);
    border-left: 3px solid var(--accent-purple);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stack-item:hover {
    background: rgba(139, 92, 246, 0.08);
    transform: translateX(5px);
}

.stack-item h4 {
    color: var(--accent-purple);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stack-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.stack-item ul {
    margin: 0;
    padding: 0;
}

.stack-item .stack-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.stack-item .stack-list li {
    font-size: 0.95rem;
}

.bullet {
    width: 6px;
    height: 6px;
    background: var(--accent-purple);
    border-radius: 50%;
    display: inline-block;
}

/* Closing Call to Action */
.closing-section {
    padding: var(--section-gap) 0;
    text-align: center;
    border-top: 1px solid var(--border-dim);
}

.closing-section h2 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: clamp(30px, 6vw, 60px);
    flex-wrap: wrap;
}

.social-icon {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.social-icon:hover,
.social-icon:focus {
    color: var(--accent-purple);
    transform: scale(1.1);
    outline: none;
}

.social-icon:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 4px;
}

footer {
    padding: 60px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-large, 
    .bento-photo-box {
        grid-column: span 2;
    }
    
    .mosaic-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-dim);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
    
    .lang-switcher {
        margin-left: 0;
    }
    
    .theme-btn {
        margin-left: 0;
    }
    
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-filters {
        width: 100%;
        justify-content: flex-start;
    }
    
    .tab-triggers {
        flex-wrap: nowrap;
    }
}

@media (max-width: 576px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-large,
    .bento-photo-box {
        grid-column: span 1;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .closing-section h2 {
        font-size: 1.8rem;
    }
    
    .stack-list {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    nav, .cursor-glow, .theme-btn, .lang-switcher, .mobile-menu-toggle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding-top: 0;
    }
    
    .btn {
        border: 1px solid black;
    }
    
    a {
        text-decoration: underline;
    }
}
