Files
DevSecOps-Lab/styles.css

202 lines
3.1 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Header & Navigation */
header {
background-color: #2c3e50;
color: white;
position: sticky;
top: 0;
z-index: 100;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.navbar {
padding: 1rem 0;
}
.navbar .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 1.5rem;
font-weight: bold;
}
.nav-links {
display: flex;
list-style: none;
gap: 2rem;
}
.nav-links a {
color: white;
text-decoration: none;
transition: color 0.3s ease;
}
.nav-links a:hover {
color: #3498db;
}
/* Hero Section */
.hero {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 100px 0;
text-align: center;
}
.hero h2 {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.hero p {
font-size: 1.2rem;
margin-bottom: 2rem;
}
.cta-button {
background-color: #3498db;
color: white;
padding: 12px 30px;
border: none;
border-radius: 5px;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.3s ease;
}
.cta-button:hover {
background-color: #2980b9;
}
/* Sections */
section {
padding: 60px 0;
border-bottom: 1px solid #eee;
}
section h2 {
font-size: 2rem;
margin-bottom: 2rem;
text-align: center;
}
/* About Section */
.about {
background-color: #f8f9fa;
}
.about p {
font-size: 1.1rem;
text-align: center;
max-width: 800px;
margin: 0 auto;
}
/* Services Section */
.service-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.service-card {
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
}
.service-card:hover {
transform: translateY(-5px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.service-card h3 {
margin-bottom: 1rem;
color: #667eea;
}
/* Contact Section */
.contact {
background-color: #f8f9fa;
}
#contactForm {
max-width: 600px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 1rem;
}
#contactForm input,
#contactForm textarea {
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
font-family: inherit;
}
#contactForm button {
background-color: #667eea;
color: white;
padding: 12px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#contactForm button:hover {
background-color: #764ba2;
}
/* Footer */
footer {
background-color: #2c3e50;
color: white;
text-align: center;
padding: 2rem 0;
margin-top: 3rem;
}
/* Responsive */
@media (max-width: 768px) {
.nav-links {
gap: 1rem;
font-size: 0.9rem;
}
.hero h2 {
font-size: 1.8rem;
}
section h2 {
font-size: 1.5rem;
}
}