abdulhaseeb.com / style.css
Haseeb-001's picture
Update style.css
e102c1a verified
:root {
--primary: #00f5d4;
--secondary: #9d4edd;
--dark: #0a192f;
--light: #ccd6f6;
--easing: cubic-bezier(0.645, 0.045, 0.355, 1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: var(--dark);
color: var(--light);
font-family: 'Inter', sans-serif;
line-height: 1.6;
overflow-x: hidden;
}
/* Hero Section */
.hero {
min-height: 100vh;
background: linear-gradient(45deg, rgba(10,25,47,0.95),
url('https://images.unsplash.com/photo-1620712943543-bcc4688e7485') center/cover;
padding: 2rem 0;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 0;
}
.logo {
font-size: 2rem;
font-weight: 700;
background: linear-gradient(45deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.nav-links {
display: flex;
gap: 2rem;
}
.nav-links a {
color: var(--light);
text-decoration: none;
transition: color 0.3s var(--easing);
}
.nav-links a:hover {
color: var(--primary);
}
.hero-content {
display: flex;
align-items: center;
min-height: calc(100vh - 100px);
}
.hero-text h1 {
font-size: 4rem;
margin-bottom: 1.5rem;
}
.gradient-text {
background: linear-gradient(45deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
/* Projects Section */
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin: 4rem 0;
}
.project-card {
background: #112240;
border-radius: 8px;
padding: 1.5rem;
transition: transform 0.3s var(--easing);
}
.project-card:hover {
transform: translateY(-10px);
}
.project-card img {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 4px;
margin-bottom: 1rem;
}
/* Skills Section */
.dark-section {
background: #020c1b;
padding: 4rem 0;
}
.skills-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1rem;
margin-top: 2rem;
}
.skill-chip {
background: rgba(157,78,221,0.1);
border: 1px solid var(--secondary);
padding: 1rem;
border-radius: 50px;
text-align: center;
transition: all 0.3s var(--easing);
}
.skill-chip:hover {
background: var(--secondary);
transform: translateY(-3px);
}
/* Contact Section */
.social-links {
display: flex;
justify-content: center;
gap: 2rem;
margin: 3rem 0;
}
.social-links a {
width: 50px;
height: 50px;
border: 2px solid var(--primary);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: var(--primary);
transition: all 0.3s var(--easing);
}
.social-links a:hover {
background: var(--primary);
color: var(--dark);
}
/* Animations */
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
100% { transform: translateY(0px); }
}
/* Responsive Design */
@media (max-width: 768px) {
.hero-text h1 {
font-size: 2.5rem;
}
.projects-grid {
grid-template-columns: 1fr;
}
.nav-links {
gap: 1rem;
}
}