/**
 * TECH THEME CSS
 * Dark, terminal-inspired design with neon accents
 * Font: JetBrains Mono (monospace) + Inter
 * Colors: Cyan/purple neon on dark backgrounds
 */

/* ==============================================================================
   TYPOGRAPHY
   ============================================================================== */

.theme-tech .mono {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.theme-tech code,
.theme-tech pre {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

/* ==============================================================================
   NEON EFFECTS
   ============================================================================== */

.theme-tech .neon-text {
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    color: #00ffff;
}

.theme-tech .neon-text-purple {
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
    color: #ff00ff;
}

.theme-tech .neon-border {
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5),
                inset 0 0 10px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.5);
}

.theme-tech .neon-border-purple {
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5),
                inset 0 0 10px rgba(255, 0, 255, 0.2);
    border: 1px solid rgba(255, 0, 255, 0.5);
}

/* ==============================================================================
   GLASS MORPHISM
   ============================================================================== */

.theme-tech .glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-tech .glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

/* ==============================================================================
   GRID BACKGROUND
   ============================================================================== */

.theme-tech .grid-bg {
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

.theme-tech .grid-bg-dense {
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* ==============================================================================
   ANIMATIONS
   ============================================================================== */

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: #00ffff }
}

@keyframes glitch-1 {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

@keyframes glitch-2 {
    0% { transform: translate(0) }
    20% { transform: translate(2px, -2px) }
    40% { transform: translate(2px, 2px) }
    60% { transform: translate(-2px, -2px) }
    80% { transform: translate(-2px, 2px) }
    100% { transform: translate(0) }
}

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

@keyframes neonPulse {
    0%, 100% {
        text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    }
    50% {
        text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff, 0 0 40px #00ffff, 0 0 50px #00ffff;
    }
}

/* ==============================================================================
   ANIMATION CLASSES
   ============================================================================== */

.theme-tech .typing-effect {
    overflow: hidden;
    border-right: 2px solid #00ffff;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
}

.theme-tech .neon-pulse {
    animation: neonPulse 2s ease-in-out infinite;
}

.theme-tech .code-line {
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

.theme-tech .code-line:nth-child(1) { animation-delay: 0.1s; }
.theme-tech .code-line:nth-child(2) { animation-delay: 0.2s; }
.theme-tech .code-line:nth-child(3) { animation-delay: 0.3s; }
.theme-tech .code-line:nth-child(4) { animation-delay: 0.4s; }
.theme-tech .code-line:nth-child(5) { animation-delay: 0.5s; }
.theme-tech .code-line:nth-child(6) { animation-delay: 0.6s; }

/* ==============================================================================
   GLITCH EFFECT
   ============================================================================== */

.theme-tech .glitch {
    position: relative;
}

.theme-tech .glitch:hover::before,
.theme-tech .glitch:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.theme-tech .glitch:hover::before {
    animation: glitch-1 0.3s infinite;
    color: #00ffff;
    z-index: -1;
}

.theme-tech .glitch:hover::after {
    animation: glitch-2 0.3s infinite;
    color: #ff00ff;
    z-index: -2;
}

/* ==============================================================================
   HOVER EFFECTS
   ============================================================================== */

.theme-tech .hover-glow {
    transition: all 0.3s ease;
}

.theme-tech .hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    border-color: #00ffff;
}

.theme-tech .hover-glow-purple:hover {
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    border-color: #ff00ff;
}

.theme-tech .hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-tech .hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

/* ==============================================================================
   TERMINAL WINDOW
   ============================================================================== */

.theme-tech .terminal-window {
    @apply rounded-lg overflow-hidden;
    background: #1a1a1a;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.theme-tech .terminal-header {
    @apply flex items-center gap-2 px-4 py-2 bg-gray-900 border-b border-cyan-500/30;
}

.theme-tech .terminal-dot {
    @apply w-3 h-3 rounded-full;
}

.theme-tech .terminal-dot-red {
    @apply bg-red-500;
}

.theme-tech .terminal-dot-yellow {
    @apply bg-yellow-500;
}

.theme-tech .terminal-dot-green {
    @apply bg-green-500;
}

.theme-tech .terminal-body {
    @apply p-6 font-mono text-sm;
}

.theme-tech .terminal-prompt {
    @apply text-cyan-400;
}

.theme-tech .terminal-output {
    @apply text-gray-300;
}

/* ==============================================================================
   SECTION STYLES
   ============================================================================== */

.theme-tech .section-header {
    @apply mb-16 text-center;
}

.theme-tech .section-title {
    @apply text-5xl font-bold text-cyan-400 mb-4;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.theme-tech .section-subtitle {
    @apply text-xl text-gray-400;
}

/* ==============================================================================
   CARD STYLES
   ============================================================================== */

.theme-tech .card {
    @apply rounded-lg p-6 h-full;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.theme-tech .card-terminal {
    @apply rounded-lg overflow-hidden h-full;
    background: #1a1a1a;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* ==============================================================================
   BUTTON STYLES
   ============================================================================== */

.theme-tech .btn-primary {
    @apply px-6 py-3 rounded font-bold transition-all duration-300;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.theme-tech .btn-primary:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.theme-tech .btn-secondary {
    @apply px-6 py-3 rounded font-bold transition-all duration-300;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    background: rgba(255, 0, 255, 0.1);
    border: 2px solid #ff00ff;
    color: #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.theme-tech .btn-secondary:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

/* ==============================================================================
   HERO SECTION
   ============================================================================== */

.theme-tech .hero-container {
    @apply min-h-screen flex items-center justify-center px-4 py-20;
    position: relative;
    overflow: hidden;
}

/* ==============================================================================
   TECH HERO BACKGROUND EFFECTS
   ============================================================================== */

/* Grid background pattern */
.theme-tech .hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
}

/* Cyan blur circle (top-right) */
.theme-tech .hero-blur-cyan {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 50%;
    background: rgba(6, 182, 212, 0.1);
    filter: blur(100px);
    border-radius: 50%;
}

/* Purple blur circle (bottom-left) */
.theme-tech .hero-blur-purple {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background: rgba(168, 85, 247, 0.1);
    filter: blur(100px);
    border-radius: 50%;
}

/* Tech hero heading with gradient */
.theme-tech #hero h1 {
    font-weight: 700;
}

.theme-tech #hero h1 .gradient-text {
    background: linear-gradient(to right, #22d3ee, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tech hero terminal window */
.theme-tech .tech-terminal {
    background: #1a1a1a;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 48rem;
    margin: 0 auto 2rem;
}

.theme-tech .tech-terminal-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.theme-tech .tech-terminal-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

/* Show terminal, hide tagline on tech theme */
.theme-tech .tech-terminal {
    display: block;
}

.theme-tech .hero-tagline {
    display: none;
}

/* ==============================================================================
   TECH STACK / SKILL TAGS
   ============================================================================== */

.theme-tech .skill-tag {
    @apply inline-block px-4 py-2 rounded border text-sm font-mono m-1
           transition-all duration-300;
    background: rgba(0, 255, 255, 0.05);
    border-color: rgba(0, 255, 255, 0.3);
    color: #00ffff;
}

.theme-tech .skill-tag:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* ==============================================================================
   CODE BLOCK
   ============================================================================== */

.theme-tech .code-block {
    @apply rounded-lg p-4 text-sm overflow-x-auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    background: #0d0d0d;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.theme-tech .code-comment {
    @apply text-gray-500;
}

.theme-tech .code-keyword {
    @apply text-purple-400;
}

.theme-tech .code-string {
    @apply text-green-400;
}

.theme-tech .code-function {
    @apply text-cyan-400;
}

/* ==============================================================================
   SECTION BACKGROUND OVERRIDES
   ============================================================================== */

/* About section - slightly lighter dark with grid */
.theme-tech #about {
    background-color: #0a0a0f !important;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    color: #e5e7eb;
}

.theme-tech #about h2 {
    color: #22d3ee;
}

.theme-tech #about p {
    color: #d1d5db;
}

/* Services section - dark with purple accent */
.theme-tech #services {
    background-color: #030712 !important;
    position: relative;
    color: #e5e7eb;
}

.theme-tech #services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top right, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.theme-tech #services h2,
.theme-tech #services h3 {
    color: #a855f7;
}

.theme-tech #services p {
    color: #d1d5db;
}

