/* ========================= */
/* 1. BASE & RESETS          */
/* ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
}

html {
  background: linear-gradient(135deg, #141432 0%, #1e1248 50%, #122040 100%);
  background-attachment: fixed;
  animation: gradientIntro 3s ease-out forwards;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: #e8e8ff;
}

main {
  flex: 1;
  width: 80%;
  margin: auto;
}

/* ========================= */
/* 2. TYPOGRAPHY & ELEMENTS  */
/* ========================= */
h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 500;
  color: #ffffff;
}
h1, h2, h3 {
  font-family: "Syne", sans-serif;
}
p, a, button {
  font-family: "DM Sans", sans-serif;
}

p {
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  letter-spacing: 1px;
  color: #c4c4e0;
}

.Heythere {
  opacity: 0.6;
  padding-bottom: 1rem;
  padding-top: 4rem;
  animation: fadeIn2 1.5s ease-out forwards;
  color: #a78bfa;
}

.MainText {
  font-size: clamp(1.9rem, 5vw, 3rem);
  max-width: 850px;
  width: 100%;
  line-height: 1.2;
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 0.6s;
  opacity: 0;
  color: #ffffff;
}

.text1 {
  margin-top: 9rem;
  margin-bottom: 4rem;
  color: #ffffff;
}

.wave {
  width: clamp(3rem, 5vw, 5rem);
  padding-top: 2rem;
  padding-bottom: 2rem;
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 1s;
  opacity: 0;
  /* filter: hue-rotate(200deg) brightness(1.4); */
}

/* ========================= */
/* 3. HEADER & ICONS         */
/* ========================= */
main header {
  height: auto;
  margin-top: 1.5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(168, 85, 247, 0.35);
  padding-bottom: 1.5rem;
}

.logo {
  width: 5rem;
  transition: 1s;
  filter: drop-shadow(0px 0px 7px rgba(168, 85, 247, .2));
}

.logo:hover {
  scale: 1.2;
  margin: 1rem;
  margin-right: 5rem;
  filter: drop-shadow(0px 0px 7px rgba(168, 85, 247, 5));
}

.Icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 2rem;
  
}

.Icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: 0.4s;
  margin: 0.5rem;
  filter: drop-shadow(0px 0px 7px rgba(168, 85, 247, .2));
}

.Icons a:hover {
  transform: translateY(-5px);
  outline: 4px solid rgba(168, 85, 247, 0.5);
  border-radius: 0.4rem;
  filter: drop-shadow(0px 0px 7px rgba(168, 85, 247, 3));
}

.Icons a img {
  height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 0.4rem;
}

.Icons a:first-child,
.Icons a:nth-child(2) {
  scale: 1;
  border-radius: 0.4rem;
}

.Icons a:nth-child(3),
.Icons a:nth-child(4),
.Icons a:nth-child(5) {
  scale: 1;
  border-radius: 0.7rem;
}

.Icons a:nth-child(6) {
  scale: 1.09;
  border-radius: 0.7rem;
}

.Icons a:last-child {
  scale: 0.8;
  border-radius: 0.7rem;
}

/* ========================= */
/* 4. BUTTONS                */
/* ========================= */
main button {
  outline: none;
  border: none;
  display: flex;
  width: 12.5rem;
  height: 4rem;
  justify-content: center;
  align-items: center;
  border-radius: 1rem;
  margin-bottom: 3rem;
  cursor: pointer;
  transition: 0.3s;
  background: linear-gradient(135deg, #1d7aff, #a855f7);
  color: white;
  animation: fadeInButton 3s ease-in-out;
  box-shadow: 1px 2px 20px rgba(168, 85, 247, 0.35);
}

main button img {
  width: 2.5rem;
  height: 1.6rem;
  margin-left: 0.8rem;
}

button p {
  font-size: 1rem;
  color: white;
}

button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.55);
}

