didgitch's picture
Please make this section / hero slider area appear below the header.
cf23ad9 verified
Raw History Blame Contribute Delete
2.6 kB
/* Custom CSS for Didgit.co.uk */
:root {
--primary: #4c1d95;
--primary-light: #6d28d9;
--primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
--secondary: #f43f5e;
--text-dark: #1f2937;
--text-light: #6b7280;
--bg-light: #f9fafb;
--max-width: 1200px;
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Poppins', sans-serif;
scroll-behavior: smooth;
color: var(--text-dark);
background-color: var(--bg-light);
}
.container {
max-width: var(--max-width);
margin: 0 auto;
padding: 0 2rem;
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #6366f1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #4f46e5;
}
/* Animation for sections */
section {
transition: all 0.3s ease;
}
/* Pulse animation for CTA */
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
}
}
.pulse:hover {
animation: pulse 1.5s infinite;
}
/* Hero Slider */
.hero-slider {
position: relative;
height: 400px;
margin-top: 2rem;
}
.slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 0.5s ease;
}
.slide.active {
opacity: 1;
}
.slider-dots {
position: absolute;
bottom: 20px;
left: 0;
}
.dot.active {
opacity: 1 !important;
}
/* Client Logos */
.client-logos {
animation: scrollLogos 20s linear infinite;
}
.client-logos:hover {
animation-play-state: paused;
}
.client-logos img {
height: 60px;
object-fit: contain;
margin: 0 2rem;
}
@keyframes scrollLogos {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-100%);
}
}
/* Custom button hover effects */
.btn-hover-effect {
position: relative;
overflow: hidden;
z-index: 1;
}
.btn-hover-effect:after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #4f46e5;
border-radius: 9999px;
z-index: -2;
}
.btn-hover-effect:before {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0%;
height: 100%;
background-color: #4338ca;
transition: all 0.3s;
border-radius: 9999px;
z-index: -1;
}
.btn-hover-effect:hover:before {
width: 100%;
}