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

:root {
  --bg-color: #000;
  --second-bg-color: #101010;
  --text-color: #fff;
  --main-color: #ea500c;
}

html {
  font-size: 50%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

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

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

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

span {
  background: linear-gradient(270deg, #DF8908 10%, #ff1d15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#menu-icon {
  display: none;
  font-size: 3.5rem;
  color: var(--main-color);
  cursor: pointer;
}

.navbar {
  display: flex;
  align-items: center;
}

.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 3rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.navbar a:hover {
  color: var(--main-color);
  border-color: var(--main-color);
}

/* Gradient Button */
.gradient-btn {
  font-size: 1.6rem;              /* slightly smaller text */
  padding: 0.8rem 1.8rem;         /* less vertical & horizontal padding */
  border-radius: 3rem;
  background: linear-gradient(270deg, #DF8908 10%, #ff1d15 100%);
  color: white;
  border: none;
  cursor: pointer;
  margin-left: 2rem;              /* less margin from left */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.gradient-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 29, 21, 0.4);
}

/* Sections */
section {
  min-height: 100vh;
  padding: 10rem 10%;
}

/* Home (keep always same layout) */
.home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8rem;
  flex-wrap: wrap;
}

.home-content {
  flex: 1 1 500px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.home-content h3 {
  font-size: 3.5rem;
  color: var(--main-color);
}

.home-content p {
  font-size: 1.8rem;
  max-width: 600px;
  line-height: 1.6;
}

.home-img {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
}

.home-img img {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1 / 1; /* keep it square */
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 20px var(--main-color);
  transition: 0.4s ease;
}

.home-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--main-color), 0 0 60px var(--main-color);
}

/* Responsive menu only on mobile */
@media (max-width: 600px) {
  .header { padding: 2rem 5%; }
  #menu-icon { display: block; }
  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: rgba(0,0,0,0.95);
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 2rem 0;
    border-top: 2px solid var(--main-color);
  }
  .navbar.active { display: flex; }
  .navbar a { margin: 2rem 0; font-size: 2rem; }
  .gradient-btn { display: none; }
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1.5rem;
  margin: 3rem 0;
}

.social-icon {
  width: 6rem;
  height: 6rem;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  font-size: 3rem;
  color: var(--main-color);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
}

.social-icon:hover {
  background-color: var(--main-color);
  color: var(--text-color);
  transform: scale(1.2) translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
}

/* About */
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  background: var(--second-bg-color);
  flex-wrap: wrap;
}

.about-img img {
  width: 100%;
  max-width: 400px; /* control size */
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 25px var(--main-color);
  transition: 0.4s ease;
}

.about-img img:hover {
  box-shadow: 0 0 50px var(--main-color), 0 0 100px var(--main-color);
}


.about-content h2 {
  font-size: 7rem;
}

.about-content p {
  font-size: 1.8rem;
  margin-top: 2rem;
}

/* Headings */
.heading {
  text-align: center;
  font-size: 7rem;
  margin-bottom: 5rem;
}

/* Services */
.services {
  background-color: var(--bg-color);
  padding: 10rem 5%;
}

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

.service-box {
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 2rem;
  padding: 4rem 2rem;
  text-align: center;
  transition: 0.4s ease;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(234, 80, 12, 0.3);
}

.service-box:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
  color: var(--main-color);
}

.service-info i {
  font-size: 6rem;
  color: var(--main-color);
  margin-bottom: 2rem;
}

.service-info h4 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.service-info p {
  font-size: 1.6rem;
  line-height: 1.7;
}

/* Projects */
.projects {
  background-color: var(--second-bg-color);
}

.projects-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  padding: 0 2rem;
}

.project-card {
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 2rem;
  padding: 3rem 2rem;
  text-align: center;
  transition: 0.3s ease;
  box-shadow: 0 0 15px rgba(234, 80, 12, 0.3);
}

.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
}

.project-card img {
  width: 100%;
  max-width: 350px;
  border-radius: 1.5rem;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.project-card h3 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.project-card p {
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.project-card .btn {
  font-size: 1.6rem;
  padding: 1rem 2.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: black;
  background-color: var(--main-color);
  border: none;
  border-radius: 3rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(234, 80, 12, 0.4);
}

.btn-group {
  display: flex;
  gap: 1.5rem;
}

.btn-group a:nth-of-type(2) {
  background-color: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
}

.btn-group a:nth-of-type(2):hover {
  background-color: var(--main-color);
  color: black;
}
.about-content .btn {
  margin-top: 3rem;      /* adds space above */
  margin-bottom: 0;      /* keeps bottom tight if you want */
}

.contact {
    background-color: var(--bg-color);
    padding-bottom: 4rem; /* smaller bottom padding */
}
.contact h2 {
    margin-bottom: 2rem; /* less space below heading */
    color: var(--text-color);
}
.contact form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;            /* less gap between inputs */
    margin: 3rem 0;       /* less vertical margin overall */
}
.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin: 3rem 0;      /* less space around */
}

.footer {
    background-color: var(--second-bg-color);
    padding: 50px 0;
    text-align: center;  /* Center everything inside footer */
}

