@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  }

html {
font-size: 62.5%;
scroll-behavior: smooth;
}

body {
width: 100%;
min-height: 100vh;
overflow-x: hidden;
background-color: #000;
color: #fff;
}

:root {
--primary: #b74b4b;
--primary-dark: #8e3838;
--background: #000;
--card: #111;
--card-light: #161616;
--text: #fff;
--text-muted: #bdbdbd;
}

/* ================= HEADER ================= */

header {
position: fixed;
top: 0;
left: 0;
width: 100%;
padding: 2rem 9%;
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(10px);
display: flex;
justify-content: space-between;
align-items: center;
z-index: 1000;
transition: 0.3s ease;
}

.logo {
font-size: 3rem;
color: var(--primary);
font-weight: 800;
cursor: pointer;
transition: 0.3s ease;
}

.logo:hover {
transform: scale(1.1);
}

nav {
display: flex;
align-items: center;
}

nav a {
font-size: 1.6rem;
color: white;
margin-left: 3.5rem;
font-weight: 500;
transition: 0.3s ease;
border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
color: var(--primary);
border-bottom: 3px solid var(--primary);
}

.menu-icon {
display: none;
font-size: 2.8rem;
color: var(--primary);
cursor: pointer;
}

/* ================= GENERAL SECTION ================= */

section {
min-height: 100vh;
padding: 10rem 9% 8rem;
}

.section {
background: #050505;
}

.section:nth-child(even) {
background: #0a0a0a;
}

.section-title {
text-align: center;
margin-bottom: 6rem;
}

.section-title p {
color: var(--primary);
font-size: 1.5rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.3rem;
margin-bottom: 0.5rem;
}

.section-title h2 {
font-size: 4.5rem;
font-weight: 700;
}

/* ================= HOME ================= */

.home {
display: flex;
justify-content: center;
align-items: center;
gap: 8rem;
background-color: #000;
padding-top: 12rem;
}

.home-img {
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
}

.home-img img {
width: 32vw;
max-width: 450px;
aspect-ratio: 1 / 1;
object-fit: cover;
border-radius: 50%;
border: 0.3rem solid var(--primary);
box-shadow: 0 0 35px rgba(183, 75, 75, 0.5);
cursor: pointer;
transition: 0.4s ease;
}

.home-img img:hover {
transform: scale(1.03);
box-shadow: 0 0 55px rgba(183, 75, 75, 0.8);
}

.home-content {
max-width: 650px;
}

.greeting {
font-size: 2rem;
color: var(--text-muted);
margin-bottom: 0.5rem;
}

.home-content h1 {
font-size: 6rem;
font-weight: 700;
line-height: 1.2;
}

.home-content h1 span {
color: var(--primary);
}

.home-content h3 {
font-size: 3.2rem;
margin: 1rem 0;
font-weight: 700;
}

.home-content > p:not(.greeting) {
font-size: 1.6rem;
line-height: 1.8;
color: var(--text-muted);
max-width: 600px;
}

.typing-text {
min-width: 280px;
}

.typing-text span {
color: var(--primary);
}

.typing-text span::after {
content: "|";
margin-left: 5px;
color: var(--primary);
animation: blink 0.7s infinite;
}

@keyframes blink {
50% {
opacity: 0;
}
}

/* ================= SOCIAL ICONS ================= */

.social-icons {
display: flex;
gap: 1.2rem;
margin: 2.5rem 0;
}

.social-icons a {
display: inline-flex;
justify-content: center;
align-items: center;
width: 4.5rem;
height: 4.5rem;
background-color: transparent;
border: 0.2rem solid var(--primary);
font-size: 2rem;
border-radius: 50%;
color: var(--primary);
transition: 0.3s ease;
}

.social-icons a:hover {
color: #000;
transform: translateY(-5px) scale(1.1);
background-color: var(--primary);
box-shadow: 0 0 25px rgba(183, 75, 75, 0.8);
}

/* ================= BUTTON ================= */

.home-buttons {
display: flex;
gap: 1.5rem;
flex-wrap: wrap;
}

.btn {
display: inline-block;
padding: 1.2rem 2.8rem;
background-color: transparent;
border-radius: 4rem;
font-size: 1.5rem;
color: var(--primary);
letter-spacing: 0.1rem;
font-weight: 600;
border: 2px solid var(--primary);
transition: 0.3s ease;
cursor: pointer;
}

.btn:hover {
transform: translateY(-3px);
background-color: var(--primary);
color: #000;
box-shadow: 0 0 25px rgba(183, 75, 75, 0.7);
}

