/* ===========================================
   MiniWest Website - Custom Styles
   Dark Theme with Purple Accents
   =========================================== */

/* CSS Variables */
:root {
    --purple-light: #a78bfa;
    --purple-main: #8b5cf6;
    --purple-dark: #6d28d9;
    --purple-darker: #4c1d95;
    --black: #000000;
    --gray-darker: #0a0a0a;
    --gray-base: #171717;
    --gray-light: #262626;
    --text: #e5e5e5;
    --text-muted: #a3a3a3;
}

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

body {
    overflow-x: hidden;
}

/* Navigation Links */
.nav-link {
    position: relative;
    color: var(--text-muted);
    transition: color 0.3s ease;
    padding-bottom: 2px;
}

.nav-link:hover {
    color: var(--purple-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-main);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switcher */
.lang-btn.active {
    background: var(--purple-main);
    color: var(--black);
    border-color: var(--purple-main);
}

/* Terminal Box */
.terminal-box {
    background: var(--gray-base);
    border: 1px solid var(--purple-darker);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.terminal-header {
    background: var(--gray-darker);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--purple-darker);
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.terminal-line {
    color: var(--text);
    margin-top: 12px;
}

.terminal-output {
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Cursor Blink Animation */
.cursor-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Card Hover Effect */
.card-hover {
    display: block;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

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

/* Glow Effect on Hover */
.glow-hover {
    transition: box-shadow 0.3s ease;
}

.glow-hover:hover {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4),
                0 0 40px rgba(139, 92, 246, 0.2);
}

/* Gradient Background Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

/* Timeline Styles (for About page) */
.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--purple-main), var(--purple-darker));
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--purple-main);
    border: 3px solid var(--black);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.timeline-item:last-child::before {
    background: linear-gradient(to bottom, var(--purple-main), transparent);
}

/* Progress Bar */
.skill-bar {
    height: 8px;
    background: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple-dark), var(--purple-main), var(--purple-light));
    border-radius: 4px;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Skill Tags */
.skill-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gray-base);
    border: 1px solid var(--purple-darker);
    border-radius: 20px;
    color: var(--purple-light);
    font-size: 14px;
    margin: 4px;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--purple-main);
    color: var(--black);
    border-color: var(--purple-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Project Card */
.project-card {
    background: var(--gray-base);
    border: 1px solid var(--purple-darker);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--purple-dark), var(--purple-main), var(--purple-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    border-color: var(--purple-main);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
}

/* Particle Canvas */
#particles {
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .terminal-body {
        font-size: 12px;
        padding: 16px;
    }

    .timeline-item {
        padding-left: 30px;
    }
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--purple-darker);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-main);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Coming Soon Badge */
.coming-soon {
    display: inline-block;
    padding: 4px 12px;
    background: var(--purple-darker);
    color: var(--purple-light);
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 8px;
}

/* Typewriter Effect */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--purple-main);
    white-space: nowrap;
    animation: typewriter 3s steps(40) 1s forwards,
               blink 0.75s step-end infinite;
}

/* Section Spacing */
section {
    padding: 60px 0;
}

/* Heading Styles */
h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--purple-light), var(--purple-main));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--purple-main);
}

/* Link Hover */
a {
    text-decoration: none;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--purple-main);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--purple-main);
    color: var(--black);
}
