body {
  font-family: 'Product Sans', sans-serif;
  font-size: 16px;
  color: var(--primary-font);
  margin-top: 0;
  background-color: var(--secondary-bg);
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
:root {
  --primary-bg: #f8f9fa;
  --primary-font: #202124;
  --btn-txt: white;
  --secondary-bg: white;
}
/*****Navbar With Media*****/
nav {
  display: flex;
  align-items: center; 
  height: 60px; 
  margin: 0 auto;
;
}

nav ul {
  display: flex;
  justify-content: left;
  gap: 20px;
  margin: 0;
  margin-left: 40px;
  padding: 0;
}

nav ul li {
  list-style-type: none;
  margin: auto 0;
}
ul li a{
    text-decoration: none;
    color: var(--primary-font);
}
nav ul li a:hover{
    font-weight:600;
    transition:  font-weight 0.15s ease-in-out;
}
nav {
  display: flex;
  align-items: center; 
  height: 60px; 
  margin: 0 auto;
}

/* Your original styles */
nav ul {
  display: flex;
  justify-content: left;
  gap: 20px;
  margin: 0;
  margin-left: 40px;
  padding: 0;
}

nav ul li {
  list-style-type: none;
  margin: auto 0;
}

ul li a {
  text-decoration: none;
  color: var(--primary-font);
}



/* Base nav link style */
nav ul li a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  text-decoration: none;
  color: var(--primary-font);
  transition: color 0.3s ease;
}

/* Smooth underline animation */
nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #42d392, blue);
  transition: width 0.3s ease;
}

/* On hover or active */
nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}



/* navbar to sidebar on small screens */
.menu-icon {
  display: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--primary-font);
  margin-left: 40px;
  margin-top: 30px;
  z-index: 1002;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);      
  display: none;
  z-index: 1001;
}


/* Sidebar behavior for small screens */
@media (max-width: 750px) {
  .menu-icon {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-start;
  }

  nav.active {
    transform: translateX(0);
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    margin: 80px 0 0 20px;
    gap: 15px;
  }

  nav ul li {
    margin: 0;
  }
}


/*****************Intro Container********************/
.intro-container{
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    height: 80vh;
    width: 90%;
    justify-content: space-between;
    z-index: 999;
    overflow: hidden;

}


.intro-image img{
    margin-top: 30px;
    margin-left: 0;
}
.intro-text{
    margin-top: 100px;
    margin-left: 40px;
    width: 60%;
    height: 100;
    justify-content: center; 
    align-items: flex-start;
}
.role {
  background: linear-gradient(135deg, #42d392, blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block; /* keeps it on its own line */
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 10px;
}

#vid-btn{
    display: block;
    border: none;
    border-radius: 100px ;
    background: linear-gradient(135deg, #42d392, blue);
    color: var(--btn-txt);
    margin: 40px 0px;
    font-size: 1.23rem;
    padding: 13px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(66, 211, 146, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;


}


#vid-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(66, 211, 146, 0.5);
  background: linear-gradient(135deg, #32b981, #3a82ff);
}

#vid-btn a {
  text-decoration: none;
  color: var(--btn-txt);
  transition: color 0.3s ease;
}
.hey{
    font-size: 3rem;
    color: var(--primary-font) !important;
    font-weight: 900;

}
.iam{
    font-size: 3rem;
    font-weight: 700;
}
.video-container{
    display: grid;
    height: 100%;
    padding-bottom: 50px;

}
.video-container iframe{
    justify-content: center;
    margin: 0 auto ;
  
}
/* Transition for intro to video */
.intro-container,
.introduction-video {
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

/* Position both intro and video within the same flow */
.intro-container {
  position: relative;
  z-index: 2;
}

.introduction-video {
  position: absolute;
  inset: 0; /* full area */
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  background-color: var(--secondary-bg);
  z-index: 1; /* below navbar */
  top: 60px;
  margin-bottom: 60px;
}

/* Slide animation */
.show-video .intro-container {
  transform: translateX(-100%);
  opacity: 0;
}

.show-video .introduction-video {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

/* Center video naturally */
.introduction-video iframe {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* Responsive intro container  small screens*/

@media (max-width: 600px) {
  .intro-container {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: auto;
    overflow: visible;
    padding: 10px 20px 200px 40px; 
    margin-bottom: 80px;
  }

  .intro-text {
    width: 100%;
    margin: 80px 0 0 0;
    text-align: left;
  }

  .intro-image {
    display: none; /* hides image only on phones */
  }

  #vid-btn {
    margin: 30px 0 0 0;
  }

}
/* Responsive intro container  medium screens*/

@media (min-width: 750px) and (max-width: 1024px) {
  .intro-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 50px 40px ;
    height: auto;
  }

  .intro-text {
    margin: 0 auto;
    margin-bottom: 300px;
    width: 55%;
    margin-left: 40px;
    text-align: left;
  }

  #vid-btn {
    margin: 30px 0 0 0;
  }

  .intro-image {
    display: block;
    width: 40%;
    max-width: 400px;
  }

  .intro-image img {
    width: 100%;
    height: auto;
  }
}

/*******Projects********/
.projects-section {
  padding: 2rem 40px; /* 40px left/right on large screens */
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header {
  text-align: left;
  padding-left: 40px;
  margin-bottom: 1rem;
}


/* === Grid Layout Responsive === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1400px; /* Keeps content centered */
  box-sizing: border-box;
}

/* Default transition styles for all screens */
.project-card {

  max-height: 380px; 
    max-width: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15); 
  overflow: hidden;
  height: 100%;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

/* Hover effect only for larger screens */
@media (hover: hover) and (pointer: fine) {
  .project-card:hover {
    transform: translateY(-2px); /* Very subtle lift */
    box-shadow: 0 4px 12px rgba(60, 64, 67, 0.2); /* Slightly stronger shadow on hover */
  }
}


/* === Project Image === */
.project-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  margin-bottom: 10px;
}

