codecraft-nexus / style.css
jsaplication's picture
ficou muito simples quero algo na pegada top mesmo parrecido com o site oficial do nodejs, algo bem bonito, e limpo]
af0b858 verified
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
:root {
--primary: #026e00;
--primary-light: #68e878;
--dark: #333333;
--light: #f8f8f8;
--gradient: linear-gradient(135deg, var(--primary), var(--primary-light));
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
scroll-behavior: smooth;
color: var(--dark);
background: var(--light);
line-height: 1.6;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
font-weight: 700;
line-height: 1.2;
}
h1 {
font-size: 3.5rem;
}
h2 {
font-size: 2.5rem;
}
h3 {
font-size: 1.75rem;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
.btn {
display: inline-block;
padding: 0.75rem 1.5rem;
border-radius: 50px;
font-weight: 600;
text-align: center;
white-space: nowrap;
transition: all 0.2s ease;
}
.btn-primary {
background: var(--gradient);
color: white;
box-shadow: 0 4px 15px rgba(2, 110, 0, 0.2);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(2, 110, 0, 0.3);
}
.btn-outline {
border: 2px solid var(--primary);
color: var(--primary);
}
.btn-outline:hover {
background: var(--primary);
color: white;
}
section {
padding: 5rem 0;
}
.section-title {
margin-bottom: 3rem;
text-align: center;
}
.section-title span {
color: var(--primary);
}
.card {
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
/* Animation classes */
.fade-in {
animation: fadeIn 0.8s ease forwards;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
/* Custom scrollbar - dark theme */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: rgba(0,0,0,0.05);
}
::-webkit-scrollbar-thumb {
background: var(--primary);
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--primary-light);
}
/* Hero section styles */
.hero {
position: relative;
padding: 8rem 0 10rem;
background: var(--gradient);
color: white;
overflow: hidden;
}
.hero::after {
content: '';
position: absolute;
bottom: -50px;
left: 0;
right: 0;
height: 100px;
background: var(--light);
transform: skewY(-2deg);
z-index: 1;
}
.hero-content {
position: relative;
z-index: 2;
max-width: 800px;
margin: 0 auto;
text-align: center;
}
.hero h1 {
font-size: 4rem;
margin-bottom: 1.5rem;
line-height: 1.1;
}
.hero p {
font-size: 1.25rem;
opacity: 0.9;
margin-bottom: 2rem;
}
.hero-btns {
display: flex;
gap: 1rem;
justify-content: center;
}
/* Feature cards */
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.feature-card {
padding: 2.5rem;
text-align: center;
}
.feature-card .icon {
width: 80px;
height: 80px;
margin: 0 auto 1.5rem;
display: flex;
align-items: center;
justify-content: center;
background: rgba(2, 110, 0, 0.1);
border-radius: 50%;
}
.feature-card .icon i {
color: var(--primary);
font-size: 2rem;
}
.feature-card h3 {
margin-bottom: 1rem;
}
/* Dark section */
.dark-section {
background: var(--dark);
color: white;
}
.dark-section .section-title span {
color: var(--primary-light);
}
/* Responsive adjustments */
@media (max-width: 768px) {
.hero h1 {
font-size: 2.5rem;
}
.hero-btns {
flex-direction: column;
align-items: center;
}
.btn {
width: 100%;
max-width: 300px;
}
}