.secondary-btn {
color: white;
border-color: #555;
}

.secondary-btn:hover {
background: white;
border-color: white;
}

/* ================= SERVICES ================= */

.services-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 3rem;
}

.service-card {
background: var(--card);
border: 1px solid #222;
border-radius: 2rem;
padding: 4rem 3rem;
text-align: center;
transition: 0.4s ease;
}

.service-card:hover {
transform: translateY(-10px);
border-color: var(--primary);
box-shadow: 0 0 30px rgba(183, 75, 75, 0.15);
}

.service-card i {
font-size: 4.5rem;
color: var(--primary);
margin-bottom: 2rem;
}

.service-card h3 {
font-size: 2.2rem;
margin-bottom: 1.5rem;
}

.service-card p {
font-size: 1.4rem;
line-height: 1.8;
color: var(--text-muted);
}

/* ================= SKILLS ================= */

.skills-container {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 4rem;
max-width: 1100px;
margin: auto;
}

.skills-box {
background: var(--card);
border: 1px solid #222;
border-radius: 2rem;
padding: 3rem;
}

.skills-box h3 {
font-size: 2.3rem;
margin-bottom: 3rem;
}

.skill {
margin-bottom: 2.5rem;
}

.skill-info {
display: flex;
justify-content: space-between;
font-size: 1.4rem;
margin-bottom: 0.8rem;
}

.skill-bar {
height: 0.8rem;
background: #2a2a2a;
border-radius: 1rem;
overflow: hidden;
}

.skill-bar span {
display: block;
height: 100%;
background: var(--primary);
border-radius: 1rem;
}

.technology-list {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
}

.technology {
display: flex;
align-items: center;
gap: 1rem;
padding: 1.5rem;
background: #171717;
border-radius: 1rem;
border: 1px solid #252525;
transition: 0.3s ease;
}

.technology:hover {
border-color: var(--primary);
transform: translateY(-3px);
}

.technology i {
font-size: 2rem;
color: var(--primary);
}

.technology span {
font-size: 1.3rem;
color: white;
}

/* ================= TIMELINE ================= */

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

.timeline::before {
content: "";
position: absolute;
left: 2.2rem;
top: 0;
width: 2px;
height: 100%;
background: var(--primary);
opacity: 0.5;
}

.timeline-item {
position: relative;
display: flex;
gap: 3rem;
margin-bottom: 4rem;
}

.timeline-icon {
min-width: 4.5rem;
height: 4.5rem;
background: var(--primary);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
color: #000;
font-size: 1.8rem;
z-index: 2;
}

.timeline-content {
background: var(--card);
border: 1px solid #222;
border-radius: 1.5rem;
padding: 2.5rem;
flex: 1;
}

.timeline-date {
display: inline-block;
color: var(--primary);
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 0.8rem;
}

.timeline-content h3 {
font-size: 2.2rem;
margin-bottom: 1rem;
}

.timeline-content p {
color: var(--text-muted);
font-size: 1.4rem;
line-height: 1.8;
margin-bottom: 0.5rem;
}

.timeline-content .highlight {
color: var(--primary);
font-weight: 600;
margin: 1rem 0;
}

/* ================= PROJECTS ================= */

.projects-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 3rem;
}

.project-card {
background: var(--card);
border: 1px solid #222;
border-radius: 2rem;
overflow: hidden;
transition: 0.4s ease;
}

.project-card:hover {
transform: translateY(-8px);
border-color: var(--primary);
box-shadow: 0 0 30px rgba(183, 75, 75, 0.15);
}

.project-image {
width: 100%;
height: 220px;
overflow: hidden;
}

.project-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: 0.4s ease;
}

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

.project-placeholder {
display: flex;
justify-content: center;
align-items: center;
background: #181818;
}

.project-placeholder i {
font-size: 6rem;
color: var(--primary);
}

.project-content {
padding: 2.5rem;
}

.project-category {
color: var(--primary);
font-size: 1.2rem;
font-weight: 600;
}

.project-content h3 {
font-size: 2rem;
margin: 1rem 0;
}

.project-content p {
font-size: 1.4rem;
color: var(--text-muted);
line-height: 1.7;
}

.project-tags {
display: flex;
flex-wrap: wrap;
gap: 0.7rem;
margin: 2rem 0;
}

.project-tags span {
color: white;
background: #222;
border: 1px solid #333;
padding: 0.5rem 1rem;
border-radius: 2rem;
font-size: 1.1rem;
}

.project-link {
color: var(--primary);
font-size: 1.4rem;
font-weight: 600;
transition: 0.3s ease;
}

