/* Simple, Clean Design for Stat-Helper */

:root {
    --primary: #326CE5;
    --secondary: #0db7ed;
    --dark: #1e1e1e;
    --light: #f8f9fa;
    --success: #27c93f;
    --text: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary);
}

/* Simple Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

.github-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #24292e;
    color: white !important;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.github-btn:hover {
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    overflow: hidden;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 1s ease-out;
}

.hero-content p {
    font-size: 1.4rem;
    color: #6c757d;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeIn 1s ease-out 0.5s forwards;
    opacity: 0;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
}

.primary-btn {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px rgba(50, 108, 229, 0.25);
}

.primary-btn:hover {
    background-color: #2951b9;
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(50, 108, 229, 0.3);
}

.secondary-btn {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.secondary-btn:hover {
    background-color: #f0f4ff;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Terminal */
.hero-terminal {
    animation: slideIn 1s ease-out 0.8s forwards;
    opacity: 0;
    transform: translateX(20px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.terminal-tabs {
    display: flex;
    margin-bottom: -2px;
    position: relative;
    z-index: 2;
}

.tab-btn {
    padding: 8px 16px;
    background: rgba(0,0,0,0.2);
    border: none;
    color: #aaa;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 4px;
    outline: none;
}

.tab-btn.active {
    background-color: var(--dark);
    color: #fff;
}

.tab-btn:hover:not(.active) {
    background-color: rgba(0,0,0,0.3);
    color: #ddd;
}

.terminal-screens {
    position: relative;
}

.terminal {
    background-color: var(--dark);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    display: none;
}

.terminal.active {
    display: block;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.terminal-header {
    background-color: #2d2d2d;
    padding: 10px;
    display: flex;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

.title {
    color: #eee;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    margin-left: 15px;
}

.terminal-body {
    padding: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #f8f8f8;
    background-color: #1e1e1e;
    background-image: linear-gradient(
        rgba(255, 255, 255, 0.03) 50%, 
        transparent 50%
    );
    background-size: 100% 4px;
}

.terminal-body pre {
    white-space: pre-wrap;
    line-height: 1.5;
    letter-spacing: -0.1px;
}

.prompt {
    color: #27c93f;
    font-weight: bold;
}

.command {
    color: #3b95db;
}

.active {
    color: #27c93f;
    font-weight: bold;
}

/* Simulated typing effect for the first terminal */
.tab-content[data-tab="main"] .command {
    overflow: hidden;
    border-right: 2px solid transparent;
    white-space: nowrap;
    animation: typing 1.5s steps(20, end) forwards;
    width: 0;
    display: inline-block;
}

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

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #f8f8f8;
    animation: blink 1s infinite;
    transform: translateY(3px);
}

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

/* Features Section */
.features {
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--text);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    color: #6c757d;
}

.why-terminal {
    margin-top: 80px;
    padding: 40px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    animation: fadeIn 1s ease-out forwards;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.why-terminal.animate {
    opacity: 1;
    transform: translateY(0);
}

.why-terminal h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.6rem;
}

.why-terminal p {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.why-terminal ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    list-style: none;
    padding: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.why-terminal li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    background-color: rgba(248, 249, 250, 0.7);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid var(--primary);
}

.why-terminal li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    background-color: white;
}

.why-terminal i {
    color: var(--primary);
    padding-top: 3px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.why-terminal strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.05rem;
}

/* Installation Section */
.install {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.install h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.install-box {
    max-width: 700px;
    margin: 0 auto;
}

.terminal-install {
    background-color: var(--dark);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.install-steps {
    height: 300px;
    padding: 20px;
    overflow: auto;
}

.install-steps .output {
    color: #aaa;
    font-size: 0.85rem;
    padding-left: 15px;
}

.loading-bar {
    display: block;
    width: 100%;
    height: 6px;
    background-color: #333;
    border-radius: 3px;
    margin-top: 15px;
    overflow: hidden;
    position: relative;
}

.loading-bar .progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    animation: loading 3s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

.copy-all-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.copy-all-btn:hover {
    background-color: #2951b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(50, 108, 229, 0.3);
}

.requirements {
    text-align: center;
    margin-top: 30px;
}

.requirements h3 {
    color: #555;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.req-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.req-badge {
    padding: 8px 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 30px;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.req-badge i {
    color: var(--primary);
}

.req-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background-color: white;
}

/* Footer */
footer {
    background-color: #f1f3f5;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer p {
    color: #6c757d;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #6c757d;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Media Queries */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-terminal {
        order: 2;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    footer .container {
        flex-direction: column;
        gap: 15px;
    }
}
