/* Cognition Forge - Custom Styles */

/* CSS Custom Properties */
:root {
    --color-bg-primary: #0a0e27;
    --color-bg-secondary: #1a1f3a;
    --color-accent-cyan: #00d4ff;
    --color-accent-teal: #00ffaa;
    --color-accent-purple: #9b59b6;
    --color-accent-orange: #ffa500;
    --color-text-primary: #ffffff;
    --color-text-secondary: #b0b8cc;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Screen Reader Only (for accessibility) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Navigation Active State */
.nav-link.active {
    color: var(--color-accent-cyan);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-cyan), var(--color-accent-teal));
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Typing Animation Cursor */
.typing-cursor::after {
    content: '|';
    animation: pulse 1s infinite;
    margin-left: 2px;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--color-accent-cyan), var(--color-accent-teal), var(--color-accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Glow Effect */
.btn-glow:hover {
    box-shadow: 0 0 20px var(--color-accent-cyan);
}

/* Expertise Card Styles */
.expertise-card {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.8), rgba(10, 14, 39, 0.8));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.expertise-card:hover {
    border-color: var(--color-accent-cyan);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.expertise-card .icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

/* Project Card Styles */
.project-card {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.8), rgba(10, 14, 39, 0.8));
    border: 1px solid rgba(155, 89, 182, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--color-accent-purple);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(155, 89, 182, 0.3);
}

/* Contact Icon Styles */
.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 170, 0.1));
    border: 2px solid rgba(0, 212, 255, 0.3);
    color: var(--color-accent-cyan);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.contact-icon:hover {
    background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-accent-teal));
    color: var(--color-bg-primary);
    border-color: var(--color-accent-cyan);
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* Tech Tag Styles */
.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--color-accent-cyan);
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--color-accent-cyan);
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(26, 31, 58, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 0.5rem;
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-secondary);
}

/* Scroll Progress Indicator (optional enhancement) */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-cyan), var(--color-accent-teal), var(--color-accent-purple));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
    padding-bottom: 0;
}

#mobile-menu.active {
    max-height: 500px;
    padding-bottom: 1rem;
    padding-top: 0.5rem;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .text-hero {
        font-size: 2.5rem;
    }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--color-accent-cyan);
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}
