@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #b74b4b;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0  0 25px #b74b4b;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "software Developer";
    color: #b74b4b;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes cursor{
    to{
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words{
    0%, 20%{
        content: "Graphic Designer";
    }
    21%, 40%{
        content: "Developer";
    }
    41%, 60%{
        content: "Web Designer";
    }
    61%, 80%{
        content: "Video Editor";
    }
    81%, 100%{
        content: "Web Developer";
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}

.body-contact {
  padding-top: 120px;
}

.container {
  width: 85%;
  max-width: 1100px;
  margin: auto;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  grid-column: 1 / -1;
  text-align: center;
}
.title h2 {
  color: #b74b4b;
  font-size: 3rem;
  margin-bottom: 10px;
}

.title p {
  color: rgba(255,255,255,0.8);
  font-size: 1.4rem;
}

.content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  flex-wrap: wrap;
}

/* Left & Right resize */
.left {
  flex: 1;
  min-width: 280px;
}

.right {
  flex: 1.2;
  min-width: 320px;
}


/* Left side (Contact Info) */
.contact-info {
  flex: 1;
  min-width: 280px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 25px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.2);
}

.contact-info h3 {
  margin-bottom: 20px;
  color: #b74b4b;
  font-size: 2rem;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: rgba(255,255,255,0.9);
}

.info-item span {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b74b4b;
  margin-right: 10px;
  font-size: 2rem;
}

.info-item a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}


/* Right side (Form) */
form {
  flex: 1;
  min-width: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 25px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

form h3 {
  margin-bottom: 20px;
  color: #b74b4b;
  font-size: 2rem;
}

label {
  display: block;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 5px;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1.4rem;
  margin-bottom: 15px;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

button {
  width: 100%;
  background: #b74b4b;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.4rem;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #fff;
  color: #b74b4b;
}

@media (max-width: 850px) {
  .content {
    flex-direction: column;
  }
}

/* =======================
   Portfolio Grid
======================= */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

/* Tablet */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}



/* ===== Portfolio Filters ===== */
.portfolio-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 22px;
    background: transparent;
    border: 2px solid #b74b4b;
    color: #b74b4b;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.4rem;
    transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: #b74b4b;
    color: black;
}

/* ===== Card Overlay ===== */
.portfolio-img {
    position: relative;
}

.portfolio-img1 {
    position: relative;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transition: 0.4s ease;
}

.portfolio-overlay1 {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transition: 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-btn {
    padding: 10px 22px;
    border: 2px solid #b74b4b;
    color: #b74b4b;
    border-radius: 25px;
    font-size: 1.4rem;
    transition: 0.3s;
}

.overlay-btn:hover {
    background: #b74b4b;
    color: black;
}

/* ===== Scroll Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hide cards */
.portfolio-card.hide {
    display: none;
}



/* =======================
   Skills Section
======================= */

.skills-section {
    min-height: 100vh;
    padding: 120px 9% 80px;
    background-color: black;
}

.skills-container {
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

/* Title */
.skills-title h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.skills-title span {
    color: #b74b4b;
}

.skills-title p {
    font-size: 1.5rem;
    opacity: 0.8;
    margin-bottom: 60px;
}

/* Grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* Card */
.skill-card {
    width: 260px;
    padding: 30px 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    transition: 0.4s ease;
}

.skill-card i {
    font-size: 4rem;
    color: #b74b4b;
    margin-bottom: 15px;
}

.skill-card h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.skill-card p {
    font-size: 1.4rem;
    opacity: 0.8;
}

/* Hover */
.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(183,75,75,0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .skill-card {
        width: 100%;
        max-width: 320px;
    }
}



/* =======================
   Services Section
======================= */

.services-section {
    min-height: 100vh;
    padding: 120px 9% 80px;
    background-color: black;
}

.services-container {
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

/* Title */
.services-title h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.services-title span {
    color: #b74b4b;
}

.services-title p {
    font-size: 1.5rem;
    opacity: 0.8;
    margin-bottom: 60px;
}

/* Grid */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* Card */
.service-card {
    width: 300px;
    padding: 35px 25px;
    background: rgba(255,255,255,0.08);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    transition: 0.4s ease;
}

.service-card i {
    font-size: 4.2rem;
    color: #b74b4b;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 2.1rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 1.45rem;
    opacity: 0.8;
}

/* Hover */
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 0 30px rgba(183,75,75,0.45);
}

/* Responsive */
@media (max-width: 768px) {
    .service-card {
        width: 100%;
        max-width: 340px;
    }
}


/* =======================
   Experience Section
======================= */

.experience-section {
    min-height: 100vh;
    padding: 120px 9% 80px;
    background-color: black;
}

.experience-container {
    max-width: 900px;
    margin: auto;
}

.experience-title {
    text-align: center;
    margin-bottom: 60px;
}

.experience-title h2 {
    font-size: 3.5rem;
}

.experience-title span {
    color: #b74b4b;
}

.experience-title p {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Timeline */
.timeline {
    position: relative;
    margin-left: 20px;
    padding-left: 30px;
    border-left: 2px solid rgba(255,255,255,0.2);
}

/* Item */
.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-dot {
    width: 15px;
    height: 15px;
    background: #b74b4b;
    border-radius: 50%;
    position: absolute;
    left: -39px;
    top: 5px;
}

.timeline-date {
    font-size: 1.4rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

.timeline-content {
    background: rgba(255,255,255,0.08);
    padding: 22px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    transition: .3s;
}

.timeline-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #b74b4b;
}

.timeline-content p {
    font-size: 1.4rem;
    opacity: 0.85;
}

/* Hover */
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(183,75,75,0.4);
}

/* Responsive */
@media(max-width: 768px) {
    .timeline {
        padding-left: 20px;
        margin-left: 10px;
    }
}


/* =======================
   NAVIGATION (DESKTOP)
======================= */
.nav-links {
    display: flex;
    gap: 20px;
}

.menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
}

.menu-btn i {
    pointer-events: none;
}

/* =======================
   NAVIGATION (MOBILE)
======================= */
@media (max-width: 768px) {

    header {
        padding: 15px 20px;
    }

    /* Show hamburger icon */
    .menu-btn {
        display: block;
        color: white;
    }

    /* Hide nav on mobile by default */
    .nav-links {
        position: absolute;
        top: 80px;
        right: 20px;
        background: #161616;
        width: 220px;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-radius: 10px;
        display: none;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
        border: 2px solid #b74b4b;
        z-index: 999;
    }

    /* Show nav when active */
    .nav-links.active {
        display: flex;
    }

    /* Mobile nav links styling */
    .nav-links a {
        margin: 0;
        padding: 10px 0;
        font-size: 2rem;
        color: white;
        border-bottom: 2px solid transparent;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: #b74b4b;
        border-bottom: 2px solid #b74b4b;
    }
}
