:root {
    --prymary-color: #ee3d3d;
    --dark-bg: #1a1a1a;
    --darker-bg: #0d0d0d;
    --light-txt: #f2f2f2;
    --gray-text: #b3b3b3;
    --card-bg: #262626;
    --border-color: #333333;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--prymary-color) var(--dark-bg);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-txt);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--prymary-color);
}

h2.des-work {
    display: flex;
    align-items: center;
    gap: 1rem;
}

span.work {
    font-size: .8rem;
    color: rgb(114, 219, 114);
    padding: 2px 2px;
    border: 1.5px solid rgb(114, 219, 114);
    border-radius: 5px;
    background-color: rgba(194, 191, 191, 0.315);
    animation: blink 3.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    position: relative;
    padding: .5rem 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--prymary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--prymary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--prymary-color);
}

.btn {
    display: inline-block;
    background-color: var(--prymary-color);
    color: white;
    padding: .8rem 1.5rem;
    border-radius: 5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #c72b2b;
    transform: translateY(-3px);
    box-shadow: 0 5px 5px rgba(170, 148, 148, 0.3);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: .5rem;
    font-weight: 700;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: var(--prymary-color);
    font-weight: 600;
}

.hero-text p {
    margin-bottom: 1.5rem;
    color: var(--gray-text);
    font-size: 1.1rem;
    max-width: 600px;
    text-align: justify;
}

#typing {
    display: inline-block;
    font-weight: 800;
    border-right: 3px solid var(--prymary-color);
    padding-right: 5px;
    white-space: nowrap;
    overflow: hidden;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--light-txt);
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: var(--prymary-color);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    width: 350px;
    height: 350px;
    object-position: 100% 20%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--prymary-color);
    box-shadow: 0 0 25px rgba(170, 148, 148, 0.3);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(170, 148, 148, 0.5);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 50px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    top: 5px;
    left: 10px;
    width: 20px;
    height: 20px;
    background-color: var(--prymary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--prymary-color);
}

.date {
    display: inline-block;
    padding: .3rem .8rem;
    background-color: rgba(65, 43, 43, 0.5);
    color: var(--prymary-color);
    border-radius: 5px;
    font-size: .9rem;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: .5rem;
}

.timeline-content h4 {
    color: var(--gray-text);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content ul {
    display: block;
    padding: auto;
    margin: 0 auto;
}

.timeline-content ul li {
    margin-bottom: .5rem;
    font-size: 1rem;
    list-style: disc;
    margin-left: 1%;
    text-align: justify;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch; 
}

.projects-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.projects-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(170, 148, 148, 0.3);
}

.projects-img {
    overflow: hidden;
}

.projects-img img {
    width: 100%;
    height: 200px; 
    object-fit: cover; 
    transition: var(--transition);
}

.projects-card:hover .projects-img img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    min-height: 3rem; 
}

.project-info p {
    color: var(--gray-text);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex-grow: 1; 
    text-align: justify;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.project-tech span {
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    background-color: rgba(65, 43, 43, 0.5);
    white-space: nowrap;
}

.project-tech span i {
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: auto; 
}

.project-links a {
    display: inline-block;
    font-size: 0.9rem;
    color: white;
    background-color: var(--prymary-color);
    transition: var(--transition);
    padding: 0.7rem 1.3rem;
    border-radius: 5px;
    text-align: center;
}

.project-links a:hover {
    background-color: #c72b2b;
    transform: translateY(-3px);
}

footer {
    background-color: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem 5%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.technologies-container {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: .8rem;
}

.technology-card {
    width: 100px;
    height: 100px;
    padding: .5rem 1rem;
    border-radius: 20px;
    font-size: .9rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    background-color: var(--card-bg);
}

.technology-card:hover {
    transform: translateY(-3px);
}

.technology-card i {
    font-size: 1.5rem;
}

.technology-card span {
    text-align: center;
}

.fa-html5 {
    color: #E34F26;
}

.fa-css3-alt {
    color: #1572B6;
}

.fa-js {
    color: #F7DF1E;
}

.fa-typescript {
    color: #3178C6;
}

.fa-php {
    color: #777BB4;
}

.fa-java {
    color: #007396;
}

.fa-laravel {
    color: #FF2D20;
}

.fa-react {
    color: #61DAFB;
}

.fa-angular {
    color: #DD0031;
}

.fa-node-js {
    color: #339933;
}

.fa-leaf {
    color: #6DB33F;
}

.fa-docker {
    color: #2496ED;
}

.fa-git-alt {
    color: #F05032;
}

.fa-jenkins {
    color: #D33833;
}

.fa-vuejs {
    color: #41B883;
}

.fa-database,
.fa-mysql {
    color: #4479A1;
}

.fa-windows {
    color: #0078D6;
}

.fa-linux {
    color: #FCC624;
}

.fa-wordpress {
    color: #21759B;
}

.fa-file-code {
    color: #2B579A;
}

.fa-server {
    color: #6C757D;
}

@media (max-width: 480px) {
    header {
        position: static;
    }

    #navbar {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .hero-content,
    .nav-links {
        flex-direction: column;
        text-align: center;
    }
}