/* === Text Content === */


.project-content {
  width: 80%;
  margin: 0 auto;
  
  color: #2f3135;
  text-align: left;
  box-sizing: border-box;
}

/* === Project Links === */
.project-links {
  display: flex;
  justify-content: flex-end;
  gap: 1.2rem;
  padding: 20px;
 
}

.project-links a {
  text-decoration: none;
  font-weight: bold;
  color: #0077cc;
  transition: all 0.3s ease;
}

.project-links a:hover {
  text-decoration: underline;
}

/* === Responsive Scaling for Project Columns === */

/* Extra large screens (TVs and very wide monitors) */
@media (min-width: 1600px) {
  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
     justify-items: center;
  }
}

/* Large screens (desktops/laptops) */
@media (min-width: 992px) and (max-width: 1599px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
     justify-items: center;
  }
}

/* Medium screens (tablets) */
@media (min-width: 600px) and (max-width: 991px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
     justify-items: center;
  }
}

/* Small screens (phones) */
@media (max-width: 599px) {
  .projects-grid {
    grid-template-columns: 1fr;
     justify-items: center;
  }

  .projects-section {
    padding: 2rem 20px; /* Reduce side padding on mobile */
  }

  .project-links {
    justify-content: center; /* Optional: Center links on phones */
  }
}





.view-more {
  display: block;
  margin-bottom: 20px;
  margin-top: 20px;
  background: linear-gradient(135deg, #42d392, blue);
  border-radius: 20px;
  color: white;
  border: none;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  max-width: max-content;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 8px rgba(66, 211, 146, 0.3);
}

.view-more:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #32b981, #3a82ff);
  box-shadow: 0 8px 20px rgba(66, 211, 146, 0.5);
}

.view-more:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(66, 211, 146, 0.3);
}

/* Preserve link styling */
.view-more a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  width: 100%;
  height: 100%;
}
/****so that it can go right and ovveride parent positioning****/
.view-more-container {
  display: flex;
  justify-content: flex-end; /* Aligns child to the right */
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
}



/********Tech Container*********/
.tech-section {
  padding: 2rem;
  background-color: #fff;
  text-align: center;
  overflow-x: auto; /* Optional: prevents layout breaking on very small screens */
}

.tech-section__title {
  display: flex;
  justify-content: flex-start;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
@media(min-width:420px){
  .tech-section__title {
    padding-left: 40px;
  }
}
.tech-section__grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap; /* Keep everything in one row */
  overflow-x: auto; /* Allow horizontal scroll if screen is too small */
  padding: 1rem 0;
}

.tech-item img {
  width: 60px;
  height: auto;
  max-width: 100%;
  transition: transform 0.3s ease;
  flex-shrink: 1;
}

.tech-item img:hover {
  transform: scale(1.1);
}




/*********Life snippets, about ***********/
.life-snippets {
  padding: 2rem;
  background-color: #f9f9f9;
}

.life-snippets__header {
  text-align: center;
  margin-bottom: 2rem;
}

.life-snippets__gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.life-snippet {
  flex: 1 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  display: flex;
  justify-content: center;
  align-items: center;
}

.life-snippet img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.life-snippet img:hover {
  transform: scale(1.03);
}
@media (min-width: 993px) {
  .life-snippet:hover img {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 50vw;
    height: auto;
    max-height: 100vh;
    z-index: 10;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.9s ease;
    cursor: default;
  }
}
/*overlay*/



/* Medium screens (2 per row) */
@media (max-width: 992px) {
  .life-snippet {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

/* Small screens (1 per row) */
@media (max-width: 600px) {
  .life-snippet {
    flex: 1 1 100%;
    max-width: 100%;
  }
}





/*******Social Media Icons*******/
.social-media-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2vw; /* spacing adapts to screen size */
  padding: 1.5rem 1rem;
  flex-wrap: nowrap; /* always one row */
  overflow-x: auto; /* scrolls if screen too small */
}

.social-media-bar::-webkit-scrollbar {
  display: none; /* hide scrollbar if it scrolls horizontally */
}

.social-icon img {
  display: block;
  transition: transform 0.3s ease;
  height: clamp(32px, 6vw, 44px); /* scales between 32px–54px based on screen width */
  width: auto;
  filter: grayscale(20%);
}

.social-icon:hover img {
  transform: scale(1.1);
  filter: none;
}


/* Responsive form  */
form {
  width: 35%;
  max-width: 300px;
  min-width: 280px;
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin: 20px auto;
}

/* Medium screens */
@media (max-width: 900px) {
  form {
    width: 60%;
    padding: 30px 25px;
    margin: 50px auto;
  }
}

/* Small screens (phones) */
@media (max-width: 600px) {
  form {
    width: 90%;
    padding: 25px 20px;
    margin: 40px auto;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  }

  input, textarea, select, button {
    font-size: 15px;
  }
}



/*******************Footer*********************/
footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    background-color: var(--primary-bg);
    justify-content: center;
    bottom: 0;
}
footer ul li{
    list-style-type: none;
    color: #313337;
    margin: 6px;
}
footer ul li a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #313337;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

/* Underline animation */
footer ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #42d392, blue);
  transition: width 0.3s ease;
}

/* On hover or active */
footer ul li a:hover::after,
footer ul li a.active::after {
  width: 100%;
}

/* Optional: color shift */
footer ul li a:hover {
  color: #1a73e8; /* Google blue or similar */
  font-weight: 600;
}


/*to stop text new line behaviour*/
footer a{
   width: auto;    
   white-space: nowrap; 
}
nav a{
    width: auto;    
   white-space: nowrap; 
}
