body {
    font-family: 'Courier New', Courier, monospace;

    margin: 0;
    padding-left: 80px; 

    background-color: #1a1a1a;
    color: #f2f2f2;

    text-align: left; 
    animation: fadeIn 0.4s ease;

}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#navbar:hover ~ div,
#navbar:hover ~ h1,
#navbar:hover ~ h2,
#navbar:hover ~ p {
    margin-left: 170px;
    transition: margin-left 0.3s ease;
}

div, h1, h2, p {
    padding-left: 20px;
    padding-right: 20px;
}

h1 {
    font-size: 2.2rem;
    margin-top: 30px;
}

a {
	color: #bdbdbd;
	text-decoration: underline;
}

h2 {
	color: #bdbdbd;
}

span {
    color: #ffffff;
}

.contact {
    padding: 20px;
    max-width: 600px;
}

.contact-item {
    margin: 12px 0;
    font-size: 18px;
    color: #e6e6e6;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid #444;
    transition: all 0.2s ease;
}

.contact-item a:hover {
    border-bottom: 1px solid #fff;
    transform: translateX(3px);
}

.hero {
    padding: 60px 30px;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #bdbdbd;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 10px 18px;
    border-radius: 10px;

    background: #222;
    color: white;

    text-decoration: none;

    transition: all 0.2s ease;
}

.btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn.secondary {
    background: transparent;
    border: 1px solid #444;
}

.btn.secondary:hover {
    border-color: #fff;
}

.section {
    padding: 40px 30px;
    max-width: 800px;
}

.card {
    background: #161616;
    padding: 20px;
    border-radius: 12px;

    margin-top: 15px;

    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
}

.projects {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
}

.projects h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #bdbdbd;
    margin-bottom: 25px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-card {
    display: block;

    text-decoration: none;

    color: inherit;

    background: #161616;

    padding: 20px;

    border-radius: 12px;

    position: relative;

    min-height: 180px;

    transition: transform 0.2s ease, background 0.2s ease;
}

.project-card:hover {
    transform: translateY(-6px) scale(1.01);
    background: #1d1d1d;
}

.project-card h3 {
    margin-bottom: 10px;
}

.project-card p {
    color: #bdbdbd;
    font-size: 0.95rem;

    margin-bottom: 30px;
}

.tag {
    position: absolute;

    bottom: 12px;
    left: 12px;

    padding: 4px 10px;

    border-radius: 6px;

    background: #222;
    color: #fff;

    font-size: 12px;
}

.project-section {
    background: #161616;

    padding: 20px;

    border-radius: 12px;

    margin-bottom: 15px;

    transition: transform 0.2s ease;
}

.project-section:hover {
    transform: translateY(-3px);
}

.project-section h2 {
    margin-top: 0;
}

.project-section p,
.project-section li {
    color: #d0d0d0;
}