/* Projects section - dark with grid */
.theme-tech #projects {
    background-color: #0a0a0f !important;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    color: #e5e7eb;
}

.theme-tech #projects h2 {
    color: #22d3ee;
}

/* Reviews section - dark with cyan accent */
.theme-tech #reviews {
    background-color: #030712 !important;
    position: relative;
    color: #e5e7eb;
}

.theme-tech #reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at bottom left, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.theme-tech #reviews h2 {
    color: #22d3ee;
}

/* Contact section - dark with neon border effect */
.theme-tech #contact {
    background-color: #0a0a0f !important;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    color: #e5e7eb;
}

.theme-tech #contact h2 {
    color: #a855f7;
}

/* Footer - darkest */
.theme-tech footer {
    background: #000000 !important;
    border-top: 1px solid rgba(6, 182, 212, 0.2);
}

/* ==============================================================================
   FORM STYLING
   ============================================================================== */

.theme-tech #contact .card {
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.02);
}

.theme-tech #contact input,
.theme-tech #contact textarea {
    background: rgba(3, 7, 18, 0.8) !important;
    border: 1px solid rgba(0, 255, 255, 0.3) !important;
    color: #e5e7eb !important;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.theme-tech #contact input::placeholder,
.theme-tech #contact textarea::placeholder {
    color: #6b7280;
}