i {
  margin-top: 0.3rem;
  margin-left: 0.7rem;
  scale: 1.5;
}

/* ========================= */
/* 5. PROJECTS SECTION       */
/* ========================= */
.container {
  display: flex;
  gap: 1rem;
  min-height: 500px;
  height: 65vh;
  margin-top: 4rem;
  margin-bottom: 5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project1-wrapper {
  flex: 1;
}
.project2-wrapper {
  flex: 2;
}
.project1-wrapper2 {
  flex: 2;
}
.project2-wrapper2 {
  flex: 1;
}

.project1,
.project2 {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 10px 35px rgba(100, 80, 255, 0.3);
  transition: transform 0.4s ease;
  cursor: pointer;
  border: 1px solid rgba(168, 85, 247, 0.15);
}

.project1 {
  flex: 1;
}
.project2 {
  flex: 2;
}

.project1 img,
.project2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project1:hover,
.project2:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.4);
}

.project1:hover img,
.project2:hover img {
  transform: scale(1.05);
}

.project-info {
  padding: 0 0.5rem;
}

.project-tags {
  font-size: 0.9rem !important;
  color: #a78bfa;
  margin-bottom: 0.25rem;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: #e8e8ff;
}

/* ========================= */
/* 6. SKILLS SECTION         */
/* ========================= */
.skills-section {
  margin-top: 6rem;
  margin-bottom: 2rem;
}

.skills-title {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 350;
  margin-bottom: 3rem;
  color: #ffffff;
}

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

.skill-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 1.2rem;
  padding: 2rem 1.5rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: default;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
}

.skill-card i {
  font-size: 1.8rem;
  background: linear-gradient(135deg, #1d7aff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  display: block;
  scale: 1;
  margin-left: 0;
  margin-top: 0;
}

.skill-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.skill-card p {
  font-size: 0.9rem;
  color: #9090b8;
  letter-spacing: 0.3px;
  line-height: 1.5;
}

/* ========================= */
/* 7. EXPERIENCE SECTION     */
/* ========================= */
.Experience {
  display: flex;
  gap: 2rem;
  min-height: auto;
  height: auto;
  margin-bottom: 4rem;
}

.Experience_panel {
  flex: 1;
  height: auto;
  transition: filter 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.Experience:hover .Experience_panel {
  filter: blur(3px);
  opacity: 0.4;
}

.Experience .Experience_panel:hover {
  filter: blur(0);
  opacity: 1;
  transform: scale(1.03);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.2);
}

.Experience_h1 {
  font-size: 1.53rem;
  font-weight: 350;
  margin-bottom: 2rem;
  color: #ffffff;
}

.year {
  opacity: 50%;
  margin-bottom: 2rem;
  color: #a78bfa;
}

.discription {
  font-weight: 280;
  transition: 0.4s;
  color: #c4c4e0;
}

/* ========================= */
/* 8. FOOTER                 */
/* ========================= */
footer {
  background: linear-gradient(180deg, #0e0a2a 0%, #0a0820 100%);
  border-top: 1px solid rgba(168, 85, 247, 0.25);
  width: 100%;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4rem 0 2rem 0;
}

footer div {
  width: 90%;
  margin: 0 auto;
  color: white;
  font-weight: 300;
  position: relative;
}

footer div h1 {
  margin-bottom: 2rem;
  font-weight: 400;
  color: #ffffff;
}

.feelfreetext {
  margin-right: 45vw;
  font-size: medium;
  font-weight: 300;
  color: #c4c4e0;
}

.mail {
  margin-top: 2rem;
  color: #a78bfa;
}

.social-box {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 10;
}

h1.Checkmeout {
  font-size: 2rem;
  font-weight: 200;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
}

.icons2 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
}

.icons2 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  transition: transform 0.3s ease;
  opacity: 100%;
  border-radius: 0.7rem;
}

.icons2 a:hover {
  transform: translateY(-5px);
  outline: 4px solid rgba(168, 85, 247, 0.5);
}

