/* =============================================
   Hero Section Styles
   ============================================= */



.hero {
    position: relative;
    background-color: transparent; /* Let the body's gradient show through */
    padding: calc(var(--header-height) + 4rem) 0 4rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--light-shades);
}

/* Grid Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

/* Radial Gradient Overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 90% 100%, rgba(246, 133, 31, 0.2), transparent 50%);
    z-index: 2;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 3;
}

.hero__container {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero__content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero__text-content {
    max-width: 600px;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--light-shades);
}

.hero__title .highlight {
    color: var(--main-brand);
}

.hero__description {
    font-size: var(--font-size-base);
    color: var(--light-accent);
    line-height: var(--line-height-relaxed);
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero__cta {
    display: flex;
    gap: 1rem;
}

/* Overriding global button styles for the hero section */
.hero .hero__cta .btn {
    text-transform: capitalize;
    font-weight: var(--font-weight-medium);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* Base border */
    text-decoration: none; /* Ensure no underline */
}

.hero .hero__cta .btn--primary {
    background-color: var(--main-brand);
    color: var(--dark-shades) !important;
    border-color: var(--main-brand);
}

.hero .hero__cta .btn--primary:hover {
    background-color: #d9741c; /* Darker orange on hover */
    border-color: #d9741c;
    color: #FFFFFF !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(246, 133, 31, 0.2);
}

.hero .hero__cta .btn--secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light-shades) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero .hero__cta .btn--secondary:hover {
    background-color: #444;
    border-color: #777;
    color: #FFFFFF !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
/* Terminal Styling */
.hero__terminal-wrapper {
    perspective: 1000px;
}

.terminal {
    background-color: var(--dark-shades);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.terminal:hover {
    transform: rotateY(0) rotateX(0);
}

.terminal__header {
    background-color: var(--dark-accent);
    padding: 0.5rem 1rem;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal__controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.control--red { background-color: #FF5F56; }
.control--yellow { background-color: #FFBD2E; }
.control--green { background-color: #27C93F; }

.terminal__title {
    color: #999;
    font-size: 0.8rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.terminal__body {
    padding: 1.5rem;
    height: 300px;
    overflow-y: auto;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--terminal-text);
    white-space: pre-wrap;
    line-height: 1.5;
}

.typed-cursor {
    color: var(--terminal-text);
    opacity: 1;
    animation: blink 0.7s infinite;
}

/* Custom Scrollbar for Terminal */
.terminal__body::-webkit-scrollbar {
    width: 8px;
}

.terminal__body::-webkit-scrollbar-track {
    background: var(--terminal-bg);
}

.terminal__body::-webkit-scrollbar-thumb {
    background-color: #444; /* Darker grey for the thumb */
    border-radius: 4px;
    border: 2px solid var(--terminal-bg);
}

.terminal__body::-webkit-scrollbar-thumb:hover {
    background-color: #666;
}

/* For Firefox */
.terminal__body {
    scrollbar-width: thin;
    scrollbar-color: #444 var(--terminal-bg);
}

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

/* Stats Section */
.hero__stats {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat__number {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--hero-highlight-color);
    margin: 0;
}

.stat__label {
    font-size: var(--font-size-sm);
    color: var(--hero-text-color);
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero__content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__text-content {
        margin: 0 auto;
    }

    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__cta {
        justify-content: center;
    }

    .terminal {
        transform: none;
    }
}

@media (max-width: 576px) {
    .hero__stats {
        flex-direction: column;
        align-items: center;
    }

    .hero__cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 80%;
    }
}

