/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
/*===== VARIABLES CSS =====*/
 
html {
  scroll-behavior: smooth;
  font-size: 100%; 
}

:root {
  --header-height: 3rem;
  --font-semi: 600;
  /*===== Colores =====*/
  /*Purple 260 - Red 355 - Blue 224 - Pink 340*/
  /* HSL color mode */
  --hue-color: 224;
  --first-color: hsl(var(--hue-color), 89%, 60%);
  --second-color: hsl(var(--hue-color), 56%, 12%);
  /*===== Fuente y tipografia =====*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;
  /*===== Margenes =====*/
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  /*===== z index =====*/
  --z-back: -10;
  --z-fixed: 100;
}

/*===== BASE =====*/
*, ::before, ::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {

  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
}

h1, h2, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
section {
  padding: 4rem 0 2rem;
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
}

/*===== NAV =====*/

/* ===== NAVIGATION BAR ===== */




.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.4rem;
  background: linear-gradient(90deg, #084892ec, #1e7491); /* static gradient */
  width: 100%;
  max-width: 100vw; 
  padding: 0 1rem;
}

.nav__menu {
  display: flex;
  gap: 2rem;
}


.nav__item {
  margin-bottom: var(--mb-4);
}

.nav__link {
  position: relative;
  color:#ffffff;
  text-decoration: none;
  font-weight: 500;
}

.nav__link:hover {
  color: #FCD75D; 
}

.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

.nav__link i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
  vertical-align: middle;
}


/* ===== LOGO ===== */
.nav__logo {  
  font-size: 2rem;               
  letter-spacing: 1px;     
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  margin-left: 1.5rem;
  color: #f8f6f3;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.nav__logo:hover {
  color: #ec880f;           
  transform: scale(1.05);   
}

/* ===== TOGGLE (Mobile Menu Icon) ===== */
.nav__toggle {
  color: var(--second-color);
  font-size: 1.5rem;
  cursor: pointer;
  display: block;
}

/*Active menu*/
.active-link::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

/*=== Show menu ===*/
.show {
  right: 0;
}

/*===== HOME =====*/
.home {
  position: relative;
  width: 100%;
  min-height:  calc(100vh - var(--header-height)); 
  padding: 2rem 0;
   margin-top: 0;
  background-color: hsl(0, 0%, 100%);
  color: #0e0e0f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

.home__data {
  max-width: 50%; 
  z-index: 2; 
  padding-left: var(--mb-4); 
}

.home__title-color {
  color: #3957f0;
  font-weight: 800;
  font-size: 2.5rem;
}

.home_prof{
    color: #208ca0;
    font-size: 2.3rem;
}

.home__social {
  display: flex;
  margin-top: 2rem;
  flex-direction: row;
   gap: 1.5rem; 
   align-items: center;
  z-index: 2;
}

.home__social-icon {
 color: #033ca0;
  font-size: 2.5rem; 
  transition: transform 0.3s, color 0.3s;
  

}

.home__social-icon:hover {
  color: #333435;
   transform: scale(1.2); 
}

.home__img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 45%; 
  max-width: 450px; 
  height: auto;
  z-index: 1;
}

.home__blob {
  fill: #e1e1e3; 
  width: 100%;
  height: auto;
}

.home__blob-img {
  width: 100%;
  border-radius: 50%; 
  object-fit: cover;
  display: block;
}

/* button */
.button {
  display: inline-block;
  background-color: rgb(2, 109, 144);
  color: #fff;
  padding: 0.75rem 2.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  border-radius: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin-top: 2rem;
}

.button:hover {
  transform: translateY(-3px); /* slight float on hover */
  box-shadow: 0px 10px 36px rgba(31, 29, 30, 0.15);
  background-color: #2141de;
} 

/* Ripple effect circle */
.button-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background-color: rgba(181, 175, 175, 0.6);
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}