.icons2 a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
  opacity: 1 !important;
}

footer button {
  outline: none;
  border: none;
  display: flex;
  width: 12rem;
  height: 4rem;
  justify-content: center;
  align-items: center;
  border-radius: 1rem;
  margin-top: 4rem;
  cursor: pointer;
  transition: 0.3s;
  background: linear-gradient(135deg, #1d7aff, #a855f7);
  box-shadow: 1px 2px 15px rgba(168, 85, 247, 0.3);
}

footer button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
}

footer button img {
  width: 2.5rem;
  height: 1.5rem;
  margin-left: 1.2rem;
}

.rights {
  width: 100%;
  text-align: center;
  color: rgba(168, 85, 247, 0.45);
  font-size: 0.9rem;
  margin-top: 4rem;
}

/* ========================= */
/* 9. ANIMATIONS             */
/* ========================= */
@keyframes gradientIntro {
  from {
    background-position: left top;
    filter: brightness(0);
  }
  to {
    background-position: right bottom;
    filter: brightness(1);
  }
}

@keyframes fadeInButton {
  0%,
  75% {
    opacity: 0;
    transform: translateX(-15px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn2 {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 0.6;
    transform: translateY(0);
  }
}

/* ========================= */
/* 10. MEDIA QUERIES         */
/* ========================= */

@media (max-width: 1400px) {
  .feelfreetext {
    margin-right: 35vw;
  }
}

@media (max-width: 1024px) {
  main,
  footer div {
    width: 90%;
  }
  .MainText {
    font-size: 2.5rem;
  }
  .feelfreetext {
    margin-right: 20vw;
  }
  h1 {
    font-size: 2rem;
  }
  p {
    font-size: 1rem;
  }
  .social-box {
    position: static;
    align-items: flex-start;
    margin-top: 3rem;
  }
  footer {
    padding-top: 3rem;
  }
  .container {
    height: 55vh;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .MainText {
    font-size: 2rem;
    line-height: 1.3;
  }
  .Heythere {
    padding-top: 2rem;
  }
  .wave {
    width: 4rem;
  }
  main header {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .Icons {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
  }
  .Icons a {
    height: 2.5rem;
  }
  .logo:hover {
    scale: 1.05;
    margin: 0;
    margin-right: 0;
  }
  footer {
    min-height: auto;
    padding: 3rem 0;
  }
  .feelfreetext {
    margin-right: 0;
    width: 100%;
    font-size: 1rem;
  }
  .social-box {
    align-items: center;
    text-align: center;
  }
  .icons2 {
    justify-content: center;
  }
  button,
  footer button,
  main button {
    width: 100%;
    max-width: 18rem;
  }
  .container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    height: auto;
  }
  .project1-wrapper,
  .project2-wrapper {
    width: 100%;
    flex: none;
  }
  .project1,
  .project2 {
    min-height: 300px;
  }
  .Experience {
    flex-direction: column;
    gap: 2.5rem;
  }
  .Experience_panel {
    width: 100%;
  }
  .text1 {
    margin-top: 4rem;
    margin-bottom: 2rem;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .skills-section {
    margin-top: 4rem;
  }
}

@media (max-width: 480px) {
  main,
  footer div {
    width: 92%;
  }
  h1 {
    font-size: 1.8rem;
  }
  .MainText {
    font-size: 1.7rem;
  }
  p {
    font-size: 0.95rem;
  }
  .Icons {
    gap: 0.3rem;
  }
  .Icons a {
    margin: 0.2rem;
    height: 2rem;
  }
  .icons2 {
    gap: 0.6rem;
  }
  .icons2 a {
    width: 2rem;
    height: 2rem;
  }
  .wave {
    width: 3rem;
  }
  .mail {
    word-break: break-word;
  }
  .project1,
  .project2 {
    min-height: 250px;
    border-radius: 1rem;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
}