smilecraft-studio / style.css
Mrdips's picture
Create a dental clinic website with services offered, meet the dentist section with credentials, patient testimonials, before/after smile gallery, insurance accepted, appointment booking system, emergency contact, and dental tips blog.
fad96f6 verified
/* Global Styles */
* {
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
}
/* Floating Tooth Animation */
.floating-tooth {
position: absolute;
width: 40px;
height: 50px;
background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
animation: float 20s infinite ease-in-out;
opacity: 0.3;
}
.floating-tooth:nth-child(1) {
top: 20%;
left: 10%;
animation-delay: 0s;
}
.floating-tooth:nth-child(2) {
top: 60%;
right: 15%;
animation-delay: 3s;
}
.floating-tooth:nth-child(3) {
bottom: 20%;
left: 30%;
animation-delay: 5s;
}
@keyframes float {
0%, 100% {
transform: translateY(0) rotate(0deg);
}
25% {
transform: translateY(-20px) rotate(5deg);
}
50% {
transform: translateY(10px) rotate(-5deg);
}
75% {
transform: translateY(-10px) rotate(3deg);
}
}
/* Service Cards */
.service-card {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
padding: 2rem;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.service-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
opacity: 0;
transition: opacity 0.3s ease;
}
.service-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
border-color: rgba(34, 197, 94, 0.3);
}
.service-card:hover::before {
opacity: 1;
}
/* Testimonial Cards */
.testimonial-card {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
padding: 2rem;
transition: all 0.3s ease;
}
.testimonial-card:hover {
transform: translateY(-3px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
/* Before/After Cards */
.before-after-card {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
padding: 1.5rem;
transition: all 0.3s ease;
}
.before-after-card:hover {
transform: scale(1.02);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
/* Insurance Logos */
.insurance-logo {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
padding: 2rem 1rem;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
color: #94a3b8;
transition: all 0.3s ease;
}
.insurance-logo:hover {
border-color: rgba(14, 165, 233, 0.3);
color: #e2e8f0;
transform: translateY(-2px);
}
/* Blog Cards */
.blog-card {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 16px;
overflow: hidden;
transition: all 0.3s ease;
}
.blog-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
border-color: rgba(34, 197, 94, 0.2);
}
.blog-card img {
transition: transform 0.3s ease;
}
.blog-card:hover img {
transform: scale(1.05);
}
/* Form Inputs */
.form-input {
width: 100%;
padding: 1rem;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: white;
font-size: 1rem;
transition: all 0.3s ease;
}
.form-input:focus {
outline: none;
border-color: rgba(34, 197, 94, 0.5);
box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}
.form-input::placeholder {
color: #64748b;
}
/* Smooth Scrolling */
html {
scroll-behavior: smooth;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #1f2937;
}
::-webkit-scrollbar-thumb {
background: #374151;
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: #4b5563;
}
/* Loading Animation */
.loading {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: #22c55e;
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Responsive Design */
@media (max-width: 768px) {
.floating-tooth {
display: none;
}
.service-card,
.testimonial-card,
.before-after-card,
.blog-card {
margin: 0 1rem;
}
}