/* ===== ABOUT =====*/

 .section-title {
  font-size: 3rem; /* bigger and bold */
  font-weight: 800;
  text-align: center;
  position: relative;
  margin-bottom: 3rem;

  /* Gradient text */
  background: linear-gradient(90deg, #46cee6, #dc0f8d, #fbc2eb, #6a11cb);
  background-size: 300% ;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientAnimation 5s ease infinite;

  /* Shadow for depth */
  text-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

/* Animate gradient */
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Underline animation */
.section-title::after {
  content: '';
  position: absolute;
  width: 0;
  height: 4px;
  left: 50%;
  bottom: -15px;
  background-color: #dd2476;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: 0.4s;
}

.section-title:hover::after {
  width: 50%; /* underline grows on hover */
}

/* Floating effect */
.section-title {
  animation: floatTitle 3s ease-in-out infinite alternate;
}

@keyframes floatTitle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}


.about__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem; /* increase from 2rem to 4rem for more space */
  padding: 2rem 0;
}

.about__subtitle {
  font-size: 2.0rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-left: 4rem; 
  color: #1287c5;
}
#riya-name {
  transition: color 0.5s ease-in-out;  
  font-size: 2.2rem;
}

#typed-text {
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(90deg, #06b6d4, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}



.about__text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #464545;
   max-width: 600px;
   margin-left: 4rem; 
}

.about__img {
  flex: 1 1 250px;           /* left column, minimum 250px */
  display: flex;
  justify-content: center; 
  margin-right: 2rem;  
}

.about__img img {
  width: 220px;
  border-radius: 0.75rem;
  box-shadow: 0px 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.about__img img:hover {
  transform: scale(1.05);
}


/* ===== SKILLS =====*/
/* --- Variables and General Styles --- */
:root {
  --primary-color: #007bff;
  --secondary-color: #f6920f;
  --text-color: #495057;
  --light-bg-color: #f8f9fa;
  --border-radius: 0.5rem;
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* --- Skills Container and Elements --- */
.skills__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 2rem 1rem;
}

@media (min-width: 768px) {
  .skills__container {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
  }
}

.skills__content {
  max-width: 600px;
}

.skills__subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.skills__text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 2rem;
}

.skills__data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-weight: 600;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  background-color: var(--light-bg-color);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills__data:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.skills__icon {
  font-size: 2.2rem;
  color: var(--secondary-color);
}

.skills__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 0.4rem;
  border-radius: var(--border-radius);
  background-color: var(--primary-color);
  transition: width 1.5s ease-in-out;
  z-index: 1;
  width: 0;
}

.skills__percentage {
  font-weight: 700;
  color: var(--primary-color);
}

/* --- Image and Hover Effect --- */
.skills__image-wrapper {
  text-align: center;
}

.skills__img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills__img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .skills__container {
    flex-direction: column;
    text-align: center;
  }
}

/* Project */