.project-link:hover {
letter-spacing: 0.1rem;
}

.project-link i {
margin-left: 0.5rem;
}

/* ================= CONTACT ================= */

.contact-container {
max-width: 1100px;
margin: auto;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 5rem;
}

.contact-info h3 {
font-size: 3rem;
margin-bottom: 1.5rem;
}

.contact-info > p {
color: var(--text-muted);
font-size: 1.5rem;
line-height: 1.8;
margin-bottom: 3rem;
}

.contact-item {
display: flex;
align-items: center;
gap: 1.5rem;
margin-bottom: 2rem;
}

.contact-item > i {
width: 4.5rem;
height: 4.5rem;
border-radius: 50%;
background: var(--primary);
color: #000;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.8rem;
}

.contact-item div {
display: flex;
flex-direction: column;
}

.contact-item span {
color: var(--text-muted);
font-size: 1.2rem;
}

.contact-item a {
color: white;
font-size: 1.4rem;
transition: 0.3s ease;
}

.contact-item a:hover {
color: var(--primary);
}

.contact-form {
display: flex;
flex-direction: column;
gap: 1.5rem;
}

.input-group {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
width: 100%;
padding: 1.5rem;
background: #171717;
border: 1px solid #292929;
border-radius: 1rem;
color: white;
font-size: 1.4rem;
resize: vertical;
transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
border-color: var(--primary);
}

.contact-form .btn {
width: fit-content;
}

/* ================= FOOTER ================= */

footer {
background: #000;
border-top: 1px solid #222;
padding: 4rem 9%;
}

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

.footer-content p {
color: var(--text-muted);
font-size: 1.3rem;
text-align: center;
}

.footer-content .social-icons {
margin: 0;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {


html {
    font-size: 58%;
}

.home {
    gap: 5rem;
}

.projects-container {
    grid-template-columns: repeat(2, 1fr);
}

.services-container {
    grid-template-columns: repeat(2, 1fr);
}

.service-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: auto;
}


}

@media (max-width: 995px) {


header {
    padding: 1.8rem 5%;
}

.menu-icon {
    display: block;
}

nav {
    position: absolute;
    top: 100%;
    right: 5%;
    width: 250px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #111;
    border: 1px solid var(--primary);
    border-radius: 1.5rem;
    padding: 1rem;
}

nav.active {
    display: flex;
}

nav a {
    display: block;
    font-size: 1.7rem;
    margin: 0;
    padding: 1.3rem;
    border-bottom: none;
    border-radius: 0.7rem;
}

nav a:hover,
nav a.active {
    border-bottom: none;
    background: #1d1d1d;
}

.home {
    flex-direction: column;
    text-align: center;
    gap: 4rem;
    padding-top: 13rem;
}

.home-img img {
    width: 55vw;
    max-width: 350px;
}

.home-content {
    max-width: 750px;
}

.home-content h1 {
    font-size: 5rem;
}

.home-content h3 {
    font-size: 2.8rem;
}

.home-content > p:not(.greeting) {
    margin: auto;
}

.social-icons {
    justify-content: center;
}

.home-buttons {
    justify-content: center;
}

.skills-container,
.contact-container {
    grid-template-columns: 1fr;
}


}

@media (max-width: 768px) {


html {
    font-size: 55%;
}

section {
    padding-left: 6%;
    padding-right: 6%;
}

.section-title h2 {
    font-size: 3.8rem;
}

.services-container {
    grid-template-columns: 1fr;
}

.service-card:last-child {
    max-width: 100%;
}

.projects-container {
    grid-template-columns: 1fr;
}

.technology-list {
    grid-template-columns: 1fr;
}

.input-group {
    grid-template-columns: 1fr;
}

.timeline::before {
    left: 1.9rem;
}

.timeline-item {
    gap: 2rem;
}

.timeline-icon {
    min-width: 4rem;
    height: 4rem;
}

.footer-content {
    flex-direction: column;
    text-align: center;
}


}

@media (max-width: 480px) {


html {
    font-size: 52%;
}

.home {
    padding-top: 11rem;
}

.home-img img {
    width: 70vw;
}

.home-content h1 {
    font-size: 4.2rem;
}

.home-content h3 {
    font-size: 2.3rem;
}

.home-buttons {
    flex-direction: column;
    align-items: center;
}

.home-buttons .btn {
    width: 100%;
    text-align: center;
}

.timeline-item {
    gap: 1.2rem;
}

.timeline-content {
    padding: 2rem;
}

.contact-info h3 {
    font-size: 2.5rem;
}


}
