/* Hero section */
.hero-section {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 3rem;
    border-radius: 8px;
    background-color: rgba(30, 32, 35, 0.5);
    box-shadow: 0 4px 12px var(--shadow-color);
    border: 1px solid #333;
}

.hero-section h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.accent-text {
    color: var(--accent-color);
    font-weight: bold;
}

.tagline {
    font-size: 1.4rem;
    color: #bbb;
    max-width: 800px;
    margin: 0 auto;
    transition: filter 0.3s ease; /* Add smooth transition */
}

.tagline:hover {
    filter: blur(3px); /* Apply blur effect on hover */
}

/* Features section */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background-color: #242424;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-color);
    border: 1px solid #333;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow-color);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.feature-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: #aaa;
    line-height: 1.6;
}

/* Call to action section */
.cta-section {
    text-align: center;
    padding: 3rem;
    border-radius: 8px;
    background-color: rgba(30, 32, 35, 0.5);
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px var(--shadow-color);
    border: 1px solid #333;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Typing and hacker effect for KeyCrypt */
#keycrypt-text {
    display: inline-block;
}

.typing-cursor {
    display: inline-block;
    color: var(--accent-color);
    font-weight: bold;
    margin-left: 1px;
    animation: none;
}

.typing-cursor.blink {
    animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.hacker-char {
    display: inline-block;
    color: var(--accent-color);
    font-weight: bold;
    position: relative;
    animation: glitch-in 0.2s ease forwards;
}

.hacker-char.revealed {
    text-shadow: 0 0 8px rgba(var(--accent-color-rgb), 0.7);
}

@keyframes glitch-in {
    0% {
        transform: translateY(-10px) skewX(20deg);
        opacity: 0;
    }
    60% {
        transform: translateY(3px) skewX(-10deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0) skewX(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
}