/*==================== GOOGLE FONTS ====================*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*==================== VARIABLES CSS ====================*/
:root {
  --header-height: 3rem;

  /*========== Colors ==========*/
  /* Change favorite color */
  --hue-color: 200;
  /*Purple 250 - Green 142 - Blue 230 - Pink 340*/

  /* HSL color mode */
  --first-color: hsl(var(--hue-color), 69%, 61%);
  --first-color-second: hsl(var(--hue-color), 69%, 61%);
  --first-color-alt: hsl(var(--hue-color), 57%, 53%);
  --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
  --title-color: hsl(var(--hue-color), 8%, 15%);
  --text-color: hsl(var(--hue-color), 8%, 45%);
  --text-color-light: hsl(var(--hue-color), 8%, 65%);
  --input-color: hsl(var(--hue-color), 70%, 96%);
  --body-color: hsl(var(--hue-color), 60%, 99%);
  --container-color: #fff;
  --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;

  /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== Margenes Bottom ==========*/
  /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* Font size for large devices */
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*========== Variables Dark theme ==========*/
body.dark-theme {
  --first-color-second: hsl(var(--hue-color), 50%, 60%);
  --title-color: hsl(var(--hue-color), 8%, 95%);
  --text-color: hsl(var(--hue-color), 8%, 75%);
  --input-color: hsl(var(--hue-color), 29%, 16%);
  --body-color: hsl(var(--hue-color), 28%, 12%);
  --container-color: hsl(var(--hue-color), 29%, 16%);
}

/*========== Button Dark/Light ==========*/
.nav__btns {
  display: flex;
  align-items: center;
}

.change-theme {
  font-size: 1.25rem;
  color: var(--title-color);
  margin-right: var(--mb-1);
  cursor: pointer;
}

.change-theme:hover {
  color: var(--first-color)
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

.profile__logo {
  width: 1.5rem;
  border-radius: 50%;
}

#name {
  color: var(--first-color);
}

button {
  border:none;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  width: fit-content;
}

/*==================== REUSABLE CSS CLASSES ====================*/
.section {
  padding: 2rem 0 4rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
}

.section__title,
.section__subtitle {
  text-align: center;
}

.email-icon:hover {
  cursor: pointer;
}

/*==================== LAYOUT ====================*/
.container {
  max-width: 768px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.header {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
  background-image: url('https://images.pexels.com/photos/176851/pexels-photo-176851.jpeg'); 
  background-size: cover; background-position: center; background-repeat: no-repeat;
  box-shadow: 0 -1px 8px rgba(0, 0, 0, .15);
}

/*==================== NAV ====================*/
.nav {
  max-width: 1200px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

/* POSITION LOGO LEFT */
.nav__logo {
  flex: 1;
  font-size: 1.2rem;
  font-weight: 800;
  color: #c0d8ff !important; /* Galaxy blue */
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* CENTER THE NAV MENU */
.nav__menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Make nav list horizontal and centered */
.nav__list {
  display: flex;
  gap: 2rem;
}

/* THEME BUTTON ON RIGHT */
.nav__btns {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* THEME BUTTON STYLE TO MATCH NAV LOGO */
.nav__btns .change-theme {
  font-size: 1.5rem;
  color: #c0d8ff !important; /* Galaxy blue */
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.3s, text-shadow 0.3s;
}

.nav__btns .change-theme:hover {
  color: #7cbcff !important;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

/* Force galaxy style in light theme */
body.light-theme .nav__btns .change-theme {
  color: #c0d8ff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* NAV LINK STYLES */
.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  color: white !important;
  font-weight: var(--font-medium);
  transition: color 0.3s;
}

.nav__link:hover,
.nav__link.active-link {
  color: #c0d8ff  !important; /* Blue on hover/active */
}

/* NAV ICON */
.nav__icon {
  font-size: 1.2rem;
}

/* LIGHT MODE OVERRIDES */
body.light-theme .nav__link {
  color: white !important;
}

body.light-theme .nav__link:hover,
body.light-theme .nav__link.active-link {
  color: #007bff !important;
}

/*==================== HOME ====================*/
.home__container {
  gap: 1rem;
}

.home__content {
  grid-template-columns: .5fr 3fr;
  padding-top: 3.5rem;
  align-items: center;
}

.home__social {
  display: grid;
  grid-template-columns: max-content;
  row-gap: 1rem;
}

.home__social-icon {
  font-size: 1.25rem;
  color: var(--first-color);
}

.home__social-icon:hover {
  color: var(--first-color-alt);
}

.home__blob {
  width: 200px;
  fill: var(--first-color);
}

.home__blob-img {
  width: 200px;
}

.home__data {
  grid-column: 1/3;
}

.home__title {
  font-size: var(--big-font-size)
}

.home__subtitle {
  font-size: var(--h3-font-size);
  color: var(--text-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-75);
}

.home__description {
  margin-bottom: var(--mb-2);
}

.home__scroll {
  display: none;
}

.home__scroll-button {
  color: var(--first-color);
  transition: .3s;
}

.home__scroll-button:hover {
  transform: translateY(.25rem);
}

.home__scroll-mouse {
  font-size: 2rem;
}

.home__scroll-name {
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--first-medium);
  margin-right: var(--mb-0-25);
}

.home__scroll-arrow {
  font-size: 1.25rem;
}

/*==================== BUTTONS ====================*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: .5rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
}

.button:hover {
  background-color: var(--first-color-alt);
}

.button__icon {
  font-size: 1.25rem;
  margin-left: var(--mb-0-5);
  transform: .3s;
}

.button--flex {
  display: inline-flex;
  align-items: center;
}

/*==================== ABOUT ====================*/
.about__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.about__img img {
  width: 100%;
  height: 500px;
  max-width: 500px;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about__description {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 1.5rem;
}

.about__info {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: var(--mb-2-5);
}

.about__info-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.about__info-card {
  flex: 1;
  min-width: 150px;
  padding: 1.2rem;
  background: radial-gradient(circle at top left, #111827, #1f2937);
  color: #e0e7ff;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 0 12px rgba(147, 51, 234, 0.3),
              0 0 24px rgba(99, 102, 241, 0.3),
              inset 0 0 10px rgba(79, 70, 229, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.about__info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.6),
              0 0 40px rgba(99, 102, 241, 0.5);
}

/* Optional: Sparkle overlay */
.about__info-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: radial-gradient(white 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.05;
  pointer-events: none;
  border-radius: inherit;
}

.about__info-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #c084fc;
  text-align: center;
  margin-bottom: 0.25rem;
}

.about__info-name {
  font-size: 0.85rem;
  color: #a5b4fc;
  text-align: center;
  margin-top: 4px;
}

.about__quote {
  font-style: italic;
  color: #a5b4fc;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  text-align: center;
}

.about__buttons {
  display: flex;
  justify-content: center;
}

.button--flex {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.button--flex:hover {
  transform: translateY(-3px);
}

@keyframes galaxyMove {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/*==================== SKILLS ====================*/
.skills__container {
  row-gap: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2rem;
}

.skills__header {
  display: flex;
  align-items: center;
  margin-bottom: var(--mb-1);
  cursor: pointer;
}

.skills__icon, .skills__arrow {
  font-size: 2rem;
  color: var(--first-color);
}

.skills__icon {
  margin-right: var(--mb-0-75);
}

.skills__title {
  font-size: var(--h3-font-size);
}

.skills__arrow {
  margin-left: auto;
  transition: .4s;
}

.skills__titles {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--mb-0-5);
}

.skills__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.skills__bar, .skills__percentage {
  height: 5px;
  border-radius: .25rem;
}

.skills__bar {
  background-color: var(--first-color-lighter);
}

.skills__percentage {
  display: block;
  background-color: var(--first-color);
}

.skills__html, .skills__oop {
  width: 80%;
}

.skills__cpp, .skills__sre {
  width: 70%;
}

.skills__dsa, .skills__css, .skills__sql {
  width: 65%;
}

.skills__c, .skills__java,
.skills__php, .skills__js {
  width: 60%;
}

.skills__python {
  width: 50%;
}

.skills__close .skills__list {
  height: 0;
  overflow: hidden;
  transition: .5s;
}

.skills__open .skills__list {
  height: max-content;
  margin-bottom: var(--mb-2-5);
  transition: .5s;
}

.skills__open .skills__arrow {
  transform: rotate(-180deg);
}

/*==================== FLASH CARD STYLES ====================*/
.skill-card {
  position: relative;
  width: 100%;
  height: 400px;
  perspective: 1000px;
  margin-bottom: 2rem; 
}

.skill-card__front,
.skill-card__back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.skill-card__front {
  background-color: linear-gradient(
        145deg,
        rgba(30,58,138,0.25),
        rgba(15,23,42,0.9)
    );
  color: var(--title-color, #333);
  z-index: 2;
  transform: rotateY(0deg);
  text-align: center;
}

.skill-card__back {
  background: radial-gradient(circle at top left, #1e1b4b, #0f172a);
  background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
  background-blend-mode: overlay;
  color: #fff;
  transform: rotateY(180deg);
  z-index: 1;
  text-align: left;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.6),
              0 0 40px rgba(99, 102, 241, 0.5);
}

.skill-card:hover .skill-card__front {
  transform: rotateY(180deg);
}

.skill-card:hover .skill-card__back {
  transform: rotateY(0deg);
  z-index: 3;
}

.skill-card__back ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.skill-card__back ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--small-font-size);
  margin-bottom: 12px;
  flex-direction: column;
}

/*==================== GALAXY-THEMED PROGRESS BAR ====================*/
.progress {
  background: radial-gradient(circle at top left, #111827, #1f2937);
  border-radius: 12px;
  overflow: hidden;
  height: 20px;
  margin-top: 8px;
  margin-bottom: 14px;
  box-shadow: 0 0 12px rgba(88, 28, 135, 0.3);
  width: 100%;
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.6),
              0 0 40px rgba(99, 102, 241, 0.5);
}

.progress-bar {
  height: 100%;
  text-align: left;
  padding-left: 10px;
  line-height: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(90deg, #6b21a8, #9333ea, #3b82f6);
  background-size: 200% 100%;
  animation: galaxyMove 3s ease infinite;
  box-shadow: 0 0 10px #8b5cf6, 0 0 20px #6366f1, 0 0 30px #4f46e5;
  transition: width 0.6s ease-in-out;
}

@keyframes galaxyMove {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/*==================== INLINE SKILL ICONS ====================*/
.skill-icon-inline {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 6px;
  vertical-align: middle;
}

/*==================== ICON IN CARD ====================*/
.skill-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;

}

/*==================== QUALIFICATION ====================*/

.qualification__tabs {

    display:flex;
    justify-content:center;
    gap:3rem;

    margin-bottom:3rem;

}


.qualification__button {

    display:flex;
    align-items:center;
    gap:.5rem;

    font-size:1.1rem;
    font-weight:600;

    cursor:pointer;

    color:var(--text-color);

    transition:.3s;

}


.qualification__button:hover {

    color:var(--first-color);

}


.qualification__button.qualification__active {

    color:var(--first-color);

}


/* ================= CONTENT CONTROL ================= */


.qualification__sections {

    width:100%;

}


.qualification__content {

    display:none;

    width:100%;

}


.qualification__content.qualification__active {

    display:block;

    animation:fadeQualification .4s ease;

}


@keyframes fadeQualification {

    from {

        opacity:0;
        transform:translateY(15px);

    }

    to {

        opacity:1;
        transform:translateY(0);

    }

}



/* ================= GRID ================= */


.qualification-grid {


    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(500px,1fr));
    gap:2rem;
    margin-top:2rem;


}



/* ================= CARD ================= */


.qualification-card {


    display:flex;

    gap:1.5rem;


    padding:2rem;


    border-radius:1.5rem;


    background:

    linear-gradient(
        145deg,
        rgba(30,58,138,.25),
        rgba(15,23,42,.95)
    );


    border:

    1px solid rgba(96,165,250,.25);



    box-shadow:

    0 15px 40px rgba(0,0,0,.25);



    transition:.35s;


}


.qualification-card:hover {


    transform:translateY(-8px);


    border-color:#60a5fa;


    box-shadow:

    0 15px 40px rgba(37,99,235,.35);


}

/* ================= ICON ================= */

.qualification-icon {

    min-width:70px;
    height:70px;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    background:
    linear-gradient(
        135deg,
        #2563eb,
        #312e81
    );
    box-shadow:
    0 0 25px rgba(37,99,235,.5);


}



.qualification-icon i {


    color:white;
    font-size:2rem;


}



/* ================= LABEL ================= */

.qualification-type {

    display:inline-block;
    padding:.4rem 1rem;
    border-radius:20px;
    margin-bottom:1rem;
    background:
    rgba(37,99,235,.2);
    color:#bfdbfe;
    font-size:.8rem;
    font-weight:700;

}

/* ================= TEXT ================= */


.qualification-content h3 {

    color:white;
    font-size:1.25rem;
    margin-bottom:.5rem;

}



.qualification-content h4 {

    color:var(--text-color-light);
    font-size:1rem;
    margin-bottom:1rem;

}

.qualification-date {

    display:flex;
    align-items:center;
    gap:.5rem;
    color:var(--first-color);
    margin-bottom:1rem;

}

.qualification-info {

    display:flex;
    justify-content:space-between;
    padding:1rem;
    border-radius:.8rem;
    background:rgba(255,255,255,.05);

}

.qualification-info span {
    color:var(--text-color-light);
}


.qualification-info strong {
    color:#60a5fa;
}

/*==================== ACTIVITY ====================*/

.activity__container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}


/* Activity Card */

.activity__card {

    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2.5rem;
    padding: 2rem;
    background:
    linear-gradient(
        145deg,
        rgba(30,58,138,0.25),
        rgba(15,23,42,0.9)
    );


    border-radius: 1.5rem;
    border: 1px solid rgba(96,165,250,.25);
    box-shadow:
    0 10px 35px rgba(0,0,0,.25);
    transition: .3s ease;

}


.activity__card:hover {

    transform: translateY(-8px);
    border-color:rgba(96,165,250,.7);
    box-shadow:0 0 35px rgba(37,99,235,.35);

}

/* Image Section */

.activity__image-wrapper {

    position: relative;

}

.activity__img {

    width:100%;
    height:280px;
    object-fit:cover;
    border-radius:1.2rem;
    display:block;

}

/* Activity Category Badge */
.activity__type {

    position:absolute;
    top:15px;
    right:15px;
    padding:.5rem 1rem;
    border-radius:20px;
    background:
    linear-gradient(
    135deg,
    #2563eb,
    #1e40af,
    #312e81
    );
    color:white;
    font-size:.75rem;
    font-weight:700;
    letter-spacing:.5px;
    box-shadow:
    0 0 15px rgba(37,99,235,.8);

}

/* Information Section */
.activity__info {

    display:flex;
    flex-direction:column;
    justify-content:center;

}

.activity__date {

    display:flex;
    align-items:center;
    gap:.5rem;
    color:
    var(--first-color);
    font-size:.9rem;
    margin-bottom:.8rem;

}

.activity__info h3 {

    font-size:
    var(--h3-font-size);


    margin-bottom:1rem;

}

.activity__info p {


    line-height:1.7;
    margin-bottom:1.2rem;
    color:var(--text-color);

}

/* Galaxy Tags */

.activity__tags {


    display:flex;
    flex-wrap:wrap;
    gap:.6rem;
    margin-bottom:1.5rem;

}

.activity__tags span {

    padding:.35rem .9rem;
    border-radius:20px;
    background:
    linear-gradient(
    135deg,
    #172554,
    #1e3a8a
    );
    color:#dbeafe;
    border:1px solid rgba(96,165,250,.4);
    font-size:.8rem;
    box-shadow:

    0 0 10px rgba(59,130,246,.25);

}

/* Button Animation */

.activity__button:hover .button__icon {

    transform:translateX(.25rem);

}

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


@media screen and (max-width:968px){


    .activity__card {

        grid-template-columns:1fr;

    }

    .activity__img {

        height:250px;

    }

}

@media screen and (max-width:568px){

    .activity__card {

        padding:1.2rem;

    }

    .activity__img {

        height:200px;

    }

}

/*==================== PROJECT ====================*/
.section__title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.section__subtitle {
  display: block;
  text-align: center;
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 2rem;
}

/* Grid Container */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

/* Individual Project Box */
.project-box {
  background-color: #111827;
  padding: 1.5rem;
  border-radius: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.1);
  color: #e5e7eb;
}

.project-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(147, 51, 234, 0.3);
}

.project-name {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 0.95rem;
  color: #d1d5db;
  margin-bottom: 1rem;
}

/* Tech Info Bar */
.project-tech {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* More Button */
.more-projects {
  margin-top: 2rem;
  text-align: center;
}

.more-button {
  background-color: #8b5cf6;
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.more-button:hover {
  background-color: #7c3aed;
}

.project-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(675px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

@media screen and (max-width: 1100px){
    .project-grid{
        grid-template-columns: 1fr;
    }
}

.project-card{

    background:linear-gradient(
        145deg,
        rgba(30,58,138,0.25),
        rgba(15,23,42,0.9)
    );
    border-radius:1.25rem;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.3s;
    min-height:560px;

}

.project-card:hover{

    transform:translateY(-10px);
    box-shadow:
    0 0 25px rgba(59,130,246,.5),
    0 0 50px rgba(30,64,175,.3);

}

.project-img{

    width:100%;
    height:250px;
    object-fit:cover;

}

.project-content{

    padding:1.5rem;

}

.project-content h3{

    margin-bottom:.8rem;

}

.project-content p{

    margin-bottom:1.2rem;
    line-height:1.7;

}

.project-tags{

    display:flex;
    flex-wrap:wrap;
    gap:.6rem;
    margin-bottom:1.3rem;

}

.project-tags span{

    background:
    linear-gradient(
    135deg,
    #172554,
    #1e3a8a
    );
    color:#dbeafe;
    border:1px solid rgba(96,165,250,.4);
    padding:.4rem .9rem;
    border-radius:20px;
    font-size:.85rem;
    box-shadow:
    0 0 10px rgba(59,130,246,.25);

  }

.project-hashtags{
    display:flex;
    flex-wrap:wrap;
    gap:.6rem;
    margin-bottom:1.5rem;
}

.project-hashtags span{
    color: var(--text-color-light);
    font-size:.85rem;
    font-weight:500;
}

.project-buttons{

    display:flex;
    gap:1rem;

}

.project-img-wrapper{
    position:relative;
}

.project-image-wrapper{
    position:relative;
}


.project-type{

    position:absolute;
    top:15px;
    right:15px;
    padding:.45rem 1rem;
    border-radius:25px;
    background:
    linear-gradient(
        135deg,
        #2563eb,
        #1e40af,
        #312e81
    );
    color:white;
    font-size:.75rem;
    font-weight:700;
    letter-spacing:.8px;
    box-shadow: 0 0 15px rgba(37,99,235,.8);
    backdrop-filter:blur(5px);
    z-index:2;

}

.project__more{
    display:flex;
    justify-content:center;
    margin-top:3rem;
}


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

.contact__container {
    row-gap:3rem;
}


/* Contact Grid */

.contact__grid {

    display:grid;

    grid-template-columns:
    repeat(3, 1fr);

    gap:2rem;

    margin-top:3rem;

}



/* Galaxy Contact Card */

.contact__card {


    position:relative;

    overflow:hidden;


    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;


    min-height:280px;


    padding:2.5rem 2rem;


    border-radius:1.8rem;


    text-decoration:none;



    background:

    radial-gradient(
        circle at top,
        rgba(96,165,250,.25),
        transparent 40%
    ),


    linear-gradient(
        145deg,
        #111827,
        #0f172a,
        #020617
    );



    border:

    1px solid rgba(96,165,250,.25);



    box-shadow:

    0 15px 45px rgba(0,0,0,.35);



    transition:.4s;


}




.contact__card::before {


    content:"";


    position:absolute;


    width:150px;

    height:150px;


    top:-60px;

    right:-50px;


    background:


    radial-gradient(
        circle,
        rgba(96,165,250,.6),
        transparent 70%
    );


    filter:blur(20px);


}




.contact__card:hover {


    transform:

    translateY(-12px);



    border-color:#60a5fa;



    box-shadow:

    0 20px 60px rgba(37,99,235,.45);

}

/* Icon */
.contact__icon {

    width:90px;
    height:90px;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    margin-bottom:1.5rem;
    background:
    linear-gradient(
        135deg,
        #2563eb,
        #312e81,
        #020617
    );
    box-shadow:
    0 0 35px rgba(37,99,235,.7);

}


.contact__icon i {

    font-size:2.8rem;
    color:white;
}

/* Category Badge */
.contact__type {

    display:inline-block;
    padding:.4rem 1rem;
    border-radius:20px;
    margin-bottom:1rem;
    background:
    rgba(96,165,250,.15);
    color:#bfdbfe;
    border:
    1px solid rgba(96,165,250,.25);
    font-size:.75rem;
    font-weight:700;
}

/* Text */
.contact__content h3 {

    color:#ffffff;
    font-size:1.4rem;
    font-weight:700;
    margin-bottom:.5rem;

}

.contact__content p {

    color:#cbd5e1;
    font-size:.95rem;
    font-weight:500;
    letter-spacing:.2px;
    transition:.3s;

}

.contact__card:hover .contact__content p {

    color:#ffffff;
}

/* Arrow */
.contact__arrow {

    position:absolute;
    bottom:1.5rem;
    right:1.5rem;
    color:#60a5fa;
    font-size:1.5rem;
    opacity:0;
    transition:.3s;

}

.contact__card:hover .contact__arrow {

    opacity:1;
    transform:translate(5px,-5px);
}

/* Responsive */
@media screen and (max-width:900px){

    .contact__grid {

        grid-template-columns:
        repeat(2,1fr);

    }
}


@media screen and (max-width:600px){

    .contact__grid {

        grid-template-columns:1fr;

    }
}
/*==================== FOOTER ====================*/
.footer {
  padding-top: 2rem;
}

.footer__container {
  row-gap: 3.5rem;
}

.footer__bg {
  background-image: 
    url('https://www.transparenttextures.com/patterns/stardust.png'), 
    url('galaxy.jpg');
  background-size: auto, cover;
  background-position: center;
  background-repeat: repeat, no-repeat;
  background-color: rgba(0, 0, 0, 0.7); /* slight dark overlay */
  backdrop-filter: brightness(0.6);
  color: #fff;
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-0-25);
  color: #b3d9ff; /* soft light blue */
}

.footer__subtitle {
  font-size: var(--small-font-size);
  color: #dbeaff;
}

.footer__links {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

.footer__link {
  color: #aad4ff;
  transition: 0.3s;
}

.footer__link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer__social {
  font-size: 1.25rem;
  margin-right: var(--mb-1-5);
  color: #aad4ff;
  transition: 0.3s;
}

.footer__social:hover {
  color: #ffffff;
}

.footer__copy {
  font-size: var(--smaller-font-size);
  text-align: center;
  color: #cccccc;
  margin-top: var(--mb-1);
}

/* Explicitly define white text for all key footer elements */
.footer__title, .footer__subtitle,
.footer__link, .footer__social {
  color: #ffffff;
}

/*========== SCROLL UP ==========*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--first-color);
  opacity: .8;
  padding: 0 .3rem;
  border-radius: .4rem;
  z-index: var(--z-tooltip);
  transition: .4s;
}

.scrollup:hover {
  background-color: var(--first-color-alt);
}

.scrollup__icon {
  font-size: 1.5rem;
  color: #fff;
}

/* Show scroll */
.show-scroll {
  bottom: 5rem;
}

/*========== SCROLL BAR ==========*/
::-webkit-scrollbar {
  width: .60rem;
  background-color: var(--scroll-bar-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: .5rem;
}

/*==================== MEDIA QUERIES ====================*/
/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .nav__menu {
    padding: 2rem .25rem 4rem;
  }

  .nav__list {
    column-gap: 0;
  }

  .home__content {
    grid-template-columns: .25fr 3fr;
  }

  .home__blob {
    width: 180px;
  }

  .skills__title {
    font-size: var(--normal-font-size);
  }

  .qualification__data {
    gap: .5rem;
  }
}

@media screen and (max-width: 430px) {
  .contact__wrapper {
    display: block;
  }
}

/* For medium devices */
@media screen and (min-width: 565px) {
  .home__content {
    grid-template-columns: max-content 1fr 1fr;
  }

  .home__data {
    grid-column: initial;
  }

  .home__img {
    order: 1;
    justify-content: center;
  }

  .skills__container, .activity__content,
  .project__content, .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .qualification__sections {
    display: grid;
    grid-column: .6fr;
    justify-content: center;
  }

  .project__data {
    text-align: right;
  }

  #project-img1 {
    display: none;
  }

  #project-img2 {
    display: block;
  }
}

@media screen and (min-width: 768px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  body {
    margin: 0;
  }

  .section {
    padding: 6rem 0 2rem;
  }

  .section__subtitle {
    margin-bottom: 3rem;
  }

  .header {
    top: 0;
    bottom: initial;
    padding: 1rem 2rem;
  }


  .main, .footer__container {
    padding: 0 1rem;
  }

  .nav {
    height: calc(var(--header-height)+1.5rem);
    column-gap: 1rem;
  }

  .nav__icon, .nav__close,
  .nav__toggle {
    display: none;
  }

  .nav__list {
    display: flex;
    column-gap: 2rem;
  }

  .nav__menu {
    margin-left: auto;
  }

  .change-theme {
    margin: 0;
  }

  .home__container {
    row-gap: 5rem;
  }

  .home__content {
    padding-top: 5.5rem;
    column-gap: 2rem;
  }

  .home__blob {
    width: 270px;
  }

  .home__scroll {
    display: block;
  }

  .home__scroll-button {
    margin-left: 3rem;
  }

  .qualification__tabs {
    justify-content: center
  }

  .qualification__button {
    margin: 0 var(--mb-1)
  }

  .qualification__sections {
    grid-template-columns: .5fr;
  }

  .activity__img {
    width: 700px;
    height: 300px;
    
  }

  .activity__content {
    align-items: center;
  }

  .footer__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__bg {
    padding: 3rem 0 3.5rem;
  }

  .footer__links {
    flex-direction: row;
    column-gap: 2rem;
  }

  .footer__socials {
    justify-self: flex-end;
  }

  .footer__copy {
    margin-top: 4.5rem;
  }

}

/* For large devices */
@media screen and (min-width: 1024px) {
  .header {
    padding: 1rem 0;
  }

  .main, .footer__container {
    padding: 0;
  }

  .home__blob {
    width: 320px;
  }

  .home__social {
    transform: translateX(-6rem);
  }

  .activity__container .swiper-button-next,
  .activity__container .swiper-button-prev {
    font-size: 2.5rem;
  } 

  .activity__container .swiper-button-next {
    right: -.5rem;
  }

  .activity__container .swiper-button-prev {
    left: -.5rem;
  }

}

/* =========================
   GitHub Section
========================= */

.github__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}


.github__stats {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;

    box-shadow:
        0 0 20px rgba(138, 43, 226, 0.4);

    transition: 0.3s ease;
}


.github__stats:hover {

    transform: translateY(-8px);

    box-shadow:
        0 0 35px rgba(0, 255, 255, 0.5);

}


/* GitHub Contribution Snake */

.github-calendar {
    width: 700px;
    max-width: 100%;

    margin: 3rem auto 0;
    padding: 2rem;

    background:
    linear-gradient(
        135deg,
        rgba(15,15,35,0.9),
        rgba(40,20,80,0.8)
    );

    border-radius: 25px;

    box-shadow:
        0 0 30px rgba(138,43,226,0.35);

    overflow: hidden;
}


.github__snake {

    width: 100%;
    height: auto;

    filter:
    drop-shadow(0 0 15px #8a2be2)
    drop-shadow(0 0 25px #00ffff);

}

/* GitHub Button */

.github__button {

    display: flex;
    justify-content: center;

    margin-top: 2.5rem;

}


/* Responsive */

@media screen and (max-width: 768px) {

    .github__container {

        grid-template-columns: 1fr;

    }


    .github__stats {

        max-width: 100%;

    }

}