/* General styling for the section */
.projects-section {
    padding: 4rem 1rem;
    background-color: #f8f9fa;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Styling for each project card */
.project-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.project-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.project-details {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

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

.project-tags {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tags li {
    background-color: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Contact */

/* Contact Section Styling */
.contact-section {
    padding: 4rem 1rem;
    background-color: #f8f9fa;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .contact-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.contact-info,
.contact-form {
    flex: 1;
}

/* Contact Info Styling */
.contact-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #555;
}

.contact-details {
    list-style: none;
    padding: 0;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.contact-details a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.contact-details i {
    font-size: 1.5rem;
    color: #007bff;
}

/* Form Styling */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.contact-form label {
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: #666;
    background: #fff;
    padding: 0 5px;
    transition: all 0.2s ease;
    pointer-events: none;
}

.contact-form input:placeholder-shown + label,
.contact-form textarea:placeholder-shown + label {
    visibility: hidden;
    opacity: 0;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #04315c;
    color: #f0f0f0;
    padding: 3rem 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

/* For larger screens, align items side-by-side */
@media (min-width: 768px) {
    .footer__container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .footer__content {
        align-items: flex-start;
    }
}

.footer__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer__subtitle {
    font-size: 1rem;
    color: #bbb;
    margin-bottom: 1.5rem;
}

.footer__nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer__nav ul {
        justify-content: flex-start;
    }
}

.footer__nav a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer__nav a:hover {
    color: #007bff;
}

.footer__socials {
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.footer__icon {
    color: #f0f0f0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer__icon:hover {
    color: #007bff;
    transform: translateY(-5px);
}

.footer__bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

.footer__copy {
    font-size: 0.8rem;
    color: #888;
}

/* ===== CONSOLIDATED MEDIA QUERIES ===== */

/* ========================================================================= */
/* 1. MOBILE & SMALL TABLET LAYOUT (Max-width: 767px) */
/* This block stacks content vertically and controls the mobile menu */
/* ========================================================================= */
@media screen and (max-width: 767px) {
  
  /* --- Home Section Fix: Force Stacking --- */
  .home {
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    text-align: center;
    min-height: auto;
  }

  .home__data {
    text-align: center;
    max-width: 90%;
    padding-left: 0;
    order: 2; /* Place data after image for small screens */
  }

  /* Reposition and Rescale the Image Container */
  .home__img {
    position: relative; /* Override absolute positioning */
    width: 60%; 
    max-width: 300px;
    margin: 2rem auto 0; 
    order: 1; /* Place image first */
  }

  .home__blob-img {
    width: 100%; 
  }

  /* Center Social Icons */
  .home__social {
    justify-content: center;
    flex-direction: row;
    padding-bottom: 2rem;
    order: 3;
    /* Ensure icons aren't huge on mobile */
    margin-right: var(--mb-4); 
  }

  /* Mobile Navigation Menu Styling */
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 2rem;
    flex-direction: column;
    background-color: #5b748b;
    transition: 0.5s;
  }

  .nav__menu.show {
    right: 0 !important; 
}
  
  /* Mobile-specific font adjustment */
  .home__title-color, .home_prof {
    font-size: 2rem;
  }
  
  /* Footer stacking for mobile */
  .footer__container {
    flex-direction: column;
  }
}

/* ========================================================================= */
/* 2. TABLET & DESKTOP LAYOUT (Min-width: 768px) */
/* This block restores the side-by-side layout and enables desktop features */
/* ========================================================================= */
@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .section-title {
    margin-bottom: var(--mb-6);
  }
  .section-title::after {
    width: 80px;
    top: 3rem;
  }
  
  /* --- Navigation Restore --- */
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__list {
    display: flex; /* Show desktop menu */
    padding-top: 0;
  }
  .nav__item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none; /* Hide hamburger icon */
  }

  /* --- Home Section Restore (Side-by-Side) --- */
  .home {
    display: flex; /* Ensure it is flex */
    flex-direction: row; /* Side-by-side */
    justify-content: flex-start;
    align-items: center; 
    padding: 8rem 0 2rem; /* Restore desktop padding */
  }
  
  .home__data {
    text-align: initial;
    max-width: 55%; 
    padding-left: 0;
    order: 0; /* Clear mobile order */
  }

  .home__img {
    position: absolute; /* Restore absolute positioning */
    right: 5%; 
    bottom: 10%; 
    width: 350px; 
    max-width: 450px; 
    order: 0; /* Clear mobile order */
  }
  
  .home__social {
    display: flex;
    flex-direction: row; 
    gap: 1.5rem;
    /* Removed redundant rules from the extra block */
  }

  /* --- Other Section Adjustments --- */
  .about__container {
    padding-top: 2rem;
  }
  .about__img img {
    width: 300px;
  }
  .skills__container {
    /* Combined from two separate 768px blocks */
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    align-items: center;
    text-align: initial;
    flex-direction: row; /* For the skills layout fix */
    justify-content: space-around;
    align-items: flex-start;
  }
  .work__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
}

/* ========================================================================= */
/* 3. LARGE DESKTOP ADJUSTMENTS (Min-width: 992px) */
/* This block finalizes large screen sizes */
/* ========================================================================= */
@media screen and (min-width: 992px) {
    /* Merged variables from 968px block */
   :root {
    --big-font-size: 3rem; 
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: .875rem;
   }
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  .home {
    padding: 10rem 0 2rem;
  }
  .home__img {
    width: 450px;
  }
}