/* Root Variables */
:root {
    --bg-primary: #121212;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-muted: #b0b0b0;
    --accent-start: #FF4044;
    --accent-end: #FF6E40;
    --tooltip-accent: rgba(255, 23, 68, 0.4);
    --bg: #0a0a0a;
    --surface: #111111;
    --border: #1a1a1a;
    --accent: #00d4ff;
    --text: #ffffff;
    --text-muted: #888888;
    --glass: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.light-theme {
    --bg-primary: #F5F5F5;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-muted: #555555;
    --accent-start: #D32F2F;
    --accent-end: #F06292;
    --tooltip-accent: rgba(211, 47, 47, 0.3);
    --bg: #ffffff;
    --surface: #f5f5f5;
    --border: #e0e0e0;
    --accent: #0066cc;
    --text: #1a1a1a;
    --text-muted: #666666;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(200, 200, 200, 0.3);
    --glow-shadow: 0 0 15px rgba(211, 47, 47, 0.2);
}
.h2 {
   font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.h4 {
   font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Technology Stack Styles */
#tech-stack {
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.tech-stack-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 16px;
}

.tech-stack-grid::-webkit-scrollbar {
    display: none;
}

.tech-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    min-height: 240px;
    width: 250px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 8px 0; /* Added top and bottom margin for breathing room */
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-shadow);
    border-color: var(--accent);
    z-index: 10; /* Brings the card above other elements */
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: left 0.4s ease;
}

.tech-card:hover::before {
    left: 100%;
}

.tech-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover .tech-icon {
    transform: scale(1.15);
    box-shadow: 0 0 10px var(--accent);
}

.light-theme .tech-card {
    box-shadow: 0 4px 12px var(--tooltip-accent);
}

@media (max-width: 768px) {
    .tech-card {
        width: 220px;
        min-height: 220px;
    }
}