.theme-tech #contact input:focus,
.theme-tech #contact textarea:focus {
    border-color: #00ffff !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3) !important;
    outline: none;
}

.theme-tech #contact label {
    color: #22d3ee;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

/* ==============================================================================
   FILTER & CAROUSEL STYLING
   ============================================================================== */

.theme-tech .filter-btn {
    background: rgba(3, 7, 18, 0.8);
    color: #22d3ee;
    border: 1px solid rgba(0, 255, 255, 0.3);
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.theme-tech .filter-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.theme-tech .filter-btn-active {
    background: rgba(0, 255, 255, 0.2) !important;
    color: #00ffff !important;
    border-color: #00ffff !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4) !important;
}

.theme-tech .filter-dropdown {
    background: rgba(3, 7, 18, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.theme-tech .filter-label {
    color: #a855f7;
}

.theme-tech .filter-select {
    color: #22d3ee;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.theme-tech .carousel-nav {
    background: rgba(3, 7, 18, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #22d3ee;
}

.theme-tech .carousel-nav:hover:not(:disabled) {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.theme-tech .carousel-dot {
    background: rgba(0, 255, 255, 0.3);
}

.theme-tech .carousel-dot-active {
    background: #00ffff !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* ==============================================================================
   PROJECT CARDS STYLING
   ============================================================================== */

.theme-tech .card {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.theme-tech .card h3 {
    color: #22d3ee;
}

.theme-tech .card p {
    color: #d1d5db;
}

/* Project card buttons */
.theme-tech .card a[href] {
    background: rgba(0, 255, 255, 0.1) !important;
    border: 1px solid #00ffff !important;
    color: #00ffff !important;
}

.theme-tech .card a[href]:hover {
    background: rgba(0, 255, 255, 0.2) !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

/* Gray button variant for example projects */
.theme-tech .card a.bg-gray-700 {
    background: rgba(168, 85, 247, 0.1) !important;
    border: 1px solid #a855f7 !important;
    color: #a855f7 !important;
}

.theme-tech .card a.bg-gray-700:hover {
    background: rgba(168, 85, 247, 0.2) !important;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}
