This commit is contained in:
Gokalp Sen 2024-12-04 22:20:26 +03:00
commit 389846330a
5 changed files with 588 additions and 0 deletions

368
css/style.css Normal file
View file

@ -0,0 +1,368 @@
:root {
--primary-color: #bb86fc;
--background-dark: #121212;
--background-light: #ffffff;
--text-dark: #e0e0e0;
--text-light: #121212;
--card-dark: #1f1b24;
--card-light: #f5f5f5;
}
/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
font-size: 16px;
line-height: 1.6;
background-color: var(--background-dark);
color: var(--text-dark);
min-height: 100vh;
display: flex;
flex-direction: column;
transition: background-color 0.3s ease, color 0.3s ease;
}
/* Light theme */
body.light-theme {
background-color: var(--background-light);
color: var(--text-light);
}
/* Navbar */
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
background: rgba(18, 18, 18, 0.95);
backdrop-filter: blur(10px);
z-index: 1000;
transition: transform 0.3s ease;
}
.light-theme .navbar {
background: rgba(255, 255, 255, 0.95);
}
.logo {
font-size: 1.5rem;
font-weight: bold;
color: var(--primary-color);
}
.nav-links {
display: flex;
gap: 2rem;
align-items: center;
}
.nav-links a {
color: var(--text-dark);
text-decoration: none;
transition: color 0.3s ease;
}
.light-theme .nav-links a {
color: var(--text-light);
}
.nav-links a:hover {
color: var(--primary-color);
}
/* Theme Toggle Button */
.theme-toggle {
background: var(--card-dark);
border: 2px solid var(--primary-color);
color: var(--primary-color);
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 0 10px rgba(187, 134, 252, 0.2);
}
.light-theme .theme-toggle {
background: var(--card-light);
}
.theme-toggle:hover {
transform: rotate(360deg);
background: var(--primary-color);
color: var(--background-dark);
box-shadow: 0 0 20px rgba(187, 134, 252, 0.4);
}
.theme-toggle i {
font-size: 1.2rem;
}
/* Hero Section */
.hero {
text-align: center;
padding: 8rem 1rem 4rem;
background: linear-gradient(45deg, #1a1a1a, #2d2d2d);
}
.light-theme .hero {
background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
}
.hero h1 {
font-size: 3rem;
color: var(--primary-color);
margin-bottom: 1rem;
}
.hero .subtitle {
font-size: 1.2rem;
opacity: 0.8;
margin-bottom: 2rem;
}
.cta-button {
display: inline-block;
padding: 1rem 2rem;
background-color: var(--primary-color);
color: var(--background-dark);
text-decoration: none;
border-radius: 25px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(187, 134, 252, 0.3);
}
/* Sections */
.section {
padding: 4rem 2rem;
opacity: 0;
transform: translateY(20px);
transition: opacity 0.6s ease, transform 0.6s ease;
}
.section.animate-in {
opacity: 1;
transform: translateY(0);
}
.section h2 {
text-align: center;
color: var(--primary-color);
margin-bottom: 2rem;
}
/* Services Grid */
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
padding: 1rem;
}
.service-card {
background: var(--card-dark);
padding: 2rem;
border-radius: 10px;
text-align: center;
transition: transform 0.3s ease;
}
.light-theme .service-card {
background: var(--card-light);
}
.service-card:hover {
transform: translateY(-5px);
}
.service-card i {
font-size: 2.5rem;
color: var(--primary-color);
margin-bottom: 1rem;
}
/* Project Grid */
.project-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
padding: 1rem;
}
.project-card {
background: var(--card-dark);
border-radius: 10px;
overflow: hidden;
padding: 1.5rem;
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 1px solid rgba(187, 134, 252, 0.1);
}
.light-theme .project-card {
background: var(--card-light);
}
.project-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 16px rgba(187, 134, 252, 0.2);
}
.project-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.project-name {
color: var(--primary-color);
text-decoration: none;
font-size: 1.2rem;
font-weight: 600;
}
.project-date {
font-size: 0.9rem;
opacity: 0.7;
}
.project-description {
margin-bottom: 1.5rem;
line-height: 1.6;
opacity: 0.9;
}
.project-links {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
.project-link {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--primary-color);
text-decoration: none;
font-size: 0.9rem;
transition: opacity 0.3s ease;
padding: 0.5rem 1rem;
border: 1px solid var(--primary-color);
border-radius: 20px;
}
.project-link:hover {
opacity: 0.8;
background: rgba(187, 134, 252, 0.1);
}
.project-link i {
font-size: 1.1rem;
}
/* Footer */
footer {
background: var(--card-dark);
padding: 2rem;
margin-top: auto;
}
.light-theme footer {
background: var(--card-light);
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
text-align: center;
}
.footer-links {
display: flex;
justify-content: center;
gap: 2rem;
margin-bottom: 1rem;
}
.footer-links a {
color: var(--text-dark);
text-decoration: none;
transition: color 0.3s ease;
}
.light-theme .footer-links a {
color: var(--text-light);
}
.footer-links a:hover {
color: var(--primary-color);
}
.social-links {
margin-bottom: 1rem;
}
.social-links a {
color: var(--primary-color);
font-size: 1.5rem;
margin: 0 0.5rem;
transition: transform 0.3s ease;
}
.social-links a:hover {
transform: translateY(-2px);
}
.copyright {
opacity: 0.7;
font-size: 0.9rem;
}
/* Responsive Design */
@media (max-width: 768px) {
.navbar {
padding: 1rem;
}
.nav-links {
gap: 1rem;
}
.hero h1 {
font-size: 2rem;
}
.section {
padding: 3rem 1rem;
}
.services-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 480px) {
.hero {
padding: 6rem 1rem 3rem;
}
.nav-links {
display: none;
}
}