.footer .social-icons {
    display: flex;
    justify-content: center; /* center horizontally */
    gap: 2rem;               /* spacing between icons */
    margin-bottom: 2rem;     /* space below icons */
}

.footer .social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 2.5rem;
    color: var(--main-color);
    transition: 0.3s ease;
}

.footer .social-icons a:hover {
    background-color: var(--main-color);
    color: var(--text-color);
    transform: scale(1.1);
}

.footer ul {
    text-align: center;
    font-size: 1.8rem;
}

.footer ul li {
    display: inline-block;
    margin-left: 20px;
}

.footer ul li a {
    color: white;
    border-bottom: 3px solid transparent;
    transition: color 0.3s ease-in-out;
}

.footer ul li a:hover {
    border-bottom: 3px solid var(--main-color);
}

.footer .copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
}

@media(max-width: 1285px){
    #menu-icon{
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        right: 50%;
        width: 50%;
        padding: 1rem 3rem;
        background: rgba(0, 0, 0, 0.8);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        display: none;
    }
    .navbar a {
        display: block;
        margin: 3rem 0;
        font-size: 2rem;
        color: var(--text-color);
    }
    .navbar.active {
        display: block;

    }
    .gradient-btn{
        display: none;
    }
    .home {
        flex-direction: column-reverse;
        margin: 5rem 0;
        gap: 5rem;
    }
    .home-content {
        text-align: center;
        align-items: center;
    }
    .home-img img{
        width: 56vw;
    }
    .about {
        flex-direction: column-reverse;
        text-align: center;
    }
    .about h2{
        text-align: center;
        margin: 2rem 0;
    }
    .about-img{
        width: 52vw;
    }
    .contact form {
        flex-direction: column;
    }
}

/* Force image to be on right side on desktop/laptop */
@media (min-width: 769px) {
  .home {
    flex-direction: row;    /* text left, image right */
  }
  .home-content {
    order: 1;
  }
  .home-img {
    order: 2;
  }
}

/* Optional: on mobile, keep text on top and image below */
@media (max-width: 768px) {
  .home {
    flex-direction: column;
  }
  .home-content {
    order: 1;
  }
  .home-img {
    order: 2;
  }
}

/* Skills Section */
.skills {
  background-color: var(--second-bg-color);
  padding: 10rem 5%;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.skill-box {
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 2rem;
  padding: 4rem 2rem;
  text-align: center;
  transition: 0.4s ease;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(234, 80, 12, 0.3);
}

.skill-box:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
  color: var(--main-color);
}

.skill-info i {
  font-size: 6rem;
  color: var(--main-color);
  margin-bottom: 2rem;
}

.skill-info h4 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.skill-info p {
  font-size: 1.6rem;
  line-height: 1.6;
}
.see-more-container {
  text-align: center;
  margin-top: 4rem;
}
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
}
@media (max-width: 600px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.projects {
  background-color: var(--second-bg-color);
  text-align: center;        /* center heading and content */
  padding: 10rem 5%;
}

.projects .heading {
  text-align: center;        /* ensure heading stays centered */
}

.projects-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  justify-content: center;   /* center grid items */
  max-width: 1200px;         /* optional: limit width so it’s not too wide on big screens */
  margin: 0 auto;            /* center the grid itself */
  padding: 0 2rem;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  justify-content: center;    /* center last row items */
  max-width: 1200px;          /* optional: keeps grid from stretching too wide */
  margin: 0 auto;             /* center grid in section */
}
@media (max-width: 600px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact {
  background-color: var(--bg-color);
  text-align: center;
  padding: 10rem 5%;
}

.contact .heading {
  margin-bottom: 3rem;
  color: var(--text-color);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  font-size: 2rem;
  color: var(--text-color);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item i {
  font-size: 3rem;
  color: var(--main-color);
}

.contact-item a {
  color: var(--main-color);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}


/* Education modern timeline */
.education {
  background-color: var(--second-bg-color);
  padding: 8rem 5%;
}

.education .heading {
  text-align: center;
  font-size: 5rem;
  margin-bottom: 4rem;
}

.education-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 2rem;
  flex-wrap: wrap;
}

.education-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--main-color);
  z-index: 0;
  transform: translateY(-50%);
}

.edu-item {
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 1.5rem;
  text-align: center;
  padding: 2rem;
  width: 30%;
  z-index: 1;
  box-shadow: 0 0 15px rgba(234, 80, 12, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
}

.edu-img img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  border: 3px solid var(--main-color);
  background: white;
}

.edu-item h3 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  color: var(--text-color);
}

.edu-item p {
  font-size: 1.6rem;
  color: var(--text-color);
  line-height: 1.5;
}

/* Make it look clean on mobile */
@media (max-width: 992px) {
  .education-timeline {
    flex-direction: column;
    align-items: center;
  }

  .education-timeline::before {
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
  }

  .edu-item {
    width: 80%;
    margin-bottom: 3rem;
    position: relative;
  }

  .edu-item::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--main-color);
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    z-index: 2;
  }
}
